diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 61ebf3944..2150660bf 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: build: runs-on: ubuntu-latest - + steps: - name: Checkout sources uses: actions/checkout@master @@ -18,18 +18,18 @@ jobs: - name: Add wasm toolchain uses: actions-rs/toolchain@v1 with: - toolchain: nightly-2020-12-12 + toolchain: nightly-2021-06-21 target: wasm32-unknown-unknown override: true - name: Initialize environment and build run: | rustup update stable - rustup toolchain install nightly-2020-12-12 - rustup default nightly-2020-12-12 - rustup target add wasm32-unknown-unknown --toolchain nightly-2020-12-12 + rustup toolchain install nightly-2021-06-21 + rustup default nightly-2021-06-21 + rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21 cargo build --release - + - name: Upload artifact uses: actions/upload-artifact@v1 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d545cb283..cb9977b7d 100755 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,12 +26,12 @@ jobs: - name: Initialize WASM build environment run: | rustup update stable - rustup toolchain install nightly-2020-12-12 - rustup default nightly-2020-12-12 - rustup target add wasm32-unknown-unknown --toolchain nightly-2020-12-12 + rustup toolchain install nightly-2021-06-21 + rustup default nightly-2021-06-21 + rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21 - name: Run cargo check - run: cargo +nightly-2020-12-12 check + run: cargo +nightly-2021-06-21 check test: name: Test Suite @@ -56,14 +56,14 @@ jobs: - name: Initialize WASM build environment run: | rustup update stable - rustup toolchain install nightly-2020-12-12 - rustup default nightly-2020-12-12 - rustup target add wasm32-unknown-unknown --toolchain nightly-2020-12-12 + rustup toolchain install nightly-2021-06-21 + rustup default nightly-2021-06-21 + rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21 # Runs integration tests in the runtime/tests folder - name: Run All Tests run: | - cargo +nightly-2020-12-12 test + cargo +nightly-2021-06-21 test lints: name: Lints @@ -88,18 +88,19 @@ jobs: override: true components: rustfmt, clippy - # nightly-2020-12-12-x86_64-unknown-linux-gnu + # nightly-2021-06-21-x86_64-unknown-linux-gnu - name: Initialize WASM build environment run: | rustup update stable - rustup toolchain install nightly-2020-12-12 - rustup default nightly-2020-12-12 - rustup target add wasm32-unknown-unknown --toolchain nightly-2020-12-12 + rustup toolchain install nightly-2021-06-21 + rustup default nightly-2021-06-21 + rustup target add wasm32-unknown-unknown --toolchain nightly-2021-06-21 - - name: Run cargo fmt - run: | - rustup component add rustfmt --toolchain nightly-2020-12-12-x86_64-unknown-linux-gnu - cargo +nightly-2020-12-12 fmt --all -- --check + # Ignore use of Rust Linting since rearranging makes it challenging to update to latest Substrate + # - name: Run cargo fmt + # run: | + # rustup component add rustfmt --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu + # cargo +nightly-2021-06-21 fmt --all -- --check # Ignore use of Clippy until a clippy.toml file may be used. See README.md # - name: Run cargo clippy @@ -109,6 +110,6 @@ jobs: # # args: --release -- -D warnings # # FIXME - temporary fix below. See https://github.com/rust-lang/rust-clippy/issues/5094#issuecomment-579116431 # run: | - # rustup component add clippy --toolchain nightly-2020-12-12-x86_64-unknown-linux-gnu - # rustup component add clippy-preview --toolchain nightly-2020-12-12-x86_64-unknown-linux-gnu - # cargo +nightly-2020-12-12 clippy-preview -Zunstable-options \ No newline at end of file + # rustup component add clippy --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu + # rustup component add clippy-preview --toolchain nightly-2021-06-21-x86_64-unknown-linux-gnu + # cargo +nightly-2021-06-21 clippy-preview -Zunstable-options diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ce17f94cc..133b4d694 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -76,7 +76,7 @@ RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/datahighway ... \ ### Run All Tests ```bash -cargo test -p datahighway-runtime && +cargo test -p datahighway-parachain-runtime && cargo test -p roaming-operators && cargo test -p roaming-networks && cargo test -p roaming-organizations && @@ -107,14 +107,14 @@ cargo test -p mining-speed-boosts-lodgements-hardware-mining ### Run Integration Tests Only ``` -cargo test -p datahighway-runtime +cargo test -p datahighway-parachain-runtime ``` #### Run Specific Integration Tests Example ``` -cargo test -p datahighway-runtime --test cli_integration_tests_mining_tokens +cargo test -p datahighway-parachain-runtime --test cli_integration_tests_mining_tokens ``` ## Continuous Integration diff --git a/Cargo.lock b/Cargo.lock deleted file mode 100644 index 7919c4992..000000000 --- a/Cargo.lock +++ /dev/null @@ -1,11953 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "Inflector" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" -dependencies = [ - "lazy_static", - "regex", -] - -[[package]] -name = "account-set" -version = "2.0.0" -dependencies = [ - "sp-std", -] - -[[package]] -name = "addr2line" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" -dependencies = [ - "gimli 0.23.0", -] - -[[package]] -name = "addr2line" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a" -dependencies = [ - "gimli 0.24.0", -] - -[[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - -[[package]] -name = "aead" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc95d1bdb8e6666b2b217308eeeb09f2d6728d104be3e31916cc74d15420331" -dependencies = [ - "generic-array 0.14.4", -] - -[[package]] -name = "aes" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd2bc6d3f370b5666245ff421e231cba4353df936e26986d2918e61a8fd6aef6" -dependencies = [ - "aes-soft", - "aesni", - "block-cipher", -] - -[[package]] -name = "aes-gcm" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0301c9e9c443494d970a07885e8cf3e587bae8356a1d5abd0999068413f7205f" -dependencies = [ - "aead", - "aes", - "block-cipher", - "ghash", - "subtle 2.4.0", -] - -[[package]] -name = "aes-soft" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63dd91889c49327ad7ef3b500fd1109dbd3c509a03db0d4a9ce413b79f575cb6" -dependencies = [ - "block-cipher", - "byteorder", - "opaque-debug 0.3.0", -] - -[[package]] -name = "aesni" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6fe808308bb07d393e2ea47780043ec47683fcf19cf5efc8ca51c50cc8c68a" -dependencies = [ - "block-cipher", - "opaque-debug 0.3.0", -] - -[[package]] -name = "ahash" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" - -[[package]] -name = "aho-corasick" -version = "0.7.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" -dependencies = [ - "memchr", -] - -[[package]] -name = "alga" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f823d037a7ec6ea2197046bafd4ae150e6bc36f9ca347404f46a46823fa84f2" -dependencies = [ - "approx 0.3.2", - "num-complex 0.2.4", - "num-traits", -] - -[[package]] -name = "always-assert" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbf688625d06217d5b1bb0ea9d9c44a1635fd0ee3534466388d18203174f4d11" - -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "anyhow" -version = "1.0.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b" - -[[package]] -name = "approx" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" -dependencies = [ - "num-traits", -] - -[[package]] -name = "approx" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f2a05fd1bd10b2527e20a2cd32d8873d115b8b39fe219ee25f42a8aca6ba278" -dependencies = [ - "num-traits", -] - -[[package]] -name = "arrayref" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" - -[[package]] -name = "arrayvec" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd9fd44efafa8690358b7408d253adf110036b88f55672a933f01d616ad9b1b9" -dependencies = [ - "nodrop", -] - -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - -[[package]] -name = "arrayvec" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a2f58b0bb10c380af2b26e57212856b8c9a59e0925b4c20f4a174a49734eaf7" - -[[package]] -name = "asn1_der" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d6e24d2cce90c53b948c46271bfb053e4bdc2db9b5d3f65e20f8cf28a1b7fc3" - -[[package]] -name = "assert_matches" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" - -[[package]] -name = "async-attributes" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3203e79f4dd9bdda415ed03cf14dae5a2bf775c683a00f94e9cd1faf0f596e5" -dependencies = [ - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "async-channel" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2114d64672151c0c5eaa5e131ec84a74f06e1e559830dabba01ca30605d66319" -dependencies = [ - "concurrent-queue", - "event-listener", - "futures-core", -] - -[[package]] -name = "async-executor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "871f9bb5e0a22eeb7e8cf16641feb87c9dc67032ccf8ff49e772eb9941d3a965" -dependencies = [ - "async-task", - "concurrent-queue", - "fastrand", - "futures-lite", - "once_cell", - "slab", -] - -[[package]] -name = "async-global-executor" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9586ec52317f36de58453159d48351bc244bc24ced3effc1fce22f3d48664af6" -dependencies = [ - "async-channel", - "async-executor", - "async-io", - "async-mutex", - "blocking", - "futures-lite", - "num_cpus", - "once_cell", -] - -[[package]] -name = "async-io" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bbfd5cf2794b1e908ea8457e6c45f8f8f1f6ec5f74617bf4662623f47503c3b" -dependencies = [ - "concurrent-queue", - "fastrand", - "futures-lite", - "libc", - "log", - "once_cell", - "parking", - "polling", - "slab", - "socket2 0.4.0", - "waker-fn", - "winapi 0.3.9", -] - -[[package]] -name = "async-lock" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6a8ea61bf9947a1007c5cada31e647dbc77b103c679858150003ba697ea798b" -dependencies = [ - "event-listener", -] - -[[package]] -name = "async-mutex" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e" -dependencies = [ - "event-listener", -] - -[[package]] -name = "async-process" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f38756dd9ac84671c428afbf7c9f7495feff9ec5b0710f17100098e5b354ac" -dependencies = [ - "async-io", - "blocking", - "cfg-if 1.0.0", - "event-listener", - "futures-lite", - "libc", - "once_cell", - "signal-hook", - "winapi 0.3.9", -] - -[[package]] -name = "async-std" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f06685bad74e0570f5213741bea82158279a4103d988e57bfada11ad230341" -dependencies = [ - "async-attributes", - "async-channel", - "async-global-executor", - "async-io", - "async-lock", - "async-process", - "crossbeam-utils 0.8.4", - "futures-channel", - "futures-core", - "futures-io", - "futures-lite", - "gloo-timers", - "kv-log-macro", - "log", - "memchr", - "num_cpus", - "once_cell", - "pin-project-lite 0.2.6", - "pin-utils", - "slab", - "wasm-bindgen-futures", -] - -[[package]] -name = "async-std-resolver" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d613d619c2886fc0f4b5a777eceab405b23de82d73f0fc61ae402fdb9bc6fb2" -dependencies = [ - "async-std", - "async-trait", - "futures-io", - "futures-util", - "pin-utils", - "trust-dns-resolver", -] - -[[package]] -name = "async-task" -version = "4.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" - -[[package]] -name = "async-trait" -version = "0.1.50" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b98e84bbb4cbcdd97da190ba0c58a1bb0de2c1fdf67d159e192ed766aeca722" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "asynchronous-codec" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4401f0a3622dad2e0763fa79e0eb328bc70fb7dccfdd645341f00d671247d6" -dependencies = [ - "bytes 1.0.1", - "futures-sink", - "futures-util", - "memchr", - "pin-project-lite 0.2.6", -] - -[[package]] -name = "asynchronous-codec" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0de5164e5edbf51c45fb8c2d9664ae1c095cce1b265ecf7569093c0d66ef690" -dependencies = [ - "bytes 1.0.1", - "futures-sink", - "futures-util", - "memchr", - "pin-project-lite 0.2.6", -] - -[[package]] -name = "atomic" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3410529e8288c463bedb5930f82833bc0c90e5d2fe639a56582a4d09220b281" -dependencies = [ - "autocfg", -] - -[[package]] -name = "atomic-waker" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a" - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "autocfg" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" - -[[package]] -name = "backtrace" -version = "0.3.59" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4717cfcbfaa661a0fd48f8453951837ae7e8f81e481fbb136e3202d72805a744" -dependencies = [ - "addr2line 0.15.1", - "cc", - "cfg-if 1.0.0", - "libc", - "miniz_oxide", - "object 0.24.0", - "rustc-demangle", -] - -[[package]] -name = "base-x" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" - -[[package]] -name = "base58" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" - -[[package]] -name = "base64" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" - -[[package]] -name = "base64" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" - -[[package]] -name = "beef" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6736e2428df2ca2848d846c43e88745121a6654696e349ce0054a420815a7409" - -[[package]] -name = "beefy-gadget" -version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#b0e5f2da52cc9bc9804a23e111d003413b268faf" -dependencies = [ - "beefy-primitives", - "futures 0.3.15", - "hex", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "sc-client-api", - "sc-keystore", - "sc-network", - "sc-network-gossip", - "sp-api", - "sp-application-crypto", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-utils", - "substrate-prometheus-endpoint", - "thiserror", -] - -[[package]] -name = "beefy-gadget-rpc" -version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#b0e5f2da52cc9bc9804a23e111d003413b268faf" -dependencies = [ - "beefy-gadget", - "beefy-primitives", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log", - "parity-scale-codec", - "sc-rpc", - "serde", - "serde_json", - "sp-core", - "sp-runtime", -] - -[[package]] -name = "beefy-primitives" -version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#b0e5f2da52cc9bc9804a23e111d003413b268faf" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - -[[package]] -name = "bindgen" -version = "0.57.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd4865004a46a0aafb2a0a5eb19d3c9fc46ee5f063a6cfc605c69ac9ecf5263d" -dependencies = [ - "bitflags", - "cexpr", - "clang-sys", - "lazy_static", - "lazycell", - "peeking_take_while", - "proc-macro2 1.0.26", - "quote 1.0.9", - "regex", - "rustc-hash", - "shlex", -] - -[[package]] -name = "bitflags" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" - -[[package]] -name = "bitmask" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5da9b3d9f6f585199287a473f4f8dfab6566cf827d15c00c219f53c645687ead" - -[[package]] -name = "bitvec" -version = "0.20.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7774144344a4faa177370406a7ff5f1da24303817368584c6206c8303eb07848" -dependencies = [ - "funty", - "radium", - "tap", - "wyz", -] - -[[package]] -name = "blake2" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a5720225ef5daecf08657f23791354e1685a8c91a4c60c7f3d3b2892f978f4" -dependencies = [ - "crypto-mac 0.8.0", - "digest 0.9.0", - "opaque-debug 0.3.0", -] - -[[package]] -name = "blake2-rfc" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d6d530bdd2d52966a6d03b7a964add7ae1a288d25214066fd4b600f0f796400" -dependencies = [ - "arrayvec 0.4.12", - "constant_time_eq", -] - -[[package]] -name = "blake2b_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - -[[package]] -name = "blake2s_simd" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "constant_time_eq", -] - -[[package]] -name = "blake3" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "cc", - "cfg-if 0.1.10", - "constant_time_eq", - "crypto-mac 0.8.0", - "digest 0.9.0", -] - -[[package]] -name = "block-buffer" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" -dependencies = [ - "block-padding 0.1.5", - "byte-tools", - "byteorder", - "generic-array 0.12.4", -] - -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "block-padding 0.2.1", - "generic-array 0.14.4", -] - -[[package]] -name = "block-cipher" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f337a3e6da609650eb74e02bc9fac7b735049f7623ab12f2e4c719316fcc7e80" -dependencies = [ - "generic-array 0.14.4", -] - -[[package]] -name = "block-padding" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" -dependencies = [ - "byte-tools", -] - -[[package]] -name = "block-padding" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d696c370c750c948ada61c69a0ee2cbbb9c50b1019ddb86d9317157a99c2cae" - -[[package]] -name = "blocking" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e170dbede1f740736619b776d7251cb1b9095c435c34d8ca9f57fcd2f335e9" -dependencies = [ - "async-channel", - "async-task", - "atomic-waker", - "fastrand", - "futures-lite", - "once_cell", -] - -[[package]] -name = "bs58" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "771fe0050b883fcc3ea2359b1a96bcfbc090b7116eae7c3c512c7a083fdf23d3" - -[[package]] -name = "bstr" -version = "0.2.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90682c8d613ad3373e66de8c6411e0ae2ab2571e879d2efbf73558cc66f21279" -dependencies = [ - "memchr", -] - -[[package]] -name = "build-helper" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdce191bf3fa4995ce948c8c83b4640a1745457a149e73c6db75b4ffe36aad5f" -dependencies = [ - "semver 0.6.0", -] - -[[package]] -name = "bumpalo" -version = "3.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe" - -[[package]] -name = "byte-slice-cast" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c1bf4a04a88c54f589125563643d773f3254b5c38571395e2b591c693bbc81" - -[[package]] -name = "byte-tools" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" - -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - -[[package]] -name = "bytes" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" -dependencies = [ - "byteorder", - "either", - "iovec", -] - -[[package]] -name = "bytes" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" - -[[package]] -name = "bytes" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040" - -[[package]] -name = "cache-padded" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba" - -[[package]] -name = "cargo-platform" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0226944a63d1bf35a3b5f948dd7c59e263db83695c9e8bffc4037de02e30f1d7" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo_metadata" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7714a157da7991e23d90686b9524b9e12e0407a108647f52e9328f4b3d51ac7f" -dependencies = [ - "cargo-platform", - "semver 0.11.0", - "semver-parser 0.10.2", - "serde", - "serde_json", -] - -[[package]] -name = "cc" -version = "1.0.67" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" -dependencies = [ - "jobserver", -] - -[[package]] -name = "cexpr" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27" -dependencies = [ - "nom", -] - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "cfg_aliases" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" - -[[package]] -name = "chacha20" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "244fbce0d47e97e8ef2f63b81d5e05882cb518c68531eb33194990d7b7e85845" -dependencies = [ - "stream-cipher", - "zeroize", -] - -[[package]] -name = "chacha20poly1305" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bf18d374d66df0c05cdddd528a7db98f78c28e2519b120855c4f84c5027b1f5" -dependencies = [ - "aead", - "chacha20", - "poly1305", - "stream-cipher", - "zeroize", -] - -[[package]] -name = "chrono" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" -dependencies = [ - "libc", - "num-integer", - "num-traits", - "time", - "winapi 0.3.9", -] - -[[package]] -name = "cid" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff0e3bc0b6446b3f9663c1a6aba6ef06c5aeaa1bc92bd18077be337198ab9768" -dependencies = [ - "multibase", - "multihash", - "unsigned-varint 0.5.1", -] - -[[package]] -name = "cipher" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f8e7987cbd042a63249497f41aed09f8e65add917ea6566effbc56578d6801" -dependencies = [ - "generic-array 0.14.4", -] - -[[package]] -name = "ckb-merkle-mountain-range" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e486fe53bb9f2ca0f58cb60e8679a5354fd6687a839942ef0a75967250289ca6" -dependencies = [ - "cfg-if 0.1.10", -] - -[[package]] -name = "clang-sys" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c" -dependencies = [ - "glob", - "libc", - "libloading 0.7.0", -] - -[[package]] -name = "clap" -version = "2.33.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" -dependencies = [ - "ansi_term 0.11.0", - "atty", - "bitflags", - "strsim", - "textwrap", - "unicode-width", - "vec_map", -] - -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - -[[package]] -name = "concurrent-queue" -version = "1.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30ed07550be01594c6026cff2a1d7fe9c8f683caa798e12b68694ac9e88286a3" -dependencies = [ - "cache-padded", -] - -[[package]] -name = "constant_time_eq" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" - -[[package]] -name = "convert_case" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" - -[[package]] -name = "core-foundation" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "core-foundation-sys" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" - -[[package]] -name = "cpp_demangle" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390" -dependencies = [ - "cfg-if 1.0.0", - "glob", -] - -[[package]] -name = "cpufeatures" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec1028182c380cc45a2e2c5ec841134f2dfd0f8f5f0a5bcd68004f81b5efdf4" -dependencies = [ - "libc", -] - -[[package]] -name = "cpuid-bool" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcb25d077389e53838a8158c8e99174c5a9d902dee4904320db714f3c653ffba" - -[[package]] -name = "cranelift-bforest" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcee7a5107071484772b89fdf37f0f460b7db75f476e43ea7a684fd942470bcf" -dependencies = [ - "cranelift-entity", -] - -[[package]] -name = "cranelift-codegen" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "654ab96f0f1cab71c0d323618a58360a492da2c341eb2c1f977fc195c664001b" -dependencies = [ - "byteorder", - "cranelift-bforest", - "cranelift-codegen-meta", - "cranelift-codegen-shared", - "cranelift-entity", - "gimli 0.23.0", - "log", - "regalloc", - "serde", - "smallvec 1.6.1", - "target-lexicon", - "thiserror", -] - -[[package]] -name = "cranelift-codegen-meta" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65994cfc5be9d5fd10c5fc30bcdddfa50c04bb79c91329287bff846434ff8f14" -dependencies = [ - "cranelift-codegen-shared", - "cranelift-entity", -] - -[[package]] -name = "cranelift-codegen-shared" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "889d720b688b8b7df5e4903f9b788c3c59396050f5548e516e58ccb7312463ab" -dependencies = [ - "serde", -] - -[[package]] -name = "cranelift-entity" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a2e6884a363e42a9ba980193ea8603a4272f8a92bd8bbaf9f57a94dbea0ff96" -dependencies = [ - "serde", -] - -[[package]] -name = "cranelift-frontend" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6f41e2f9b57d2c030e249d0958f1cdc2c3cd46accf8c0438b3d1944e9153444" -dependencies = [ - "cranelift-codegen", - "log", - "smallvec 1.6.1", - "target-lexicon", -] - -[[package]] -name = "cranelift-native" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aab70ba7575665375d31cbdea2462916ce58be887834e1b83c860b43b51af637" -dependencies = [ - "cranelift-codegen", - "target-lexicon", -] - -[[package]] -name = "cranelift-wasm" -version = "0.71.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2fc3d2e70da6439adf97648dcdf81834363154f2907405345b6fbe7ca38918c" -dependencies = [ - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "itertools 0.10.0", - "log", - "serde", - "smallvec 1.6.1", - "thiserror", - "wasmparser", -] - -[[package]] -name = "crc32fast" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "crossbeam-channel" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-utils 0.8.4", -] - -[[package]] -name = "crossbeam-deque" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285" -dependencies = [ - "crossbeam-epoch 0.8.2", - "crossbeam-utils 0.7.2", - "maybe-uninit", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94af6efb46fef72616855b036a624cf27ba656ffc9be1b9a3c931cfc7749a9a9" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-epoch 0.9.4", - "crossbeam-utils 0.8.4", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace" -dependencies = [ - "autocfg", - "cfg-if 0.1.10", - "crossbeam-utils 0.7.2", - "lazy_static", - "maybe-uninit", - "memoffset 0.5.6", - "scopeguard", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52fb27eab85b17fbb9f6fd667089e07d6a2eb8743d02639ee7f6a7a7729c9c94" -dependencies = [ - "cfg-if 1.0.0", - "crossbeam-utils 0.8.4", - "lazy_static", - "memoffset 0.6.3", - "scopeguard", -] - -[[package]] -name = "crossbeam-queue" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570" -dependencies = [ - "cfg-if 0.1.10", - "crossbeam-utils 0.7.2", - "maybe-uninit", -] - -[[package]] -name = "crossbeam-utils" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8" -dependencies = [ - "autocfg", - "cfg-if 0.1.10", - "lazy_static", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4feb231f0d4d6af81aed15928e58ecf5816aa62a2393e2c82f46973e92a9a278" -dependencies = [ - "autocfg", - "cfg-if 1.0.0", - "lazy_static", -] - -[[package]] -name = "crunchy" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" - -[[package]] -name = "crypto-mac" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4434400df11d95d556bac068ddfedd482915eb18fe8bea89bc80b6e4b1c179e5" -dependencies = [ - "generic-array 0.12.4", - "subtle 1.0.0", -] - -[[package]] -name = "crypto-mac" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" -dependencies = [ - "generic-array 0.14.4", - "subtle 2.4.0", -] - -[[package]] -name = "ct-logs" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c8e13110a84b6315df212c045be706af261fd364791cad863285439ebba672e" -dependencies = [ - "sct", -] - -[[package]] -name = "ctor" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d" -dependencies = [ - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "cuckoofilter" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b810a8449931679f64cd7eef1bbd0fa315801b6d5d9cdc1ace2804d6529eee18" -dependencies = [ - "byteorder", - "fnv", - "rand 0.7.3", -] - -[[package]] -name = "cumulus-client-collator" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-client-consensus-common", - "cumulus-client-network", - "cumulus-primitives-core", - "futures 0.3.15", - "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-overseer", - "polkadot-primitives", - "sc-client-api", - "sp-consensus", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", - "tracing", -] - -[[package]] -name = "cumulus-client-consensus-common" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "async-trait", - "dyn-clone", - "futures 0.3.15", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime", - "sc-client-api", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-trie", - "substrate-prometheus-endpoint", - "tokio 0.1.22", - "tracing", -] - -[[package]] -name = "cumulus-client-consensus-relay-chain" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "async-trait", - "cumulus-client-consensus-common", - "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", - "futures 0.3.15", - "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-service", - "sc-client-api", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "substrate-prometheus-endpoint", - "tracing", -] - -[[package]] -name = "cumulus-client-network" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "futures-timer 3.0.2", - "parity-scale-codec", - "parking_lot 0.10.2", - "polkadot-node-primitives", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-service", - "polkadot-statement-table", - "sc-client-api", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", - "tracing", -] - -[[package]] -name = "cumulus-client-service" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-client-collator", - "cumulus-client-consensus-common", - "cumulus-primitives-core", - "futures 0.3.15", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-service", - "sc-chain-spec", - "sc-client-api", - "sc-service", - "sc-telemetry", - "sc-tracing", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", - "tracing", -] - -[[package]] -name = "cumulus-pallet-parachain-system" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-primitives-core", - "cumulus-primitives-parachain-inherent", - "environmental", - "frame-support", - "frame-system", - "hash-db", - "log", - "memory-db", - "pallet-balances", - "parity-scale-codec", - "polkadot-parachain", - "serde", - "sp-core", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-trie", - "sp-version", - "trie-db", - "xcm", -] - -[[package]] -name = "cumulus-pallet-xcm" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-primitives-core", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", - "xcm", -] - -[[package]] -name = "cumulus-pallet-xcmp-queue" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-primitives-core", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "rand 0.8.3", - "rand_chacha 0.3.0", - "sp-runtime", - "sp-std", - "xcm", - "xcm-executor", -] - -[[package]] -name = "cumulus-primitives-core" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "frame-support", - "impl-trait-for-tuples", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain", - "polkadot-primitives", - "sp-runtime", - "sp-std", - "sp-trie", - "xcm", -] - -[[package]] -name = "cumulus-primitives-parachain-inherent" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-primitives-core", - "parity-scale-codec", - "sc-client-api", - "sp-api", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-trie", - "tracing", -] - -[[package]] -name = "cumulus-primitives-utility" -version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#da4c3bac6e9584e65740ef5db4dbd2c31c1a91db" -dependencies = [ - "cumulus-primitives-core", - "frame-support", - "impl-trait-for-tuples", - "parity-scale-codec", - "polkadot-core-primitives", - "polkadot-parachain", - "polkadot-primitives", - "sp-runtime", - "sp-std", - "sp-trie", - "xcm", -] - -[[package]] -name = "curve25519-dalek" -version = "2.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "434e1720189a637d44fe464f4df1e6eb900b4835255b14354497c78af37d9bb8" -dependencies = [ - "byteorder", - "digest 0.8.1", - "rand_core 0.5.1", - "subtle 2.4.0", - "zeroize", -] - -[[package]] -name = "curve25519-dalek" -version = "3.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" -dependencies = [ - "byteorder", - "digest 0.9.0", - "rand_core 0.5.1", - "subtle 2.4.0", - "zeroize", -] - -[[package]] -name = "data-encoding" -version = "2.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ee2393c4a91429dffb4bedf19f4d6abf27d8a732c8ce4980305d782e5426d57" - -[[package]] -name = "data-encoding-macro" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17" -dependencies = [ - "data-encoding", - "data-encoding-macro-internal", -] - -[[package]] -name = "data-encoding-macro-internal" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0f83e699727abca3c56e187945f303389590305ab2f0185ea445aa66e8d5f2a" -dependencies = [ - "data-encoding", - "syn 1.0.72", -] - -[[package]] -name = "datahighway-collator" -version = "3.0.0" -dependencies = [ - "cumulus-client-collator", - "cumulus-client-consensus-relay-chain", - "cumulus-client-network", - "cumulus-client-service", - "cumulus-primitives-core", - "datahighway-runtime", - "derive_more 0.15.0", - "frame-benchmarking", - "frame-benchmarking-cli", - "hex-literal 0.2.1", - "jsonrpc-core", - "log", - "pallet-transaction-payment-rpc", - "parity-scale-codec", - "polkadot-cli", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-service", - "polkadot-test-service", - "sc-basic-authorship", - "sc-chain-spec", - "sc-cli", - "sc-client-api", - "sc-consensus", - "sc-consensus-aura", - "sc-consensus-babe", - "sc-consensus-babe-rpc", - "sc-consensus-epochs", - "sc-executor", - "sc-finality-grandpa", - "sc-keystore", - "sc-rpc", - "sc-rpc-api", - "sc-service", - "sc-telemetry", - "sc-tracing", - "sc-transaction-pool", - "serde", - "serde_json", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-finality-grandpa", - "sp-inherents", - "sp-runtime", - "sp-timestamp", - "sp-transaction-pool", - "sp-trie", - "structopt", - "substrate-build-script-utils", - "substrate-frame-rpc-system", -] - -[[package]] -name = "datahighway-runtime" -version = "1.1.0" -dependencies = [ - "chrono", - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcm", - "cumulus-pallet-xcmp-queue", - "cumulus-primitives-core", - "cumulus-primitives-utility", - "exchange-rate", - "frame-benchmarking", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-benchmarking", - "frame-system-rpc-runtime-api", - "funty", - "hex-literal 0.3.1", - "membership-supernodes", - "mining-claims-hardware", - "mining-claims-token", - "mining-eligibility-hardware", - "mining-eligibility-proxy", - "mining-eligibility-token", - "mining-execution-token", - "mining-rates-hardware", - "mining-rates-token", - "mining-sampling-hardware", - "mining-sampling-token", - "mining-setting-hardware", - "mining-setting-token", - "module-primitives", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-grandpa", - "pallet-indices", - "pallet-membership", - "pallet-randomness-collective-flip", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "parachain-info", - "parity-scale-codec", - "polkadot-parachain", - "roaming-accounting-policies", - "roaming-agreement-policies", - "roaming-billing-policies", - "roaming-charging-policies", - "roaming-device-profiles", - "roaming-devices", - "roaming-network-profiles", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "roaming-packet-bundles", - "roaming-routing-profiles", - "roaming-service-profiles", - "roaming-sessions", - "serde", - "sp-api", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "substrate-wasm-builder 4.0.0", - "xcm", - "xcm-builder", - "xcm-executor", -] - -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "derive_more" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a141330240c921ec6d074a3e188a7c7ef95668bb95e7d44fa0e5778ec2a7afe" -dependencies = [ - "lazy_static", - "proc-macro2 0.4.30", - "quote 0.6.13", - "regex", - "rustc_version", - "syn 0.15.44", -] - -[[package]] -name = "derive_more" -version = "0.99.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f82b1b72f1263f214c0f823371768776c4f5841b942c9883aa8e5ec584fd0ba6" -dependencies = [ - "convert_case", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "digest" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" -dependencies = [ - "generic-array 0.12.4", -] - -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array 0.14.4", -] - -[[package]] -name = "directories" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e69600ff1703123957937708eb27f7a564e48885c537782722ed0ba3189ce1d7" -dependencies = [ - "dirs-sys", -] - -[[package]] -name = "directories-next" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339ee130d97a610ea5a5872d2bbb130fdf68884ff09d3028b81bec8a1ac23bbc" -dependencies = [ - "cfg-if 1.0.0", - "dirs-sys-next", -] - -[[package]] -name = "dirs-sys" -version = "0.3.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d86534ed367a67548dc68113a0f5db55432fdfbb6e6f9d77704397d95d5780" -dependencies = [ - "libc", - "redox_users", - "winapi 0.3.9", -] - -[[package]] -name = "dirs-sys-next" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" -dependencies = [ - "libc", - "redox_users", - "winapi 0.3.9", -] - -[[package]] -name = "dns-parser" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4d33be9473d06f75f58220f71f7a9317aca647dc061dbd3c361b0bef505fbea" -dependencies = [ - "byteorder", - "quick-error 1.2.3", -] - -[[package]] -name = "dyn-clonable" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e9232f0e607a262ceb9bd5141a3dfb3e4db6994b31989bbfd845878cba59fd4" -dependencies = [ - "dyn-clonable-impl", - "dyn-clone", -] - -[[package]] -name = "dyn-clonable-impl" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "dyn-clone" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2626afccd7561a06cf1367e2950c4718ea04565e20fb5029b6c7d8ad09abcf" - -[[package]] -name = "ed25519" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d0860415b12243916284c67a9be413e044ee6668247b99ba26d94b2bc06c8f6" -dependencies = [ - "signature", -] - -[[package]] -name = "ed25519-dalek" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" -dependencies = [ - "curve25519-dalek 3.1.0", - "ed25519", - "rand 0.7.3", - "serde", - "sha2 0.9.5", - "zeroize", -] - -[[package]] -name = "either" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" - -[[package]] -name = "enum-as-inner" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c5f0096a91d210159eceb2ff5e1c4da18388a170e1e3ce948aac9c8fdbbf595" -dependencies = [ - "heck", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "enumflags2" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83c8d82922337cd23a15f88b70d8e4ef5f11da38dd7cdb55e84dd5de99695da0" -dependencies = [ - "enumflags2_derive", -] - -[[package]] -name = "enumflags2_derive" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "enumn" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e58b112d5099aa0857c5d05f0eacab86406dd8c0f85fe5d320a13256d29ecf4" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "env_logger" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" -dependencies = [ - "atty", - "humantime 1.3.0", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "env_logger" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f" -dependencies = [ - "atty", - "humantime 2.1.0", - "log", - "regex", - "termcolor", -] - -[[package]] -name = "environmental" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" - -[[package]] -name = "erased-serde" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0465971a8cc1fa2455c8465aaa377131e1f1cf4983280f474a13e68793aa770c" -dependencies = [ - "serde", -] - -[[package]] -name = "errno" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46fe" -dependencies = [ - "errno-dragonfly", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" -dependencies = [ - "gcc", - "libc", -] - -[[package]] -name = "ethbloom" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "779864b9c7f7ead1f092972c3257496c6a84b46dba2ce131dd8a282cb2cc5972" -dependencies = [ - "crunchy", - "fixed-hash", - "impl-rlp", - "impl-serde", - "tiny-keccak", -] - -[[package]] -name = "ethereum-types" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f64b5df66a228d85e4b17e5d6c6aa43b0310898ffe8a85988c4c032357aaabfd" -dependencies = [ - "ethbloom", - "fixed-hash", - "impl-rlp", - "impl-serde", - "primitive-types", - "uint", -] - -[[package]] -name = "event-listener" -version = "2.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59" - -[[package]] -name = "exchange-rate" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "exit-future" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" -dependencies = [ - "futures 0.3.15", -] - -[[package]] -name = "failure" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" -dependencies = [ - "backtrace", - "failure_derive", -] - -[[package]] -name = "failure_derive" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "synstructure", -] - -[[package]] -name = "fake-simd" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" - -[[package]] -name = "fallible-iterator" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" - -[[package]] -name = "fastrand" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77b705829d1e87f762c2df6da140b26af5839e1033aa84aa5f56bb688e4e1bdb" -dependencies = [ - "instant", -] - -[[package]] -name = "fdlimit" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1b" -dependencies = [ - "libc", -] - -[[package]] -name = "file-per-thread-logger" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fdbe0d94371f9ce939b555dd342d0686cc4c0cadbcd4b61d70af5ff97eb4126" -dependencies = [ - "env_logger 0.7.1", - "log", -] - -[[package]] -name = "finality-grandpa" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6447e2f8178843749e8c8003206def83ec124a7859475395777a28b5338647c" -dependencies = [ - "either", - "futures 0.3.15", - "futures-timer 3.0.2", - "log", - "num-traits", - "parity-scale-codec", - "parking_lot 0.11.1", -] - -[[package]] -name = "fixed-hash" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c" -dependencies = [ - "byteorder", - "rand 0.8.3", - "rustc-hex", - "static_assertions", -] - -[[package]] -name = "fixedbitset" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d" - -[[package]] -name = "flate2" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd3aec53de10fe96d7d8c565eb17f2c687bb5518a2ec453b5b1252964526abe0" -dependencies = [ - "cfg-if 1.0.0", - "crc32fast", - "libc", - "libz-sys", - "miniz_oxide", -] - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "fork-tree" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", -] - -[[package]] -name = "form_urlencoded" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" -dependencies = [ - "matches", - "percent-encoding 2.1.0", -] - -[[package]] -name = "frame-benchmarking" -version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "linregress", - "log", - "parity-scale-codec", - "paste", - "sp-api", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-storage", -] - -[[package]] -name = "frame-benchmarking-cli" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "Inflector", - "chrono", - "frame-benchmarking", - "handlebars", - "parity-scale-codec", - "sc-cli", - "sc-client-db", - "sc-executor", - "sc-service", - "serde", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "structopt", -] - -[[package]] -name = "frame-election-provider-support" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-arithmetic", - "sp-npos-elections", - "sp-std", -] - -[[package]] -name = "frame-executive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-tracing", -] - -[[package]] -name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "serde", - "sp-core", - "sp-std", -] - -[[package]] -name = "frame-support" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "bitflags", - "frame-metadata", - "frame-support-procedural", - "impl-trait-for-tuples", - "log", - "once_cell", - "parity-scale-codec", - "paste", - "serde", - "smallvec 1.6.1", - "sp-arithmetic", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-state-machine", - "sp-std", - "sp-tracing", -] - -[[package]] -name = "frame-support-procedural" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "Inflector", - "frame-support-procedural-tools", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "frame-support-procedural-tools" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support-procedural-tools-derive", - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "frame-support-procedural-tools-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "frame-system" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-version", -] - -[[package]] -name = "frame-system-benchmarking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "frame-system-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", -] - -[[package]] -name = "frame-try-runtime" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "fs-err" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ebd3504ad6116843b8375ad70df74e7bfe83cac77a1f3fe73200c844d43bfe0" - -[[package]] -name = "fs-swap" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d47dad3685eceed8488986cad3d5027165ea5edb164331770e2059555f10a5" -dependencies = [ - "lazy_static", - "libc", - "libloading 0.5.2", - "winapi 0.3.9", -] - -[[package]] -name = "fs2" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" -dependencies = [ - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "fuchsia-cprng" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" - -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -dependencies = [ - "bitflags", - "fuchsia-zircon-sys", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" - -[[package]] -name = "funty" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed34cd105917e91daa4da6b3728c47b068749d6a62c59811f06ed2ac71d9da7" - -[[package]] -name = "futures" -version = "0.1.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" - -[[package]] -name = "futures" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e7e43a803dae2fa37c1f6a8fe121e1f7bf9548b4dfc0522a42f34145dadfc27" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-channel" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e682a68b29a882df0545c143dc3646daefe80ba479bcdede94d5a703de2871e2" -dependencies = [ - "futures-core", - "futures-sink", -] - -[[package]] -name = "futures-core" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0402f765d8a89a26043b889b26ce3c4679d268fa6bb22cd7c6aad98340e179d1" - -[[package]] -name = "futures-cpupool" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" -dependencies = [ - "futures 0.1.31", - "num_cpus", -] - -[[package]] -name = "futures-diagnose" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" -dependencies = [ - "futures 0.1.31", - "futures 0.3.15", - "lazy_static", - "log", - "parking_lot 0.9.0", - "pin-project 0.4.28", - "serde", - "serde_json", -] - -[[package]] -name = "futures-executor" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "badaa6a909fac9e7236d0620a2f57f7664640c56575b71a7552fbd68deafab79" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", - "num_cpus", -] - -[[package]] -name = "futures-io" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acc499defb3b348f8d8f3f66415835a9131856ff7714bf10dadfc4ec4bdb29a1" - -[[package]] -name = "futures-lite" -version = "1.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4481d0cd0de1d204a4fa55e7d45f07b1d958abcb06714b3446438e2eff695fb" -dependencies = [ - "fastrand", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite 0.2.6", - "waker-fn", -] - -[[package]] -name = "futures-macro" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c40298486cdf52cc00cd6d6987892ba502c7656a16a4192a9992b1ccedd121" -dependencies = [ - "autocfg", - "proc-macro-hack", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "futures-rustls" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a1387e07917c711fb4ee4f48ea0adb04a3c9739e53ef85bf43ae1edc2937a8b" -dependencies = [ - "futures-io", - "rustls 0.19.1", - "webpki", -] - -[[package]] -name = "futures-sink" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a57bead0ceff0d6dde8f465ecd96c9338121bb7717d3e7b108059531870c4282" - -[[package]] -name = "futures-task" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a16bef9fc1a4dddb5bee51c989e3fbba26569cbb0e31f5b303c184e3dd33dae" - -[[package]] -name = "futures-timer" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1de7508b218029b0f01662ed8f61b1c964b3ae99d6f25462d0f55a595109df6" - -[[package]] -name = "futures-timer" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" - -[[package]] -name = "futures-util" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb5c238d27e2bf94ffdfd27b2c29e3df4a68c4193bb6427384259e2bf191967" -dependencies = [ - "autocfg", - "futures 0.1.31", - "futures-channel", - "futures-core", - "futures-io", - "futures-macro", - "futures-sink", - "futures-task", - "memchr", - "pin-project-lite 0.2.6", - "pin-utils", - "proc-macro-hack", - "proc-macro-nested", - "slab", -] - -[[package]] -name = "gcc" -version = "0.3.55" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" - -[[package]] -name = "generic-array" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd" -dependencies = [ - "typenum", -] - -[[package]] -name = "generic-array" -version = "0.13.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f797e67af32588215eaaab8327027ee8e71b9dd0b2b26996aedf20c030fce309" -dependencies = [ - "typenum", -] - -[[package]] -name = "generic-array" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" -dependencies = [ - "typenum", - "version_check", -] - -[[package]] -name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - -[[package]] -name = "getrandom" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", -] - -[[package]] -name = "ghash" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97304e4cd182c3846f7575ced3890c53012ce534ad9114046b0a9e00bb30a375" -dependencies = [ - "opaque-debug 0.3.0", - "polyval", -] - -[[package]] -name = "gimli" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" -dependencies = [ - "fallible-iterator", - "indexmap", - "stable_deref_trait", -] - -[[package]] -name = "gimli" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" - -[[package]] -name = "glob" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" - -[[package]] -name = "globset" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c152169ef1e421390738366d2f796655fec62621dabbd0fd476f905934061e4a" -dependencies = [ - "aho-corasick", - "bstr", - "fnv", - "log", - "regex", -] - -[[package]] -name = "gloo-timers" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47204a46aaff920a1ea58b11d03dec6f704287d27561724a4631e450654a891f" -dependencies = [ - "futures-channel", - "futures-core", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "h2" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5b34c246847f938a410a03c5458c7fee2274436675e76d8b903c08efc29c462" -dependencies = [ - "byteorder", - "bytes 0.4.12", - "fnv", - "futures 0.1.31", - "http 0.1.21", - "indexmap", - "log", - "slab", - "string", - "tokio-io", -] - -[[package]] -name = "h2" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535" -dependencies = [ - "bytes 0.5.6", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http 0.2.4", - "indexmap", - "slab", - "tokio 0.2.25", - "tokio-util", - "tracing", - "tracing-futures", -] - -[[package]] -name = "handlebars" -version = "3.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4498fc115fa7d34de968184e473529abb40eeb6be8bc5f7faba3d08c316cb3e3" -dependencies = [ - "log", - "pest", - "pest_derive", - "quick-error 2.0.1", - "serde", - "serde_json", -] - -[[package]] -name = "hash-db" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d23bd4e7b5eda0d0f3a307e8b381fdc8ba9000f26fbe912250c0a4cc3956364a" - -[[package]] -name = "hash256-std-hasher" -version = "0.15.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92c171d55b98633f4ed3860808f004099b36c1cc29c42cfc53aa8591b21efcf2" -dependencies = [ - "crunchy", -] - -[[package]] -name = "hashbrown" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" -dependencies = [ - "ahash", -] - -[[package]] -name = "heck" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cbf45460356b7deeb5e3415b5563308c0a9b057c85e12b06ad551f98d0a6ac" -dependencies = [ - "unicode-segmentation", -] - -[[package]] -name = "hermit-abi" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" -dependencies = [ - "libc", -] - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "hex-literal" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "961de220ec9a91af2e1e5bd80d02109155695e516771762381ef8581317066e0" -dependencies = [ - "hex-literal-impl", - "proc-macro-hack", -] - -[[package]] -name = "hex-literal" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5af1f635ef1bc545d78392b136bfe1c9809e029023c84a3638a864a10b8819c8" - -[[package]] -name = "hex-literal-impl" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "853f769599eb31de176303197b7ba4973299c38c7a7604a6bc88c3eef05b9b46" -dependencies = [ - "proc-macro-hack", -] - -[[package]] -name = "hex_fmt" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b07f60793ff0a4d9cef0f18e63b5357e06209987153a64648c972c1e5aff336f" - -[[package]] -name = "hmac" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dcb5e64cda4c23119ab41ba960d1e170a774c8e4b9d9e6a9bc18aabf5e59695" -dependencies = [ - "crypto-mac 0.7.0", - "digest 0.8.1", -] - -[[package]] -name = "hmac" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" -dependencies = [ - "crypto-mac 0.8.0", - "digest 0.9.0", -] - -[[package]] -name = "hmac-drbg" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6e570451493f10f6581b48cdd530413b63ea9e780f544bfd3bdcaa0d89d1a7b" -dependencies = [ - "digest 0.8.1", - "generic-array 0.12.4", - "hmac 0.7.1", -] - -[[package]] -name = "hostname" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" -dependencies = [ - "libc", - "match_cfg", - "winapi 0.3.9", -] - -[[package]] -name = "http" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" -dependencies = [ - "bytes 0.4.12", - "fnv", - "itoa", -] - -[[package]] -name = "http" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11" -dependencies = [ - "bytes 1.0.1", - "fnv", - "itoa", -] - -[[package]] -name = "http-body" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6741c859c1b2463a423a1dbce98d418e6c3c3fc720fb0d45528657320920292d" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "http 0.1.21", - "tokio-buf", -] - -[[package]] -name = "http-body" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" -dependencies = [ - "bytes 0.5.6", - "http 0.2.4", -] - -[[package]] -name = "httparse" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68" - -[[package]] -name = "httpdate" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" - -[[package]] -name = "humantime" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" -dependencies = [ - "quick-error 1.2.3", -] - -[[package]] -name = "humantime" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" - -[[package]] -name = "hyper" -version = "0.12.36" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c843caf6296fc1f93444735205af9ed4e109a539005abb2564ae1d6fad34c52" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "futures-cpupool", - "h2 0.1.26", - "http 0.1.21", - "http-body 0.1.0", - "httparse", - "iovec", - "itoa", - "log", - "net2", - "rustc_version", - "time", - "tokio 0.1.22", - "tokio-buf", - "tokio-executor", - "tokio-io", - "tokio-reactor", - "tokio-tcp", - "tokio-threadpool", - "tokio-timer", - "want 0.2.0", -] - -[[package]] -name = "hyper" -version = "0.13.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a6f157065790a3ed2f88679250419b5cdd96e714a0d65f7797fd337186e96bb" -dependencies = [ - "bytes 0.5.6", - "futures-channel", - "futures-core", - "futures-util", - "h2 0.2.7", - "http 0.2.4", - "http-body 0.3.1", - "httparse", - "httpdate", - "itoa", - "pin-project 1.0.7", - "socket2 0.3.19", - "tokio 0.2.25", - "tower-service", - "tracing", - "want 0.3.0", -] - -[[package]] -name = "hyper-rustls" -version = "0.21.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37743cc83e8ee85eacfce90f2f4102030d9ff0a95244098d781e9bee4a90abb6" -dependencies = [ - "bytes 0.5.6", - "ct-logs", - "futures-util", - "hyper 0.13.10", - "log", - "rustls 0.18.1", - "rustls-native-certs", - "tokio 0.2.25", - "tokio-rustls", - "webpki", -] - -[[package]] -name = "idna" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "idna" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "if-addrs" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28538916eb3f3976311f5dfbe67b5362d0add1293d0a9cad17debf86f8e3aa48" -dependencies = [ - "if-addrs-sys", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "if-addrs-sys" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de74b9dd780476e837e5eb5ab7c88b49ed304126e412030a0adba99c8efe79ea" -dependencies = [ - "cc", - "libc", -] - -[[package]] -name = "if-watch" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae8ab7f67bad3240049cb24fb9cb0b4c2c6af4c245840917fbbdededeee91179" -dependencies = [ - "async-io", - "futures 0.3.15", - "futures-lite", - "if-addrs", - "ipnet", - "libc", - "log", - "winapi 0.3.9", -] - -[[package]] -name = "impl-codec" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df170efa359aebdd5cb7fe78edcc67107748e4737bdca8a8fb40d15ea7a877ed" -dependencies = [ - "parity-scale-codec", -] - -[[package]] -name = "impl-rlp" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f28220f89297a075ddc7245cd538076ee98b01f2a9c23a53a4f1105d5a322808" -dependencies = [ - "rlp", -] - -[[package]] -name = "impl-serde" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b47ca4d2b6931707a55fce5cf66aff80e2178c8b63bbb4ecb5695cbc870ddf6f" -dependencies = [ - "serde", -] - -[[package]] -name = "impl-trait-for-tuples" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "indexmap" -version = "1.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" -dependencies = [ - "autocfg", - "hashbrown", - "serde", -] - -[[package]] -name = "instant" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "integer-encoding" -version = "1.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48dc51180a9b377fd75814d0cc02199c20f8e99433d6762f650d39cdbbd3b56f" - -[[package]] -name = "integer-sqrt" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276ec31bcb4a9ee45f58bec6f9ec700ae4cf4f4f8f2fa7e06cb406bd5ffdd770" -dependencies = [ - "num-traits", -] - -[[package]] -name = "intervalier" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" -dependencies = [ - "futures 0.3.15", - "futures-timer 2.0.2", -] - -[[package]] -name = "iovec" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" -dependencies = [ - "libc", -] - -[[package]] -name = "ip_network" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ee15951c035f79eddbef745611ec962f63f4558f1dadf98ab723cc603487c6f" - -[[package]] -name = "ipconfig" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7e2f18aece9709094573a9f24f483c4f65caa4298e2f7ae1b71cc65d853fad7" -dependencies = [ - "socket2 0.3.19", - "widestring", - "winapi 0.3.9", - "winreg", -] - -[[package]] -name = "ipnet" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" - -[[package]] -name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - -[[package]] -name = "itertools" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319" -dependencies = [ - "either", -] - -[[package]] -name = "itoa" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" - -[[package]] -name = "jobserver" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "972f5ae5d1cb9c6ae417789196c803205313edde988685da5e3aae0827b9e7fd" -dependencies = [ - "libc", -] - -[[package]] -name = "js-sys" -version = "0.3.51" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bdfbace3a0e81a4253f73b49e960b053e396a11012cbd49b9b74d6a2b67062" -dependencies = [ - "wasm-bindgen", -] - -[[package]] -name = "jsonrpc-client-transports" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489b9c612e60c766f751ab40fcb43cbb55a1e10bb44a9b4307ed510ca598cbd7" -dependencies = [ - "failure", - "futures 0.1.31", - "jsonrpc-core", - "jsonrpc-pubsub", - "log", - "serde", - "serde_json", - "url 1.7.2", -] - -[[package]] -name = "jsonrpc-core" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0745a6379e3edc893c84ec203589790774e4247420033e71a76d3ab4687991fa" -dependencies = [ - "futures 0.1.31", - "log", - "serde", - "serde_derive", - "serde_json", -] - -[[package]] -name = "jsonrpc-core-client" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f764902d7b891344a0acb65625f32f6f7c6db006952143bd650209fbe7d94db" -dependencies = [ - "jsonrpc-client-transports", -] - -[[package]] -name = "jsonrpc-derive" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" -dependencies = [ - "proc-macro-crate 0.1.5", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "jsonrpc-http-server" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fb5c4513b7b542f42da107942b7b759f27120b5cc894729f88254b28dff44b7" -dependencies = [ - "hyper 0.12.36", - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "net2", - "parking_lot 0.10.2", - "unicase", -] - -[[package]] -name = "jsonrpc-ipc-server" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf50e53e4eea8f421a7316c5f63e395f7bc7c4e786a6dc54d76fab6ff7aa7ce7" -dependencies = [ - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "parity-tokio-ipc", - "parking_lot 0.10.2", - "tokio-service", -] - -[[package]] -name = "jsonrpc-pubsub" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639558e0604013be9787ae52f798506ae42bf4220fe587bdc5625871cc8b9c77" -dependencies = [ - "jsonrpc-core", - "log", - "parking_lot 0.10.2", - "rand 0.7.3", - "serde", -] - -[[package]] -name = "jsonrpc-server-utils" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f1f3990650c033bd8f6bd46deac76d990f9bbfb5f8dc8c4767bf0a00392176" -dependencies = [ - "bytes 0.4.12", - "globset", - "jsonrpc-core", - "lazy_static", - "log", - "tokio 0.1.22", - "tokio-codec", - "unicase", -] - -[[package]] -name = "jsonrpc-ws-server" -version = "15.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6596fe75209b73a2a75ebe1dce4e60e03b88a2b25e8807b667597f6315150d22" -dependencies = [ - "jsonrpc-core", - "jsonrpc-server-utils", - "log", - "parity-ws", - "parking_lot 0.10.2", - "slab", -] - -[[package]] -name = "jsonrpsee-http-client" -version = "0.2.0-alpha.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e3a49473ea266be8e9f23e20a7bfa4349109b42319d72cc0b8a101e18fa6466" -dependencies = [ - "async-trait", - "fnv", - "hyper 0.13.10", - "hyper-rustls", - "jsonrpsee-types", - "jsonrpsee-utils", - "log", - "serde", - "serde_json", - "thiserror", - "url 2.2.2", -] - -[[package]] -name = "jsonrpsee-proc-macros" -version = "0.2.0-alpha.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0cbaee9ca6440e191545a68c7bf28db0ff918359a904e37a6e7cf7edd132f5a" -dependencies = [ - "Inflector", - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "jsonrpsee-types" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab3dabceeeeb865897661d532d47202eaae71cd2c606f53cb69f1fbc0555a51" -dependencies = [ - "async-trait", - "beef", - "futures-channel", - "futures-util", - "log", - "serde", - "serde_json", - "thiserror", -] - -[[package]] -name = "jsonrpsee-utils" -version = "0.2.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d63cf4d423614e71fd144a8691208539d2b23d8373e069e2fbe023c5eba5e922" -dependencies = [ - "futures-util", - "hyper 0.13.10", - "jsonrpsee-types", -] - -[[package]] -name = "keccak" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67c21572b4949434e4fc1e1978b99c5f77064153c59d998bf13ecd96fb5ecba7" - -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - -[[package]] -name = "kusama-runtime" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-bounties", - "pallet-collective", - "pallet-democracy", - "pallet-election-provider-multi-phase", - "pallet-elections-phragmen", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-mmr-primitives", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", - "pallet-session", - "pallet-society", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-timestamp", - "pallet-tips", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.6.1", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-npos-elections", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder 3.0.0", -] - -[[package]] -name = "kv-log-macro" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f" -dependencies = [ - "log", -] - -[[package]] -name = "kvdb" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8891bd853eff90e33024195d79d578dc984c82f9e0715fcd2b525a0c19d52811" -dependencies = [ - "parity-util-mem", - "smallvec 1.6.1", -] - -[[package]] -name = "kvdb-memorydb" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30a0da8e08caf08d384a620ec19bb6c9b85c84137248e202617fb91881f25912" -dependencies = [ - "kvdb", - "parity-util-mem", - "parking_lot 0.11.1", -] - -[[package]] -name = "kvdb-rocksdb" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94b27cdb788bf1c8ade782289f9dbee626940be2961fd75c7cde993fa2f1ded1" -dependencies = [ - "fs-swap", - "kvdb", - "log", - "num_cpus", - "owning_ref", - "parity-util-mem", - "parking_lot 0.11.1", - "regex", - "rocksdb", - "smallvec 1.6.1", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "lazycell" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" - -[[package]] -name = "leb128" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" - -[[package]] -name = "libc" -version = "0.2.94" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" - -[[package]] -name = "libloading" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753" -dependencies = [ - "cc", - "winapi 0.3.9", -] - -[[package]] -name = "libloading" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f84d96438c15fcd6c3f244c8fce01d1e2b9c6b5623e9c711dc9286d8fc92d6a" -dependencies = [ - "cfg-if 1.0.0", - "winapi 0.3.9", -] - -[[package]] -name = "libm" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" - -[[package]] -name = "libp2p" -version = "0.37.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08053fbef67cd777049ef7a95ebaca2ece370b4ed7712c3fa404d69a88cb741b" -dependencies = [ - "atomic", - "bytes 1.0.1", - "futures 0.3.15", - "lazy_static", - "libp2p-core", - "libp2p-deflate", - "libp2p-dns", - "libp2p-floodsub", - "libp2p-gossipsub", - "libp2p-identify", - "libp2p-kad", - "libp2p-mdns", - "libp2p-mplex", - "libp2p-noise", - "libp2p-ping", - "libp2p-plaintext", - "libp2p-pnet", - "libp2p-relay", - "libp2p-request-response", - "libp2p-swarm", - "libp2p-swarm-derive", - "libp2p-tcp", - "libp2p-uds", - "libp2p-wasm-ext", - "libp2p-websocket", - "libp2p-yamux", - "parity-multiaddr", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "smallvec 1.6.1", - "wasm-timer", -] - -[[package]] -name = "libp2p-core" -version = "0.28.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "554d3e7e9e65f939d66b75fd6a4c67f258fe250da61b91f46c545fc4a89b51d9" -dependencies = [ - "asn1_der", - "bs58", - "ed25519-dalek", - "either", - "fnv", - "futures 0.3.15", - "futures-timer 3.0.2", - "lazy_static", - "libsecp256k1", - "log", - "multihash", - "multistream-select", - "parity-multiaddr", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "prost", - "prost-build", - "rand 0.7.3", - "ring", - "rw-stream-sink", - "sha2 0.9.5", - "smallvec 1.6.1", - "thiserror", - "unsigned-varint 0.7.0", - "void", - "zeroize", -] - -[[package]] -name = "libp2p-deflate" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2181a641cd15f9b6ba71b1335800f309012a0a97a29ffaabbbf40e9d3d58f08" -dependencies = [ - "flate2", - "futures 0.3.15", - "libp2p-core", -] - -[[package]] -name = "libp2p-dns" -version = "0.28.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62e63dab8b5ff35e0c101a3e51e843ba782c07bbb1682f5fd827622e0d02b98b" -dependencies = [ - "async-std-resolver", - "futures 0.3.15", - "libp2p-core", - "log", - "smallvec 1.6.1", - "trust-dns-resolver", -] - -[[package]] -name = "libp2p-floodsub" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48a9b570f6766301d9c4aa00fce3554cad1598e2f466debbc4dde909028417cf" -dependencies = [ - "cuckoofilter", - "fnv", - "futures 0.3.15", - "libp2p-core", - "libp2p-swarm", - "log", - "prost", - "prost-build", - "rand 0.7.3", - "smallvec 1.6.1", -] - -[[package]] -name = "libp2p-gossipsub" -version = "0.30.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7b0c8506a6ec3344b9e706d7c7a6dba826f8ede735cfe13dde12a8c263c4af9" -dependencies = [ - "asynchronous-codec 0.6.0", - "base64 0.13.0", - "byteorder", - "bytes 1.0.1", - "fnv", - "futures 0.3.15", - "hex_fmt", - "libp2p-core", - "libp2p-swarm", - "log", - "prost", - "prost-build", - "rand 0.7.3", - "regex", - "sha2 0.9.5", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", - "wasm-timer", -] - -[[package]] -name = "libp2p-identify" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f668f00efd9883e8b7bcc582eaf0164615792608f886f6577da18bcbeea0a46" -dependencies = [ - "futures 0.3.15", - "libp2p-core", - "libp2p-swarm", - "log", - "prost", - "prost-build", - "smallvec 1.6.1", - "wasm-timer", -] - -[[package]] -name = "libp2p-kad" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b07312ebe5ee4fd2404447a0609814574df55c65d4e20838b957bbd34907d820" -dependencies = [ - "arrayvec 0.5.2", - "asynchronous-codec 0.6.0", - "bytes 1.0.1", - "either", - "fnv", - "futures 0.3.15", - "libp2p-core", - "libp2p-swarm", - "log", - "prost", - "prost-build", - "rand 0.7.3", - "sha2 0.9.5", - "smallvec 1.6.1", - "uint", - "unsigned-varint 0.7.0", - "void", - "wasm-timer", -] - -[[package]] -name = "libp2p-mdns" -version = "0.30.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4efa70c1c3d2d91237f8546e27aeb85e287d62c066a7b4f3ea6a696d43ced714" -dependencies = [ - "async-io", - "data-encoding", - "dns-parser", - "futures 0.3.15", - "if-watch", - "lazy_static", - "libp2p-core", - "libp2p-swarm", - "log", - "rand 0.8.3", - "smallvec 1.6.1", - "socket2 0.4.0", - "void", -] - -[[package]] -name = "libp2p-mplex" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85e9b544335d1ed30af71daa96edbefadef6f19c7a55f078b9fc92c87163105d" -dependencies = [ - "asynchronous-codec 0.6.0", - "bytes 1.0.1", - "futures 0.3.15", - "libp2p-core", - "log", - "nohash-hasher", - "parking_lot 0.11.1", - "rand 0.7.3", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", -] - -[[package]] -name = "libp2p-noise" -version = "0.30.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36db0f0db3b0433f5b9463f1c0cd9eadc0a3734a9170439ce501ff99733a88bd" -dependencies = [ - "bytes 1.0.1", - "curve25519-dalek 3.1.0", - "futures 0.3.15", - "lazy_static", - "libp2p-core", - "log", - "prost", - "prost-build", - "rand 0.7.3", - "sha2 0.9.5", - "snow", - "static_assertions", - "x25519-dalek", - "zeroize", -] - -[[package]] -name = "libp2p-ping" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf4bfaffac63bf3c7ec11ed9d8879d455966ddea7e78ee14737f0b6dce0d1cd1" -dependencies = [ - "futures 0.3.15", - "libp2p-core", - "libp2p-swarm", - "log", - "rand 0.7.3", - "void", - "wasm-timer", -] - -[[package]] -name = "libp2p-plaintext" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8c37b4d2a075b4be8442760a5f8c037180f0c8dd5b5734b9978ab868b3aa11" -dependencies = [ - "asynchronous-codec 0.6.0", - "bytes 1.0.1", - "futures 0.3.15", - "libp2p-core", - "log", - "prost", - "prost-build", - "unsigned-varint 0.7.0", - "void", -] - -[[package]] -name = "libp2p-pnet" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce3374f3b28162db9d3442c9347c4f14cb01e8290052615c7d341d40eae0599" -dependencies = [ - "futures 0.3.15", - "log", - "pin-project 1.0.7", - "rand 0.7.3", - "salsa20", - "sha3", -] - -[[package]] -name = "libp2p-relay" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b8786aca3f18671d8776289706a5521f6c9124a820f69e358de214b9939440d" -dependencies = [ - "asynchronous-codec 0.6.0", - "bytes 1.0.1", - "futures 0.3.15", - "futures-timer 3.0.2", - "libp2p-core", - "libp2p-swarm", - "log", - "pin-project 1.0.7", - "prost", - "prost-build", - "rand 0.7.3", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", - "void", - "wasm-timer", -] - -[[package]] -name = "libp2p-request-response" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cdbe172f08e6d0f95fa8634e273d4c4268c4063de2e33e7435194b0130c62e3" -dependencies = [ - "async-trait", - "bytes 1.0.1", - "futures 0.3.15", - "libp2p-core", - "libp2p-swarm", - "log", - "lru", - "minicbor", - "rand 0.7.3", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", - "wasm-timer", -] - -[[package]] -name = "libp2p-swarm" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e04d8e1eef675029ec728ba14e8d0da7975d84b6679b699b4ae91a1de9c3a92" -dependencies = [ - "either", - "futures 0.3.15", - "libp2p-core", - "log", - "rand 0.7.3", - "smallvec 1.6.1", - "void", - "wasm-timer", -] - -[[package]] -name = "libp2p-swarm-derive" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "365b0a699fea5168676840567582a012ea297b1ca02eee467e58301b9c9c5eed" -dependencies = [ - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "libp2p-tcp" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b1a27d21c477951799e99d5c105d78868258502ce092988040a808d5a19bbd9" -dependencies = [ - "async-io", - "futures 0.3.15", - "futures-timer 3.0.2", - "if-watch", - "ipnet", - "libc", - "libp2p-core", - "log", - "socket2 0.4.0", -] - -[[package]] -name = "libp2p-uds" -version = "0.28.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffd6564bb3b7ff203661ccbb69003c2b551e34cef974f2d6c6a28306a12170b5" -dependencies = [ - "async-std", - "futures 0.3.15", - "libp2p-core", - "log", -] - -[[package]] -name = "libp2p-wasm-ext" -version = "0.28.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d413e4cf9b8e5dfbcd2a60d3dc5a3391308bdb463684093d4f67137b7113de" -dependencies = [ - "futures 0.3.15", - "js-sys", - "libp2p-core", - "parity-send-wrapper", - "wasm-bindgen", - "wasm-bindgen-futures", -] - -[[package]] -name = "libp2p-websocket" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cace60995ef6f637e4752cccbb2590f6bc358e8741a0d066307636c69a4b3a74" -dependencies = [ - "either", - "futures 0.3.15", - "futures-rustls", - "libp2p-core", - "log", - "quicksink", - "rw-stream-sink", - "soketto", - "url 2.2.2", - "webpki-roots", -] - -[[package]] -name = "libp2p-yamux" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f35da42cfc6d5cb0dcf3ad6881bc68d146cdf38f98655e09e33fbba4d13eabc4" -dependencies = [ - "futures 0.3.15", - "libp2p-core", - "parking_lot 0.11.1", - "thiserror", - "yamux", -] - -[[package]] -name = "librocksdb-sys" -version = "6.17.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5da125e1c0f22c7cae785982115523a0738728498547f415c9054cb17c7e89f9" -dependencies = [ - "bindgen", - "cc", - "glob", - "libc", -] - -[[package]] -name = "libsecp256k1" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fc1e2c808481a63dc6da2074752fdd4336a3c8fcc68b83db6f1fd5224ae7962" -dependencies = [ - "arrayref", - "crunchy", - "digest 0.8.1", - "hmac-drbg", - "rand 0.7.3", - "sha2 0.8.2", - "subtle 2.4.0", - "typenum", -] - -[[package]] -name = "libz-sys" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de5435b8549c16d423ed0c03dbaafe57cf6c3344744f1242520d59c9d8ecec66" -dependencies = [ - "cc", - "pkg-config", - "vcpkg", -] - -[[package]] -name = "linked-hash-map" -version = "0.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" - -[[package]] -name = "linked_hash_set" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47186c6da4d81ca383c7c47c1bfc80f4b95f4720514d860a5407aaf4233f9588" -dependencies = [ - "linked-hash-map", -] - -[[package]] -name = "linregress" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b36162d2e1dcbdeb61223cb788f029f8ac9f2ab19969b89c5a8f4517aad4d940" -dependencies = [ - "nalgebra 0.25.4", - "statrs", -] - -[[package]] -name = "lock_api" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] - -[[package]] -name = "lock_api" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0382880606dff6d15c9476c416d18690b72742aa7b605bb6dd6ec9030fbf07eb" -dependencies = [ - "scopeguard", -] - -[[package]] -name = "log" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" -dependencies = [ - "cfg-if 1.0.0", - "value-bag", -] - -[[package]] -name = "lru" -version = "0.6.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f374d42cdfc1d7dbf3d3dec28afab2eb97ffbf43a3234d795b5986dbf4b90ba" -dependencies = [ - "hashbrown", -] - -[[package]] -name = "lru-cache" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31e24f1ad8321ca0e8a1e0ac13f23cb668e6f5466c2c57319f6a5cf1cc8e3b1c" -dependencies = [ - "linked-hash-map", -] - -[[package]] -name = "mach" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" -dependencies = [ - "libc", -] - -[[package]] -name = "maplit" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d" - -[[package]] -name = "match_cfg" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" - -[[package]] -name = "matchers" -version = "0.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f099785f7595cc4b4553a174ce30dd7589ef93391ff414dbb67f62392b9e0ce1" -dependencies = [ - "regex-automata", -] - -[[package]] -name = "matches" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" - -[[package]] -name = "matrixmultiply" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "916806ba0031cd542105d916a97c8572e1fa6dd79c9c51e7eb43a09ec2dd84c1" -dependencies = [ - "rawpointer", -] - -[[package]] -name = "matrixmultiply" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a8a15b776d9dfaecd44b03c5828c2199cddff5247215858aac14624f8d6b741" -dependencies = [ - "rawpointer", -] - -[[package]] -name = "maybe-uninit" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" - -[[package]] -name = "membership-supernodes" -version = "2.0.0" -dependencies = [ - "account-set", - "frame-support", - "frame-system", - "pallet-balances", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "memchr" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" - -[[package]] -name = "memmap2" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "397d1a6d6d0563c0f5462bbdae662cf6c784edf5e828e40c7257f85d82bf56dd" -dependencies = [ - "libc", -] - -[[package]] -name = "memoffset" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" -dependencies = [ - "autocfg", -] - -[[package]] -name = "memoffset" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d" -dependencies = [ - "autocfg", -] - -[[package]] -name = "memory-db" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "814bbecfc0451fc314eeea34f05bbcd5b98a7ad7af37faee088b86a1e633f1d4" -dependencies = [ - "hash-db", - "hashbrown", - "parity-util-mem", -] - -[[package]] -name = "memory-lru" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "beeb98b3d1ed2c0054bd81b5ba949a0243c3ccad751d45ea898fa8059fa2860a" -dependencies = [ - "lru", -] - -[[package]] -name = "memory_units" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d96e3f3c0b6325d8ccd83c33b28acb183edcb6c67938ba104ec546854b0882" - -[[package]] -name = "merlin" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e261cf0f8b3c42ded9f7d2bb59dea03aa52bc8a1cbc7482f9fc3fd1229d3b42" -dependencies = [ - "byteorder", - "keccak", - "rand_core 0.5.1", - "zeroize", -] - -[[package]] -name = "metered-channel" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "futures-timer 3.0.2", -] - -[[package]] -name = "mick-jaeger" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c023c3f16109e7f33aa451f773fd61070e265b4977d0b6e344a51049296dd7df" -dependencies = [ - "futures 0.3.15", - "rand 0.7.3", - "thrift", -] - -[[package]] -name = "minicbor" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51aa5bb0ca22415daca596a227b507f880ad1b2318a87fa9325312a5d285ca0d" -dependencies = [ - "minicbor-derive", -] - -[[package]] -name = "minicbor-derive" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f2b9e8883d58e34b18facd16c4564a77ea50fce028ad3d0ee6753440e37acc8" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "mining-claims-hardware" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-eligibility-hardware", - "mining-rates-hardware", - "mining-sampling-hardware", - "mining-setting-hardware", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-claims-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-eligibility-token", - "mining-rates-token", - "mining-sampling-token", - "mining-setting-token", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-eligibility-hardware" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-rates-hardware", - "mining-sampling-hardware", - "mining-setting-hardware", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-eligibility-proxy" -version = "0.1.0" -dependencies = [ - "account-set", - "chrono", - "frame-support", - "frame-system", - "membership-supernodes", - "module-primitives", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-treasury", - "parity-scale-codec", - "safe-mix", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-eligibility-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-rates-token", - "mining-sampling-token", - "mining-setting-token", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-execution-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-claims-token", - "mining-eligibility-token", - "mining-rates-token", - "mining-sampling-token", - "mining-setting-token", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-rates-hardware" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-rates-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-sampling-hardware" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-setting-hardware", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-sampling-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "mining-setting-token", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-setting-hardware" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "mining-setting-token" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "miniz_oxide" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" -dependencies = [ - "adler", - "autocfg", -] - -[[package]] -name = "mio" -version = "0.6.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" -dependencies = [ - "cfg-if 0.1.10", - "fuchsia-zircon", - "fuchsia-zircon-sys", - "iovec", - "kernel32-sys", - "libc", - "log", - "miow 0.2.2", - "net2", - "slab", - "winapi 0.2.8", -] - -[[package]] -name = "mio-extras" -version = "2.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19" -dependencies = [ - "lazycell", - "log", - "mio", - "slab", -] - -[[package]] -name = "mio-named-pipes" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" -dependencies = [ - "log", - "mio", - "miow 0.3.7", - "winapi 0.3.9", -] - -[[package]] -name = "mio-uds" -version = "0.6.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" -dependencies = [ - "iovec", - "libc", - "mio", -] - -[[package]] -name = "miow" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" -dependencies = [ - "kernel32-sys", - "net2", - "winapi 0.2.8", - "ws2_32-sys", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "module-primitives" -version = "3.0.0" -dependencies = [ - "bitmask", - "parity-scale-codec", - "serde", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "more-asserts" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" - -[[package]] -name = "multibase" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b78c60039650ff12e140ae867ef5299a58e19dded4d334c849dc7177083667e2" -dependencies = [ - "base-x", - "data-encoding", - "data-encoding-macro", -] - -[[package]] -name = "multihash" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab" -dependencies = [ - "blake2b_simd", - "blake2s_simd", - "blake3", - "digest 0.9.0", - "generic-array 0.14.4", - "multihash-derive", - "sha2 0.9.5", - "sha3", - "unsigned-varint 0.5.1", -] - -[[package]] -name = "multihash-derive" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" -dependencies = [ - "proc-macro-crate 0.1.5", - "proc-macro-error", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "synstructure", -] - -[[package]] -name = "multimap" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" - -[[package]] -name = "multistream-select" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d91ec0a2440aaff5f78ec35631a7027d50386c6163aa975f7caa0d5da4b6ff8" -dependencies = [ - "bytes 1.0.1", - "futures 0.3.15", - "log", - "pin-project 1.0.7", - "smallvec 1.6.1", - "unsigned-varint 0.7.0", -] - -[[package]] -name = "nalgebra" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0abb021006c01b126a936a8dd1351e0720d83995f4fc942d0d426c654f990745" -dependencies = [ - "alga", - "approx 0.3.2", - "generic-array 0.13.3", - "matrixmultiply 0.2.4", - "num-complex 0.2.4", - "num-rational 0.2.4", - "num-traits", - "rand 0.7.3", - "rand_distr", - "typenum", -] - -[[package]] -name = "nalgebra" -version = "0.25.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c70c9e8c5f213c8e93fc8c112ade4edd3ee62062fb897776c23dcebac7932900" -dependencies = [ - "approx 0.4.0", - "generic-array 0.14.4", - "matrixmultiply 0.3.1", - "num-complex 0.3.1", - "num-rational 0.3.2", - "num-traits", - "serde", - "simba", - "typenum", -] - -[[package]] -name = "names" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef320dab323286b50fb5cdda23f61c796a72a89998ab565ca32525c5c556f2da" -dependencies = [ - "rand 0.3.23", -] - -[[package]] -name = "net2" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "nodrop" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" - -[[package]] -name = "nohash-hasher" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" - -[[package]] -name = "nom" -version = "5.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb4262d26ed83a1c0a33a38fe2bb15797329c85770da05e6b828ddb782627af" -dependencies = [ - "memchr", - "version_check", -] - -[[package]] -name = "num-bigint" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-complex" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-complex" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "747d632c0c558b87dbabbe6a82f3b4ae03720d0646ac5b7b4dae89394be5f2c5" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-integer" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-rational" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" -dependencies = [ - "autocfg", - "num-bigint", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-rational" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12ac428b1cb17fce6f731001d307d351ec70a6d202fc2e60f7d4c5e42d8f4f07" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" -dependencies = [ - "autocfg", - "libm", -] - -[[package]] -name = "num_cpus" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" -dependencies = [ - "hermit-abi", - "libc", -] - -[[package]] -name = "object" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" -dependencies = [ - "crc32fast", - "indexmap", -] - -[[package]] -name = "object" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170" - -[[package]] -name = "once_cell" -version = "1.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" -dependencies = [ - "parking_lot 0.11.1", -] - -[[package]] -name = "opaque-debug" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" - -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - -[[package]] -name = "openssl-probe" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" - -[[package]] -name = "ordered-float" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3305af35278dd29f46fcdd139e0b1fbfae2153f0e5928b39b035542dd31e37b7" -dependencies = [ - "num-traits", -] - -[[package]] -name = "owning_ref" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff55baddef9e4ad00f88b6c743a2a8062d4c6ade126c2a528644b8e444d52ce" -dependencies = [ - "stable_deref_trait", -] - -[[package]] -name = "pallet-authority-discovery" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "pallet-session", - "parity-scale-codec", - "sp-application-crypto", - "sp-authority-discovery", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "parity-scale-codec", - "sp-authorship", - "sp-inherents", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-babe" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "pallet-authorship", - "pallet-session", - "pallet-timestamp", - "parity-scale-codec", - "sp-application-crypto", - "sp-consensus-babe", - "sp-consensus-vrf", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-balances" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-beefy" -version = "0.1.0" -source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#b0e5f2da52cc9bc9804a23e111d003413b268faf" -dependencies = [ - "beefy-primitives", - "frame-support", - "frame-system", - "pallet-session", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-bounties" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "pallet-treasury", - "parity-scale-codec", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-collective" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-democracy" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-election-provider-multi-phase" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-arithmetic", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-std", - "static_assertions", -] - -[[package]] -name = "pallet-elections-phragmen" -version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-npos-elections", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-grandpa" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "pallet-authorship", - "pallet-session", - "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-finality-grandpa", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-identity" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-im-online" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-authorship", - "parity-scale-codec", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-indices" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-keyring", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-membership" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-mmr" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "ckb-merkle-mountain-range", - "frame-benchmarking", - "frame-support", - "frame-system", - "pallet-mmr-primitives", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-mmr-primitives" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "serde", - "sp-api", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-mmr-rpc" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "pallet-mmr-primitives", - "parity-scale-codec", - "serde", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-rpc", - "sp-runtime", -] - -[[package]] -name = "pallet-multisig" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-nicks" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-offences" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-staking", - "sp-std", -] - -[[package]] -name = "pallet-proxy" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-randomness-collective-flip" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "safe-mix", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-recovery" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "enumflags2", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-scheduler" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "log", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "pallet-timestamp", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-trie", -] - -[[package]] -name = "pallet-society" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "rand_chacha 0.2.2", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-staking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-election-provider-support", - "frame-support", - "frame-system", - "log", - "pallet-authorship", - "pallet-session", - "parity-scale-codec", - "paste", - "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", - "static_assertions", -] - -[[package]] -name = "pallet-staking-reward-curve" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "pallet-sudo" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", - "sp-timestamp", -] - -[[package]] -name = "pallet-tips" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "pallet-treasury", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-transaction-payment" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "smallvec 1.6.1", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-transaction-payment-rpc" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "pallet-transaction-payment-rpc-runtime-api", - "parity-scale-codec", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-rpc", - "sp-runtime", -] - -[[package]] -name = "pallet-transaction-payment-rpc-runtime-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "pallet-transaction-payment", - "parity-scale-codec", - "sp-api", - "sp-runtime", -] - -[[package]] -name = "pallet-treasury" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "pallet-balances", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-utility" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-vesting" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "enumflags2", - "frame-support", - "frame-system", - "parity-scale-codec", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "pallet-xcm" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", - "xcm", -] - -[[package]] -name = "parachain-info" -version = "0.1.0" -dependencies = [ - "cumulus-primitives-core", - "frame-support", - "frame-system", - "parity-scale-codec", - "serde", -] - -[[package]] -name = "parity-db" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "495197c078e54b8735181aa35c00a327f7f3a3cc00a1ee8c95926dd010f0ec6b" -dependencies = [ - "blake2-rfc", - "crc32fast", - "fs2", - "hex", - "libc", - "log", - "memmap2", - "parking_lot 0.11.1", - "rand 0.8.3", -] - -[[package]] -name = "parity-multiaddr" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58341485071825827b7f03cf7efd1cb21e6a709bea778fb50227fd45d2f361b4" -dependencies = [ - "arrayref", - "bs58", - "byteorder", - "data-encoding", - "multihash", - "percent-encoding 2.1.0", - "serde", - "static_assertions", - "unsigned-varint 0.7.0", - "url 2.2.2", -] - -[[package]] -name = "parity-scale-codec" -version = "2.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f518afaa5a47d0d6386229b0a6e01e86427291d643aa4cabb4992219f504f8" -dependencies = [ - "arrayvec 0.7.0", - "bitvec", - "byte-slice-cast", - "parity-scale-codec-derive", - "serde", -] - -[[package]] -name = "parity-scale-codec-derive" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f44c5f94427bd0b5076e8f7e15ca3f60a4d8ac0077e4793884e6fdfd8915344e" -dependencies = [ - "proc-macro-crate 0.1.5", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "parity-send-wrapper" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6f" - -[[package]] -name = "parity-tokio-ipc" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e57fea504fea33f9fbb5f49f378359030e7e026a6ab849bb9e8f0787376f1bf" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "libc", - "log", - "mio-named-pipes", - "miow 0.3.7", - "rand 0.7.3", - "tokio 0.1.22", - "tokio-named-pipes", - "tokio-uds", - "winapi 0.3.9", -] - -[[package]] -name = "parity-util-mem" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "664a8c6b8e62d8f9f2f937e391982eb433ab285b4cd9545b342441e04a906e42" -dependencies = [ - "cfg-if 1.0.0", - "ethereum-types", - "hashbrown", - "impl-trait-for-tuples", - "lru", - "parity-util-mem-derive", - "parking_lot 0.11.1", - "primitive-types", - "smallvec 1.6.1", - "winapi 0.3.9", -] - -[[package]] -name = "parity-util-mem-derive" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" -dependencies = [ - "proc-macro2 1.0.26", - "syn 1.0.72", - "synstructure", -] - -[[package]] -name = "parity-wasm" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16ad52817c4d343339b3bc2e26861bd21478eda0b7509acf83505727000512ac" -dependencies = [ - "byteorder", -] - -[[package]] -name = "parity-wasm" -version = "0.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc878dac00da22f8f61e7af3157988424567ab01d9920b962ef7dcbd7cd865" - -[[package]] -name = "parity-ws" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e02a625dd75084c2a7024f07c575b61b782f729d18702dabb3cdbf31911dc61" -dependencies = [ - "byteorder", - "bytes 0.4.12", - "httparse", - "log", - "mio", - "mio-extras", - "rand 0.7.3", - "sha-1 0.8.2", - "slab", - "url 2.2.2", -] - -[[package]] -name = "parking" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" - -[[package]] -name = "parking_lot" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.6.2", - "rustc_version", -] - -[[package]] -name = "parking_lot" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.7.2", -] - -[[package]] -name = "parking_lot" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" -dependencies = [ - "instant", - "lock_api 0.4.4", - "parking_lot_core 0.8.3", -] - -[[package]] -name = "parking_lot_core" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "rustc_version", - "smallvec 0.6.14", - "winapi 0.3.9", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi", - "libc", - "redox_syscall 0.1.57", - "smallvec 1.6.1", - "winapi 0.3.9", -] - -[[package]] -name = "parking_lot_core" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018" -dependencies = [ - "cfg-if 1.0.0", - "instant", - "libc", - "redox_syscall 0.2.8", - "smallvec 1.6.1", - "winapi 0.3.9", -] - -[[package]] -name = "paste" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" - -[[package]] -name = "pbkdf2" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "006c038a43a45995a9670da19e67600114740e8511d4333bf97a56e66a7542d9" -dependencies = [ - "byteorder", - "crypto-mac 0.7.0", -] - -[[package]] -name = "pbkdf2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216eaa586a190f0a738f2f918511eecfa90f13295abec0e457cdebcceda80cbd" -dependencies = [ - "crypto-mac 0.8.0", -] - -[[package]] -name = "pdqselect" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27" - -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - -[[package]] -name = "percent-encoding" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" - -[[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - -[[package]] -name = "pest" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" -dependencies = [ - "ucd-trie", -] - -[[package]] -name = "pest_derive" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0" -dependencies = [ - "pest", - "pest_generator", -] - -[[package]] -name = "pest_generator" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" -dependencies = [ - "pest", - "pest_meta", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "pest_meta" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d" -dependencies = [ - "maplit", - "pest", - "sha-1 0.8.2", -] - -[[package]] -name = "petgraph" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7" -dependencies = [ - "fixedbitset", - "indexmap", -] - -[[package]] -name = "pin-project" -version = "0.4.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918192b5c59119d51e0cd221f4d49dde9112824ba717369e903c97d076083d0f" -dependencies = [ - "pin-project-internal 0.4.28", -] - -[[package]] -name = "pin-project" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7509cc106041c40a4518d2af7a61530e1eed0e6285296a3d8c5472806ccc4a4" -dependencies = [ - "pin-project-internal 1.0.7", -] - -[[package]] -name = "pin-project-internal" -version = "0.4.28" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "pin-project-internal" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48c950132583b500556b1efd71d45b319029f2b71518d979fcc208e16b42426f" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "pin-project-lite" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "257b64915a082f7811703966789728173279bdebb956b143dbcd23f6f970a777" - -[[package]] -name = "pin-project-lite" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905" - -[[package]] -name = "pin-utils" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" - -[[package]] -name = "pkg-config" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" - -[[package]] -name = "platforms" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325" - -[[package]] -name = "polkadot-approval-distribution" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "tracing", -] - -[[package]] -name = "polkadot-availability-bitfield-distribution" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "parity-scale-codec", - "polkadot-node-network-protocol", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "tracing", -] - -[[package]] -name = "polkadot-availability-distribution" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "lru", - "parity-scale-codec", - "polkadot-erasure-coding", - "polkadot-node-core-runtime-api", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "rand 0.8.3", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-availability-recovery" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "lru", - "parity-scale-codec", - "polkadot-erasure-coding", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "rand 0.8.3", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-cli" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "frame-benchmarking-cli", - "futures 0.3.15", - "log", - "polkadot-node-core-pvf", - "polkadot-service", - "sc-cli", - "sc-service", - "sp-core", - "sp-trie", - "structopt", - "substrate-build-script-utils", - "thiserror", - "try-runtime-cli", -] - -[[package]] -name = "polkadot-collator-protocol" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "always-assert", - "futures 0.3.15", - "futures-timer 3.0.2", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-core", - "sp-keystore", - "sp-runtime", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-core-primitives" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "parity-scale-codec", - "parity-util-mem", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "polkadot-erasure-coding" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "parity-scale-codec", - "polkadot-node-primitives", - "polkadot-primitives", - "reed-solomon-novelpoly", - "sp-core", - "sp-trie", - "thiserror", -] - -[[package]] -name = "polkadot-gossip-support" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "polkadot-node-network-protocol", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-application-crypto", - "sp-keystore", - "tracing", -] - -[[package]] -name = "polkadot-network-bridge" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-trait", - "futures 0.3.15", - "parity-scale-codec", - "parking_lot 0.11.1", - "polkadot-node-network-protocol", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sc-authority-discovery", - "sc-network", - "sp-consensus", - "strum", - "tracing", -] - -[[package]] -name = "polkadot-node-collation-generation" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "parity-scale-codec", - "polkadot-erasure-coding", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-core", - "sp-maybe-compressed-blob", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-core-approval-voting" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "derive_more 0.99.13", - "futures 0.3.15", - "futures-timer 3.0.2", - "kvdb", - "merlin", - "parity-scale-codec", - "polkadot-node-jaeger", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-overseer", - "polkadot-primitives", - "sc-client-api", - "sc-keystore", - "schnorrkel", - "sp-application-crypto", - "sp-blockchain", - "sp-consensus", - "sp-consensus-slots", - "sp-runtime", - "tracing", -] - -[[package]] -name = "polkadot-node-core-av-store" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "futures 0.3.15", - "futures-timer 3.0.2", - "kvdb", - "parity-scale-codec", - "polkadot-erasure-coding", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-overseer", - "polkadot-primitives", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-core-backing" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "futures 0.3.15", - "polkadot-erasure-coding", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "polkadot-statement-table", - "sp-keystore", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-core-bitfield-signing" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-keystore", - "thiserror", - "tracing", - "wasm-timer", -] - -[[package]] -name = "polkadot-node-core-candidate-selection" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-keystore", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-core-candidate-validation" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-trait", - "futures 0.3.15", - "parity-scale-codec", - "polkadot-node-core-pvf", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-parachain", - "polkadot-primitives", - "sp-maybe-compressed-blob", - "tracing", -] - -[[package]] -name = "polkadot-node-core-chain-api" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-blockchain", - "tracing", -] - -[[package]] -name = "polkadot-node-core-proposer" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "futures-timer 3.0.2", - "polkadot-node-subsystem", - "polkadot-overseer", - "polkadot-primitives", - "sc-basic-authorship", - "sc-block-builder", - "sc-client-api", - "sc-telemetry", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-transaction-pool", - "substrate-prometheus-endpoint", - "tracing", -] - -[[package]] -name = "polkadot-node-core-provisioner" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "futures 0.3.15", - "futures-timer 3.0.2", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-core-pvf" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "always-assert", - "assert_matches", - "async-process", - "async-std", - "futures 0.3.15", - "futures-timer 3.0.2", - "libc", - "parity-scale-codec", - "pin-project 1.0.7", - "polkadot-core-primitives", - "polkadot-parachain", - "rand 0.8.3", - "sc-executor", - "sc-executor-common", - "sc-executor-wasmtime", - "slotmap", - "sp-core", - "sp-externalities", - "sp-io", - "sp-wasm-interface", - "tracing", -] - -[[package]] -name = "polkadot-node-core-runtime-api" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "memory-lru", - "parity-util-mem", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sp-api", - "sp-authority-discovery", - "sp-consensus-babe", - "sp-core", - "tracing", -] - -[[package]] -name = "polkadot-node-jaeger" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-std", - "lazy_static", - "log", - "mick-jaeger", - "parity-scale-codec", - "parking_lot 0.11.1", - "polkadot-node-primitives", - "polkadot-primitives", - "sc-network", - "sp-core", - "thiserror", -] - -[[package]] -name = "polkadot-node-network-protocol" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "parity-scale-codec", - "polkadot-node-jaeger", - "polkadot-node-primitives", - "polkadot-primitives", - "sc-network", - "strum", - "thiserror", -] - -[[package]] -name = "polkadot-node-primitives" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "futures 0.3.15", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-statement-table", - "schnorrkel", - "serde", - "sp-application-crypto", - "sp-consensus-babe", - "sp-consensus-vrf", - "sp-core", - "sp-maybe-compressed-blob", - "sp-runtime", - "thiserror", - "zstd", -] - -[[package]] -name = "polkadot-node-subsystem" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-std", - "async-trait", - "derive_more 0.99.13", - "futures 0.3.15", - "futures-timer 3.0.2", - "lazy_static", - "log", - "mick-jaeger", - "parity-scale-codec", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "polkadot-node-jaeger", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-primitives", - "polkadot-procmacro-subsystem-dispatch-gen", - "polkadot-statement-table", - "sc-network", - "smallvec 1.6.1", - "sp-core", - "substrate-prometheus-endpoint", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-node-subsystem-util" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-trait", - "futures 0.3.15", - "futures-timer 3.0.2", - "lru", - "metered-channel", - "parity-scale-codec", - "pin-project 1.0.7", - "polkadot-node-jaeger", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-primitives", - "rand 0.8.3", - "sc-network", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "streamunordered", - "substrate-prometheus-endpoint", - "thiserror", - "tracing", -] - -[[package]] -name = "polkadot-overseer" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "async-trait", - "futures 0.3.15", - "futures-timer 3.0.2", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sc-client-api", - "sp-api", - "tracing", -] - -[[package]] -name = "polkadot-parachain" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "derive_more 0.99.13", - "parity-scale-codec", - "parity-util-mem", - "polkadot-core-primitives", - "serde", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "polkadot-primitives" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "frame-system", - "hex-literal 0.3.1", - "parity-scale-codec", - "parity-util-mem", - "polkadot-core-primitives", - "polkadot-parachain", - "serde", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-authority-discovery", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-staking", - "sp-std", - "sp-trie", - "sp-version", - "thiserror", -] - -[[package]] -name = "polkadot-procmacro-subsystem-dispatch-gen" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "assert_matches", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "polkadot-rpc" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-gadget", - "beefy-gadget-rpc", - "jsonrpc-core", - "pallet-mmr-rpc", - "pallet-transaction-payment-rpc", - "parity-scale-codec", - "polkadot-primitives", - "sc-chain-spec", - "sc-client-api", - "sc-consensus-babe", - "sc-consensus-babe-rpc", - "sc-consensus-epochs", - "sc-finality-grandpa", - "sc-finality-grandpa-rpc", - "sc-keystore", - "sc-rpc", - "sc-sync-state-rpc", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-keystore", - "sp-runtime", - "sp-transaction-pool", - "substrate-frame-rpc-system", -] - -[[package]] -name = "polkadot-runtime" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-bounties", - "pallet-collective", - "pallet-democracy", - "pallet-election-provider-multi-phase", - "pallet-elections-phragmen", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-mmr-primitives", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-scheduler", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-timestamp", - "pallet-tips", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-common", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.6.1", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-npos-elections", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder 3.0.0", -] - -[[package]] -name = "polkadot-runtime-common" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "bitvec", - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "libsecp256k1", - "log", - "pallet-authorship", - "pallet-balances", - "pallet-beefy", - "pallet-mmr", - "pallet-offences", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-treasury", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "polkadot-runtime-parachains", - "rustc-hex", - "serde", - "serde_derive", - "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "static_assertions", - "xcm", -] - -[[package]] -name = "polkadot-runtime-parachains" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "bitvec", - "derive_more 0.99.13", - "frame-support", - "frame-system", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-balances", - "pallet-offences", - "pallet-session", - "pallet-staking", - "pallet-timestamp", - "pallet-vesting", - "parity-scale-codec", - "polkadot-primitives", - "rand 0.8.3", - "rand_chacha 0.3.0", - "rustc-hex", - "serde", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "xcm", - "xcm-executor", -] - -[[package]] -name = "polkadot-service" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-gadget", - "beefy-primitives", - "frame-benchmarking", - "frame-system-rpc-runtime-api", - "futures 0.3.15", - "hex-literal 0.3.1", - "kusama-runtime", - "kvdb", - "kvdb-rocksdb", - "pallet-babe", - "pallet-im-online", - "pallet-mmr-primitives", - "pallet-staking", - "pallet-transaction-payment-rpc-runtime-api", - "polkadot-approval-distribution", - "polkadot-availability-bitfield-distribution", - "polkadot-availability-distribution", - "polkadot-availability-recovery", - "polkadot-collator-protocol", - "polkadot-gossip-support", - "polkadot-network-bridge", - "polkadot-node-collation-generation", - "polkadot-node-core-approval-voting", - "polkadot-node-core-av-store", - "polkadot-node-core-backing", - "polkadot-node-core-bitfield-signing", - "polkadot-node-core-candidate-selection", - "polkadot-node-core-candidate-validation", - "polkadot-node-core-chain-api", - "polkadot-node-core-proposer", - "polkadot-node-core-provisioner", - "polkadot-node-core-runtime-api", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-overseer", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-rpc", - "polkadot-runtime", - "polkadot-runtime-parachains", - "polkadot-statement-distribution", - "rococo-runtime", - "sc-authority-discovery", - "sc-block-builder", - "sc-chain-spec", - "sc-client-api", - "sc-client-db", - "sc-consensus", - "sc-consensus-babe", - "sc-consensus-slots", - "sc-executor", - "sc-finality-grandpa", - "sc-finality-grandpa-warp-sync", - "sc-keystore", - "sc-network", - "sc-service", - "sc-telemetry", - "sc-transaction-pool", - "serde", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-finality-grandpa", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-state-machine", - "sp-storage", - "sp-transaction-pool", - "sp-trie", - "substrate-prometheus-endpoint", - "thiserror", - "tracing", - "westend-runtime", -] - -[[package]] -name = "polkadot-statement-distribution" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "arrayvec 0.5.2", - "futures 0.3.15", - "indexmap", - "parity-scale-codec", - "polkadot-node-network-protocol", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "sc-network", - "sp-staking", - "tracing", -] - -[[package]] -name = "polkadot-statement-table" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "parity-scale-codec", - "polkadot-primitives", - "sp-core", -] - -[[package]] -name = "polkadot-test-runtime" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "bitvec", - "frame-election-provider-support", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-grandpa", - "pallet-indices", - "pallet-mmr-primitives", - "pallet-nicks", - "pallet-offences", - "pallet-randomness-collective-flip", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-vesting", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.6.1", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "substrate-wasm-builder 3.0.0", -] - -[[package]] -name = "polkadot-test-service" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "frame-benchmarking", - "frame-system", - "futures 0.1.31", - "futures 0.3.15", - "hex", - "pallet-balances", - "pallet-staking", - "pallet-transaction-payment", - "polkadot-node-primitives", - "polkadot-node-subsystem", - "polkadot-overseer", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-rpc", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "polkadot-service", - "polkadot-test-runtime", - "rand 0.8.3", - "sc-authority-discovery", - "sc-chain-spec", - "sc-cli", - "sc-client-api", - "sc-consensus", - "sc-consensus-babe", - "sc-executor", - "sc-finality-grandpa", - "sc-network", - "sc-service", - "sc-tracing", - "sc-transaction-pool", - "sp-arithmetic", - "sp-authority-discovery", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-finality-grandpa", - "sp-inherents", - "sp-keyring", - "sp-runtime", - "sp-state-machine", - "substrate-test-client", - "tempfile", - "tracing", -] - -[[package]] -name = "polling" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fc12d774e799ee9ebae13f4076ca003b40d18a11ac0f3641e6f899618580b7b" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "log", - "wepoll-sys", - "winapi 0.3.9", -] - -[[package]] -name = "poly1305" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b7456bc1ad2d4cf82b3a016be4c2ac48daf11bf990c1603ebd447fe6f30fca8" -dependencies = [ - "cpuid-bool", - "universal-hash", -] - -[[package]] -name = "polyval" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eebcc4aa140b9abd2bc40d9c3f7ccec842679cd79045ac3a7ac698c1a064b7cd" -dependencies = [ - "cpuid-bool", - "opaque-debug 0.3.0", - "universal-hash", -] - -[[package]] -name = "ppv-lite86" -version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" - -[[package]] -name = "primitive-types" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2415937401cb030a2a0a4d922483f945fa068f52a7dbb22ce0fe5f2b6f6adace" -dependencies = [ - "fixed-hash", - "impl-codec", - "impl-rlp", - "impl-serde", - "uint", -] - -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml", -] - -[[package]] -name = "proc-macro-crate" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92" -dependencies = [ - "thiserror", - "toml", -] - -[[package]] -name = "proc-macro-error" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" -dependencies = [ - "proc-macro-error-attr", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "version_check", -] - -[[package]] -name = "proc-macro-error-attr" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "version_check", -] - -[[package]] -name = "proc-macro-hack" -version = "0.5.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" - -[[package]] -name = "proc-macro-nested" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" - -[[package]] -name = "proc-macro2" -version = "0.4.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" -dependencies = [ - "unicode-xid 0.1.0", -] - -[[package]] -name = "proc-macro2" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" -dependencies = [ - "unicode-xid 0.2.2", -] - -[[package]] -name = "prometheus" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" -dependencies = [ - "cfg-if 1.0.0", - "fnv", - "lazy_static", - "parking_lot 0.11.1", - "regex", - "thiserror", -] - -[[package]] -name = "prost" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" -dependencies = [ - "bytes 1.0.1", - "prost-derive", -] - -[[package]] -name = "prost-build" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" -dependencies = [ - "bytes 1.0.1", - "heck", - "itertools 0.9.0", - "log", - "multimap", - "petgraph", - "prost", - "prost-types", - "tempfile", - "which", -] - -[[package]] -name = "prost-derive" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" -dependencies = [ - "anyhow", - "itertools 0.9.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "prost-types" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" -dependencies = [ - "bytes 1.0.1", - "prost", -] - -[[package]] -name = "psm" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a" -dependencies = [ - "cc", -] - -[[package]] -name = "pwasm-utils" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f53bc2558e8376358ebdc28301546471d67336584f6438ed4b7c7457a055fd7" -dependencies = [ - "byteorder", - "log", - "parity-wasm 0.41.0", -] - -[[package]] -name = "quick-error" -version = "1.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" - -[[package]] -name = "quick-error" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" - -[[package]] -name = "quicksink" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77de3c815e5a160b1539c6592796801df2043ae35e123b46d73380cfa57af858" -dependencies = [ - "futures-core", - "futures-sink", - "pin-project-lite 0.1.12", -] - -[[package]] -name = "quote" -version = "0.6.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" -dependencies = [ - "proc-macro2 0.4.30", -] - -[[package]] -name = "quote" -version = "1.0.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" -dependencies = [ - "proc-macro2 1.0.26", -] - -[[package]] -name = "radium" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "643f8f41a8ebc4c5dc4515c82bb8abd397b527fc20fd681b7c011c2aee5d44fb" - -[[package]] -name = "rand" -version = "0.3.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ac302d8f83c0c1974bf758f6b041c6c8ada916fbb44a609158ca8b064cc76c" -dependencies = [ - "libc", - "rand 0.4.6", -] - -[[package]] -name = "rand" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "552840b97013b1a26992c11eac34bdd778e464601a4c2054b5f0bff7c6761293" -dependencies = [ - "fuchsia-cprng", - "libc", - "rand_core 0.3.1", - "rdrand", - "winapi 0.3.9", -] - -[[package]] -name = "rand" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc 0.2.0", - "rand_pcg", -] - -[[package]] -name = "rand" -version = "0.8.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" -dependencies = [ - "libc", - "rand_chacha 0.3.0", - "rand_core 0.6.2", - "rand_hc 0.3.0", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", -] - -[[package]] -name = "rand_chacha" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" -dependencies = [ - "ppv-lite86", - "rand_core 0.6.2", -] - -[[package]] -name = "rand_core" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" -dependencies = [ - "rand_core 0.4.2", -] - -[[package]] -name = "rand_core" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" - -[[package]] -name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" -dependencies = [ - "getrandom 0.2.2", -] - -[[package]] -name = "rand_distr" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2" -dependencies = [ - "rand 0.7.3", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "rand_hc" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" -dependencies = [ - "rand_core 0.6.2", -] - -[[package]] -name = "rand_pcg" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" -dependencies = [ - "rand_core 0.5.1", -] - -[[package]] -name = "rawpointer" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" - -[[package]] -name = "rayon" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b0d8e0819fadc20c74ea8373106ead0600e3a67ef1fe8da56e39b9ae7275674" -dependencies = [ - "autocfg", - "crossbeam-deque 0.8.0", - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ab346ac5921dc62ffa9f89b7a773907511cdfa5490c572ae9be1be33e8afa4a" -dependencies = [ - "crossbeam-channel", - "crossbeam-deque 0.8.0", - "crossbeam-utils 0.8.4", - "lazy_static", - "num_cpus", -] - -[[package]] -name = "rdrand" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" -dependencies = [ - "rand_core 0.3.1", -] - -[[package]] -name = "redox_syscall" -version = "0.1.57" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" - -[[package]] -name = "redox_syscall" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "742739e41cd49414de871ea5e549afb7e2a3ac77b589bcbebe8c82fab37147fc" -dependencies = [ - "bitflags", -] - -[[package]] -name = "redox_users" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" -dependencies = [ - "getrandom 0.2.2", - "redox_syscall 0.2.8", -] - -[[package]] -name = "reed-solomon-novelpoly" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bd8f48b2066e9f69ab192797d66da804d1935bf22763204ed3675740cb0f221" -dependencies = [ - "derive_more 0.99.13", - "fs-err", - "itertools 0.10.0", - "static_init", - "thiserror", -] - -[[package]] -name = "ref-cast" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300f2a835d808734ee295d45007adacb9ebb29dd3ae2424acfa17930cae541da" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "regalloc" -version = "0.0.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" -dependencies = [ - "log", - "rustc-hash", - "serde", - "smallvec 1.6.1", -] - -[[package]] -name = "regex" -version = "1.5.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4" -dependencies = [ - "byteorder", - "regex-syntax", -] - -[[package]] -name = "regex-syntax" -version = "0.6.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" - -[[package]] -name = "region" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" -dependencies = [ - "bitflags", - "libc", - "mach", - "winapi 0.3.9", -] - -[[package]] -name = "remote-externalities" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "env_logger 0.8.3", - "hex-literal 0.3.1", - "jsonrpsee-http-client", - "jsonrpsee-proc-macros", - "log", - "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", -] - -[[package]] -name = "remove_dir_all" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "resolv-conf" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e44394d2086d010551b14b53b1f24e31647570cd1deb0379e2c21b329aba00" -dependencies = [ - "hostname", - "quick-error 1.2.3", -] - -[[package]] -name = "retain_mut" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9c17925a9027d298a4603d286befe3f9dc0e8ed02523141914eb628798d6e5b" - -[[package]] -name = "ring" -version = "0.16.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" -dependencies = [ - "cc", - "libc", - "once_cell", - "spin", - "untrusted", - "web-sys", - "winapi 0.3.9", -] - -[[package]] -name = "rlp" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e54369147e3e7796c9b885c7304db87ca3d09a0a98f72843d532868675bbfba8" -dependencies = [ - "bytes 1.0.1", - "rustc-hex", -] - -[[package]] -name = "roaming-accounting-policies" -version = "1.0.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-agreement-policies" -version = "1.0.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-accounting-policies", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-billing-policies" -version = "1.0.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-charging-policies" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-device-profiles" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-devices", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-devices" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-network-profiles" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-devices", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-network-servers" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-networks" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-operators" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-organizations" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-packet-bundles" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-devices", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "roaming-sessions", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-routing-profiles" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-devices", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-service-profiles" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "roaming-sessions" -version = "0.1.0" -dependencies = [ - "frame-support", - "frame-system", - "log", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-transaction-payment", - "parity-scale-codec", - "roaming-devices", - "roaming-network-servers", - "roaming-networks", - "roaming-operators", - "roaming-organizations", - "safe-mix", - "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "rocksdb" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c749134fda8bfc90d0de643d59bfc841dcb3ac8a1062e12b6754bd60235c48b3" -dependencies = [ - "libc", - "librocksdb-sys", -] - -[[package]] -name = "rococo-runtime" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "hex-literal 0.3.1", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-beefy", - "pallet-collective", - "pallet-grandpa", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-mmr", - "pallet-mmr-primitives", - "pallet-offences", - "pallet-proxy", - "pallet-session", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-utility", - "pallet-xcm", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "serde", - "serde_derive", - "smallvec 1.6.1", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "substrate-wasm-builder 3.0.0", - "xcm", - "xcm-builder", - "xcm-executor", -] - -[[package]] -name = "rpassword" -version = "5.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc936cf8a7ea60c58f030fd36a612a48f440610214dc54bc36431f9ea0c3efb" -dependencies = [ - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "rustc-demangle" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce" - -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - -[[package]] -name = "rustc-hex" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e75f6a532d0fd9f7f13144f392b6ad56a32696bfcd9c78f797f16bbb6f072d6" - -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - -[[package]] -name = "rustls" -version = "0.18.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d1126dcf58e93cee7d098dbda643b5f92ed724f1f6a63007c1116eed6700c81" -dependencies = [ - "base64 0.12.3", - "log", - "ring", - "sct", - "webpki", -] - -[[package]] -name = "rustls" -version = "0.19.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" -dependencies = [ - "base64 0.13.0", - "log", - "ring", - "sct", - "webpki", -] - -[[package]] -name = "rustls-native-certs" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "629d439a7672da82dd955498445e496ee2096fe2117b9f796558a43fdb9e59b8" -dependencies = [ - "openssl-probe", - "rustls 0.18.1", - "schannel", - "security-framework", -] - -[[package]] -name = "ruzstd" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d425143485a37727c7a46e689bbe3b883a00f42b4a52c4ac0f44855c1009b00" -dependencies = [ - "byteorder", - "twox-hash", -] - -[[package]] -name = "rw-stream-sink" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da5fcb054c46f5a5dff833b129285a93d3f0179531735e6c866e8cc307d2020" -dependencies = [ - "futures 0.3.15", - "pin-project 0.4.28", - "static_assertions", -] - -[[package]] -name = "ryu" -version = "1.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" - -[[package]] -name = "safe-mix" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d3d055a2582e6b00ed7a31c1524040aa391092bf636328350813f3a0605215c" -dependencies = [ - "rustc_version", -] - -[[package]] -name = "salsa20" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "399f290ffc409596022fce5ea5d4138184be4784f2b28c62c59f0d8389059a15" -dependencies = [ - "cipher", -] - -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "sc-authority-discovery" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "either", - "futures 0.3.15", - "futures-timer 3.0.2", - "ip_network", - "libp2p", - "log", - "parity-scale-codec", - "prost", - "prost-build", - "rand 0.7.3", - "sc-client-api", - "sc-network", - "serde_json", - "sp-api", - "sp-authority-discovery", - "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-basic-authorship" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "futures-timer 3.0.2", - "log", - "parity-scale-codec", - "sc-block-builder", - "sc-client-api", - "sc-proposer-metrics", - "sc-telemetry", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-transaction-pool", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-block-builder" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sc-client-api", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", -] - -[[package]] -name = "sc-chain-spec" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "sc-chain-spec-derive", - "sc-consensus-babe", - "sc-consensus-epochs", - "sc-finality-grandpa", - "sc-network", - "sc-telemetry", - "serde", - "serde_json", - "sp-chain-spec", - "sp-consensus-babe", - "sp-core", - "sp-runtime", -] - -[[package]] -name = "sc-chain-spec-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sc-cli" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "chrono", - "fdlimit", - "futures 0.3.15", - "hex", - "libp2p", - "log", - "names", - "parity-scale-codec", - "rand 0.7.3", - "regex", - "rpassword", - "sc-client-api", - "sc-keystore", - "sc-network", - "sc-service", - "sc-telemetry", - "sc-tracing", - "serde", - "serde_json", - "sp-blockchain", - "sp-core", - "sp-keyring", - "sp-keystore", - "sp-panic-handler", - "sp-runtime", - "sp-utils", - "sp-version", - "structopt", - "thiserror", - "tiny-bip39", - "tokio 0.2.25", -] - -[[package]] -name = "sc-client-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "fnv", - "futures 0.3.15", - "hash-db", - "kvdb", - "lazy_static", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "sc-executor", - "sp-api", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-database", - "sp-externalities", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-storage", - "sp-transaction-pool", - "sp-trie", - "sp-utils", - "sp-version", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-client-db" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "blake2-rfc", - "hash-db", - "kvdb", - "kvdb-memorydb", - "kvdb-rocksdb", - "linked-hash-map", - "log", - "parity-db", - "parity-scale-codec", - "parity-util-mem", - "parking_lot 0.11.1", - "sc-client-api", - "sc-executor", - "sc-state-db", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-database", - "sp-runtime", - "sp-state-machine", - "sp-trie", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-consensus" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parking_lot 0.11.1", - "sc-client-api", - "sp-blockchain", - "sp-consensus", - "sp-runtime", -] - -[[package]] -name = "sc-consensus-aura" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "futures 0.3.15", - "futures-timer 3.0.2", - "log", - "parity-scale-codec", - "sc-block-builder", - "sc-client-api", - "sc-consensus-slots", - "sc-telemetry", - "sp-api", - "sp-application-crypto", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-aura", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-timestamp", - "sp-version", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-consensus-babe" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "fork-tree", - "futures 0.3.15", - "futures-timer 3.0.2", - "log", - "merlin", - "num-bigint", - "num-rational 0.2.4", - "num-traits", - "parity-scale-codec", - "parking_lot 0.11.1", - "pdqselect", - "rand 0.7.3", - "retain_mut", - "sc-client-api", - "sc-consensus-epochs", - "sc-consensus-slots", - "sc-consensus-uncles", - "sc-keystore", - "sc-telemetry", - "schnorrkel", - "serde", - "sp-api", - "sp-application-crypto", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-consensus-slots", - "sp-consensus-vrf", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-timestamp", - "sp-utils", - "sp-version", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-consensus-babe-rpc" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "sc-consensus-babe", - "sc-consensus-epochs", - "sc-rpc-api", - "serde", - "sp-api", - "sp-application-crypto", - "sp-blockchain", - "sp-consensus", - "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", -] - -[[package]] -name = "sc-consensus-epochs" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "fork-tree", - "parity-scale-codec", - "sc-client-api", - "sc-consensus", - "sp-blockchain", - "sp-runtime", -] - -[[package]] -name = "sc-consensus-slots" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "futures 0.3.15", - "futures-timer 3.0.2", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-telemetry", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", - "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-timestamp", - "sp-trie", - "thiserror", -] - -[[package]] -name = "sc-consensus-uncles" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "sc-client-api", - "sp-authorship", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", -] - -[[package]] -name = "sc-executor" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "lazy_static", - "libsecp256k1", - "log", - "parity-scale-codec", - "parity-wasm 0.41.0", - "parking_lot 0.11.1", - "sc-executor-common", - "sc-executor-wasmi", - "sc-executor-wasmtime", - "sp-api", - "sp-core", - "sp-externalities", - "sp-io", - "sp-maybe-compressed-blob", - "sp-panic-handler", - "sp-runtime-interface", - "sp-serializer", - "sp-tasks", - "sp-trie", - "sp-version", - "sp-wasm-interface", - "wasmi", -] - -[[package]] -name = "sc-executor-common" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "parity-scale-codec", - "parity-wasm 0.41.0", - "pwasm-utils", - "sp-allocator", - "sp-core", - "sp-serializer", - "sp-wasm-interface", - "thiserror", - "wasmi", -] - -[[package]] -name = "sc-executor-wasmi" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "parity-scale-codec", - "sc-executor-common", - "sp-allocator", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", - "wasmi", -] - -[[package]] -name = "sc-executor-wasmtime" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "parity-scale-codec", - "parity-wasm 0.41.0", - "pwasm-utils", - "sc-executor-common", - "scoped-tls", - "sp-allocator", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", - "wasmtime", -] - -[[package]] -name = "sc-finality-grandpa" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "dyn-clone", - "finality-grandpa", - "fork-tree", - "futures 0.3.15", - "futures-timer 3.0.2", - "linked-hash-map", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "rand 0.7.3", - "sc-block-builder", - "sc-client-api", - "sc-consensus", - "sc-keystore", - "sc-network", - "sc-network-gossip", - "sc-telemetry", - "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-finality-grandpa", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-utils", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-finality-grandpa-rpc" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "finality-grandpa", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-finality-grandpa", - "sc-rpc", - "serde", - "serde_json", - "sp-blockchain", - "sp-core", - "sp-runtime", -] - -[[package]] -name = "sc-finality-grandpa-warp-sync" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "log", - "num-traits", - "parity-scale-codec", - "parking_lot 0.11.1", - "prost", - "sc-client-api", - "sc-finality-grandpa", - "sc-network", - "sc-service", - "sp-blockchain", - "sp-finality-grandpa", - "sp-runtime", -] - -[[package]] -name = "sc-informant" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "ansi_term 0.12.1", - "futures 0.3.15", - "log", - "parity-util-mem", - "sc-client-api", - "sc-network", - "sp-blockchain", - "sp-runtime", - "sp-transaction-pool", - "sp-utils", - "wasm-timer", -] - -[[package]] -name = "sc-keystore" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "futures 0.3.15", - "futures-util", - "hex", - "merlin", - "parking_lot 0.11.1", - "rand 0.7.3", - "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "subtle 2.4.0", -] - -[[package]] -name = "sc-light" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "hash-db", - "lazy_static", - "parity-scale-codec", - "parking_lot 0.11.1", - "sc-client-api", - "sc-executor", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", -] - -[[package]] -name = "sc-network" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-std", - "async-trait", - "asynchronous-codec 0.5.0", - "bitflags", - "bs58", - "bytes 1.0.1", - "cid", - "derive_more 0.99.13", - "either", - "erased-serde", - "fnv", - "fork-tree", - "futures 0.3.15", - "futures-timer 3.0.2", - "hex", - "ip_network", - "libp2p", - "linked-hash-map", - "linked_hash_set", - "log", - "lru", - "nohash-hasher", - "parity-scale-codec", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "prost", - "prost-build", - "rand 0.7.3", - "sc-block-builder", - "sc-client-api", - "sc-peerset", - "serde", - "serde_json", - "smallvec 1.6.1", - "sp-arithmetic", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-runtime", - "sp-utils", - "substrate-prometheus-endpoint", - "thiserror", - "unsigned-varint 0.6.0", - "void", - "wasm-timer", - "zeroize", -] - -[[package]] -name = "sc-network-gossip" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "futures-timer 3.0.2", - "libp2p", - "log", - "lru", - "sc-network", - "sp-runtime", - "substrate-prometheus-endpoint", - "tracing", - "wasm-timer", -] - -[[package]] -name = "sc-offchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "bytes 0.5.6", - "fnv", - "futures 0.3.15", - "futures-timer 3.0.2", - "hex", - "hyper 0.13.10", - "hyper-rustls", - "log", - "num_cpus", - "parity-scale-codec", - "parking_lot 0.11.1", - "rand 0.7.3", - "sc-client-api", - "sc-keystore", - "sc-network", - "sp-api", - "sp-core", - "sp-offchain", - "sp-runtime", - "sp-utils", - "threadpool", -] - -[[package]] -name = "sc-peerset" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "libp2p", - "log", - "serde_json", - "sp-utils", - "wasm-timer", -] - -[[package]] -name = "sc-proposer-metrics" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-rpc" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "sc-block-builder", - "sc-client-api", - "sc-executor", - "sc-keystore", - "sc-rpc-api", - "sc-tracing", - "serde_json", - "sp-api", - "sp-blockchain", - "sp-chain-spec", - "sp-core", - "sp-keystore", - "sp-offchain", - "sp-rpc", - "sp-runtime", - "sp-session", - "sp-state-machine", - "sp-transaction-pool", - "sp-utils", - "sp-version", -] - -[[package]] -name = "sc-rpc-api" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "jsonrpc-pubsub", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "serde", - "serde_json", - "sp-chain-spec", - "sp-core", - "sp-rpc", - "sp-runtime", - "sp-transaction-pool", - "sp-version", -] - -[[package]] -name = "sc-rpc-server" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.1.31", - "jsonrpc-core", - "jsonrpc-http-server", - "jsonrpc-ipc-server", - "jsonrpc-pubsub", - "jsonrpc-ws-server", - "log", - "serde", - "serde_json", - "sp-runtime", - "substrate-prometheus-endpoint", -] - -[[package]] -name = "sc-service" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "directories", - "exit-future", - "futures 0.1.31", - "futures 0.3.15", - "futures-timer 3.0.2", - "hash-db", - "jsonrpc-core", - "jsonrpc-pubsub", - "lazy_static", - "log", - "parity-scale-codec", - "parity-util-mem", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "rand 0.7.3", - "sc-block-builder", - "sc-chain-spec", - "sc-client-api", - "sc-client-db", - "sc-executor", - "sc-informant", - "sc-keystore", - "sc-light", - "sc-network", - "sc-offchain", - "sc-rpc", - "sc-rpc-server", - "sc-telemetry", - "sc-tracing", - "sc-transaction-pool", - "serde", - "serde_json", - "sp-api", - "sp-application-crypto", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-session", - "sp-state-machine", - "sp-tracing", - "sp-transaction-pool", - "sp-trie", - "sp-utils", - "sp-version", - "substrate-prometheus-endpoint", - "tempfile", - "thiserror", - "tracing", - "tracing-futures", - "wasm-timer", -] - -[[package]] -name = "sc-state-db" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "parity-scale-codec", - "parity-util-mem", - "parity-util-mem-derive", - "parking_lot 0.11.1", - "sc-client-api", - "sp-core", - "thiserror", -] - -[[package]] -name = "sc-sync-state-rpc" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "sc-chain-spec", - "sc-client-api", - "sc-consensus-babe", - "sc-consensus-epochs", - "sc-finality-grandpa", - "sc-rpc-api", - "serde_json", - "sp-blockchain", - "sp-runtime", - "thiserror", -] - -[[package]] -name = "sc-telemetry" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "chrono", - "futures 0.3.15", - "libp2p", - "log", - "parking_lot 0.11.1", - "pin-project 1.0.7", - "rand 0.7.3", - "serde", - "serde_json", - "take_mut", - "thiserror", - "void", - "wasm-timer", -] - -[[package]] -name = "sc-tracing" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "ansi_term 0.12.1", - "atty", - "erased-serde", - "lazy_static", - "log", - "once_cell", - "parking_lot 0.11.1", - "regex", - "rustc-hash", - "sc-tracing-proc-macro", - "serde", - "serde_json", - "sp-tracing", - "thiserror", - "tracing", - "tracing-core", - "tracing-log", - "tracing-subscriber", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "sc-tracing-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sc-transaction-graph" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "linked-hash-map", - "log", - "parity-util-mem", - "parking_lot 0.11.1", - "retain_mut", - "serde", - "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-transaction-pool", - "sp-utils", - "thiserror", - "wasm-timer", -] - -[[package]] -name = "sc-transaction-pool" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "futures-diagnose", - "intervalier", - "log", - "parity-scale-codec", - "parity-util-mem", - "parking_lot 0.11.1", - "sc-client-api", - "sc-transaction-graph", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-tracing", - "sp-transaction-pool", - "sp-utils", - "substrate-prometheus-endpoint", - "thiserror", - "wasm-timer", -] - -[[package]] -name = "schannel" -version = "0.1.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" -dependencies = [ - "lazy_static", - "winapi 0.3.9", -] - -[[package]] -name = "schnorrkel" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "021b403afe70d81eea68f6ea12f6b3c9588e5d536a94c3bf80f15e7faa267862" -dependencies = [ - "arrayref", - "arrayvec 0.5.2", - "curve25519-dalek 2.1.2", - "getrandom 0.1.16", - "merlin", - "rand 0.7.3", - "rand_core 0.5.1", - "serde", - "sha2 0.8.2", - "subtle 2.4.0", - "zeroize", -] - -[[package]] -name = "scoped-tls" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" - -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - -[[package]] -name = "scroll" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec" -dependencies = [ - "scroll_derive", -] - -[[package]] -name = "scroll_derive" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sct" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" -dependencies = [ - "ring", - "untrusted", -] - -[[package]] -name = "secrecy" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0" -dependencies = [ - "zeroize", -] - -[[package]] -name = "security-framework" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad502866817f0575705bd7be36e2b2535cc33262d493aa733a2ec862baa2bc2b" -dependencies = [ - "bitflags", - "core-foundation", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - -[[package]] -name = "security-framework-sys" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51ceb04988b17b6d1dcd555390fa822ca5637b4a14e1f5099f13d351bed4d6c7" -dependencies = [ - "core-foundation-sys", - "libc", -] - -[[package]] -name = "semver" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a3186ec9e65071a2095434b1f5bb24838d4e8e130f584c790f6033c79943537" -dependencies = [ - "semver-parser 0.7.0", -] - -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser 0.7.0", -] - -[[package]] -name = "semver" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" -dependencies = [ - "semver-parser 0.10.2", - "serde", -] - -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - -[[package]] -name = "semver-parser" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" -dependencies = [ - "pest", -] - -[[package]] -name = "serde" -version = "1.0.125" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171" -dependencies = [ - "serde_derive", -] - -[[package]] -name = "serde_derive" -version = "1.0.125" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "serde_json" -version = "1.0.64" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79" -dependencies = [ - "itoa", - "ryu", - "serde", -] - -[[package]] -name = "sha-1" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - -[[package]] -name = "sha-1" -version = "0.9.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if 1.0.0", - "cpufeatures", - "digest 0.9.0", - "opaque-debug 0.3.0", -] - -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - -[[package]] -name = "sha2" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362ae5752fd2137731f9fa25fd4d9058af34666ca1966fb969119cc35719f12" -dependencies = [ - "block-buffer 0.9.0", - "cfg-if 1.0.0", - "cpufeatures", - "digest 0.9.0", - "opaque-debug 0.3.0", -] - -[[package]] -name = "sha3" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" -dependencies = [ - "block-buffer 0.9.0", - "digest 0.9.0", - "keccak", - "opaque-debug 0.3.0", -] - -[[package]] -name = "sharded-slab" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79c719719ee05df97490f80a45acfc99e5a30ce98a1e4fb67aee422745ae14e3" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "shlex" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" - -[[package]] -name = "signal-hook" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef33d6d0cd06e0840fba9985aab098c147e67e05cee14d412d3345ed14ff30ac" -dependencies = [ - "libc", - "signal-hook-registry", -] - -[[package]] -name = "signal-hook-registry" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6" -dependencies = [ - "libc", -] - -[[package]] -name = "signature" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68" - -[[package]] -name = "simba" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5132a955559188f3d13c9ba831e77c802ddc8782783f050ed0c52f5988b95f4c" -dependencies = [ - "approx 0.4.0", - "num-complex 0.3.1", - "num-traits", - "paste", -] - -[[package]] -name = "slab" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f173ac3d1a7e3b28003f40de0b5ce7fe2710f9b9dc3fc38664cebee46b3b6527" - -[[package]] -name = "slot-range-helper" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "enumn", - "parity-scale-codec", - "paste", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "slotmap" -version = "1.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585cd5dffe4e9e06f6dfdf66708b70aca3f781bed561f4f667b2d9c0d4559e36" -dependencies = [ - "version_check", -] - -[[package]] -name = "smallvec" -version = "0.6.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0" -dependencies = [ - "maybe-uninit", -] - -[[package]] -name = "smallvec" -version = "1.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" - -[[package]] -name = "snow" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "795dd7aeeee24468e5a32661f6d27f7b5cbed802031b2d7640c7b10f8fb2dd50" -dependencies = [ - "aes-gcm", - "blake2", - "chacha20poly1305", - "rand 0.7.3", - "rand_core 0.5.1", - "ring", - "rustc_version", - "sha2 0.9.5", - "subtle 2.4.0", - "x25519-dalek", -] - -[[package]] -name = "socket2" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "socket2" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2" -dependencies = [ - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "soketto" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5c71ed3d54db0a699f4948e1bb3e45b450fa31fe602621dee6680361d569c88" -dependencies = [ - "base64 0.12.3", - "bytes 0.5.6", - "flate2", - "futures 0.3.15", - "httparse", - "log", - "rand 0.7.3", - "sha-1 0.9.6", -] - -[[package]] -name = "sp-allocator" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "sp-core", - "sp-std", - "sp-wasm-interface", - "thiserror", -] - -[[package]] -name = "sp-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "sp-api-proc-macro", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-version", - "thiserror", -] - -[[package]] -name = "sp-api-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "blake2-rfc", - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sp-application-crypto" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "serde", - "sp-core", - "sp-io", - "sp-std", -] - -[[package]] -name = "sp-arithmetic" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "integer-sqrt", - "num-traits", - "parity-scale-codec", - "serde", - "sp-debug-derive", - "sp-std", - "static_assertions", -] - -[[package]] -name = "sp-authority-discovery" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-authorship" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-inherents", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-block-builder" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-blockchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "log", - "lru", - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-api", - "sp-consensus", - "sp-database", - "sp-runtime", - "sp-state-machine", - "thiserror", -] - -[[package]] -name = "sp-chain-spec" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "sp-consensus" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "futures 0.3.15", - "futures-timer 3.0.2", - "libp2p", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "serde", - "sp-api", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-trie", - "sp-utils", - "sp-version", - "substrate-prometheus-endpoint", - "thiserror", - "wasm-timer", -] - -[[package]] -name = "sp-consensus-aura" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-consensus", - "sp-consensus-slots", - "sp-inherents", - "sp-runtime", - "sp-std", - "sp-timestamp", -] - -[[package]] -name = "sp-consensus-babe" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "merlin", - "parity-scale-codec", - "serde", - "sp-api", - "sp-application-crypto", - "sp-consensus", - "sp-consensus-slots", - "sp-consensus-vrf", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-std", - "sp-timestamp", -] - -[[package]] -name = "sp-consensus-slots" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-arithmetic", - "sp-runtime", -] - -[[package]] -name = "sp-consensus-vrf" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "schnorrkel", - "sp-core", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-core" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "base58", - "blake2-rfc", - "byteorder", - "dyn-clonable", - "ed25519-dalek", - "futures 0.3.15", - "hash-db", - "hash256-std-hasher", - "hex", - "impl-serde", - "lazy_static", - "libsecp256k1", - "log", - "merlin", - "num-traits", - "parity-scale-codec", - "parity-util-mem", - "parking_lot 0.11.1", - "primitive-types", - "rand 0.7.3", - "regex", - "schnorrkel", - "secrecy", - "serde", - "sha2 0.9.5", - "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", - "sp-std", - "sp-storage", - "substrate-bip39", - "thiserror", - "tiny-bip39", - "tiny-keccak", - "twox-hash", - "wasmi", - "zeroize", -] - -[[package]] -name = "sp-database" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "kvdb", - "parking_lot 0.11.1", -] - -[[package]] -name = "sp-debug-derive" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sp-externalities" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "environmental", - "parity-scale-codec", - "sp-std", - "sp-storage", -] - -[[package]] -name = "sp-finality-grandpa" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "finality-grandpa", - "log", - "parity-scale-codec", - "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-inherents" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-core", - "sp-std", - "thiserror", -] - -[[package]] -name = "sp-io" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "hash-db", - "libsecp256k1", - "log", - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime-interface", - "sp-state-machine", - "sp-std", - "sp-tracing", - "sp-trie", - "sp-wasm-interface", - "tracing", - "tracing-core", -] - -[[package]] -name = "sp-keyring" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "lazy_static", - "sp-core", - "sp-runtime", - "strum", -] - -[[package]] -name = "sp-keystore" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "derive_more 0.99.13", - "futures 0.3.15", - "merlin", - "parity-scale-codec", - "parking_lot 0.11.1", - "schnorrkel", - "serde", - "sp-core", - "sp-externalities", -] - -[[package]] -name = "sp-maybe-compressed-blob" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "ruzstd", - "zstd", -] - -[[package]] -name = "sp-npos-elections" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "serde", - "sp-arithmetic", - "sp-core", - "sp-npos-elections-compact", - "sp-std", -] - -[[package]] -name = "sp-npos-elections-compact" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sp-offchain" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", -] - -[[package]] -name = "sp-panic-handler" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "backtrace", -] - -[[package]] -name = "sp-rpc" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "serde", - "sp-core", -] - -[[package]] -name = "sp-runtime" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "either", - "hash256-std-hasher", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "parity-util-mem", - "paste", - "rand 0.7.3", - "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-std", -] - -[[package]] -name = "sp-runtime-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "primitive-types", - "sp-externalities", - "sp-runtime-interface-proc-macro", - "sp-std", - "sp-storage", - "sp-tracing", - "sp-wasm-interface", - "static_assertions", -] - -[[package]] -name = "sp-runtime-interface-proc-macro" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "Inflector", - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "sp-serializer" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "serde", - "serde_json", -] - -[[package]] -name = "sp-session" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-core", - "sp-runtime", - "sp-staking", - "sp-std", -] - -[[package]] -name = "sp-staking" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-state-machine" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "hash-db", - "log", - "num-traits", - "parity-scale-codec", - "parking_lot 0.11.1", - "rand 0.7.3", - "smallvec 1.6.1", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-std", - "sp-trie", - "thiserror", - "trie-db", - "trie-root", -] - -[[package]] -name = "sp-std" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" - -[[package]] -name = "sp-storage" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "ref-cast", - "serde", - "sp-debug-derive", - "sp-std", -] - -[[package]] -name = "sp-tasks" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime-interface", - "sp-std", -] - -[[package]] -name = "sp-timestamp" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", - "wasm-timer", -] - -[[package]] -name = "sp-tracing" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "log", - "parity-scale-codec", - "sp-std", - "tracing", - "tracing-core", - "tracing-subscriber", -] - -[[package]] -name = "sp-transaction-pool" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "derive_more 0.99.13", - "futures 0.3.15", - "log", - "parity-scale-codec", - "serde", - "sp-api", - "sp-blockchain", - "sp-runtime", - "thiserror", -] - -[[package]] -name = "sp-trie" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "hash-db", - "memory-db", - "parity-scale-codec", - "sp-core", - "sp-std", - "trie-db", - "trie-root", -] - -[[package]] -name = "sp-utils" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "futures 0.3.15", - "futures-core", - "futures-timer 3.0.2", - "lazy_static", - "prometheus", -] - -[[package]] -name = "sp-version" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "impl-serde", - "parity-scale-codec", - "serde", - "sp-runtime", - "sp-std", -] - -[[package]] -name = "sp-wasm-interface" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "impl-trait-for-tuples", - "parity-scale-codec", - "sp-std", - "wasmi", -] - -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - -[[package]] -name = "static_init" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11b73400442027c4adedda20a9f9b7945234a5bd8d5f7e86da22bd5d0622369c" -dependencies = [ - "cfg_aliases", - "libc", - "parking_lot 0.11.1", - "static_init_macro", -] - -[[package]] -name = "static_init_macro" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2261c91034a1edc3fc4d1b80e89d82714faede0515c14a75da10cb941546bbf" -dependencies = [ - "cfg_aliases", - "memchr", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "statrs" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e34b58a8f9b7462b6922e0b4e3c83d1b3c2075f7f996a56d6c66afa81590064" -dependencies = [ - "nalgebra 0.19.0", - "rand 0.7.3", -] - -[[package]] -name = "stream-cipher" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c80e15f898d8d8f25db24c253ea615cc14acf418ff307822995814e7d42cfa89" -dependencies = [ - "block-cipher", - "generic-array 0.14.4", -] - -[[package]] -name = "streamunordered" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e68576e37c8a37f5372796df15202190349dd80e7ed6a79544c0232213e90e35" -dependencies = [ - "futures-core", - "futures-sink", - "futures-util", - "slab", -] - -[[package]] -name = "string" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d24114bfcceb867ca7f71a0d3fe45d45619ec47a6fbfa98cb14e14250bfa5d6d" -dependencies = [ - "bytes 0.4.12", -] - -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - -[[package]] -name = "structopt" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5277acd7ee46e63e5168a80734c9f6ee81b1367a7d8772a2d765df2a3705d28c" -dependencies = [ - "clap", - "lazy_static", - "structopt-derive", -] - -[[package]] -name = "structopt-derive" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" -dependencies = [ - "heck", - "proc-macro-error", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "strum" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.20.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" -dependencies = [ - "heck", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "substrate-bip39" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bed6646a0159b9935b5d045611560eeef842b78d7adc3ba36f5ca325a13a0236" -dependencies = [ - "hmac 0.7.1", - "pbkdf2 0.3.0", - "schnorrkel", - "sha2 0.8.2", - "zeroize", -] - -[[package]] -name = "substrate-build-script-utils" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "platforms", -] - -[[package]] -name = "substrate-frame-rpc-system" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-system-rpc-runtime-api", - "futures 0.3.15", - "jsonrpc-core", - "jsonrpc-core-client", - "jsonrpc-derive", - "log", - "parity-scale-codec", - "sc-client-api", - "sc-rpc-api", - "serde", - "sp-api", - "sp-block-builder", - "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-transaction-pool", -] - -[[package]] -name = "substrate-prometheus-endpoint" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-std", - "derive_more 0.99.13", - "futures-util", - "hyper 0.13.10", - "log", - "prometheus", - "tokio 0.2.25", -] - -[[package]] -name = "substrate-test-client" -version = "2.0.1" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "async-trait", - "futures 0.1.31", - "futures 0.3.15", - "hash-db", - "hex", - "parity-scale-codec", - "sc-client-api", - "sc-client-db", - "sc-consensus", - "sc-executor", - "sc-light", - "sc-offchain", - "sc-service", - "serde", - "serde_json", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-state-machine", -] - -[[package]] -name = "substrate-wasm-builder" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79091baab813855ddf65b191de9fe53e656b6b67c1e9bd23fdcbff8788164684" -dependencies = [ - "ansi_term 0.12.1", - "atty", - "build-helper", - "cargo_metadata", - "tempfile", - "toml", - "walkdir", - "wasm-gc-api", -] - -[[package]] -name = "substrate-wasm-builder" -version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "ansi_term 0.12.1", - "atty", - "build-helper", - "cargo_metadata", - "sp-maybe-compressed-blob", - "tempfile", - "toml", - "walkdir", - "wasm-gc-api", -] - -[[package]] -name = "subtle" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d67a5a62ba6e01cb2192ff309324cb4875d0c451d55fe2319433abe7a05a8ee" - -[[package]] -name = "subtle" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e81da0851ada1f3e9d4312c704aa4f8806f0f9d69faaf8df2f3464b4a9437c2" - -[[package]] -name = "syn" -version = "0.15.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" -dependencies = [ - "proc-macro2 0.4.30", - "quote 0.6.13", - "unicode-xid 0.1.0", -] - -[[package]] -name = "syn" -version = "1.0.72" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "unicode-xid 0.2.2", -] - -[[package]] -name = "synstructure" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "unicode-xid 0.2.2", -] - -[[package]] -name = "take_mut" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f764005d11ee5f36500a149ace24e00e3da98b0158b3e2d53a7495660d3f4d60" - -[[package]] -name = "tap" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" - -[[package]] -name = "target-lexicon" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95" - -[[package]] -name = "tempfile" -version = "3.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "rand 0.8.3", - "redox_syscall 0.2.8", - "remove_dir_all", - "winapi 0.3.9", -] - -[[package]] -name = "termcolor" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" -dependencies = [ - "winapi-util", -] - -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - -[[package]] -name = "thiserror" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "thread_local" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd" -dependencies = [ - "once_cell", -] - -[[package]] -name = "threadpool" -version = "1.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" -dependencies = [ - "num_cpus", -] - -[[package]] -name = "thrift" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c6d965454947cc7266d22716ebfd07b18d84ebaf35eec558586bbb2a8cb6b5b" -dependencies = [ - "byteorder", - "integer-encoding", - "log", - "ordered-float", - "threadpool", -] - -[[package]] -name = "time" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" -dependencies = [ - "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", -] - -[[package]] -name = "tiny-bip39" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8" -dependencies = [ - "anyhow", - "hmac 0.8.1", - "once_cell", - "pbkdf2 0.4.0", - "rand 0.7.3", - "rustc-hash", - "sha2 0.9.5", - "thiserror", - "unicode-normalization", - "zeroize", -] - -[[package]] -name = "tiny-keccak" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" -dependencies = [ - "crunchy", -] - -[[package]] -name = "tinyvec" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - -[[package]] -name = "tokio" -version = "0.1.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "mio", - "num_cpus", - "tokio-codec", - "tokio-current-thread", - "tokio-executor", - "tokio-fs", - "tokio-io", - "tokio-reactor", - "tokio-sync", - "tokio-tcp", - "tokio-threadpool", - "tokio-timer", - "tokio-udp", - "tokio-uds", -] - -[[package]] -name = "tokio" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6703a273949a90131b290be1fe7b039d0fc884aa1935860dfcbe056f28cd8092" -dependencies = [ - "bytes 0.5.6", - "fnv", - "futures-core", - "iovec", - "lazy_static", - "libc", - "memchr", - "mio", - "mio-uds", - "num_cpus", - "pin-project-lite 0.1.12", - "signal-hook-registry", - "slab", - "winapi 0.3.9", -] - -[[package]] -name = "tokio-buf" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" -dependencies = [ - "bytes 0.4.12", - "either", - "futures 0.1.31", -] - -[[package]] -name = "tokio-codec" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "tokio-io", -] - -[[package]] -name = "tokio-current-thread" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1de0e32a83f131e002238d7ccde18211c0a5397f60cbfffcb112868c2e0e20e" -dependencies = [ - "futures 0.1.31", - "tokio-executor", -] - -[[package]] -name = "tokio-executor" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671" -dependencies = [ - "crossbeam-utils 0.7.2", - "futures 0.1.31", -] - -[[package]] -name = "tokio-fs" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "297a1206e0ca6302a0eed35b700d292b275256f596e2f3fea7729d5e629b6ff4" -dependencies = [ - "futures 0.1.31", - "tokio-io", - "tokio-threadpool", -] - -[[package]] -name = "tokio-io" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "log", -] - -[[package]] -name = "tokio-named-pipes" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d282d483052288b2308ba5ee795f5673b159c9bdf63c385a05609da782a5eae" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "mio", - "mio-named-pipes", - "tokio 0.1.22", -] - -[[package]] -name = "tokio-reactor" -version = "0.1.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351" -dependencies = [ - "crossbeam-utils 0.7.2", - "futures 0.1.31", - "lazy_static", - "log", - "mio", - "num_cpus", - "parking_lot 0.9.0", - "slab", - "tokio-executor", - "tokio-io", - "tokio-sync", -] - -[[package]] -name = "tokio-rustls" -version = "0.14.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12831b255bcfa39dc0436b01e19fea231a37db570686c06ee72c423479f889a" -dependencies = [ - "futures-core", - "rustls 0.18.1", - "tokio 0.2.25", - "webpki", -] - -[[package]] -name = "tokio-service" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" -dependencies = [ - "futures 0.1.31", -] - -[[package]] -name = "tokio-sync" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee" -dependencies = [ - "fnv", - "futures 0.1.31", -] - -[[package]] -name = "tokio-tcp" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "iovec", - "mio", - "tokio-io", - "tokio-reactor", -] - -[[package]] -name = "tokio-threadpool" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df720b6581784c118f0eb4310796b12b1d242a7eb95f716a8367855325c25f89" -dependencies = [ - "crossbeam-deque 0.7.3", - "crossbeam-queue", - "crossbeam-utils 0.7.2", - "futures 0.1.31", - "lazy_static", - "log", - "num_cpus", - "slab", - "tokio-executor", -] - -[[package]] -name = "tokio-timer" -version = "0.2.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93044f2d313c95ff1cb7809ce9a7a05735b012288a888b62d4434fd58c94f296" -dependencies = [ - "crossbeam-utils 0.7.2", - "futures 0.1.31", - "slab", - "tokio-executor", -] - -[[package]] -name = "tokio-udp" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2a0b10e610b39c38b031a2fcab08e4b82f16ece36504988dcbd81dbba650d82" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "log", - "mio", - "tokio-codec", - "tokio-io", - "tokio-reactor", -] - -[[package]] -name = "tokio-uds" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab57a4ac4111c8c9dbcf70779f6fc8bc35ae4b2454809febac840ad19bd7e4e0" -dependencies = [ - "bytes 0.4.12", - "futures 0.1.31", - "iovec", - "libc", - "log", - "mio", - "mio-uds", - "tokio-codec", - "tokio-io", - "tokio-reactor", -] - -[[package]] -name = "tokio-util" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" -dependencies = [ - "bytes 0.5.6", - "futures-core", - "futures-sink", - "log", - "pin-project-lite 0.1.12", - "tokio 0.2.25", -] - -[[package]] -name = "toml" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" -dependencies = [ - "serde", -] - -[[package]] -name = "tower-service" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" - -[[package]] -name = "tracing" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09adeb8c97449311ccd28a427f96fb563e7fd31aabf994189879d9da2394b89d" -dependencies = [ - "cfg-if 1.0.0", - "log", - "pin-project-lite 0.2.6", - "tracing-attributes", - "tracing-core", -] - -[[package]] -name = "tracing-attributes" -version = "0.1.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", -] - -[[package]] -name = "tracing-core" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9ff14f98b1a4b289c6248a023c1c2fa1491062964e9fed67ab29c4e4da4a052" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "tracing-futures" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" -dependencies = [ - "pin-project 1.0.7", - "tracing", -] - -[[package]] -name = "tracing-log" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6923477a48e41c1951f1999ef8bb5a3023eb723ceadafe78ffb65dc366761e3" -dependencies = [ - "lazy_static", - "log", - "tracing-core", -] - -[[package]] -name = "tracing-serde" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb65ea441fbb84f9f6748fd496cf7f63ec9af5bca94dd86456978d055e8eb28b" -dependencies = [ - "serde", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.2.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa5553bf0883ba7c9cbe493b085c29926bd41b66afc31ff72cf17ff4fb60dcd5" -dependencies = [ - "ansi_term 0.12.1", - "chrono", - "lazy_static", - "matchers", - "regex", - "serde", - "serde_json", - "sharded-slab", - "smallvec 1.6.1", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", - "tracing-serde", -] - -[[package]] -name = "trie-db" -version = "0.22.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec051edf7f0fc9499a2cb0947652cab2148b9d7f61cee7605e312e9f970dacaf" -dependencies = [ - "hash-db", - "hashbrown", - "log", - "rustc-hex", - "smallvec 1.6.1", -] - -[[package]] -name = "trie-root" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "652931506d2c1244d7217a70b99f56718a7b4161b37f04e7cd868072a99f68cd" -dependencies = [ - "hash-db", -] - -[[package]] -name = "trust-dns-proto" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "952a078337565ba39007de99b151770f41039253a31846f0a3d5cd5a4ac8eedf" -dependencies = [ - "async-trait", - "cfg-if 1.0.0", - "data-encoding", - "enum-as-inner", - "futures-channel", - "futures-io", - "futures-util", - "idna 0.2.3", - "ipnet", - "lazy_static", - "log", - "rand 0.8.3", - "smallvec 1.6.1", - "thiserror", - "tinyvec", - "url 2.2.2", -] - -[[package]] -name = "trust-dns-resolver" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9c97f7d103e0f94dbe384a57908833505ae5870126492f166821b7cf685589" -dependencies = [ - "cfg-if 1.0.0", - "futures-util", - "ipconfig", - "lazy_static", - "log", - "lru-cache", - "parking_lot 0.11.1", - "resolv-conf", - "smallvec 1.6.1", - "thiserror", - "trust-dns-proto", -] - -[[package]] -name = "try-lock" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" - -[[package]] -name = "try-runtime-cli" -version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#2be8fcc4236d32786c62f6f27a98e7fe7e550807" -dependencies = [ - "frame-try-runtime", - "log", - "parity-scale-codec", - "remote-externalities", - "sc-cli", - "sc-client-api", - "sc-executor", - "sc-service", - "sp-api", - "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", - "structopt", -] - -[[package]] -name = "twox-hash" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" -dependencies = [ - "cfg-if 0.1.10", - "rand 0.7.3", - "static_assertions", -] - -[[package]] -name = "typenum" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06" - -[[package]] -name = "ucd-trie" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" - -[[package]] -name = "uint" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e11fe9a9348741cf134085ad57c249508345fe16411b3d7fb4ff2da2f1d6382e" -dependencies = [ - "byteorder", - "crunchy", - "hex", - "static_assertions", -] - -[[package]] -name = "unicase" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" -dependencies = [ - "version_check", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0" -dependencies = [ - "matches", -] - -[[package]] -name = "unicode-normalization" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-segmentation" -version = "1.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb0d2e7be6ae3a5fa87eed5fb451aff96f2573d2694942e40543ae0bbe19c796" - -[[package]] -name = "unicode-width" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" - -[[package]] -name = "unicode-xid" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" - -[[package]] -name = "unicode-xid" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" - -[[package]] -name = "universal-hash" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8326b2c654932e3e4f9196e69d08fdf7cfd718e1dc6f66b347e6024a0c961402" -dependencies = [ - "generic-array 0.14.4", - "subtle 2.4.0", -] - -[[package]] -name = "unsigned-varint" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fdeedbf205afadfe39ae559b75c3240f24e257d0ca27e85f85cb82aa19ac35" - -[[package]] -name = "unsigned-varint" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35581ff83d4101e58b582e607120c7f5ffb17e632a980b1f38334d76b36908b2" -dependencies = [ - "asynchronous-codec 0.5.0", - "bytes 1.0.1", - "futures-io", - "futures-util", -] - -[[package]] -name = "unsigned-varint" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f8d425fafb8cd76bc3f22aace4af471d3156301d7508f2107e98fbeae10bc7f" -dependencies = [ - "asynchronous-codec 0.6.0", - "bytes 1.0.1", - "futures-io", - "futures-util", -] - -[[package]] -name = "untrusted" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" - -[[package]] -name = "url" -version = "1.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a" -dependencies = [ - "idna 0.1.5", - "matches", - "percent-encoding 1.0.1", -] - -[[package]] -name = "url" -version = "2.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" -dependencies = [ - "form_urlencoded", - "idna 0.2.3", - "matches", - "percent-encoding 2.1.0", -] - -[[package]] -name = "value-bag" -version = "1.0.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1" -dependencies = [ - "ctor", -] - -[[package]] -name = "vcpkg" -version = "0.2.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbdbff6266a24120518560b5dc983096efb98462e51d0d68169895b237be3e5d" - -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - -[[package]] -name = "version_check" -version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" - -[[package]] -name = "void" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" - -[[package]] -name = "waker-fn" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" - -[[package]] -name = "walkdir" -version = "2.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" -dependencies = [ - "same-file", - "winapi 0.3.9", - "winapi-util", -] - -[[package]] -name = "want" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6395efa4784b027708f7451087e647ec73cc74f5d9bc2e418404248d679a230" -dependencies = [ - "futures 0.1.31", - "log", - "try-lock", -] - -[[package]] -name = "want" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" -dependencies = [ - "log", - "try-lock", -] - -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - -[[package]] -name = "wasm-bindgen" -version = "0.2.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54ee1d4ed486f78874278e63e4069fc1ab9f6a18ca492076ffb90c5eb2997fd" -dependencies = [ - "cfg-if 1.0.0", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b33f6a0694ccfea53d94db8b2ed1c3a8a4c86dd936b13b9f0a15ec4a451b900" -dependencies = [ - "bumpalo", - "lazy_static", - "log", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-futures" -version = "0.4.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fba7978c679d53ce2d0ac80c8c175840feb849a161664365d1287b41f2e67f1" -dependencies = [ - "cfg-if 1.0.0", - "js-sys", - "wasm-bindgen", - "web-sys", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "088169ca61430fe1e58b8096c24975251700e7b1f6fd91cc9d59b04fb9b18bd4" -dependencies = [ - "quote 1.0.9", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be2241542ff3d9f241f5e2cb6dd09b37efe786df8851c54957683a49f0987a97" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7cff876b8f18eed75a66cf49b65e7f967cb354a7aa16003fb55dbfd25b44b4f" - -[[package]] -name = "wasm-gc-api" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0c32691b6c7e6c14e7f8fd55361a9088b507aa49620fcd06c09b3a1082186b9" -dependencies = [ - "log", - "parity-wasm 0.32.0", - "rustc-demangle", -] - -[[package]] -name = "wasm-timer" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" -dependencies = [ - "futures 0.3.15", - "js-sys", - "parking_lot 0.11.1", - "pin-utils", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", -] - -[[package]] -name = "wasmi" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf617d864d25af3587aa745529f7aaa541066c876d57e050c0d0c85c61c92aff" -dependencies = [ - "libc", - "memory_units", - "num-rational 0.2.4", - "num-traits", - "parity-wasm 0.41.0", - "wasmi-validation", -] - -[[package]] -name = "wasmi-validation" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea78c597064ba73596099281e2f4cfc019075122a65cdda3205af94f0b264d93" -dependencies = [ - "parity-wasm 0.41.0", -] - -[[package]] -name = "wasmparser" -version = "0.76.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8" - -[[package]] -name = "wasmtime" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718cb52a9fdb7ab12471e9b9d051c9adfa6b5c504e0a1fea045e5eabc81eedd9" -dependencies = [ - "anyhow", - "backtrace", - "bincode", - "cfg-if 1.0.0", - "cpp_demangle", - "indexmap", - "libc", - "log", - "paste", - "region", - "rustc-demangle", - "serde", - "smallvec 1.6.1", - "target-lexicon", - "wasmparser", - "wasmtime-cache", - "wasmtime-environ", - "wasmtime-fiber", - "wasmtime-jit", - "wasmtime-profiling", - "wasmtime-runtime", - "wat", - "winapi 0.3.9", -] - -[[package]] -name = "wasmtime-cache" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f984df56c4adeba91540f9052db9f7a8b3b00cfaac1a023bee50a972f588b0c" -dependencies = [ - "anyhow", - "base64 0.13.0", - "bincode", - "directories-next", - "errno", - "file-per-thread-logger", - "libc", - "log", - "serde", - "sha2 0.9.5", - "toml", - "winapi 0.3.9", - "zstd", -] - -[[package]] -name = "wasmtime-cranelift" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a05abbf94e03c2c8ee02254b1949320c4d45093de5d9d6ed4d9351d536075c9" -dependencies = [ - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-wasm", - "wasmparser", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-debug" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "382eecd6281c6c1d1f3c904c3c143e671fc1a9573820cbfa777fba45ce2eda9c" -dependencies = [ - "anyhow", - "gimli 0.23.0", - "more-asserts", - "object 0.23.0", - "target-lexicon", - "thiserror", - "wasmparser", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-environ" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81011b2b833663d7e0ce34639459a0e301e000fc7331e0298b3a27c78d0cec60" -dependencies = [ - "anyhow", - "cfg-if 1.0.0", - "cranelift-codegen", - "cranelift-entity", - "cranelift-wasm", - "gimli 0.23.0", - "indexmap", - "log", - "more-asserts", - "serde", - "thiserror", - "wasmparser", -] - -[[package]] -name = "wasmtime-fiber" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d92da32e31af2e3d828f485f5f24651ed4d3b7f03a46ea6555eae6940d1402cd" -dependencies = [ - "cc", - "libc", - "winapi 0.3.9", -] - -[[package]] -name = "wasmtime-jit" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b5f649623859a12d361fe4cc4793de44f7c3ff34c322c5714289787e89650bb" -dependencies = [ - "addr2line 0.14.1", - "anyhow", - "cfg-if 1.0.0", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", - "gimli 0.23.0", - "log", - "more-asserts", - "object 0.23.0", - "rayon", - "region", - "serde", - "target-lexicon", - "thiserror", - "wasmparser", - "wasmtime-cranelift", - "wasmtime-debug", - "wasmtime-environ", - "wasmtime-obj", - "wasmtime-profiling", - "wasmtime-runtime", - "winapi 0.3.9", -] - -[[package]] -name = "wasmtime-obj" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef2e99cd9858f57fd062e9351e07881cedfc8597928385e02a48d9333b9e15a1" -dependencies = [ - "anyhow", - "more-asserts", - "object 0.23.0", - "target-lexicon", - "wasmtime-debug", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-profiling" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e46c0a590e49278ba7f79ef217af9db4ecc671b50042c185093e22d73524abb2" -dependencies = [ - "anyhow", - "cfg-if 1.0.0", - "gimli 0.23.0", - "lazy_static", - "libc", - "object 0.23.0", - "scroll", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-runtime", -] - -[[package]] -name = "wasmtime-runtime" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1438a09185fc7ca067caf1a80d7e5b398eefd4fb7630d94841448ade60feb3d0" -dependencies = [ - "backtrace", - "cc", - "cfg-if 1.0.0", - "indexmap", - "lazy_static", - "libc", - "log", - "memoffset 0.6.3", - "more-asserts", - "psm", - "region", - "thiserror", - "wasmtime-environ", - "winapi 0.3.9", -] - -[[package]] -name = "wast" -version = "35.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ef140f1b49946586078353a453a1d28ba90adfc54dde75710bc1931de204d68" -dependencies = [ - "leb128", -] - -[[package]] -name = "wat" -version = "1.0.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ec280a739b69173e0ffd12c1658507996836ba4e992ed9bc1e5385a0bd72a02" -dependencies = [ - "wast", -] - -[[package]] -name = "web-sys" -version = "0.3.51" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e828417b379f3df7111d3a2a9e5753706cae29c41f7c4029ee9fd77f3e09e582" -dependencies = [ - "js-sys", - "wasm-bindgen", -] - -[[package]] -name = "webpki" -version = "0.21.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" -dependencies = [ - "ring", - "untrusted", -] - -[[package]] -name = "webpki-roots" -version = "0.21.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" -dependencies = [ - "webpki", -] - -[[package]] -name = "wepoll-sys" -version = "3.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcb14dea929042224824779fbc82d9fab8d2e6d3cbc0ac404de8edf489e77ff" -dependencies = [ - "cc", -] - -[[package]] -name = "westend-runtime" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "beefy-primitives", - "bitvec", - "frame-executive", - "frame-support", - "frame-system", - "frame-system-rpc-runtime-api", - "frame-try-runtime", - "log", - "pallet-authority-discovery", - "pallet-authorship", - "pallet-babe", - "pallet-balances", - "pallet-collective", - "pallet-democracy", - "pallet-election-provider-multi-phase", - "pallet-elections-phragmen", - "pallet-grandpa", - "pallet-identity", - "pallet-im-online", - "pallet-indices", - "pallet-membership", - "pallet-mmr-primitives", - "pallet-multisig", - "pallet-nicks", - "pallet-offences", - "pallet-proxy", - "pallet-randomness-collective-flip", - "pallet-recovery", - "pallet-scheduler", - "pallet-session", - "pallet-society", - "pallet-staking", - "pallet-staking-reward-curve", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "pallet-transaction-payment-rpc-runtime-api", - "pallet-treasury", - "pallet-utility", - "pallet-vesting", - "parity-scale-codec", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-runtime-parachains", - "rustc-hex", - "serde", - "serde_derive", - "smallvec 1.6.1", - "sp-api", - "sp-authority-discovery", - "sp-block-builder", - "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", - "sp-npos-elections", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-staking", - "sp-std", - "sp-transaction-pool", - "sp-version", - "static_assertions", - "substrate-wasm-builder 3.0.0", -] - -[[package]] -name = "which" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b55551e42cbdf2ce2bedd2203d0cc08dba002c27510f86dab6d0ce304cba3dfe" -dependencies = [ - "either", - "libc", -] - -[[package]] -name = "widestring" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c" - -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "winreg" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2986deb581c4fe11b621998a5e53361efe6b48a151178d0cd9eeffa4dc6acc9" -dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - -[[package]] -name = "wyz" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" - -[[package]] -name = "x25519-dalek" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a0c105152107e3b96f6a00a65e86ce82d9b125230e1c4302940eca58ff71f4f" -dependencies = [ - "curve25519-dalek 3.1.0", - "rand_core 0.5.1", - "zeroize", -] - -[[package]] -name = "xcm" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "derivative", - "impl-trait-for-tuples", - "parity-scale-codec", -] - -[[package]] -name = "xcm-builder" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "frame-support", - "frame-system", - "impl-trait-for-tuples", - "parity-scale-codec", - "polkadot-parachain", - "sp-arithmetic", - "sp-io", - "sp-runtime", - "sp-std", - "xcm", - "xcm-executor", -] - -[[package]] -name = "xcm-executor" -version = "0.8.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#56d0154fcf8903c4198598a53b5ff213cffabb45" -dependencies = [ - "frame-support", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "xcm", -] - -[[package]] -name = "yamux" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7d9028f208dd5e63c614be69f115c1b53cacc1111437d4c765185856666c107" -dependencies = [ - "futures 0.3.15", - "log", - "nohash-hasher", - "parking_lot 0.11.1", - "rand 0.8.3", - "static_assertions", -] - -[[package]] -name = "zeroize" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4756f7db3f7b5574938c3eb1c117038b8e07f95ee6718c0efad4ac21508f1efd" -dependencies = [ - "zeroize_derive", -] - -[[package]] -name = "zeroize_derive" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2c1e130bebaeab2f23886bf9acbaca14b092408c452543c857f66399cd6dab1" -dependencies = [ - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.72", - "synstructure", -] - -[[package]] -name = "zstd" -version = "0.6.1+zstd.1.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de55e77f798f205d8561b8fe2ef57abfb6e0ff2abe7fd3c089e119cdb5631a3" -dependencies = [ - "zstd-safe", -] - -[[package]] -name = "zstd-safe" -version = "3.0.1+zstd.1.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1387cabcd938127b30ce78c4bf00b30387dddf704e3f0881dbc4ff62b5566f8c" -dependencies = [ - "libc", - "zstd-sys", -] - -[[package]] -name = "zstd-sys" -version = "1.4.20+zstd.1.4.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd5b733d7cf2d9447e2c3e76a5589b4f5e5ae065c22a2bc0b023cbc331b6c8e" -dependencies = [ - "cc", - "libc", -] diff --git a/Cargo.toml b/Cargo.toml index 63238c78c..660051e66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ panic = 'unwind' [workspace] members = [ 'node', - 'pallets/parachain-info', 'pallets/roaming/roaming-operators', 'pallets/roaming/roaming-networks', 'pallets/roaming/roaming-organizations', diff --git a/custom_types.json b/custom_types.json index b3722c4db..94faa0233 100644 --- a/custom_types.json +++ b/custom_types.json @@ -1,7 +1,8 @@ { "Keys": "SessionKeys2", - "Address": "AccountId", - "LookupSource": "AccountId", + "AccountInfo": "AccountInfoWithTripleRefCount", + "Address": "AccountId", + "LookupSource": "AccountId", "RoamingOperator": "[u8; 16]", "RoamingOperatorIndex": "u64", "RoamingNetwork": "[u8; 16]", @@ -24,7 +25,7 @@ "RoamingAccountingPolicyType": "Text", "RoamingAccountingPolicyUplinkFeeFactor": "u32", "RoamingAccountingPolicyDownlinkFeeFactor": "u32", - "RoamingAccountingPolicyConfig": { + "RoamingAccountingPolicySetting": { "policy_type": "Text", "subscription_fee": "Balance", "uplink_fee_factor": "u32", @@ -34,7 +35,7 @@ "RoamingAgreementPolicyIndex": "u64", "RoamingAgreementPolicyActivationType": "Text", "RoamingAgreementPolicyExpiry": "Moment", - "RoamingAgreementPolicyConfig": { + "RoamingAgreementPolicySetting": { "policy_activation_type": "Text", "policy_expiry": "u64" }, @@ -46,7 +47,7 @@ "RoamingDeviceProfileDevEUI": "Text", "RoamingDeviceProfileJoinEUI": "Text", "RoamingDeviceProfileVendorID": "Text", - "RoamingDeviceProfileConfig": { + "RoamingDeviceProfileSetting": { "device_profile_devaddr": "Text", "device_profile_deveui": "Text", "device_profile_joineui": "Text", @@ -69,7 +70,7 @@ "RoamingBillingPolicyIndex": "u64", "RoamingBillingPolicyNextBillingAt": "Moment", "RoamingBillingPolicyFrequencyInDays": "u64", - "RoamingBillingPolicyConfig": { + "RoamingBillingPolicySetting": { "policy_next_billing_at": "Moment", "policy_frequency_in_days": "u64" }, @@ -77,7 +78,7 @@ "RoamingChargingPolicyIndex": "u64", "RoamingChargingPolicyNextChargingAt": "Moment", "RoamingChargingPolicyDelayAfterBillingInDays": "u64", - "RoamingChargingPolicyConfig": { + "RoamingChargingPolicySetting": { "policy_next_charging_at": "Moment", "policy_delay_after_billing_in_days": "u64" }, diff --git a/node/Cargo.toml b/node/Cargo.toml index df058ff2b..e21134fef 100755 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -1,242 +1,220 @@ [dependencies] -derive_more = '0.15.0' -log = "0.4.13" +derive_more = '0.99.2' +log = '0.4.14' codec = { package = 'parity-scale-codec', version = '2.0.0' } structopt = "0.3.8" -serde_json = '1.0.47' -serde = { version = "1.0.101", features = ["derive"] } -hex-literal = "0.2.1" +serde = { version = "1.0.119", features = ["derive"] } +hex-literal = "0.3.1" # RPC related dependencies jsonrpc-core = "15.1.0" [dependencies.frame-benchmarking] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.frame-benchmarking-cli] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" -[dependencies.datahighway-runtime] +[dependencies.datahighway-parachain-runtime] path = '../runtime' version = '1.1.0' [dependencies.pallet-transaction-payment-rpc] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + +[dependencies.substrate-prometheus-endpoint] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-basic-authorship] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-chain-spec] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-cli] features = ['wasmtime'] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-client-api] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-consensus] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-executor] features = ['wasmtime'] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + +[dependencies.sc-network] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-keystore] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-rpc] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-rpc-api] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-service] features = ['wasmtime'] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-transaction-pool] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-tracing] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-api] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-block-builder] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-blockchain] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-consensus] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + +[dependencies.sp-consensus-aura] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-core] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-inherents] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + +[dependencies.sp-keystore] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + + +[dependencies.sp-offchain] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" + +[dependencies.sp-session] +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-timestamp] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-transaction-pool] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sp-trie] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.substrate-frame-rpc-system] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [build-dependencies.substrate-build-script-utils] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" # Cumulus dependencies -[dependencies.cumulus-client-consensus-relay-chain] +[dependencies.cumulus-client-consensus-aura] git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" +branch = "polkadot-v0.9.10" + +[dependencies.cumulus-client-consensus-common] +git = 'https://github.com/paritytech/cumulus.git' +branch = "polkadot-v0.9.10" [dependencies.cumulus-client-collator] git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" +branch = "polkadot-v0.9.10" + +[dependencies.cumulus-client-cli] +git = 'https://github.com/paritytech/cumulus.git' +branch = "polkadot-v0.9.10" [dependencies.cumulus-client-network] git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" +branch = "polkadot-v0.9.10" [dependencies.cumulus-primitives-core] git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" +branch = "polkadot-v0.9.10" [dependencies.cumulus-client-service] git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" +branch = "polkadot-v0.9.10" + +[dependencies.cumulus-primitives-parachain-inherent] +git = 'https://github.com/paritytech/cumulus.git' +branch = "polkadot-v0.9.10" # Polkadot dependencies [dependencies.polkadot-primitives] git = "https://github.com/paritytech/polkadot" -branch = "rococo-v1" +branch = "release-v0.9.10" [dependencies.polkadot-service] git = "https://github.com/paritytech/polkadot" -branch = "rococo-v1" +branch = "release-v0.9.10" [dependencies.polkadot-cli] git = "https://github.com/paritytech/polkadot" -branch = "rococo-v1" +branch = "release-v0.9.10" [dependencies.polkadot-test-service] git = "https://github.com/paritytech/polkadot" -branch = "rococo-v1" +branch = "release-v0.9.10" [dependencies.polkadot-parachain] git = "https://github.com/paritytech/polkadot" -branch = "rococo-v1" +branch = "release-v0.9.10" [dependencies.sc-consensus-epochs] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [dependencies.sc-consensus-aura] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" # # - - -[dependencies.sc-finality-grandpa] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' - -[dependencies.sp-finality-grandpa] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' - - -[dependencies.sp-consensus-babe] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' - -[dependencies.sc-consensus-babe] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' - -[dependencies.sc-consensus-babe-rpc] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '0.9.0' - [dependencies.sc-telemetry] -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +git = 'https://github.com/paritytech/substrate' +branch = "polkadot-v0.9.10" [[bin]] name = 'datahighway-collator' @@ -255,4 +233,4 @@ targets = ['x86_64-unknown-linux-gnu'] [features] default = [] -runtime-benchmarks = ['datahighway-runtime/runtime-benchmarks'] +runtime-benchmarks = ['datahighway-parachain-runtime/runtime-benchmarks'] diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 51363a53e..92e30a9e8 100755 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -1,6 +1,8 @@ use cumulus_primitives_core::ParaId; -use datahighway_runtime::{ +use datahighway_parachain_runtime::{ AccountId, + AuraId, + AuraConfig, BalancesConfig, GeneralCouncilMembershipConfig, GenesisConfig, @@ -18,8 +20,6 @@ use serde::{ Deserialize, Serialize, }; -use serde_json::map::Map; -use sp_consensus_babe::AuthorityId as BabeId; use sp_core::{ crypto::{ UncheckedFrom, @@ -29,7 +29,6 @@ use sp_core::{ Pair, Public, }; -use sp_finality_grandpa::AuthorityId as GrandpaId; use sp_runtime::traits::{ IdentifyAccount, Verify, @@ -40,7 +39,7 @@ pub use sp_runtime::{ }; /// Specialized `ChainSpec` for the normal parachain runtime. -pub type ChainSpec = sc_service::GenericChainSpec; +pub type ChainSpec = sc_service::GenericChainSpec; /// Helper function to generate a crypto pair from seed pub fn get_from_seed(seed: &str) -> ::Public { @@ -69,15 +68,6 @@ type AccountPublic = ::Signer; // Note this is the URL for the telemetry server const POLKADOT_STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/"; -pub fn get_authority_keys_from_seed(seed: &str) -> (AccountId, AccountId, GrandpaId, BabeId) { - ( - get_account_id_from_seed::(&format!("{}//stash", seed)), - get_account_id_from_seed::(seed), - get_from_seed::(seed), - get_from_seed::(seed), - ) -} - /// Helper function to generate an account ID from seed pub fn get_account_id_from_seed(seed: &str) -> AccountId where @@ -86,21 +76,22 @@ where AccountPublic::from(get_from_seed::(seed)).into_account() } -pub fn development_config(id: ParaId) -> ChainSpec { - let mut properties = Map::new(); - properties.insert("tokenSymbol".into(), "DHX".into()); +pub fn datahighway_rococo_development_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); properties.insert("tokenDecimals".into(), 18.into()); ChainSpec::from_genesis( // Name - "Development", + "DataHighway Rococo Development Testnet", // ID - "dev", - ChainType::Local, + "datahighway-rococo-dev", + ChainType::Development, move || { dev_genesis( - vec![get_authority_keys_from_seed("Alice")], + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], get_account_id_from_seed::("Alice"), vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), get_account_id_from_seed::("Alice"), get_account_id_from_seed::("Bob"), get_account_id_from_seed::("Alice//stash"), @@ -120,142 +111,593 @@ pub fn development_config(id: ParaId) -> ChainSpec { ) } -pub fn local_testnet_config(id: ParaId) -> ChainSpec { - let mut properties = Map::new(); - properties.insert("tokenSymbol".into(), "DHX".into()); +pub fn datahighway_rococo_local_testnet_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); properties.insert("tokenDecimals".into(), 18.into()); ChainSpec::from_genesis( // Name - "Local Testnet", + "DataHighway Rococo Local Testnet", // ID - "local_testnet", + "datahighway-rococo-local", ChainType::Local, + move || { + testnet_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), + vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Charlie"), + get_account_id_from_seed::("Dave"), + get_account_id_from_seed::("Eve"), + get_account_id_from_seed::("Ferdie"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), + get_account_id_from_seed::("Charlie//stash"), + get_account_id_from_seed::("Dave//stash"), + get_account_id_from_seed::("Eve//stash"), + get_account_id_from_seed::("Ferdie//stash"), + ], + id, + ) + }, + Vec::new(), + None, + None, + Some(properties), + Extensions { + relay_chain: "rococo-local".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_chachacha_development_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); + ChainSpec::from_genesis( + // Name + "DataHighway ChaChaCha Development Testnet", + // ID + "datahighway-chachacha-dev", + ChainType::Development, move || { dev_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), vec![ - get_authority_keys_from_seed("Alice"), - get_authority_keys_from_seed("Bob"), - get_authority_keys_from_seed("Charlie"), - get_authority_keys_from_seed("Dave"), + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), ], + id, + ) + }, + vec![], + None, + None, + Some(properties), + Extensions { + relay_chain: "chachacha-dev".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_chachacha_local_testnet_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); + ChainSpec::from_genesis( + // Name + "DataHighway ChaChaCha Local Testnet", + // ID + "datahighway-chachacha-local", + ChainType::Local, + move || { + testnet_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], get_account_id_from_seed::("Alice"), vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), get_account_id_from_seed::("Alice"), get_account_id_from_seed::("Bob"), get_account_id_from_seed::("Charlie"), get_account_id_from_seed::("Dave"), + get_account_id_from_seed::("Eve"), + get_account_id_from_seed::("Ferdie"), get_account_id_from_seed::("Alice//stash"), get_account_id_from_seed::("Bob//stash"), get_account_id_from_seed::("Charlie//stash"), get_account_id_from_seed::("Dave//stash"), + get_account_id_from_seed::("Eve//stash"), + get_account_id_from_seed::("Ferdie//stash"), ], id, ) }, - vec![], + Vec::new(), None, None, Some(properties), Extensions { - relay_chain: "rococo-local".into(), + relay_chain: "chachacha-local".into(), para_id: id.into(), }, ) } -pub fn harbor_testnet_config(id: ParaId) -> ChainSpec { - let mut properties = Map::new(); +pub fn datahighway_rococo_parachain_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); properties.insert("tokenSymbol".into(), "DHX".into()); properties.insert("tokenDecimals".into(), 18.into()); + let boot_nodes = vec![]; + ChainSpec::from_genesis( + "DataHighway Spreehafen Rococo Parachain Testnet", + "datahighway-spreehafen-rococo-parachain-testnet", + ChainType::Live, + move || { + spreehafen_testnet_genesis( + vec![ + // authority #1 + ( + // aura + hex!["106c208ac262aa3733629ad0860d0dc72d8b9152e1cdcab497949a3f9504517a"].unchecked_into() + ), + // authority #2 + ( + // aura + hex!["0234df0fce3e763e02b6644e589bd256bbd45121bdf6d98dd1cf1072b6228859"].unchecked_into() + ), + // authority #3 + ( + // aura + hex!["02fe175463b5c7c378416e06780f7c60520d4dbcf759a7634a311e562e13a765"].unchecked_into() + ), + // authority #4 + ( + // aura + hex!["ea239700d67f53d30e39bee0c056f1165a6fb59ad4d5dd495c06d001af366c02"].unchecked_into() + ) + + ], + hex!["c8c0ee501c4b115f08f677082b0f2beb59bd18f54f141588792e989bfb54e415"].into(), + vec![ + // Endow the Sudo account to cover transaction fees + hex!["c8c0ee501c4b115f08f677082b0f2beb59bd18f54f141588792e989bfb54e415"].into(), + // Endow this account with the DHX DAO Unlocked Reserves Balance + // 5EWKojw2i3uoqfWx1dEgVjBsvK5xuTr5G3NjXYh47H6ycBWr + hex!["6d6f646c70792f74727372790000000000000000000000000000000000000000"].into(), + // Endow these accounts with a balance so they may bond as authorities + // authority #1 stash + hex!["b2f1decb9c6a1e6df2cd7e7b73d6c7eada3683d958b2fed451fb045d2f7cdb55"].into(), + // authority #1 controller + hex!["467da0333f16ce430bfa18fb8c25cfbbc49f35946370989280aaf3142fff7344"].into(), + // authority #1 aura + hex!["106c208ac262aa3733629ad0860d0dc72d8b9152e1cdcab497949a3f9504517a"].into(), + // authority #2 stash + hex!["b2347d115c9300a433a59b0ef321430a6d418d0555a6a41dfebe99fb86765110"].into(), + // authority #2 controller + hex!["ac691d2b336f8347a22eb3831b381e4adac45ab6f0ad85abc1336633313f173d"].into(), + // authority #2 aura + hex!["0234df0fce3e763e02b6644e589bd256bbd45121bdf6d98dd1cf1072b6228859"].into(), + // authority #3 stash + hex!["f4062d6d4ac30ea04659b24994cc0ebf249fed1591e6cf1c25d5f4f78e78bb6b"].into(), + // authority #3 controller + hex!["4cad3775c026114d4a6e965f72caf11c18eb03ea7a3b4c0516f4cb8856b2575f"].into(), + // authority #3 aura + hex!["02fe175463b5c7c378416e06780f7c60520d4dbcf759a7634a311e562e13a765"].into(), + // authority #4 stash + hex!["a0d56496c02c203312ebce4a2804c7e0c31e34f983b9bc037f7c95f34e416613"].into(), + // authority #4 controller + hex!["6cd4eeb38c45a073d3c8e3ddd24e2502707060f33a1d92e082e32c106512500f"].into(), + // authority #4 aura + hex!["ea239700d67f53d30e39bee0c056f1165a6fb59ad4d5dd495c06d001af366c02"].into(), + ], + id, + ) + }, + boot_nodes, + None, + Some("dhx"), + Some(properties), + Extensions { + relay_chain: "rococo".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_chachacha_parachain_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "DHX".into()); + properties.insert("tokenDecimals".into(), 18.into()); + let boot_nodes = vec![]; + ChainSpec::from_genesis( + "DataHighway Spreehafen ChaChaCha Parachain Testnet", + "datahighway-spreehafen-chachacha-parachain-testnet", + ChainType::Live, + move || { + spreehafen_testnet_genesis( + vec![ + // authority #1 + ( + // aura + hex!["106c208ac262aa3733629ad0860d0dc72d8b9152e1cdcab497949a3f9504517a"].unchecked_into() + ), + // authority #2 + ( + // aura + hex!["0234df0fce3e763e02b6644e589bd256bbd45121bdf6d98dd1cf1072b6228859"].unchecked_into() + ), + // authority #3 + ( + // aura + hex!["02fe175463b5c7c378416e06780f7c60520d4dbcf759a7634a311e562e13a765"].unchecked_into() + ), + // authority #4 + ( + // aura + hex!["ea239700d67f53d30e39bee0c056f1165a6fb59ad4d5dd495c06d001af366c02"].unchecked_into() + ) + + ], + hex!["c8c0ee501c4b115f08f677082b0f2beb59bd18f54f141588792e989bfb54e415"].into(), + vec![ + // Endow the Sudo account to cover transaction fees + hex!["c8c0ee501c4b115f08f677082b0f2beb59bd18f54f141588792e989bfb54e415"].into(), + // Endow this account with the DHX DAO Unlocked Reserves Balance + // 5EWKojw2i3uoqfWx1dEgVjBsvK5xuTr5G3NjXYh47H6ycBWr + hex!["6d6f646c70792f74727372790000000000000000000000000000000000000000"].into(), + // Endow these accounts with a balance so they may bond as authorities + // authority #1 stash + hex!["b2f1decb9c6a1e6df2cd7e7b73d6c7eada3683d958b2fed451fb045d2f7cdb55"].into(), + // authority #1 controller + hex!["467da0333f16ce430bfa18fb8c25cfbbc49f35946370989280aaf3142fff7344"].into(), + // authority #1 aura + hex!["106c208ac262aa3733629ad0860d0dc72d8b9152e1cdcab497949a3f9504517a"].into(), + // authority #2 stash + hex!["b2347d115c9300a433a59b0ef321430a6d418d0555a6a41dfebe99fb86765110"].into(), + // authority #2 controller + hex!["ac691d2b336f8347a22eb3831b381e4adac45ab6f0ad85abc1336633313f173d"].into(), + // authority #2 aura + hex!["0234df0fce3e763e02b6644e589bd256bbd45121bdf6d98dd1cf1072b6228859"].into(), + // authority #3 stash + hex!["f4062d6d4ac30ea04659b24994cc0ebf249fed1591e6cf1c25d5f4f78e78bb6b"].into(), + // authority #3 controller + hex!["4cad3775c026114d4a6e965f72caf11c18eb03ea7a3b4c0516f4cb8856b2575f"].into(), + // authority #3 aura + hex!["02fe175463b5c7c378416e06780f7c60520d4dbcf759a7634a311e562e13a765"].into(), + // authority #4 stash + hex!["a0d56496c02c203312ebce4a2804c7e0c31e34f983b9bc037f7c95f34e416613"].into(), + // authority #4 controller + hex!["6cd4eeb38c45a073d3c8e3ddd24e2502707060f33a1d92e082e32c106512500f"].into(), + // authority #4 aura + hex!["ea239700d67f53d30e39bee0c056f1165a6fb59ad4d5dd495c06d001af366c02"].into(), + ], + id, + ) + }, + boot_nodes, + None, + Some("dhx"), + Some(properties), + Extensions { + relay_chain: "chachacha".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_westend_development_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); ChainSpec::from_genesis( // Name - "Local Testnet", + "DataHighway Westend Development Testnet", // ID - "local_testnet", + "datahighway-westend-dev", + ChainType::Development, + move || { + dev_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), + vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), + ], + id, + ) + }, + vec![], + None, + None, + Some(properties), + Extensions { + relay_chain: "westend-dev".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_westend_local_testnet_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); + ChainSpec::from_genesis( + // Name + "DataHighway Westend Local Testnet", + // ID + "datahighway-westend-local", ChainType::Local, move || { testnet_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Charlie"), + get_account_id_from_seed::("Dave"), + get_account_id_from_seed::("Eve"), + get_account_id_from_seed::("Ferdie"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), + get_account_id_from_seed::("Charlie//stash"), + get_account_id_from_seed::("Dave//stash"), + get_account_id_from_seed::("Eve//stash"), + get_account_id_from_seed::("Ferdie//stash"), + ], + id, + ) + }, + Vec::new(), + None, + None, + Some(properties), + Extensions { + relay_chain: "westend-local".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_polkadot_development_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); + ChainSpec::from_genesis( + // Name + "DataHighway Polkadot Development Testnet", + // ID + "datahighway-polkadot-dev", + ChainType::Development, + move || { + dev_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), + vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), + ], + id, + ) + }, + vec![], + None, + None, + Some(properties), + Extensions { + relay_chain: "polkadot-dev".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_polkadot_local_testnet_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "UNIT".into()); + properties.insert("tokenDecimals".into(), 18.into()); + ChainSpec::from_genesis( + // Name + "DataHighway Polkadot Local Testnet", + // ID + "datahighway-polkadot-local", + ChainType::Local, + move || { + testnet_genesis( + vec![get_from_seed::("Alice"), get_from_seed::("Bob")], + get_account_id_from_seed::("Alice"), + vec![ + hex!["a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21"].into(), + get_account_id_from_seed::("Alice"), + get_account_id_from_seed::("Bob"), + get_account_id_from_seed::("Charlie"), + get_account_id_from_seed::("Dave"), + get_account_id_from_seed::("Eve"), + get_account_id_from_seed::("Ferdie"), + get_account_id_from_seed::("Alice//stash"), + get_account_id_from_seed::("Bob//stash"), + get_account_id_from_seed::("Charlie//stash"), + get_account_id_from_seed::("Dave//stash"), + get_account_id_from_seed::("Eve//stash"), + get_account_id_from_seed::("Ferdie//stash"), + ], + id, + ) + }, + Vec::new(), + None, + None, + Some(properties), + Extensions { + relay_chain: "polkadot-local".into(), + para_id: id.into(), + }, + ) +} + +pub fn datahighway_westend_parachain_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); + properties.insert("tokenSymbol".into(), "BKL".into()); + properties.insert("tokenDecimals".into(), 18.into()); + let boot_nodes = vec![]; + ChainSpec::from_genesis( + "DataHighway Baikal Westend Parachain Testnet", + "datahighway-baikal-westend-parachain-testnet", + ChainType::Live, + move || { + baikal_testnet_genesis( + vec![ + // authority #1 ( - hex!["f64bae0f8fbe2eb59ff1c0ff760a085f55d69af5909aed280ebda09dc364d443"].into(), - hex!["ca907b74f921b74638eb40c289e9bf1142b0afcdb25e1a50383ab8f9d515da0d"].into(), - hex!["6a9da05f3e07d68bc29fb6cf9377a1537d59f082f49cb27a47881aef9fbaeaee"].unchecked_into(), - hex!["f2bf53bfe43164d88fcb2e83891137e7cf597857810a870b4c24fb481291b43a"].unchecked_into(), + // aura + hex!["2628f7a7bb067a23daa14b1aa9f10ff44545d37907f2d5cefee905236944060a"].unchecked_into() ), + // authority #2 ( - hex!["420a7b4a8c9f2388eded13c17841d2a0e08ea7c87eda84310da54f3ccecd3931"].into(), - hex!["ae69db7838fb139cbf4f93bf877faf5bbef242f3f5aac6eb4f111398e9385e7d"].into(), - hex!["9af1908ac74b042f4be713e10dcf6a2def3770cfce58951c839768e7d6bbcd8e"].unchecked_into(), - hex!["1e91a7902c89289f97756c4e20c0e9536f34de61c7c21af7773d670b0e644030"].unchecked_into(), + // aura + hex!["709f96ae975cd0cfafd98fb241810a2870d58fcfdbb1ee6892a8740525f4d871"].unchecked_into() ), + // authority #3 ( - hex!["ceecb6cc08c20ff44052ff19952a810d08363aa26ea4fb0a64a62a4630d37f28"].into(), - hex!["7652b25328d78d264aef01184202c9771b55f5b391359309a2559ef77fbbb33d"].into(), - hex!["b8902681768fbda7a29666e1de8a18f5be3c778d92cf29139959a86e6bff13e7"].unchecked_into(), - hex!["aaabcb653ce5dfd63035430dba10ce9aed5d064883b9e2b19ec5d9b26a457f57"].unchecked_into(), + // aura + hex!["ce7f04896b8d13da7a4f3f0a49bf6c1d77076043a1184a993ce75d96f6e0ee56"].unchecked_into() ), + // authority #4 ( - hex!["68bac5586028dd40db59a7becec349b42cd4229f9d3c31875c3eb7a57241cd42"].into(), - hex!["eec96d02877a45fa524fcee1c6b7c849cbdc8cee01a95f5db168c427ae766849"].into(), - hex!["f4807d86cca169a81d42fcf9c7abddeff107b0a73e9e7a809257ac7e4a164741"].unchecked_into(), - hex!["a49ac1053a40a2c7c33ffa41cb285cef7c3bc9db7e03a16d174cc8b5b5ac0247"].unchecked_into(), - ), + // aura + hex!["c27631914b41a8f58e24277158817d064a4144df430dd2cf7baeaa17414deb3e"].unchecked_into() + ) + ], - hex!["3c917f65753cd375582a6d7a1612c8f01df8805f5c8940a66e9bda3040f88f5d"].into(), + hex!["4842a3314ad10a4e0053b59658f50b3fc5f1b6a9bee98608813a4b399aa3bf38"].into(), vec![ + // Endow the Sudo account to cover transaction fees + hex!["4842a3314ad10a4e0053b59658f50b3fc5f1b6a9bee98608813a4b399aa3bf38"].into(), // Endow this account with the DHX DAO Unlocked Reserves Balance // 5EWKojw2i3uoqfWx1dEgVjBsvK5xuTr5G3NjXYh47H6ycBWr - hex!["6c029e6fc41ec44d420030071f04995bac19e59a0f0a1a610f9f0f6d689e2262"].into(), + hex!["6d6f646c70792f74727372790000000000000000000000000000000000000000"].into(), // Endow these accounts with a balance so they may bond as authorities - hex!["ca907b74f921b74638eb40c289e9bf1142b0afcdb25e1a50383ab8f9d515da0d"].into(), - hex!["ae69db7838fb139cbf4f93bf877faf5bbef242f3f5aac6eb4f111398e9385e7d"].into(), - hex!["7652b25328d78d264aef01184202c9771b55f5b391359309a2559ef77fbbb33d"].into(), - hex!["eec96d02877a45fa524fcee1c6b7c849cbdc8cee01a95f5db168c427ae766849"].into(), - hex!["f64bae0f8fbe2eb59ff1c0ff760a085f55d69af5909aed280ebda09dc364d443"].into(), - hex!["420a7b4a8c9f2388eded13c17841d2a0e08ea7c87eda84310da54f3ccecd3931"].into(), - hex!["ceecb6cc08c20ff44052ff19952a810d08363aa26ea4fb0a64a62a4630d37f28"].into(), - hex!["68bac5586028dd40db59a7becec349b42cd4229f9d3c31875c3eb7a57241cd42"].into(), + // authority #1 stash + hex!["b41b286a78df1a87a07db8c8794923d8cc581c4b1a03d90be9ce46a03fbbaa2e"].into(), + // authority #1 controller + hex!["bece77da74ab38eadde718ca30a0e46a0a3c5827f289c73d331755a7aaf19a11"].into(), + // authority #1 aura + hex!["2628f7a7bb067a23daa14b1aa9f10ff44545d37907f2d5cefee905236944060a"].into(), + // authority #2 stash + hex!["8cbd45146df7ce640231639dfd1a78dfd0dfb4d873b13226378c297110d50505"].into(), + // authority #2 controller + hex!["2001d4a5b0e3c3ab39b88e7f85193a9a8340ca1b5803e9178f52dae126cd595b"].into(), + // authority #2 aura + hex!["709f96ae975cd0cfafd98fb241810a2870d58fcfdbb1ee6892a8740525f4d871"].into(), + // authority #3 stash + hex!["b20f2fab27d842763eb355ad978865e34f44da2fbf7a4182ab035d1bad34f021"].into(), + // authority #3 controller + hex!["1aaaef87d9a3ec62ddcc959730b5d1b89d162fe8e432b0792540069bba518431"].into(), + // authority #3 aura + hex!["ce7f04896b8d13da7a4f3f0a49bf6c1d77076043a1184a993ce75d96f6e0ee56"].into(), + // authority #4 stash + hex!["62a173fb0a5bf0651559d560f44afa3de55d60cb0e0a06c9d0e1fef81f41b80a"].into(), + // authority #4 controller + hex!["82e71bb9a9a8fc2aefbd17a41a4f7686cd95f46f3e3e0522caa6147289581562"].into(), + // authority #4 aura + hex!["c27631914b41a8f58e24277158817d064a4144df430dd2cf7baeaa17414deb3e"].into(), ], id, ) }, - vec![], + boot_nodes, None, - Some("dhx-test"), + Some("dhx"), Some(properties), Extensions { - relay_chain: "rococo-local".into(), + relay_chain: "westend".into(), para_id: id.into(), }, ) } -pub fn rococo_parachain_config(id: ParaId) -> ChainSpec { - let mut properties = Map::new(); +pub fn datahighway_polkadot_parachain_config(id: ParaId) -> ChainSpec { + let mut properties = sc_chain_spec::Properties::new(); properties.insert("tokenSymbol".into(), "DHX".into()); properties.insert("tokenDecimals".into(), 18.into()); let boot_nodes = vec![]; ChainSpec::from_genesis( - "DataHighway", - "datahighway", + "DataHighway Tanganika Polkadot Parachain", + "datahighway-tanganika-polkadot-parachain", ChainType::Live, move || { - mk_genesis( + tanganika_testnet_genesis( vec![ + // authority #1 + ( + // aura + hex!["a8694c0c9e315e020844944ac76712c84f84a00007016e61c7e2f83fc56c5b3f"].unchecked_into() + ), + // authority #2 + ( + // aura + hex!["a8db9194388b3c038b126a5e2520515be2e989e3f380ce2cb5cf29d5a26c0522"].unchecked_into() + ), + // authority #3 + ( + // aura + hex!["b8212af17ba93d9175748469afa0a74357712ff4571a36d347df58cf3821cd3d"].unchecked_into() + ), + // authority #4 + ( + // aura + hex!["10a3d6854dc35e4b3fd77af4beda98f79dbe9edf5c29c14c8d57bec4bd733c0f"].unchecked_into() + ) + + ], + hex!["2402f0e0ce5856bb7224525aa9ab0408e4b75cf98d45bd0248a49d2bef01ee65"].into(), + vec![ + // Endow the Sudo account to cover transaction fees + hex!["2402f0e0ce5856bb7224525aa9ab0408e4b75cf98d45bd0248a49d2bef01ee65"].into(), // Endow this account with the DHX DAO Unlocked Reserves Balance // 5EWKojw2i3uoqfWx1dEgVjBsvK5xuTr5G3NjXYh47H6ycBWr - hex!["6c029e6fc41ec44d420030071f04995bac19e59a0f0a1a610f9f0f6d689e2262"].into(), + hex!["6d6f646c70792f74727372790000000000000000000000000000000000000000"].into(), // Endow these accounts with a balance so they may bond as authorities - hex!["ca907b74f921b74638eb40c289e9bf1142b0afcdb25e1a50383ab8f9d515da0d"].into(), - hex!["ae69db7838fb139cbf4f93bf877faf5bbef242f3f5aac6eb4f111398e9385e7d"].into(), - hex!["7652b25328d78d264aef01184202c9771b55f5b391359309a2559ef77fbbb33d"].into(), - hex!["eec96d02877a45fa524fcee1c6b7c849cbdc8cee01a95f5db168c427ae766849"].into(), - hex!["f64bae0f8fbe2eb59ff1c0ff760a085f55d69af5909aed280ebda09dc364d443"].into(), - hex!["420a7b4a8c9f2388eded13c17841d2a0e08ea7c87eda84310da54f3ccecd3931"].into(), - hex!["ceecb6cc08c20ff44052ff19952a810d08363aa26ea4fb0a64a62a4630d37f28"].into(), - hex!["68bac5586028dd40db59a7becec349b42cd4229f9d3c31875c3eb7a57241cd42"].into(), + // authority #1 stash + hex!["f8940eaa011b23f3469805062d1ae33c128caa6b10d71b04609f246cb947f92c"].into(), + // authority #1 controller + hex!["e409a7faebf39ba76f46bfac84c8001c1243b980f5bac89fdd887eed1401bb35"].into(), + // authority #1 aura + hex!["a8694c0c9e315e020844944ac76712c84f84a00007016e61c7e2f83fc56c5b3f"].into(), + // authority #2 stash + hex!["30a9048710bbc3791feb01e2c900f7290c09e124cd774b63950c52b8c6e5d644"].into(), + // authority #2 controller + hex!["a0b3f77eec476b584fc24631c6a957254bc3e2d9e91c8abb8038e40ba045471f"].into(), + // authority #2 aura + hex!["a8db9194388b3c038b126a5e2520515be2e989e3f380ce2cb5cf29d5a26c0522"].into(), + // authority #3 stash + hex!["a2616fd57d21ed85a2deb41bb0628645db5ba24e9dc26c912cfa54608bf21d01"].into(), + // authority #3 controller + hex!["46cfb03490de202950ea2433f0130730a3f84a4646acb6b10ff6510685457f40"].into(), + // authority #3 aura + hex!["b8212af17ba93d9175748469afa0a74357712ff4571a36d347df58cf3821cd3d"].into(), + // authority #4 stash + hex!["fa9089b3bcbad69451a162e1454a9e0aa9efc7bcdf9466f0a4bb762b4ed4755c"].into(), + // authority #4 controller + hex!["123c907b49233a2ccb6a4d92a1266b3e2feccc10e880e8659368a6338842ba7f"].into(), + // authority #4 aura + hex!["10a3d6854dc35e4b3fd77af4beda98f79dbe9edf5c29c14c8d57bec4bd733c0f"].into(), ], - hex!["3c917f65753cd375582a6d7a1612c8f01df8805f5c8940a66e9bda3040f88f5d"].into(), id, ) }, @@ -264,175 +706,264 @@ pub fn rococo_parachain_config(id: ParaId) -> ChainSpec { Some("dhx"), Some(properties), Extensions { - relay_chain: "rococo-chachacha".into(), - para_id: 2_u32.into(), + relay_chain: "polkadot".into(), + para_id: id.into(), }, ) } -// fn session_keys(grandpa: GrandpaId, babe: BabeId) -> SessionKeys { -// SessionKeys { -// grandpa, -// babe, -// } -// } - // total supply should be 100m, with 30m (30%) going to DHX DAO unlocked reserves, and the remaining // 70m split between the initial 8x accounts other than the reserves such that each should receive 8750 const INITIAL_BALANCE: u128 = 8_750_000_000_000_000_000_000_u128; // $70M 70_000_000_000_000_000_000_000_u128 const INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE: u128 = 30_000_000_000_000_000_000_000_u128; // $30M // const INITIAL_STAKING: u128 = 1_000_000_000_000_000_000_u128; -fn mk_genesis(endowed_accounts: Vec, root_key: AccountId, parachain_id: ParaId) -> GenesisConfig { +fn spreehafen_testnet_genesis( + initial_authorities: Vec<(AuraId)>, + root_key: AccountId, + endowed_accounts: Vec, + id: ParaId +) -> GenesisConfig { GenesisConfig { - frame_system: datahighway_runtime::SystemConfig { - code: datahighway_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), + system: datahighway_parachain_runtime::SystemConfig { + code: datahighway_parachain_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), changes_trie_config: Default::default(), }, - pallet_balances: BalancesConfig { + balances: BalancesConfig { balances: endowed_accounts .iter() .cloned() - .map(|x| (x, INITIAL_BALANCE)) - .into_iter() - .map(|k| (k.0, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE)) + .map(|x| { + // Insert Public key (hex) of the account without the 0x prefix below + if x == UncheckedFrom::unchecked_from( + hex!("6d6f646c70792f74727372790000000000000000000000000000000000000000").into(), + ) { + // If we use println, then the top of the chain specification file that gets + // generated contains the println, and then we have to remove the println from + // the top of that file to generate the "raw" chain definition + // println!("endowed_account treasury {:?}", x.clone()); + return (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE); + } else { + // println!("endowed_account {:?}", x.clone()); + return (x, INITIAL_BALANCE); + } + }) .collect(), }, - pallet_collective_Instance1: Default::default(), - pallet_membership_Instance1: GeneralCouncilMembershipConfig { + general_council: Default::default(), + general_council_membership: GeneralCouncilMembershipConfig { members: vec![root_key.clone()], phantom: Default::default(), }, pallet_treasury: Default::default(), - pallet_sudo: SudoConfig { + sudo: SudoConfig { key: root_key.clone(), }, - parachain_info: datahighway_runtime::ParachainInfoConfig { - parachain_id, + parachain_info: datahighway_parachain_runtime::ParachainInfoConfig { + parachain_id: id, }, + aura: AuraConfig { authorities: initial_authorities }, + aura_ext: Default::default(), + parachain_system: Default::default(), } } fn testnet_genesis( - _initial_authorities: Vec<(AccountId, AccountId, GrandpaId, BabeId)>, + initial_authorities: Vec, root_key: AccountId, endowed_accounts: Vec, id: ParaId, ) -> GenesisConfig { GenesisConfig { - frame_system: datahighway_runtime::SystemConfig { - code: datahighway_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), + system: datahighway_parachain_runtime::SystemConfig { + code: datahighway_parachain_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), changes_trie_config: Default::default(), }, - // pallet_indices: IndicesConfig { - // indices: endowed_accounts.iter().enumerate().map(|(index, x)| (index as u32, (*x).clone())).collect(), - // }, - pallet_balances: BalancesConfig { + balances: BalancesConfig { balances: endowed_accounts .iter() .cloned() - .map(|x| (x, INITIAL_BALANCE)) - .into_iter() - .map(|k| (k.0, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE)) - .collect(), + .map(|x| { + // Insert Public key (hex) of the account without the 0x prefix below + if x == UncheckedFrom::unchecked_from( + hex!("a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21").into(), + ) { + // If we use println, then the top of the chain specification file that gets + // generated contains the println, and then we have to remove the println from + // the top of that file to generate the "raw" chain definition + // println!("endowed_account treasury {:?}", x.clone()); + return (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE); + } else { + // println!("endowed_account {:?}", x.clone()); + return (x, INITIAL_BALANCE); + } + }) + .collect(), }, - // pallet_session: SessionConfig { - // keys: initial_authorities - // .iter() - // .map(|x| (x.0.clone(), x.0.clone(), session_keys(x.2.clone(), x.3.clone()))) - // .collect::>(), - // }, - // pallet_staking: StakingConfig { - // validator_count: initial_authorities.len() as u32 * 2, - // minimum_validator_count: initial_authorities.len() as u32, - // stakers: initial_authorities - // .iter() - // .map(|x| (x.0.clone(), x.1.clone(), INITIAL_STAKING, StakerStatus::Validator)) - // .collect(), - // invulnerables: initial_authorities.iter().map(|x| x.0.clone()).collect(), - // slash_reward_fraction: Perbill::from_percent(10), - // ..Default::default() - // }, - pallet_sudo: SudoConfig { + sudo: SudoConfig { key: root_key.clone(), }, - // pallet_babe: BabeConfig { - // authorities: vec![], - // }, - // pallet_grandpa: GrandpaConfig { - // authorities: vec![], - // }, - pallet_collective_Instance1: Default::default(), - pallet_membership_Instance1: GeneralCouncilMembershipConfig { + general_council: Default::default(), + general_council_membership: GeneralCouncilMembershipConfig { members: vec![root_key.clone()], phantom: Default::default(), }, pallet_treasury: Default::default(), - parachain_info: datahighway_runtime::ParachainInfoConfig { + parachain_info: datahighway_parachain_runtime::ParachainInfoConfig { parachain_id: id, }, + aura: AuraConfig { authorities: initial_authorities }, + aura_ext: Default::default(), + parachain_system: Default::default(), } } fn dev_genesis( - _initial_authorities: Vec<(AccountId, AccountId, GrandpaId, BabeId)>, + initial_authorities: Vec, root_key: AccountId, endowed_accounts: Vec, id: ParaId, -) -> datahighway_runtime::GenesisConfig { - datahighway_runtime::GenesisConfig { - frame_system: datahighway_runtime::SystemConfig { - code: datahighway_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), +) -> datahighway_parachain_runtime::GenesisConfig { + datahighway_parachain_runtime::GenesisConfig { + system: datahighway_parachain_runtime::SystemConfig { + code: datahighway_parachain_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), changes_trie_config: Default::default(), }, - // pallet_indices: IndicesConfig { - // indices: endowed_accounts.iter().enumerate().map(|(index, x)| (index as u32, (*x).clone())).collect(), - // }, - pallet_balances: datahighway_runtime::BalancesConfig { - balances: endowed_accounts.iter().cloned().map(|x| - // Insert Public key (hex) of the account without the 0x prefix below - if x == UncheckedFrom::unchecked_from(hex!("a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21").into()) { - (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE) - } else { - (x, INITIAL_BALANCE) - } - ) - .collect(), + balances: BalancesConfig { + balances: endowed_accounts + .iter() + .cloned() + .map(|x| { + // Insert Public key (hex) of the account without the 0x prefix below + if x == UncheckedFrom::unchecked_from( + hex!("a42b7518d62a942344fec55d414f1654bf3fd325dbfa32a3c30534d5976acb21").into(), + ) { + // If we use println, then the top of the chain specification file that gets + // generated contains the println, and then we have to remove the println from + // the top of that file to generate the "raw" chain definition + // println!("endowed_account treasury {:?}", x.clone()); + return (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE); + } else { + // println!("endowed_account {:?}", x.clone()); + return (x, INITIAL_BALANCE); + } + }) + .collect(), + }, + sudo: SudoConfig { + key: root_key.clone(), + }, + general_council: Default::default(), + general_council_membership: GeneralCouncilMembershipConfig { + members: vec![root_key], + phantom: Default::default(), }, - // pallet_session: SessionConfig { - // keys: initial_authorities - // .iter() - // .map(|x| (x.0.clone(), x.0.clone(), session_keys(x.2.clone(), x.3.clone()))) - // .collect::>(), - // }, - // pallet_staking: StakingConfig { - // validator_count: initial_authorities.len() as u32 * 2, - // minimum_validator_count: initial_authorities.len() as u32, - // stakers: initial_authorities - // .iter() - // .map(|x| (x.0.clone(), x.1.clone(), INITIAL_STAKING, StakerStatus::Validator)) - // .collect(), - // invulnerables: initial_authorities.iter().map(|x| x.0.clone()).collect(), - // slash_reward_fraction: Perbill::from_percent(10), - // ..Default::default() - // }, - pallet_sudo: datahighway_runtime::SudoConfig { + pallet_treasury: Default::default(), + parachain_info: datahighway_parachain_runtime::ParachainInfoConfig { + parachain_id: id, + }, + aura: AuraConfig { authorities: initial_authorities }, + aura_ext: Default::default(), + parachain_system: Default::default(), + } +} + +fn baikal_testnet_genesis( + initial_authorities: Vec<(AuraId)>, + root_key: AccountId, + endowed_accounts: Vec, + id: ParaId +) -> GenesisConfig { + GenesisConfig { + system: datahighway_parachain_runtime::SystemConfig { + code: datahighway_parachain_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), + changes_trie_config: Default::default(), + }, + balances: BalancesConfig { + balances: endowed_accounts + .iter() + .cloned() + .map(|x| { + // Insert Public key (hex) of the account without the 0x prefix below + if x == UncheckedFrom::unchecked_from( + hex!("6d6f646c70792f74727372790000000000000000000000000000000000000000").into(), + ) { + // If we use println, then the top of the chain specification file that gets + // generated contains the println, and then we have to remove the println from + // the top of that file to generate the "raw" chain definition + // println!("endowed_account treasury {:?}", x.clone()); + return (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE); + } else { + // println!("endowed_account {:?}", x.clone()); + return (x, INITIAL_BALANCE); + } + }) + .collect(), + }, + general_council: Default::default(), + general_council_membership: GeneralCouncilMembershipConfig { + members: vec![root_key.clone()], + phantom: Default::default(), + }, + pallet_treasury: Default::default(), + sudo: SudoConfig { key: root_key.clone(), }, - // pallet_babe: BabeConfig { - // authorities: vec![], - // }, - // pallet_grandpa: GrandpaConfig { - // authorities: vec![], - // }, - pallet_collective_Instance1: Default::default(), - pallet_membership_Instance1: GeneralCouncilMembershipConfig { + parachain_info: datahighway_parachain_runtime::ParachainInfoConfig { + parachain_id: id, + }, + aura: AuraConfig { authorities: initial_authorities }, + aura_ext: Default::default(), + parachain_system: Default::default(), + } +} + +fn tanganika_testnet_genesis( + initial_authorities: Vec<(AuraId)>, + root_key: AccountId, + endowed_accounts: Vec, + id: ParaId +) -> GenesisConfig { + GenesisConfig { + system: datahighway_parachain_runtime::SystemConfig { + code: datahighway_parachain_runtime::WASM_BINARY.expect("WASM binary was not build, please build it!").to_vec(), + changes_trie_config: Default::default(), + }, + balances: BalancesConfig { + balances: endowed_accounts + .iter() + .cloned() + .map(|x| { + // Insert Public key (hex) of the account without the 0x prefix below + if x == UncheckedFrom::unchecked_from( + hex!("6d6f646c70792f74727372790000000000000000000000000000000000000000").into(), + ) { + // If we use println, then the top of the chain specification file that gets + // generated contains the println, and then we have to remove the println from + // the top of that file to generate the "raw" chain definition + // println!("endowed_account treasury {:?}", x.clone()); + return (x, INITIAL_DHX_DAO_TREASURY_UNLOCKED_RESERVES_BALANCE); + } else { + // println!("endowed_account {:?}", x.clone()); + return (x, INITIAL_BALANCE); + } + }) + .collect(), + }, + general_council: Default::default(), + general_council_membership: GeneralCouncilMembershipConfig { members: vec![root_key.clone()], phantom: Default::default(), }, pallet_treasury: Default::default(), - parachain_info: datahighway_runtime::ParachainInfoConfig { + sudo: SudoConfig { + key: root_key.clone(), + }, + parachain_info: datahighway_parachain_runtime::ParachainInfoConfig { parachain_id: id, }, + aura: AuraConfig { authorities: initial_authorities }, + aura_ext: Default::default(), + parachain_system: Default::default(), } } diff --git a/node/src/cli.rs b/node/src/cli.rs index ece1da27d..6707c67bd 100755 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -1,6 +1,7 @@ -use std::path::PathBuf; - +use crate::chain_spec; +use cumulus_client_cli; use sc_cli; +use std::path::PathBuf; use structopt::StructOpt; /// Sub-commands supported by the collator. @@ -30,7 +31,7 @@ pub enum Subcommand { ImportBlocks(sc_cli::ImportBlocksCmd), /// Remove the whole chain. - PurgeChain(sc_cli::PurgeChainCmd), + PurgeChain(cumulus_client_cli::PurgeChainCmd), /// Revert the chain to a previous state. Revert(sc_cli::RevertCmd), @@ -44,8 +45,8 @@ pub struct ExportGenesisStateCommand { pub output: Option, /// Id of the parachain this state is for. - #[structopt(long, default_value = "100")] - pub parachain_id: u32, + #[structopt(long, conflicts_with = "chain")] + pub parachain_id: Option, /// Write output in binary. Default is to write in hex. #[structopt(short, long)] @@ -72,24 +73,6 @@ pub struct ExportGenesisWasmCommand { pub chain: Option, } -#[derive(Debug, StructOpt)] -pub struct RunCmd { - #[structopt(flatten)] - pub base: sc_cli::RunCmd, - - /// Id of the parachain this collator collates for. - #[structopt(long)] - pub parachain_id: Option, -} - -impl std::ops::Deref for RunCmd { - type Target = sc_cli::RunCmd; - - fn deref(&self) -> &Self::Target { - &self.base - } -} - #[derive(Debug, StructOpt)] #[structopt(settings = &[ structopt::clap::AppSettings::GlobalVersion, @@ -101,13 +84,7 @@ pub struct Cli { pub subcommand: Option, #[structopt(flatten)] - pub run: RunCmd, - - /// Run node as collator. - /// - /// Note that this is the same as running with `--validator`. - #[structopt(long, conflicts_with = "validator")] - pub collator: bool, + pub run: cumulus_client_cli::RunCmd, /// Relaychain arguments #[structopt(raw = true)] @@ -127,12 +104,17 @@ pub struct RelayChainCli { } impl RelayChainCli { - /// Create a new instance of `Self`. + /// Parse the relay chain CLI parameters using the para chain `Configuration`. pub fn new<'a>( - base_path: Option, - chain_id: Option, + para_config: &sc_service::Configuration, relay_chain_args: impl Iterator, ) -> Self { + let extension = chain_spec::Extensions::try_get(&*para_config.chain_spec); + let chain_id = extension.map(|e| e.relay_chain.clone()); + let base_path = para_config + .base_path + .as_ref() + .map(|x| x.path().join("polkadot")); Self { base_path, chain_id, diff --git a/node/src/command.rs b/node/src/command.rs index 630fe7adf..ea0407e9b 100755 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -1,15 +1,13 @@ use crate::{ chain_spec, - cli::{ - Cli, - RelayChainCli, - Subcommand, - }, + cli::{Cli, RelayChainCli, Subcommand}, + service::{new_partial, DataHighwayParachainRuntimeExecutor} }; +use datahighway_parachain_runtime::RuntimeApi; use codec::Encode; use cumulus_client_service::genesis::generate_genesis_block; use cumulus_primitives_core::ParaId; -use datahighway_runtime::Block; +use datahighway_parachain_runtime::Block; use log::info; use polkadot_parachain::primitives::AccountIdConversion; use sc_cli::{ @@ -38,12 +36,26 @@ use std::{ net::SocketAddr, }; +// Default parachain-id CLI option value where: +// 2000 is for cumulus workshop testing on local +// 2005 is for rococo +// 2002 is for chachacha +const PARA_ID: u32 = 2000; + fn load_spec(id: &str, para_id: ParaId) -> std::result::Result, String> { Ok(match id { - "dev" => Box::new(chain_spec::development_config(para_id)), - "" | "local" => Box::new(chain_spec::local_testnet_config(para_id)), - "harbour" => Box::new(chain_spec::harbor_testnet_config(para_id)), - "rococo" => Box::new(chain_spec::rococo_parachain_config(para_id)), + "dev" | "rococo-dev"=> Box::new(chain_spec::datahighway_rococo_development_config(para_id)), + "" | "local" | "rococo-local"=> Box::new(chain_spec::datahighway_rococo_local_testnet_config(para_id)), + "chachacha-dev"=> Box::new(chain_spec::datahighway_chachacha_development_config(para_id)), + "chachacha-local"=> Box::new(chain_spec::datahighway_chachacha_local_testnet_config(para_id)), + "rococo" => Box::new(chain_spec::datahighway_rococo_parachain_config(para_id)), + "chachacha" => Box::new(chain_spec::datahighway_chachacha_parachain_config(para_id)), + "westend-dev"=> Box::new(chain_spec::datahighway_westend_development_config(para_id)), + "westend-local"=> Box::new(chain_spec::datahighway_westend_local_testnet_config(para_id)), + "westend" => Box::new(chain_spec::datahighway_westend_parachain_config(para_id)), + "polkadot-dev"=> Box::new(chain_spec::datahighway_polkadot_development_config(para_id)), + "polkadot-local"=> Box::new(chain_spec::datahighway_polkadot_local_testnet_config(para_id)), + "polkadot" => Box::new(chain_spec::datahighway_polkadot_parachain_config(para_id)), path => Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?), }) } @@ -71,19 +83,19 @@ impl SubstrateCli for Cli { } fn support_url() -> String { - "https://github.com/substrate-developer-hub/substrate-parachain-template/issues/new".into() + "https://github.com/DataHighway-DHX/node/issues/new".into() } fn copyright_start_year() -> i32 { - 2017 + 2021 } fn load_spec(&self, id: &str) -> std::result::Result, String> { - load_spec(id, self.run.parachain_id.unwrap_or(200).into()) + load_spec(id, self.run.parachain_id.unwrap_or(PARA_ID).into()) } fn native_runtime_version(_: &Box) -> &'static RuntimeVersion { - &datahighway_runtime::VERSION + &datahighway_parachain_runtime::VERSION } } @@ -108,11 +120,11 @@ impl SubstrateCli for RelayChainCli { } fn support_url() -> String { - "https://github.com/substrate-developer-hub/substrate-parachain-template/issues/new".into() + "https://github.com/DataHighway-DHX/node/issues/new".into() } fn copyright_start_year() -> i32 { - 2017 + 2021 } fn load_spec(&self, id: &str) -> std::result::Result, String> { @@ -133,6 +145,24 @@ fn extract_genesis_wasm(chain_spec: &Box) -> Result {{ + let runner = $cli.create_runner($cmd)?; + runner.async_run(|$config| { + let $components = new_partial::< + RuntimeApi, + DataHighwayParachainRuntimeExecutor, + _ + >( + &$config, + crate::service::parachain_build_import_queue, + )?; + let task_manager = $components.task_manager; + { $( $code )* }.map(|v| (v, task_manager)) + }) + }} +} + /// Parse command line arguments into service configuration. pub fn run() -> Result<()> { let cli = Cli::from_args(); @@ -143,67 +173,49 @@ pub fn run() -> Result<()> { runner.sync_run(|config| cmd.run(config.chain_spec, config.network)) } Some(Subcommand::CheckBlock(cmd)) => { - let runner = cli.create_runner(cmd)?; - runner.async_run(|config| { - let PartialComponents { - client, - task_manager, - import_queue, - .. - } = crate::service::new_partial(&config)?; - Ok((cmd.run(client, import_queue), task_manager)) - }) + construct_async_run!(|components, cli, cmd, config| { + Ok(cmd.run(components.client, components.import_queue)) + }) } Some(Subcommand::ExportBlocks(cmd)) => { - let runner = cli.create_runner(cmd)?; - runner.async_run(|config| { - let PartialComponents { - client, - task_manager, - .. - } = crate::service::new_partial(&config)?; - Ok((cmd.run(client, config.database), task_manager)) - }) + construct_async_run!(|components, cli, cmd, config| { + Ok(cmd.run(components.client, config.database)) + }) } Some(Subcommand::ExportState(cmd)) => { - let runner = cli.create_runner(cmd)?; - runner.async_run(|config| { - let PartialComponents { - client, - task_manager, - .. - } = crate::service::new_partial(&config)?; - Ok((cmd.run(client, config.chain_spec), task_manager)) - }) + construct_async_run!(|components, cli, cmd, config| { + Ok(cmd.run(components.client, config.chain_spec)) + }) } Some(Subcommand::ImportBlocks(cmd)) => { - let runner = cli.create_runner(cmd)?; - runner.async_run(|config| { - let PartialComponents { - client, - task_manager, - import_queue, - .. - } = crate::service::new_partial(&config)?; - Ok((cmd.run(client, import_queue), task_manager)) - }) + construct_async_run!(|components, cli, cmd, config| { + Ok(cmd.run(components.client, components.import_queue)) + }) } Some(Subcommand::PurgeChain(cmd)) => { let runner = cli.create_runner(cmd)?; - runner.sync_run(|config| cmd.run(config.database)) - } - Some(Subcommand::Revert(cmd)) => { - let runner = cli.create_runner(cmd)?; - runner.async_run(|config| { - let PartialComponents { - client, - task_manager, - backend, - .. - } = crate::service::new_partial(&config)?; - Ok((cmd.run(client, backend), task_manager)) + + runner.sync_run(|config| { + let polkadot_cli = RelayChainCli::new( + &config, + [RelayChainCli::executable_name().to_string()] + .iter() + .chain(cli.relaychain_args.iter()), + ); + + let polkadot_config = SubstrateCli::create_configuration( + &polkadot_cli, + &polkadot_cli, + config.task_executor.clone(), + ) + .map_err(|err| format!("Relay chain argument error: {}", err))?; + + cmd.run(config, polkadot_config) }) } + Some(Subcommand::Revert(cmd)) => construct_async_run!(|components, cli, cmd, config| { + Ok(cmd.run(components.client, components.backend)) + }), Some(Subcommand::ExportGenesisState(params)) => { let mut builder = sc_cli::LoggerBuilder::new(""); builder.with_profiling(sc_tracing::TracingReceiver::Log, ""); @@ -211,7 +223,7 @@ pub fn run() -> Result<()> { let block: Block = generate_genesis_block(&load_spec( ¶ms.chain.clone().unwrap_or_default(), - params.parachain_id.into(), + params.parachain_id.unwrap_or(PARA_ID).into(), )?)?; let raw_header = block.header().encode(); let output_buf = if params.raw { @@ -249,54 +261,52 @@ pub fn run() -> Result<()> { Ok(()) } None => { - let runner = cli.create_runner(&*cli.run)?; - - runner.run_node_until_exit(|config| { - async move { - // TODO - let key = sp_core::Pair::generate().0; - - let extension = chain_spec::Extensions::try_get(&*config.chain_spec); - let relay_chain_id = extension.map(|e| e.relay_chain.clone()); - let para_id = extension.map(|e| e.para_id); - - let polkadot_cli = RelayChainCli::new( - config.base_path.as_ref().map(|x| x.path().join("polkadot")), - relay_chain_id, - [RelayChainCli::executable_name().to_string()].iter().chain(cli.relaychain_args.iter()), - ); - - let id = ParaId::from(cli.run.parachain_id.or(para_id).unwrap_or(200)); - - let parachain_account = - AccountIdConversion::::into_account(&id); - - let block: Block = generate_genesis_block(&config.chain_spec).map_err(|e| format!("{:?}", e))?; - let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); - - let task_executor = config.task_executor.clone(); - let polkadot_config = - SubstrateCli::create_configuration(&polkadot_cli, &polkadot_cli, task_executor) - .map_err(|err| format!("Relay chain argument error: {}", err))?; - let collator = cli.run.base.validator || cli.collator; - - info!("Parachain id: {:?}", id); - info!("Parachain Account: {}", parachain_account); - info!("Parachain genesis state: {}", genesis_state); - info!( - "Is collating: {}", - if collator { - "yes" - } else { - "no" - } - ); - - crate::service::start_node(config, key, polkadot_config, id, collator) - .await - .map(|r| r.0) - .map_err(Into::into) - } + let runner = cli.create_runner(&cli.run.normalize())?; + + runner.run_node_until_exit(|config| async move { + let para_id = + chain_spec::Extensions::try_get(&*config.chain_spec).map(|e| e.para_id); + + let polkadot_cli = RelayChainCli::new( + &config, + [RelayChainCli::executable_name().to_string()] + .iter() + .chain(cli.relaychain_args.iter()), + ); + + let id = ParaId::from(cli.run.parachain_id.or(para_id).unwrap_or(PARA_ID)); + + let parachain_account = + AccountIdConversion::::into_account(&id); + + let block: Block = + generate_genesis_block(&config.chain_spec).map_err(|e| format!("{:?}", e))?; + let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); + + let task_executor = config.task_executor.clone(); + let polkadot_config = SubstrateCli::create_configuration( + &polkadot_cli, + &polkadot_cli, + task_executor, + ) + .map_err(|err| format!("Relay chain argument error: {}", err))?; + + info!("Parachain id: {:?}", id); + info!("Parachain Account: {}", parachain_account); + info!("Parachain genesis state: {}", genesis_state); + info!( + "Is collating: {}", + if config.role.is_authority() { + "yes" + } else { + "no" + } + ); + + crate::service::start_node(config, polkadot_config, id) + .await + .map(|r| r.0) + .map_err(Into::into) }) } } diff --git a/node/src/service.rs b/node/src/service.rs index fe6822293..f61087269 100755 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -1,6 +1,7 @@ -use cumulus_client_consensus_relay_chain::{ - build_relay_chain_consensus, BuildRelayChainConsensusParams, +use cumulus_client_consensus_aura::{ + build_aura_consensus, BuildAuraConsensusParams, SlotProportion, }; +use cumulus_client_consensus_common::ParachainConsensus; use cumulus_client_network::build_block_announce_validator; use cumulus_client_service::{ prepare_node_config, @@ -9,10 +10,11 @@ use cumulus_client_service::{ StartCollatorParams, StartFullNodeParams, }; -use datahighway_runtime::{ - opaque::Block, +use datahighway_parachain_runtime::{ + opaque::{Block, Header}, RuntimeApi, }; +use datahighway_parachain_runtime::Hash; use polkadot_primitives::v0::CollatorPair; use sc_executor::native_executor_instance; pub use sc_executor::NativeExecutor; @@ -24,39 +26,69 @@ use sc_service::{ TFullClient, TaskManager, }; +use sc_client_api::ExecutorProvider; +use sp_api::ConstructRuntimeApi; use sp_core::Pair; use sp_runtime::traits::BlakeTwo256; use sp_trie::PrefixedMemoryDB; use std::sync::Arc; use cumulus_primitives_core::ParaId; -use sc_telemetry::{Telemetry, TelemetryWorker, TelemetryWorkerHandle}; - +use sp_consensus::SlotData; +use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, TelemetryWorkerHandle}; +use substrate_prometheus_endpoint::Registry; +use sp_keystore::SyncCryptoStorePtr; +use sc_network::NetworkService; // Native executor instance. native_executor_instance!( - pub Executor, - datahighway_runtime::api::dispatch, - datahighway_runtime::native_version, + pub DataHighwayParachainRuntimeExecutor, + datahighway_parachain_runtime::api::dispatch, + datahighway_parachain_runtime::native_version, ); /// Starts a `ServiceBuilder` for a full service. /// /// Use this macro if you don't actually need the full service, but just the builder in order to /// be able to perform chain operations. -pub fn new_partial( +pub fn new_partial( config: &Configuration, + build_import_queue: BIQ, ) -> Result< PartialComponents< TFullClient, TFullBackend, (), - sp_consensus::import_queue::BasicQueue>, + sc_consensus::DefaultImportQueue>, sc_transaction_pool::FullPool>, - (Option, Option), + (Option, Option), >, sc_service::Error, -> { - let inherent_data_providers = sp_inherents::InherentDataProviders::new(); +> + where + RuntimeApi: ConstructRuntimeApi> + + Send + + Sync + + 'static, + RuntimeApi::RuntimeApi: sp_transaction_pool::runtime_api::TaggedTransactionQueue + + sp_api::Metadata + + sp_session::SessionKeys + + sp_api::ApiExt< + Block, + StateBackend = sc_client_api::StateBackendFor, Block>, + > + sp_offchain::OffchainWorkerApi + + sp_block_builder::BlockBuilder, + sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + Executor: sc_executor::NativeExecutionDispatch + 'static, + BIQ: FnOnce( + Arc>, + &Configuration, + Option, + &TaskManager, + ) -> Result< + sc_consensus::DefaultImportQueue>, + sc_service::Error, + >, +{ let telemetry = config.telemetry_endpoints.clone() .filter(|x| !x.is_empty()) @@ -85,26 +117,21 @@ pub fn new_partial( }); - - let registry = config.prometheus_registry(); - let transaction_pool = sc_transaction_pool::BasicPool::new_full( config.transaction_pool.clone(), config.role.is_authority().into(), config.prometheus_registry(), - task_manager.spawn_handle(), + task_manager.spawn_essential_handle(), client.clone(), ); - let import_queue = cumulus_client_consensus_relay_chain::import_queue( - client.clone(), + let import_queue = build_import_queue( client.clone(), - inherent_data_providers.clone(), - &task_manager.spawn_essential_handle(), - registry.clone(), + config, + telemetry.as_ref().map(|telemetry| telemetry.handle()), + &task_manager, )?; - let params = PartialComponents { backend, client, @@ -112,9 +139,8 @@ pub fn new_partial( keystore_container, task_manager, transaction_pool, - inherent_data_providers, select_chain: (), - other: (telemetry, telemetry_worker_handle), + other: (telemetry, telemetry_worker_handle), }; Ok(params) @@ -124,20 +150,55 @@ pub fn new_partial( /// /// This is the actual implementation that is abstract over the executor and the runtime api. #[sc_tracing::logging::prefix_logs_with("Parachain")] -async fn start_node_impl( - parachain_config: Configuration, - collator_key: CollatorPair, - polkadot_config: Configuration, - id: ParaId, - validator: bool, - rpc_ext_builder: RB, +async fn start_node_impl( + parachain_config: Configuration, + polkadot_config: Configuration, + id: ParaId, + rpc_ext_builder: RB, + build_import_queue: BIQ, + build_consensus: BIC, ) -> sc_service::error::Result<(TaskManager, Arc>)> -where - RB: Fn( - Arc>, - ) -> jsonrpc_core::IoHandler - + Send - + 'static, + where + RuntimeApi: ConstructRuntimeApi> + + Send + + Sync + + 'static, + RuntimeApi::RuntimeApi: sp_transaction_pool::runtime_api::TaggedTransactionQueue + + sp_api::Metadata + + sp_session::SessionKeys + + sp_api::ApiExt< + Block, + StateBackend = sc_client_api::StateBackendFor, Block>, + > + sp_offchain::OffchainWorkerApi + + sp_block_builder::BlockBuilder + + cumulus_primitives_core::CollectCollationInfo, + sc_client_api::StateBackendFor, Block>: sp_api::StateBackend, + Executor: sc_executor::NativeExecutionDispatch + 'static, + RB: Fn( + Arc>, + ) -> Result, sc_service::Error> + + Send + + 'static, + BIQ: FnOnce( + Arc>, + &Configuration, + Option, + &TaskManager, + ) -> Result< + sc_consensus::DefaultImportQueue>, + sc_service::Error, + >, + BIC: FnOnce( + Arc>, + Option<&Registry>, + Option, + &TaskManager, + &polkadot_service::NewFull, + Arc>>, + Arc>, + SyncCryptoStorePtr, + bool, + ) -> Result>, sc_service::Error>, { if matches!(parachain_config.role, Role::Light) { return Err("Light client not supported!".into()); @@ -145,46 +206,42 @@ where let parachain_config = prepare_node_config(parachain_config); - let params = new_partial(¶chain_config)?; - params - .inherent_data_providers - .register_provider(sp_timestamp::InherentDataProvider) - .unwrap(); + let params = new_partial::(¶chain_config, build_import_queue)?; let (mut telemetry, telemetry_worker_handle) = params.other; - let polkadot_full_node = - cumulus_client_service::build_polkadot_full_node( - polkadot_config, - collator_key.clone(), - telemetry_worker_handle, - ) - .map_err(|e| match e { - polkadot_service::Error::Sub(x) => x, - s => format!("{}", s).into(), - })?; + let relay_chain_full_node = cumulus_client_service::build_polkadot_full_node( + polkadot_config, + telemetry_worker_handle, + ) + .map_err(|e| match e { + polkadot_service::Error::Sub(x) => x, + s => format!("{}", s).into(), + })?; let client = params.client.clone(); let backend = params.backend.clone(); - let block_announce_validator = build_block_announce_validator( - polkadot_full_node.client.clone(), - id, - Box::new(polkadot_full_node.network.clone()), - polkadot_full_node.backend.clone(), - ); - + let block_announce_validator = build_block_announce_validator( + relay_chain_full_node.client.clone(), + id, + Box::new(relay_chain_full_node.network.clone()), + relay_chain_full_node.backend.clone(), + ); + let force_authoring = parachain_config.force_authoring; + let validator = parachain_config.role.is_authority(); let prometheus_registry = parachain_config.prometheus_registry().cloned(); let transaction_pool = params.transaction_pool.clone(); let mut task_manager = params.task_manager; - let import_queue = params.import_queue; - let (network, network_status_sinks, system_rpc_tx, start_network) = + let import_queue = cumulus_client_service::SharedImportQueue::new(params.import_queue); + let (network, system_rpc_tx, start_network) = sc_service::build_network(sc_service::BuildNetworkParams { config: ¶chain_config, client: client.clone(), transaction_pool: transaction_pool.clone(), spawn_handle: task_manager.spawn_handle(), - import_queue, + import_queue: import_queue.clone(), on_demand: None, block_announce_validator_builder: Some(Box::new(|_| block_announce_validator)), + warp_sync: None, })?; let rpc_client = client.clone(); @@ -201,7 +258,6 @@ where keystore: params.keystore_container.sync_keystore(), backend: backend.clone(), network: network.clone(), - network_status_sinks, system_rpc_tx, telemetry: telemetry.as_mut(), })?; @@ -212,48 +268,45 @@ where }; if validator { - let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording( - task_manager.spawn_handle(), - client.clone(), - transaction_pool, - prometheus_registry.as_ref(), - telemetry.as_ref().map(|x| x.handle()), - ); - let spawner = task_manager.spawn_handle(); - - let parachain_consensus = build_relay_chain_consensus(BuildRelayChainConsensusParams { - para_id: id, - proposer_factory, - inherent_data_providers: params.inherent_data_providers, - block_import: client.clone(), - relay_chain_client: polkadot_full_node.client.clone(), - relay_chain_backend: polkadot_full_node.backend.clone(), - }); - - let params = StartCollatorParams { - para_id: id, - block_status: client.clone(), - announce_block, - client: client.clone(), - task_manager: &mut task_manager, - collator_key, - relay_chain_full_node: polkadot_full_node, - spawner, - backend, - parachain_consensus, - }; - - start_collator(params).await?; + let parachain_consensus = build_consensus( + client.clone(), + prometheus_registry.as_ref(), + telemetry.as_ref().map(|t| t.handle()), + &task_manager, + &relay_chain_full_node, + transaction_pool, + network, + params.keystore_container.sync_keystore(), + force_authoring, + )?; + + let spawner = task_manager.spawn_handle(); + + let params = StartCollatorParams { + para_id: id, + block_status: client.clone(), + announce_block, + client: client.clone(), + task_manager: &mut task_manager, + relay_chain_full_node, + spawner, + parachain_consensus, + import_queue, + }; + + + start_collator(params).await?; } else { - let params = StartFullNodeParams { - client: client.clone(), - announce_block, - task_manager: &mut task_manager, - para_id: id, - polkadot_full_node, - }; + let params = StartFullNodeParams { + client: client.clone(), + announce_block, + task_manager: &mut task_manager, + para_id: id, + relay_chain_full_node, + }; - start_full_node(params)?; + + start_full_node(params)?; } start_network.start_network(); @@ -261,21 +314,140 @@ where Ok((task_manager, client)) } +/// Build the import queue for the the parachain runtime. +pub fn parachain_build_import_queue( + client: Arc>, + config: &Configuration, + telemetry: Option, + task_manager: &TaskManager, +) -> Result< + sc_consensus::DefaultImportQueue< + Block, + TFullClient, + >, + sc_service::Error, +> { + let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; + + + cumulus_client_consensus_aura::import_queue::< + sp_consensus_aura::sr25519::AuthorityPair, + _, + _, + _, + _, + _, + _, + >(cumulus_client_consensus_aura::ImportQueueParams { + block_import: client.clone(), + client: client.clone(), + create_inherent_data_providers: move |_, _| async move { + let time = sp_timestamp::InherentDataProvider::from_system_time(); + + let slot = + sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_duration( + *time, + slot_duration.slot_duration(), + ); + + Ok((time, slot)) + }, + registry: config.prometheus_registry().clone(), + can_author_with: sp_consensus::CanAuthorWithNativeVersion::new(client.executor().clone()), + spawner: &task_manager.spawn_essential_handle(), + telemetry, + }) + .map_err(Into::into) +} + /// Start a normal parachain node. pub async fn start_node( - parachain_config: Configuration, - collator_key: CollatorPair, - polkadot_config: Configuration, - id: ParaId, - validator: bool, -) -> sc_service::error::Result<(TaskManager, Arc>)> { - start_node_impl( - parachain_config, - collator_key, - polkadot_config, - id, - validator, - |_| Default::default(), - ) - .await + parachain_config: Configuration, + polkadot_config: Configuration, + id: ParaId, +) -> sc_service::error::Result<(TaskManager, Arc>)> { + start_node_impl::( + parachain_config, + polkadot_config, + id, + |_| Ok(Default::default()), + parachain_build_import_queue, + |client, + prometheus_registry, + telemetry, + task_manager, + relay_chain_node, + transaction_pool, + sync_oracle, + keystore, + force_authoring| { + let slot_duration = cumulus_client_consensus_aura::slot_duration(&*client)?; + + let proposer_factory = sc_basic_authorship::ProposerFactory::with_proof_recording( + task_manager.spawn_handle(), + client.clone(), + transaction_pool, + prometheus_registry.clone(), + telemetry.clone(), + ); + + let relay_chain_backend = relay_chain_node.backend.clone(); + let relay_chain_client = relay_chain_node.client.clone(); + Ok(build_aura_consensus::< + sp_consensus_aura::sr25519::AuthorityPair, + _, + _, + _, + _, + _, + _, + _, + _, + _, + >(BuildAuraConsensusParams { + proposer_factory, + create_inherent_data_providers: move |_, (relay_parent, validation_data)| { + let parachain_inherent = + cumulus_primitives_parachain_inherent::ParachainInherentData::create_at_with_client( + relay_parent, + &relay_chain_client, + &*relay_chain_backend, + &validation_data, + id, + ); + async move { + let time = sp_timestamp::InherentDataProvider::from_system_time(); + + let slot = + sp_consensus_aura::inherents::InherentDataProvider::from_timestamp_and_duration( + *time, + slot_duration.slot_duration(), + ); + + let parachain_inherent = parachain_inherent.ok_or_else(|| { + Box::::from( + "Failed to create parachain inherent", + ) + })?; + Ok((time, slot, parachain_inherent)) + } + }, + block_import: client.clone(), + relay_chain_client: relay_chain_node.client.clone(), + relay_chain_backend: relay_chain_node.backend.clone(), + para_client: client.clone(), + backoff_authoring_blocks: Option::<()>::None, + sync_oracle, + keystore, + force_authoring, + slot_duration, + // We got around 500ms for proposing + block_proposal_slot_portion: SlotProportion::new(1f32 / 24f32), + // And a maximum of 750ms if slots are skipped + max_block_proposal_slot_portion: Some(SlotProportion::new(1f32 / 16f32)), + telemetry, + })) + }, + ) + .await } diff --git a/pallets/exchange-rate/Cargo.toml b/pallets/exchange-rate/Cargo.toml index 8d9a5cfff..b5e920265 100755 --- a/pallets/exchange-rate/Cargo.toml +++ b/pallets/exchange-rate/Cargo.toml @@ -32,55 +32,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/exchange-rate/src/mock.rs b/pallets/exchange-rate/src/mock.rs index b12113ab6..48b0dc722 100644 --- a/pallets/exchange-rate/src/mock.rs +++ b/pallets/exchange-rate/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/lockdrop/rpc/Cargo.toml b/pallets/lockdrop/rpc/Cargo.toml index 24fbe80dc..f7b026456 100644 --- a/pallets/lockdrop/rpc/Cargo.toml +++ b/pallets/lockdrop/rpc/Cargo.toml @@ -14,55 +14,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/pallets/lockdrop/runtime-api/Cargo.toml b/pallets/lockdrop/runtime-api/Cargo.toml index af19b54b5..14086cc38 100644 --- a/pallets/lockdrop/runtime-api/Cargo.toml +++ b/pallets/lockdrop/runtime-api/Cargo.toml @@ -8,8 +8,7 @@ edition = "2018" [dependencies.sp-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [features] default = ["std"] diff --git a/pallets/lockdrop/runtime/Cargo.toml b/pallets/lockdrop/runtime/Cargo.toml index 5b2bf2681..090e9318a 100644 --- a/pallets/lockdrop/runtime/Cargo.toml +++ b/pallets/lockdrop/runtime/Cargo.toml @@ -8,8 +8,7 @@ edition = "2018" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [features] default = ['std'] diff --git a/pallets/membership/supernodes/Cargo.toml b/pallets/membership/supernodes/Cargo.toml index 1cde51e9f..9d0c4b5df 100644 --- a/pallets/membership/supernodes/Cargo.toml +++ b/pallets/membership/supernodes/Cargo.toml @@ -25,46 +25,39 @@ account-set = { path = '../../../traits/account-set', default-features = false } [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [features] default = ['std'] diff --git a/pallets/mining/claims/hardware/Cargo.toml b/pallets/mining/claims/hardware/Cargo.toml index b2bd030e1..5105ea002 100644 --- a/pallets/mining/claims/hardware/Cargo.toml +++ b/pallets/mining/claims/hardware/Cargo.toml @@ -41,55 +41,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/claims/hardware/src/mock.rs b/pallets/mining/claims/hardware/src/mock.rs index 4b162238c..3e31e5156 100644 --- a/pallets/mining/claims/hardware/src/mock.rs +++ b/pallets/mining/claims/hardware/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/claims/token/Cargo.toml b/pallets/mining/claims/token/Cargo.toml index b7600bdbf..6c8267647 100644 --- a/pallets/mining/claims/token/Cargo.toml +++ b/pallets/mining/claims/token/Cargo.toml @@ -40,55 +40,46 @@ mining-sampling-token = { default-features = false, package = 'mining-sampling-t [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/pallets/mining/claims/token/src/mock.rs b/pallets/mining/claims/token/src/mock.rs index 0a5576c7e..87311981a 100644 --- a/pallets/mining/claims/token/src/mock.rs +++ b/pallets/mining/claims/token/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/eligibility/hardware/Cargo.toml b/pallets/mining/eligibility/hardware/Cargo.toml index 74f2a08d6..6297b046a 100644 --- a/pallets/mining/eligibility/hardware/Cargo.toml +++ b/pallets/mining/eligibility/hardware/Cargo.toml @@ -38,55 +38,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/pallets/mining/eligibility/hardware/src/mock.rs b/pallets/mining/eligibility/hardware/src/mock.rs index 6c914a053..4c28bffcf 100644 --- a/pallets/mining/eligibility/hardware/src/mock.rs +++ b/pallets/mining/eligibility/hardware/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/eligibility/proxy/Cargo.toml b/pallets/mining/eligibility/proxy/Cargo.toml index 5b9071fdf..7c1604b8e 100644 --- a/pallets/mining/eligibility/proxy/Cargo.toml +++ b/pallets/mining/eligibility/proxy/Cargo.toml @@ -38,68 +38,57 @@ module-primitives = { version = '3.0.0', default-features = false, path = '../.. [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-timestamp] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-treasury] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/eligibility/token/Cargo.toml b/pallets/mining/eligibility/token/Cargo.toml index 0a8641fe2..92d613a70 100644 --- a/pallets/mining/eligibility/token/Cargo.toml +++ b/pallets/mining/eligibility/token/Cargo.toml @@ -38,55 +38,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/eligibility/token/src/mock.rs b/pallets/mining/eligibility/token/src/mock.rs index 797d7f477..e331627dc 100644 --- a/pallets/mining/eligibility/token/src/mock.rs +++ b/pallets/mining/eligibility/token/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/execution/token/Cargo.toml b/pallets/mining/execution/token/Cargo.toml index ef0a2b32e..27f9f83bd 100644 --- a/pallets/mining/execution/token/Cargo.toml +++ b/pallets/mining/execution/token/Cargo.toml @@ -40,55 +40,46 @@ mining-claims-token = { default-features = false, package = 'mining-claims-token [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/rates/hardware/Cargo.toml b/pallets/mining/rates/hardware/Cargo.toml index 9b1179238..27be87b14 100644 --- a/pallets/mining/rates/hardware/Cargo.toml +++ b/pallets/mining/rates/hardware/Cargo.toml @@ -32,55 +32,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/rates/hardware/src/mock.rs b/pallets/mining/rates/hardware/src/mock.rs index b382bd484..b462249de 100644 --- a/pallets/mining/rates/hardware/src/mock.rs +++ b/pallets/mining/rates/hardware/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -69,6 +70,7 @@ impl frame_system::Config for Test { parameter_types! { pub const ExistentialDeposit: u64 = 1; } + impl pallet_balances::Config for Test { type AccountStore = System; type Balance = u64; @@ -76,6 +78,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +91,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/rates/token/Cargo.toml b/pallets/mining/rates/token/Cargo.toml index 754575852..dcf9ab703 100644 --- a/pallets/mining/rates/token/Cargo.toml +++ b/pallets/mining/rates/token/Cargo.toml @@ -32,55 +32,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" -[dev-dependencies] \ No newline at end of file +[dev-dependencies] diff --git a/pallets/mining/rates/token/src/mock.rs b/pallets/mining/rates/token/src/mock.rs index bf8510af2..d4ba8f8fb 100644 --- a/pallets/mining/rates/token/src/mock.rs +++ b/pallets/mining/rates/token/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/sampling/hardware/Cargo.toml b/pallets/mining/sampling/hardware/Cargo.toml index e3358c5fc..3da3ca468 100644 --- a/pallets/mining/sampling/hardware/Cargo.toml +++ b/pallets/mining/sampling/hardware/Cargo.toml @@ -34,55 +34,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/sampling/hardware/src/mock.rs b/pallets/mining/sampling/hardware/src/mock.rs index 16e10de38..dc95d5562 100644 --- a/pallets/mining/sampling/hardware/src/mock.rs +++ b/pallets/mining/sampling/hardware/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/sampling/token/Cargo.toml b/pallets/mining/sampling/token/Cargo.toml index 0f47e3257..5ee6bd45c 100644 --- a/pallets/mining/sampling/token/Cargo.toml +++ b/pallets/mining/sampling/token/Cargo.toml @@ -34,55 +34,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/sampling/token/src/mock.rs b/pallets/mining/sampling/token/src/mock.rs index 96c232a44..acd09dd35 100644 --- a/pallets/mining/sampling/token/src/mock.rs +++ b/pallets/mining/sampling/token/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/setting/hardware/Cargo.toml b/pallets/mining/setting/hardware/Cargo.toml index 85d749147..ca388d044 100644 --- a/pallets/mining/setting/hardware/Cargo.toml +++ b/pallets/mining/setting/hardware/Cargo.toml @@ -33,55 +33,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/setting/hardware/src/mock.rs b/pallets/mining/setting/hardware/src/mock.rs index bbd39346b..e2f685130 100644 --- a/pallets/mining/setting/hardware/src/mock.rs +++ b/pallets/mining/setting/hardware/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/mining/setting/token/Cargo.toml b/pallets/mining/setting/token/Cargo.toml index 2d4b255d3..9f3641e8d 100644 --- a/pallets/mining/setting/token/Cargo.toml +++ b/pallets/mining/setting/token/Cargo.toml @@ -31,55 +31,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/mining/setting/token/src/mock.rs b/pallets/mining/setting/token/src/mock.rs index a54c33097..16fb3d12d 100644 --- a/pallets/mining/setting/token/src/mock.rs +++ b/pallets/mining/setting/token/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + // FIXME - remove this when figure out how to use these types within mining-speed-boost runtime module itself impl roaming_operators::Config for Test { type Currency = Balances; diff --git a/pallets/parachain-info/Cargo.toml b/pallets/parachain-info/Cargo.toml deleted file mode 100755 index 88b740898..000000000 --- a/pallets/parachain-info/Cargo.toml +++ /dev/null @@ -1,43 +0,0 @@ -[package] -authors = ["Parity Technologies "] -edition = "2018" -name = "parachain-info" -version = "0.1.0" - -[dependencies.codec] -default-features = false -features = ['derive'] -package = 'parity-scale-codec' -version = '2.0.0' - -[dependencies.serde] -features = ['derive'] -optional = true -version = '1.0.101' - -[dependencies.frame-support] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' - -[dependencies.frame-system] -default-features = false -git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' - -[dependencies.cumulus-primitives-core] -git = 'https://github.com/paritytech/cumulus.git' -branch = "rococo-v1" -default-features = false - -[features] -default = ["std"] -std = [ - "codec/std", - "serde", - "cumulus-primitives-core/std", - "frame-support/std", - "frame-system/std", -] diff --git a/pallets/parachain-info/src/lib.rs b/pallets/parachain-info/src/lib.rs deleted file mode 100755 index 0ccfb726c..000000000 --- a/pallets/parachain-info/src/lib.rs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Parity Technologies (UK) Ltd. -// This file is part of Cumulus. - -// Cumulus is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - -// Cumulus is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with Cumulus. If not, see . - -//! Minimal Pallet that injects a ParachainId into Runtime storage from - -#![cfg_attr(not(feature = "std"), no_std)] - -use frame_support::{ - decl_module, - decl_storage, - traits::Get, -}; - -use cumulus_primitives_core::ParaId; - -/// Configuration trait of this pallet. -pub trait Config: frame_system::Config {} - -impl Get for Module { - fn get() -> ParaId { - Self::parachain_id() - } -} - -decl_storage! { - trait Store for Module as ParachainUpgrade { - ParachainId get(fn parachain_id) config(): ParaId = 100.into(); - } -} - -decl_module! { - pub struct Module for enum Call where origin: T::Origin {} -} diff --git a/pallets/primitives/Cargo.toml b/pallets/primitives/Cargo.toml index 93d6ee96a..617eb1b5d 100644 --- a/pallets/primitives/Cargo.toml +++ b/pallets/primitives/Cargo.toml @@ -12,20 +12,17 @@ bitmask = { version = '0.5.0', default-features = false } [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [features] default = ['std'] diff --git a/pallets/primitives/src/constants/mod.rs b/pallets/primitives/src/constants/mod.rs index 558d11052..fe0601db2 100644 --- a/pallets/primitives/src/constants/mod.rs +++ b/pallets/primitives/src/constants/mod.rs @@ -1,22 +1,3 @@ -#![cfg_attr(not(feature = "std"), no_std)] - -//! A set of constant values used in runtime. -//! -//! Babe has slots within each epoch. -//! Grandpa has sessions that are measured in blocks within each era. - -/// Money matters. -pub mod currency { - use crate::types::Balance; - - pub const MILLICENTS: Balance = 1_000_000_000; - pub const CENTS: Balance = 1_000 * MILLICENTS; // assume this is worth about a cent. - pub const DOLLARS: Balance = 100 * CENTS; - - pub const fn deposit(items: u32, bytes: u32) -> Balance { - items as Balance * 15 * CENTS + (bytes as Balance) * 6 * CENTS - } -} /// Time. pub mod time { diff --git a/pallets/roaming/roaming-accounting-policies/Cargo.toml b/pallets/roaming/roaming-accounting-policies/Cargo.toml index 707b55845..0f7b1864c 100644 --- a/pallets/roaming/roaming-accounting-policies/Cargo.toml +++ b/pallets/roaming/roaming-accounting-policies/Cargo.toml @@ -35,55 +35,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-accounting-policies/src/mock.rs b/pallets/roaming/roaming-accounting-policies/src/mock.rs index 460409acc..47195d119 100644 --- a/pallets/roaming/roaming-accounting-policies/src/mock.rs +++ b/pallets/roaming/roaming-accounting-policies/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-agreement-policies/Cargo.toml b/pallets/roaming/roaming-agreement-policies/Cargo.toml index e6978e4ae..8642b5ad4 100644 --- a/pallets/roaming/roaming-agreement-policies/Cargo.toml +++ b/pallets/roaming/roaming-agreement-policies/Cargo.toml @@ -37,55 +37,46 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-agreement-policies/src/mock.rs b/pallets/roaming/roaming-agreement-policies/src/mock.rs index cda08c87b..ea38c9121 100644 --- a/pallets/roaming/roaming-agreement-policies/src/mock.rs +++ b/pallets/roaming/roaming-agreement-policies/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -88,6 +91,8 @@ impl pallet_transaction_payment::Config for Test { type WeightToFee = IdentityFee; } +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-billing-policies/Cargo.toml b/pallets/roaming/roaming-billing-policies/Cargo.toml index a664dcc8b..34334d324 100644 --- a/pallets/roaming/roaming-billing-policies/Cargo.toml +++ b/pallets/roaming/roaming-billing-policies/Cargo.toml @@ -35,55 +35,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-billing-policies/src/mock.rs b/pallets/roaming/roaming-billing-policies/src/mock.rs index 51903d5d6..6927da239 100644 --- a/pallets/roaming/roaming-billing-policies/src/mock.rs +++ b/pallets/roaming/roaming-billing-policies/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-charging-policies/Cargo.toml b/pallets/roaming/roaming-charging-policies/Cargo.toml index 7c78ed4f0..9aa21d82a 100644 --- a/pallets/roaming/roaming-charging-policies/Cargo.toml +++ b/pallets/roaming/roaming-charging-policies/Cargo.toml @@ -35,55 +35,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-charging-policies/src/mock.rs b/pallets/roaming/roaming-charging-policies/src/mock.rs index 449266bb6..ef9720eb4 100644 --- a/pallets/roaming/roaming-charging-policies/src/mock.rs +++ b/pallets/roaming/roaming-charging-policies/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-device-profiles/Cargo.toml b/pallets/roaming/roaming-device-profiles/Cargo.toml index 14b74f626..f2a9a5142 100644 --- a/pallets/roaming/roaming-device-profiles/Cargo.toml +++ b/pallets/roaming/roaming-device-profiles/Cargo.toml @@ -41,55 +41,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-device-profiles/src/mock.rs b/pallets/roaming/roaming-device-profiles/src/mock.rs index d49653d5f..7ada77cc6 100644 --- a/pallets/roaming/roaming-device-profiles/src/mock.rs +++ b/pallets/roaming/roaming-device-profiles/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-devices/Cargo.toml b/pallets/roaming/roaming-devices/Cargo.toml index 51579158b..3e4c97bd4 100644 --- a/pallets/roaming/roaming-devices/Cargo.toml +++ b/pallets/roaming/roaming-devices/Cargo.toml @@ -39,55 +39,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-devices/src/mock.rs b/pallets/roaming/roaming-devices/src/mock.rs index f30f1f249..96b89fc56 100644 --- a/pallets/roaming/roaming-devices/src/mock.rs +++ b/pallets/roaming/roaming-devices/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-network-profiles/Cargo.toml b/pallets/roaming/roaming-network-profiles/Cargo.toml index 70ccea8a1..132bb2deb 100644 --- a/pallets/roaming/roaming-network-profiles/Cargo.toml +++ b/pallets/roaming/roaming-network-profiles/Cargo.toml @@ -39,55 +39,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-network-profiles/src/mock.rs b/pallets/roaming/roaming-network-profiles/src/mock.rs index 7d6482867..766181ef6 100644 --- a/pallets/roaming/roaming-network-profiles/src/mock.rs +++ b/pallets/roaming/roaming-network-profiles/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-network-servers/Cargo.toml b/pallets/roaming/roaming-network-servers/Cargo.toml index 664becbe4..946e444e5 100644 --- a/pallets/roaming/roaming-network-servers/Cargo.toml +++ b/pallets/roaming/roaming-network-servers/Cargo.toml @@ -35,55 +35,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-network-servers/src/mock.rs b/pallets/roaming/roaming-network-servers/src/mock.rs index fdc831049..29f9116ac 100644 --- a/pallets/roaming/roaming-network-servers/src/mock.rs +++ b/pallets/roaming/roaming-network-servers/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-networks/Cargo.toml b/pallets/roaming/roaming-networks/Cargo.toml index baf5c186d..e05381ae3 100644 --- a/pallets/roaming/roaming-networks/Cargo.toml +++ b/pallets/roaming/roaming-networks/Cargo.toml @@ -37,74 +37,62 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] [dev-dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" diff --git a/pallets/roaming/roaming-networks/src/mock.rs b/pallets/roaming/roaming-networks/src/mock.rs index e7973c002..57a6913f0 100644 --- a/pallets/roaming/roaming-networks/src/mock.rs +++ b/pallets/roaming/roaming-networks/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-operators/Cargo.toml b/pallets/roaming/roaming-operators/Cargo.toml index b0f80bd5e..1cbfb08c2 100644 --- a/pallets/roaming/roaming-operators/Cargo.toml +++ b/pallets/roaming/roaming-operators/Cargo.toml @@ -32,56 +32,47 @@ serde = { version = '1.0.101', optional = true, features = ['derive'] } [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-operators/src/mock.rs b/pallets/roaming/roaming-operators/src/mock.rs index 6608213b0..ec6ebefdc 100644 --- a/pallets/roaming/roaming-operators/src/mock.rs +++ b/pallets/roaming/roaming-operators/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-operators/src/tests.rs b/pallets/roaming/roaming-operators/src/tests.rs index 28c633532..ed54a30b2 100644 --- a/pallets/roaming/roaming-operators/src/tests.rs +++ b/pallets/roaming/roaming-operators/src/tests.rs @@ -24,7 +24,7 @@ fn basic_setup_works() { fn create_works() { new_test_ext().execute_with(|| { // Call Functions - assert_ok!(RoamingOperatorModule::create(Origin::signed(1))); + assert_ok!(RoamingOperatorModule::create(Origin::signed(1u64.into()))); // Verify Storage assert_eq!(RoamingOperatorModule::roaming_operators_count(), 1); assert!(RoamingOperatorModule::roaming_operator(0).is_some()); diff --git a/pallets/roaming/roaming-organizations/Cargo.toml b/pallets/roaming/roaming-organizations/Cargo.toml index e9d4cfa0b..a79030cf8 100644 --- a/pallets/roaming/roaming-organizations/Cargo.toml +++ b/pallets/roaming/roaming-organizations/Cargo.toml @@ -37,55 +37,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-organizations/src/mock.rs b/pallets/roaming/roaming-organizations/src/mock.rs index 9d1238a2e..a100a96b3 100644 --- a/pallets/roaming/roaming-organizations/src/mock.rs +++ b/pallets/roaming/roaming-organizations/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-packet-bundles/Cargo.toml b/pallets/roaming/roaming-packet-bundles/Cargo.toml index 95c390f99..b90826234 100644 --- a/pallets/roaming/roaming-packet-bundles/Cargo.toml +++ b/pallets/roaming/roaming-packet-bundles/Cargo.toml @@ -43,55 +43,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-packet-bundles/src/mock.rs b/pallets/roaming/roaming-packet-bundles/src/mock.rs index 65553f135..65295137b 100644 --- a/pallets/roaming/roaming-packet-bundles/src/mock.rs +++ b/pallets/roaming/roaming-packet-bundles/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-routing-profiles/Cargo.toml b/pallets/roaming/roaming-routing-profiles/Cargo.toml index 04ca47c6b..b573e4d60 100644 --- a/pallets/roaming/roaming-routing-profiles/Cargo.toml +++ b/pallets/roaming/roaming-routing-profiles/Cargo.toml @@ -41,55 +41,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-routing-profiles/src/mock.rs b/pallets/roaming/roaming-routing-profiles/src/mock.rs index 6390d2152..1d9cdf789 100644 --- a/pallets/roaming/roaming-routing-profiles/src/mock.rs +++ b/pallets/roaming/roaming-routing-profiles/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-service-profiles/Cargo.toml b/pallets/roaming/roaming-service-profiles/Cargo.toml index ebfced6f6..0a5f78176 100644 --- a/pallets/roaming/roaming-service-profiles/Cargo.toml +++ b/pallets/roaming/roaming-service-profiles/Cargo.toml @@ -37,55 +37,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-service-profiles/src/mock.rs b/pallets/roaming/roaming-service-profiles/src/mock.rs index dae4ee03a..31f598c26 100644 --- a/pallets/roaming/roaming-service-profiles/src/mock.rs +++ b/pallets/roaming/roaming-service-profiles/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/roaming/roaming-sessions/Cargo.toml b/pallets/roaming/roaming-sessions/Cargo.toml index 57553fe53..81ce4ca96 100644 --- a/pallets/roaming/roaming-sessions/Cargo.toml +++ b/pallets/roaming/roaming-sessions/Cargo.toml @@ -41,55 +41,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dev-dependencies] diff --git a/pallets/roaming/roaming-sessions/src/mock.rs b/pallets/roaming/roaming-sessions/src/mock.rs index 716977052..9e8944ed8 100644 --- a/pallets/roaming/roaming-sessions/src/mock.rs +++ b/pallets/roaming/roaming-sessions/src/mock.rs @@ -32,10 +32,10 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Module, Storage}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, } ); @@ -60,6 +60,7 @@ impl frame_system::Config for Test { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; type PalletInfo = PalletInfo; type SS58Prefix = (); @@ -76,6 +77,8 @@ impl pallet_balances::Config for Test { type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { @@ -87,6 +90,9 @@ impl pallet_transaction_payment::Config for Test { type TransactionByteFee = TransactionByteFee; type WeightToFee = IdentityFee; } + +impl pallet_randomness_collective_flip::Config for Test {} + impl roaming_operators::Config for Test { type Currency = Balances; type Event = (); diff --git a/pallets/treasury/dao/Cargo.toml b/pallets/treasury/dao/Cargo.toml index d4c1a9fa4..144972729 100644 --- a/pallets/treasury/dao/Cargo.toml +++ b/pallets/treasury/dao/Cargo.toml @@ -32,55 +32,46 @@ roaming-operators = { default-features = false, package = 'roaming-operators', p [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10" [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.109" [dev-dependencies] diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index c130ddd5b..39302fe26 100755 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -3,7 +3,7 @@ authors = ['MXC Foundation GmbH ', 'Luke Schoen ; impl_opaque_keys! { - pub struct SessionKeys {} + pub struct SessionKeys { + pub aura: Aura, + } } } -pub use constants::time::*; pub use types::*; pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("datahighway"), - impl_name: create_runtime_str!("datahighway"), + spec_name: create_runtime_str!("datahighway-parachain"), + impl_name: create_runtime_str!("datahighway-parachain"), authoring_version: 1, spec_version: 1, - impl_version: 1, + impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, }; -pub const MILLISECS_PER_BLOCK: u64 = 6000; +pub const MILLISECS_PER_BLOCK: u64 = 12000; pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK; @@ -152,6 +153,12 @@ pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); pub const HOURS: BlockNumber = MINUTES * 60; pub const DAYS: BlockNumber = HOURS * 24; +pub const EPOCH_DURATION_IN_BLOCKS: BlockNumber = 1 * HOURS; + +// Unit = the base number of indivisible units for balances +pub const UNIT: Balance = 1_000_000_000_000; +pub const MILLIUNIT: Balance = 1_000_000_000; +pub const MICROUNIT: Balance = 1_000_000; /// The version information used to identify this runtime when compiled natively. #[cfg(feature = "std")] pub fn native_version() -> NativeVersion { @@ -167,18 +174,11 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10); /// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used /// by Operational extrinsics. const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); -/// We allow for 2 seconds of compute with a 6 second average block time. -const MAXIMUM_BLOCK_WEIGHT: Weight = 2 * WEIGHT_PER_SECOND; +/// We allow for 0.5 of a second of compute with a 12 second average block time. +const MAXIMUM_BLOCK_WEIGHT: Weight = WEIGHT_PER_SECOND / 2; parameter_types! { pub const BlockHashCount: BlockNumber = 2400; - /// We allow for 2 seconds of compute with a 6 second average block time. - pub const MaximumBlockWeight: Weight = 2 * WEIGHT_PER_SECOND; - // pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); - /// Assume 10% of weight for average on_initialize calls. - // pub MaximumExtrinsicWeight: Weight = AvailableBlockRatio::get() - // .saturating_sub(Perbill::from_percent(10)) * MaximumBlockWeight::get(); - pub const MaximumBlockLength: u32 = 5 * 1024 * 1024; pub const Version: RuntimeVersion = VERSION; pub RuntimeBlockLength: BlockLength = BlockLength::max_with_normal_ratio(5 * 1024 * 1024, NORMAL_DISPATCH_RATIO); @@ -200,7 +200,7 @@ parameter_types! { }) .avg_block_initialization(AVERAGE_ON_INITIALIZE_RATIO) .build_or_panic(); - pub const SS58Prefix: u8 = 42; + pub const SS58Prefix: u8 = 33; } // Configure FRAME pallets to include in runtime. @@ -213,7 +213,7 @@ impl frame_system::Config for Runtime { /// Portion of the block weight that is available to all normal transactions. // type AvailableBlockRatio = AvailableBlockRatio; /// The basic call filter to use in dispatchable. - type BaseCallFilter = (); + type BaseCallFilter = Everything; /// The weight of the overhead invoked on the block import process, independent of the /// extrinsics included in that block. // type BlockExecutionWeight = BlockExecutionWeight; @@ -244,10 +244,6 @@ impl frame_system::Config for Runtime { type Index = Index; /// The lookup mechanism to get account ID from whatever is passed in dispatchers. type Lookup = IdentityLookup; - /// Maximum size of all encoded transactions (in bytes) that are allowed in one block. - // type MaximumBlockLength = MaximumBlockLength; - /// Maximum weight of each block. - // type MaximumBlockWeight = MaximumBlockWeight; /// The maximum weight that a single extrinsic of `Normal` dispatch class can have, /// idependent of the logic of that extrinsics. (Roughly max block weight - average on /// initialize cost). @@ -271,29 +267,6 @@ impl frame_system::Config for Runtime { type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; } -parameter_types! { - pub const EpochDuration: u64 = EPOCH_DURATION_IN_SLOTS; - pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK; -} - -// impl pallet_indices::Config for Runtime { -// /// The type for recording indexing into the account enumeration. If this ever overflows, there -// /// will be problems! -// type AccountIndex = AccountIndex; -// /// The currency type. -// type Currency = Balances; -// /// How much an index costs. -// type Deposit = IndexDeposit; -// /// The ubiquitous event type. -// type Event = Event; -// type WeightInfo = (); -// } - -parameter_types! { - /// How much an index costs. - pub const IndexDeposit: u128 = 100; -} - parameter_types! { pub const MinimumPeriod: u64 = SLOT_DURATION / 2; } @@ -307,8 +280,10 @@ impl pallet_timestamp::Config for Runtime { } parameter_types! { - pub const ExistentialDeposit: u128 = 500; + pub const ExistentialDeposit: u128 = 1 * MILLIUNIT; pub const MaxLocks: u32 = 50; + pub const MaxReserves: u32 = 50; + pub const TransactionByteFee: u128 = 1 * MICROUNIT; } impl pallet_balances::Config for Runtime { @@ -320,11 +295,9 @@ impl pallet_balances::Config for Runtime { type Event = Event; type ExistentialDeposit = ExistentialDeposit; type MaxLocks = MaxLocks; + type MaxReserves = MaxReserves; type WeightInfo = (); -} - -parameter_types! { - pub const TransactionByteFee: Balance = 1; + type ReserveIdentifier = [u8; 8]; } impl pallet_transaction_payment::Config for Runtime { @@ -403,6 +376,8 @@ parameter_types! { pub const BountyUpdatePeriod: u32 = 20; pub const DataDepositPerByte: u64 = 1; pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry"); + pub const MaxApprovals: u32 = 100; + } impl pallet_treasury::Config for Runtime { @@ -431,6 +406,7 @@ impl pallet_treasury::Config for Runtime { // type Tippers = GeneralCouncilProvider; // Just gets burned. type WeightInfo = (); + type MaxApprovals = MaxApprovals; } parameter_types! { @@ -721,12 +697,10 @@ impl membership_supernodes::Config for Runtime { } parameter_types! { - pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent); - pub const RococoNetwork: NetworkId = NetworkId::Polkadot; + pub const RelayLocation: MultiLocation = MultiLocation::parent(); + pub const RelayNetwork: NetworkId = NetworkId::Polkadot; pub RelayChainOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into(); - pub Ancestry: MultiLocation = Junction::Parachain { - id: ParachainInfo::parachain_id().into() - }.into(); + pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into(); } /// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used @@ -738,7 +712,7 @@ pub type LocationToAccountId = ( // Sibling parachain origins convert to AccountId via the `ParaId::into`. SiblingParachainConvertsVia, // Straight up local `AccountId32` origins just alias directly to `AccountId`. - AccountId32Aliases, + AccountId32Aliases, ); @@ -746,11 +720,13 @@ type LocalAssetTransactor = CurrencyAdapter< // Use this currency: Balances, // Use this currency when it is a fungible asset matching the given location or name: - IsConcrete, + IsConcrete, // Do a simple punn to convert an AccountId32 MultiLocation into a native chain account ID: LocationToAccountId, // Our chain's account ID type (we can't get away without mentioning it explicitly): AccountId, + // We don't track any teleports. + (), >; /// This is the type we use to convert an (incoming) XCM origin into a local `Origin` instance, @@ -772,24 +748,30 @@ pub type XcmOriginToTransactDispatchOrigin = ( ParentAsSuperuser, // Native signed account converter; this just converts an `AccountId32` origin into a normal // `Origin::Signed` origin of the same 32-byte value. - SignedAccountId32AsNative, + SignedAccountId32AsNative, + // Xcm origins can be represented natively under the Xcm pallet's Xcm origin. + XcmPassthrough, ); parameter_types! { - pub UnitWeightCost: Weight = 1_000; + // One XCM operation is 1_000_000 weight - almost certainly a conservative estimate. + pub UnitWeightCost: Weight = 1_000_000; + // One UNIT buys 1 second of weight. + pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), UNIT); } -parameter_types! { - // 1_000_000_000_000 => 1 unit of asset for 1 unit of Weight. - // TODO: Should take the actual weight price. This is just 1_000 ROC per second of weight. - pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::X1(Junction::Parent), 1_000); - pub AllowUnpaidFrom: Vec = vec![ MultiLocation::X1(Junction::Parent) ]; +match_type! { + pub type ParentOrParentsUnitPlurality: impl Contains = { + MultiLocation { parents: 1, interior: Here } | + MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Unit, .. }) } + }; } pub type Barrier = ( - TakeWeightCredit, - AllowTopLevelPaidExecutionFrom>, - AllowUnpaidExecutionFrom>, // <- Parent gets free execution + TakeWeightCredit, + AllowTopLevelPaidExecutionFrom, + AllowUnpaidExecutionFrom, + // ^^^ Parent & its unit plurality gets free execution ); pub struct XcmConfig; @@ -800,73 +782,114 @@ impl Config for XcmConfig { type AssetTransactor = LocalAssetTransactor; type OriginConverter = XcmOriginToTransactDispatchOrigin; type IsReserve = NativeAsset; - type IsTeleporter = NativeAsset; // <- should be enough to allow teleportation of ROC + type IsTeleporter = (); // Teleporting is disabled. type LocationInverter = LocationInverter; type Barrier = Barrier; type Weigher = FixedWeightBounds; - type Trader = FixedRateOfConcreteFungible; + type Trader = UsingComponents, RelayLocation, AccountId, Balances, ()>; type ResponseHandler = (); // Don't handle responses for now. + type SubscriptionService = PolkadotXcm; +} + +/// No local origins on this chain are allowed to dispatch XCM sends/executions. +pub type LocalOriginToLocation = SignedToAccountId32; + +/// The means for routing XCM messages which are not for local execution into the right message +/// queues. +pub type XcmRouter = ( + // Two routers - use UMP to communicate with the relay chain: + cumulus_primitives_utility::ParentAsUmp, + // ..and XCMP to communicate with the sibling chains. + XcmpQueue, +); + +impl pallet_xcm::Config for Runtime { + type Event = Event; + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = XcmRouter; + type ExecuteXcmOrigin = EnsureXcmOrigin; + type XcmExecuteFilter = Everything; + type XcmExecutor = XcmExecutor; + type XcmTeleportFilter = Everything; + type XcmReserveTransferFilter = (); + type Weigher = FixedWeightBounds; + type LocationInverter = LocationInverter; } -impl cumulus_pallet_xcm::Config for Runtime {} +impl cumulus_pallet_xcm::Config for Runtime { + type Event = Event; + type XcmExecutor = XcmExecutor; +} impl cumulus_pallet_xcmp_queue::Config for Runtime { type Event = Event; type XcmExecutor = XcmExecutor; type ChannelInfo = ParachainSystem; + type VersionWrapper = (); } parameter_types! { - pub const MaxDownwardMessageWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 10; + pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4; + pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4; } -/// No local origins on this chain are allowed to dispatch XCM sends/executions. -pub type LocalOriginToLocation = (); +impl cumulus_pallet_parachain_system::Config for Runtime { + type Event = Event; + type OnValidationData = (); + type SelfParaId = parachain_info::Pallet; + type OutboundXcmpMessageSource = XcmpQueue; + type DmpMessageHandler = DmpQueue; + type ReservedDmpWeight = ReservedDmpWeight; + type XcmpMessageHandler = XcmpQueue; + type ReservedXcmpWeight = ReservedXcmpWeight; +} -/// The means for routing XCM messages which are not for local execution into the right message -/// queues. -pub type XcmRouter = ( - // Two routers - use UMP to communicate with the relay chain: - cumulus_primitives_utility::ParentAsUmp, - // ..and XCMP to communicate with the sibling chains. - XcmpQueue, -); +impl parachain_info::Config for Runtime {} -parameter_types! { - pub const ReservedXcmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT / 4; +impl cumulus_pallet_aura_ext::Config for Runtime {} + +impl cumulus_pallet_dmp_queue::Config for Runtime { + type Event = Event; + type XcmExecutor = XcmExecutor; + type ExecuteOverweightOrigin = frame_system::EnsureRoot; } -impl cumulus_pallet_parachain_system::Config for Runtime { - type Event = Event; - type OnValidationData = (); - type SelfParaId = parachain_info::Module; - type DownwardMessageHandlers = cumulus_primitives_utility::UnqueuedDmpAsParent< - MaxDownwardMessageWeight, - XcmExecutor, - Call, - >; - type OutboundXcmpMessageSource = XcmpQueue; - type XcmpMessageHandler = XcmpQueue; - type ReservedXcmpWeight = ReservedXcmpWeight; +impl pallet_randomness_collective_flip::Config for Runtime {} +impl pallet_aura::Config for Runtime { + type AuthorityId = AuraId; + type DisabledValidators = (); } -impl parachain_info::Config for Runtime {} - // Create the runtime by composing the FRAME pallets that were previously configured. construct_runtime!( pub enum Runtime where Block = Block, - NodeBlock = opaque::Block, + NodeBlock = generic::Block, UncheckedExtrinsic = UncheckedExtrinsic { System: frame_system::{Pallet, Call, Config, Storage, Event}, - RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Call, Storage}, Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent}, - //Indices: pallet_indices::{Pallet, Call, Storage, Event, Config}, - Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, - TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, Sudo: pallet_sudo::{Pallet, Call, Config, Storage, Event}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + + // PARACHAIN + ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Config, Storage, Inherent, Event, ValidateUnsigned} = 20, + + ParachainInfo: parachain_info::{Pallet, Storage, Config} = 21, + + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event} = 30, + + // Consensus + Aura: pallet_aura::{Pallet, Config}, + AuraExt: cumulus_pallet_aura_ext::{Pallet, Config}, + + XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event} = 50, + PolkadotXcm: pallet_xcm::{Pallet, Call, Event, Origin} = 51, + XcmHandler: cumulus_pallet_xcm::{Pallet, Call, Event, Origin} = 52, + DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event} = 53, + GeneralCouncil: pallet_collective::::{Pallet, Call, Storage, Origin, Event, Config}, GeneralCouncilMembership: pallet_membership::::{Pallet, Call, Storage, Event, Config}, PalletTreasury: pallet_treasury::{Pallet, Call, Storage, Config, Event}, @@ -900,11 +923,7 @@ construct_runtime!( MiningClaimsHardware: mining_claims_hardware::{Pallet, Call, Storage, Event}, MiningExecutionToken: mining_execution_token::{Pallet, Call, Storage, Event}, ExchangeRate: exchange_rate::{Pallet, Call, Storage, Event}, - // PARACHAIN - ParachainSystem: cumulus_pallet_parachain_system::{Pallet, Call, Storage, Inherent, Event}, - ParachainInfo: parachain_info::{Pallet, Storage, Config}, - XcmHandler: cumulus_pallet_xcm::{Pallet, Origin}, - XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event}, + } ); @@ -934,7 +953,7 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic; /// Executive: handles dispatch to the various modules. pub type Executive = - frame_executive::Executive, Runtime, AllModules>; + frame_executive::Executive, Runtime, AllPallets>; impl_runtime_apis! { impl sp_api::Core for Runtime { @@ -977,17 +996,15 @@ impl_runtime_apis! { data.check_extrinsics(&block) } - fn random_seed() -> ::Hash { - RandomnessCollectiveFlip::random_seed().0 - } } impl sp_transaction_pool::runtime_api::TaggedTransactionQueue for Runtime { fn validate_transaction( source: TransactionSource, tx: ::Extrinsic, + block_hash: ::Hash, ) -> TransactionValidity { - Executive::validate_transaction(source, tx) + Executive::validate_transaction(source, tx, block_hash) } } @@ -1009,6 +1026,22 @@ impl_runtime_apis! { } } + impl sp_consensus_aura::AuraApi for Runtime { + fn slot_duration() -> sp_consensus_aura::SlotDuration { + sp_consensus_aura::SlotDuration::from_millis(Aura::slot_duration()) + } + + fn authorities() -> Vec { + Aura::authorities() + } + } + + impl cumulus_primitives_core::CollectCollationInfo for Runtime { + fn collect_collation_info() -> cumulus_primitives_core::CollationInfo { + ParachainSystem::collect_collation_info() + } + } + impl frame_system_rpc_runtime_api::AccountNonceApi for Runtime { fn account_nonce(account: AccountId) -> Index { System::account_nonce(account) @@ -1031,4 +1064,31 @@ impl_runtime_apis! { } } -cumulus_pallet_parachain_system::register_validate_block!(Runtime, Executive); +struct CheckInherents; + +impl cumulus_pallet_parachain_system::CheckInherents for CheckInherents { + fn check_inherents( + block: &Block, + relay_state_proof: &cumulus_pallet_parachain_system::RelayChainStateProof, + ) -> sp_inherents::CheckInherentsResult { + let relay_chain_slot = relay_state_proof + .read_slot() + .expect("Could not read the relay chain slot from the proof"); + + let inherent_data = + cumulus_primitives_timestamp::InherentDataProvider::from_relay_chain_slot_and_duration( + relay_chain_slot, + sp_std::time::Duration::from_secs(6), + ) + .create_inherent_data() + .expect("Could not create the timestamp inherent data"); + + inherent_data.check_extrinsics(&block) + } +} + +cumulus_pallet_parachain_system::register_validate_block!( + Runtime = Runtime, + BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::, + CheckInherents = CheckInherents, +); diff --git a/runtime/src/types.rs b/runtime/src/types.rs index 7142a3b52..383b52845 100755 --- a/runtime/src/types.rs +++ b/runtime/src/types.rs @@ -8,7 +8,7 @@ use sp_runtime::{ }; /// An index to a block. -pub type BlockNumber = u64; +pub type BlockNumber = u32; /// Alias to 512-bit hash when used in the context of a transaction signature on the chain. pub type Signature = MultiSignature; @@ -25,7 +25,7 @@ pub type AccountIndex = u32; pub type Amount = i128; /// Index of a transaction in the chain. -pub type Index = u64; +pub type Index = u32; /// A hash of some data used by the chain. pub type Hash = sp_core::H256; diff --git a/runtime/tests/cli_integration_tests_mining_hardware.rs b/runtime/tests/cli_integration_tests_mining_hardware.rs index a73051785..d0ee3f43a 100755 --- a/runtime/tests/cli_integration_tests_mining_hardware.rs +++ b/runtime/tests/cli_integration_tests_mining_hardware.rs @@ -1,9 +1,9 @@ // extern crate env as env; -extern crate mining_speed_boosts_configuration_hardware_mining as mining_speed_boosts_configuration_hardware_mining; -extern crate mining_speed_boosts_eligibility_hardware_mining as mining_speed_boosts_eligibility_hardware_mining; -extern crate mining_speed_boosts_lodgements_hardware_mining as mining_speed_boosts_lodgements_hardware_mining; -extern crate mining_speed_boosts_rates_hardware_mining as mining_speed_boosts_rates_hardware_mining; -extern crate mining_speed_boosts_sampling_hardware_mining as mining_speed_boosts_sampling_hardware_mining; +extern crate mining_claims_hardware as mining_claims_hardware; +extern crate mining_eligibility_hardware as mining_eligibility_hardware; +extern crate mining_rates_hardware as mining_rates_hardware; +extern crate mining_sampling_hardware as mining_sampling_hardware; +extern crate mining_setting_hardware as mining_setting_hardware; extern crate roaming_operators as roaming_operators; #[cfg(test)] @@ -12,7 +12,6 @@ mod tests { use frame_support::{ assert_ok, - impl_outer_origin, parameter_types, weights::{ IdentityFee, @@ -33,30 +32,30 @@ mod tests { Permill, }; // Import Config for each runtime module being tested - use mining_speed_boosts_configuration_hardware_mining::{ - Config as MiningSpeedBoostConfigurationHardwareMiningTrait, - MiningSpeedBoostConfigurationHardwareMiningHardwareConfig, - Module as MiningSpeedBoostConfigurationHardwareMiningModule, + use mining_claims_hardware::{ + Config as MiningClaimsHardwareConfig, + MiningClaimsHardwareClaimResult, + Module as MiningClaimsHardwareModule, }; - use mining_speed_boosts_eligibility_hardware_mining::{ - Config as MiningSpeedBoostEligibilityHardwareMiningTrait, - MiningSpeedBoostEligibilityHardwareMiningEligibilityResult, - Module as MiningSpeedBoostEligibilityHardwareMiningModule, + use mining_eligibility_hardware::{ + Config as MiningEligibilityHardwareConfig, + MiningEligibilityHardwareResult, + Module as MiningEligibilityHardwareModule, }; - use mining_speed_boosts_lodgements_hardware_mining::{ - Config as MiningSpeedBoostLodgementsHardwareMiningTrait, - MiningSpeedBoostLodgementsHardwareMiningLodgementResult, - Module as MiningSpeedBoostLodgementsHardwareMiningModule, + use mining_rates_hardware::{ + Config as MiningRatesHardwareConfig, + MiningRatesHardwareSetting, + Module as MiningRatesHardwareModule, }; - use mining_speed_boosts_rates_hardware_mining::{ - Config as MiningSpeedBoostRatesHardwareMiningTrait, - MiningSpeedBoostRatesHardwareMiningRatesConfig, - Module as MiningSpeedBoostRatesHardwareMiningModule, + use mining_sampling_hardware::{ + Config as MiningSamplingHardwareConfig, + MiningSamplingHardwareSetting, + Module as MiningSamplingHardwareModule, }; - use mining_speed_boosts_sampling_hardware_mining::{ - Config as MiningSpeedBoostSamplingHardwareMiningTrait, - MiningSpeedBoostSamplingHardwareMiningSamplingConfig, - Module as MiningSpeedBoostSamplingHardwareMiningModule, + use mining_setting_hardware::{ + Config as MiningSettingHardwareConfig, + MiningSettingHardwareSetting, + Module as MiningSettingHardwareModule, }; use roaming_operators; @@ -64,17 +63,25 @@ mod tests { // ::Origin::signed((*who).clone()) // } - impl_outer_origin! { - pub enum Origin for Test {} - } + type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; + type Block = frame_system::mocking::MockBlock; + + frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + } + ); - #[derive(Clone, Eq, PartialEq)] - pub struct Test; parameter_types! { pub const BlockHashCount: u64 = 250; - pub const MaximumBlockWeight: Weight = 1024; - pub const MaximumBlockLength: u32 = 2 * 1024; - pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); + pub const SS58Prefix: u8 = 33; } impl frame_system::Config for Test { type AccountData = pallet_balances::AccountData; @@ -84,7 +91,7 @@ mod tests { type BlockLength = (); type BlockNumber = u64; type BlockWeights = (); - type Call = (); + type Call = Call; type DbWeight = (); type Event = (); type Hash = H256; @@ -94,8 +101,9 @@ mod tests { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; - type PalletInfo = (); + type PalletInfo = PalletInfo; type SS58Prefix = (); type SystemWeightInfo = (); type Version = (); @@ -105,16 +113,19 @@ mod tests { } impl pallet_balances::Config for Test { type AccountStore = System; - type Balance = u128; + type Balance = u64; type DustRemoval = (); type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { pub const TransactionByteFee: u64 = 1; } + impl pallet_randomness_collective_flip::Config for Test {} impl pallet_transaction_payment::Config for Test { type FeeMultiplierUpdate = (); type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; @@ -128,61 +139,55 @@ mod tests { type Randomness = Randomness; type RoamingOperatorIndex = u64; } - impl MiningSpeedBoostConfigurationHardwareMiningTrait for Test { + impl MiningSettingHardwareConfig for Test { type Event = (); - type MiningSpeedBoostConfigurationHardwareMiningHardwareDevEUI = u64; - // type MiningSpeedBoostConfigurationHardwareMiningHardwareType = - // MiningSpeedBoostConfigurationHardwareMiningHardwareTypes; - type MiningSpeedBoostConfigurationHardwareMiningHardwareID = u64; - type MiningSpeedBoostConfigurationHardwareMiningHardwareLockPeriodEndDate = u64; - type MiningSpeedBoostConfigurationHardwareMiningHardwareLockPeriodStartDate = u64; - // Mining Speed Boost Hardware Mining Config - type MiningSpeedBoostConfigurationHardwareMiningHardwareSecure = bool; - // FIXME - how to use this enum from std? (including importing `use std::str::FromStr;`) - type MiningSpeedBoostConfigurationHardwareMiningHardwareType = Vec; + type MiningSettingHardwareDevEUI = u64; + // type MiningSettingHardwareType = + // MiningSettingHardwareTypes; + type MiningSettingHardwareID = u64; // type Currency = Balances; // type Randomness = Randomness; - type MiningSpeedBoostConfigurationHardwareMiningIndex = u64; + type MiningSettingHardwareIndex = u64; + // Mining Speed Boost Hardware Mining Config + type MiningSettingHardwareSecure = bool; + // FIXME - how to use this enum from std? (including importing `use std::str::FromStr;`) + type MiningSettingHardwareType = Vec; } - impl MiningSpeedBoostRatesHardwareMiningTrait for Test { + impl MiningRatesHardwareConfig for Test { type Event = (); - type MiningSpeedBoostRatesHardwareMiningHardwareInsecure = u32; - // Mining Speed Boost Rate - type MiningSpeedBoostRatesHardwareMiningHardwareSecure = u32; - type MiningSpeedBoostRatesHardwareMiningIndex = u64; + type MiningRatesHardwareCategory1MaxTokenBonusPerGateway = u32; + type MiningRatesHardwareCategory2MaxTokenBonusPerGateway = u32; + type MiningRatesHardwareCategory3MaxTokenBonusPerGateway = u32; + type MiningRatesHardwareIndex = u64; + type MiningRatesHardwareInsecure = u32; // Mining Speed Boost Max Rates - type MiningSpeedBoostRatesHardwareMiningMaxHardware = u32; + type MiningRatesHardwareMaxHardware = u32; + // Mining Speed Boost Rate + type MiningRatesHardwareSecure = u32; } - impl MiningSpeedBoostSamplingHardwareMiningTrait for Test { + impl MiningSamplingHardwareConfig for Test { type Event = (); - type MiningSpeedBoostSamplingHardwareMiningIndex = u64; - type MiningSpeedBoostSamplingHardwareMiningSampleDate = u64; - type MiningSpeedBoostSamplingHardwareMiningSampleHardwareOnline = u64; + type MiningSamplingHardwareIndex = u64; + type MiningSamplingHardwareSampleHardwareOnline = u64; } - impl MiningSpeedBoostEligibilityHardwareMiningTrait for Test { + impl MiningEligibilityHardwareConfig for Test { type Event = (); - type MiningSpeedBoostEligibilityHardwareMiningCalculatedEligibility = u64; - type MiningSpeedBoostEligibilityHardwareMiningHardwareUptimePercentage = u32; - type MiningSpeedBoostEligibilityHardwareMiningIndex = u64; - // type MiningSpeedBoostEligibilityHardwareMiningDateAudited = u64; - // type MiningSpeedBoostEligibilityHardwareMiningAuditorAccountID = u64; + type MiningEligibilityHardwareCalculatedEligibility = u64; + type MiningEligibilityHardwareIndex = u64; + type MiningEligibilityHardwareUptimePercentage = u32; + // type MiningEligibilityHardwareAuditorAccountID = u64; } - impl MiningSpeedBoostLodgementsHardwareMiningTrait for Test { + impl MiningClaimsHardwareConfig for Test { type Event = (); - type MiningSpeedBoostLodgementsHardwareMiningIndex = u64; - type MiningSpeedBoostLodgementsHardwareMiningLodgementAmount = u64; - type MiningSpeedBoostLodgementsHardwareMiningLodgementDateRedeemed = u64; + type MiningClaimsHardwareClaimAmount = u64; + type MiningClaimsHardwareIndex = u64; } - type System = frame_system::Module; - pub type Balances = pallet_balances::Module; - pub type MiningSpeedBoostConfigurationHardwareMiningTestModule = - MiningSpeedBoostConfigurationHardwareMiningModule; - pub type MiningSpeedBoostRatesHardwareMiningTestModule = MiningSpeedBoostRatesHardwareMiningModule; - pub type MiningSpeedBoostSamplingHardwareMiningTestModule = MiningSpeedBoostSamplingHardwareMiningModule; - pub type MiningSpeedBoostEligibilityHardwareMiningTestModule = - MiningSpeedBoostEligibilityHardwareMiningModule; - pub type MiningSpeedBoostLodgementsHardwareMiningTestModule = MiningSpeedBoostLodgementsHardwareMiningModule; + pub type MiningSettingHardwareTestModule = MiningSettingHardwareModule; + pub type MiningRatesHardwareTestModule = MiningRatesHardwareModule; + pub type MiningSamplingHardwareTestModule = MiningSamplingHardwareModule; + pub type MiningEligibilityHardwareTestModule = MiningEligibilityHardwareModule; + pub type MiningClaimsHardwareTestModule = MiningClaimsHardwareModule; pub type Randomness = pallet_randomness_collective_flip::Module; // This function basically just builds a genesis storage key/value store according to @@ -220,106 +225,105 @@ mod tests { // Create Mining Speed Boost Rates Hardware Mining // Call Functions - assert_ok!(MiningSpeedBoostRatesHardwareMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostRatesHardwareMiningTestModule::set_mining_speed_boosts_rates_hardware_mining_rates_config( + assert_ok!(MiningRatesHardwareTestModule::create(Origin::signed(0))); + assert_ok!(MiningRatesHardwareTestModule::set_mining_rates_hardware_rates_config( Origin::signed(0), 0, // mining_speed_boosts_rates_hardware_mining_id // FIXME - convert all below types to Vec since float values? i.e. b"1.025".to_vec() Some(1), // hardware_hardware_secure Some(1), // hardware_hardware_insecure Some(1), // hardware_max_hardware - ) - ); + Some(1000000), + Some(500000), + Some(250000) + )); // Verify Storage - assert_eq!(MiningSpeedBoostRatesHardwareMiningTestModule::mining_speed_boosts_rates_hardware_mining_count(), 1); - assert!(MiningSpeedBoostRatesHardwareMiningTestModule::mining_speed_boosts_rates_hardware_mining(0).is_some()); - assert_eq!(MiningSpeedBoostRatesHardwareMiningTestModule::mining_speed_boosts_rates_hardware_mining_owner(0), Some(0)); + assert_eq!(MiningRatesHardwareTestModule::mining_rates_hardware_count(), 1); + assert!(MiningRatesHardwareTestModule::mining_rates_hardware(0).is_some()); + assert_eq!(MiningRatesHardwareTestModule::mining_rates_hardware_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostRatesHardwareMiningTestModule::mining_speed_boosts_rates_hardware_mining_rates_configs(0), - Some(MiningSpeedBoostRatesHardwareMiningRatesConfig { + MiningRatesHardwareTestModule::mining_rates_hardware_rates_configs(0), + Some(MiningRatesHardwareSetting { hardware_hardware_secure: 1, hardware_hardware_insecure: 1, hardware_max_hardware: 1, + hardware_category_1_max_token_bonus_per_gateway: 1000000, + hardware_category_2_max_token_bonus_per_gateway: 500000, + hardware_category_3_max_token_bonus_per_gateway: 250000 }) ); // Create Mining Speed Boost Configuration Hardware Mining // Call Functions - assert_ok!(MiningSpeedBoostConfigurationHardwareMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostConfigurationHardwareMiningTestModule::set_mining_speed_boosts_configuration_hardware_mining_hardware_config( + assert_ok!(MiningSettingHardwareTestModule::create(Origin::signed(0))); + assert_ok!(MiningSettingHardwareTestModule::set_mining_setting_hardware_hardware_config( Origin::signed(0), - 0, // mining_speed_boosts_hardware_mining_id - Some(true), // hardware_secure + 0, // mining_hardware_id + Some(true), // hardware_secure Some(b"gateway".to_vec()), // hardware_type - Some(1), // hardware_id - Some(12345), // hardware_dev_eui - Some(23456), // hardware_lock_period_start_date - Some(34567), // hardware_lock_period_end_date - ) - ); + Some(1), // hardware_id + Some(12345), // hardware_dev_eui + Some(23456), // hardware_lock_start_block + Some(34567), // hardware_lock_interval_blocks + )); // Verify Storage - assert_eq!(MiningSpeedBoostConfigurationHardwareMiningTestModule::mining_speed_boosts_configuration_hardware_mining_count(), 1); - assert!(MiningSpeedBoostConfigurationHardwareMiningTestModule::mining_speed_boosts_configuration_hardware_mining(0).is_some()); - assert_eq!(MiningSpeedBoostConfigurationHardwareMiningTestModule::mining_speed_boosts_configuration_hardware_mining_owner(0), Some(0)); + assert_eq!(MiningSettingHardwareTestModule::mining_setting_hardware_count(), 1); + assert!(MiningSettingHardwareTestModule::mining_setting_hardware(0).is_some()); + assert_eq!(MiningSettingHardwareTestModule::mining_setting_hardware_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostConfigurationHardwareMiningTestModule::mining_speed_boosts_configuration_hardware_mining_hardware_configs(0), - Some(MiningSpeedBoostConfigurationHardwareMiningHardwareConfig { + MiningSettingHardwareTestModule::mining_setting_hardware_hardware_configs(0), + Some(MiningSettingHardwareSetting { hardware_secure: true, hardware_type: b"gateway".to_vec(), hardware_id: 1, hardware_dev_eui: 12345, - hardware_lock_period_start_date: 23456, - hardware_lock_period_end_date: 34567, + hardware_lock_start_block: 23456, + hardware_lock_interval_blocks: 34567, }) ); // Create Mining Speed Boost Sampling Hardware Mining // Call Functions - assert_ok!(MiningSpeedBoostSamplingHardwareMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostSamplingHardwareMiningTestModule::set_mining_speed_boosts_samplings_hardware_mining_samplings_config( - Origin::signed(0), - 0, // mining_speed_boosts_sampling_hardware_mining_id - 0, // mining_speed_boosts_sampling_hardware_mining_sample_id - Some(23456), // hardware_sample_date - Some(1), // hardware_sample_hardware_online - ) - ); - assert_ok!(MiningSpeedBoostSamplingHardwareMiningTestModule::assign_sampling_to_configuration(Origin::signed(0), 0, 0)); + assert_ok!(MiningSamplingHardwareTestModule::create(Origin::signed(0))); + assert_ok!(MiningSamplingHardwareTestModule::set_mining_samplings_hardware_samplings_config( + Origin::signed(0), + 0, // mining_sampling_hardware_id + 0, // mining_sampling_hardware_sample_id + Some(23456), // hardware_sample_block + Some(1), // hardware_sample_hardware_online + )); + assert_ok!(MiningSamplingHardwareTestModule::assign_sampling_to_configuration(Origin::signed(0), 0, 0)); // Verify Storage - assert_eq!(MiningSpeedBoostSamplingHardwareMiningTestModule::mining_speed_boosts_samplings_hardware_mining_count(), 1); - assert!(MiningSpeedBoostSamplingHardwareMiningTestModule::mining_speed_boosts_samplings_hardware_mining(0).is_some()); - assert_eq!(MiningSpeedBoostSamplingHardwareMiningTestModule::mining_speed_boosts_samplings_hardware_mining_owner(0), Some(0)); + assert_eq!(MiningSamplingHardwareTestModule::mining_samplings_hardware_count(), 1); + assert!(MiningSamplingHardwareTestModule::mining_samplings_hardware(0).is_some()); + assert_eq!(MiningSamplingHardwareTestModule::mining_samplings_hardware_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostSamplingHardwareMiningTestModule::mining_speed_boosts_samplings_hardware_mining_samplings_configs((0, 0)), - Some(MiningSpeedBoostSamplingHardwareMiningSamplingConfig { - hardware_sample_date: 23456, // hardware_sample_date - hardware_sample_hardware_online: 1 // hardware_sample_hardware_online + MiningSamplingHardwareTestModule::mining_samplings_hardware_samplings_configs((0, 0)), + Some(MiningSamplingHardwareSetting { + hardware_sample_block: 23456, // hardware_sample_block + hardware_sample_hardware_online: 1 // hardware_sample_hardware_online }) ); // Create Mining Speed Boost Eligibility Hardware Mining // Call Functions - assert_ok!(MiningSpeedBoostEligibilityHardwareMiningTestModule::create(Origin::signed(0))); - // assert_eq!( - // MiningSpeedBoostEligibilityTestModule::calculate_mining_speed_boosts_eligibility_hardware_mining_result( - // Origin::signed(0), + assert_ok!(MiningEligibilityHardwareTestModule::create(Origin::signed(0))); // assert_eq!( + // MiningSpeedBoostEligibilityTestModule:: + // calculate_mining_speed_boosts_eligibility_hardware_mining_result( Origin::signed(0), // 0, // mining_speed_boosts_configuration_hardware_mining_id // 0, // mining_speed_boosts_eligibility_hardware_mining_id // ), // Some( // MiningSpeedBoostEligibilityHardwareMiningEligibilityResult { // eligibility_hardware_mining_calculated_eligibility: 1.1 - // // to determine eligibility for proportion (incase user moves funds around during lock period) - // eligibility_hardware_mining_hardware_uptime_percentage: 0.3, + // // to determine eligibility for proportion (incase user moves funds around during lock + // period) eligibility_hardware_mining_hardware_uptime_percentage: 0.3, // // eligibility_hardware_mining_date_audited: 123, // // eligibility_hardware_mining_auditor_account_id: 123 // } @@ -327,77 +331,77 @@ mod tests { // )) // Override by DAO if necessary - assert_ok!( - MiningSpeedBoostEligibilityHardwareMiningTestModule::set_mining_speed_boosts_eligibility_hardware_mining_eligibility_result( - Origin::signed(0), - 0, // mining_speed_boosts_configuration_hardware_mining_id - 0, // mining_speed_boosts_eligibility_hardware_mining_id - Some(1), // mining_speed_boosts_eligibility_hardware_mining_calculated_eligibility - Some(1), // mining_speed_boosts_eligibility_hardware_mining_hardware_uptime_percentage - // 123, // mining_speed_boosts_eligibility_hardware_mining_date_audited - // 123, // mining_speed_boosts_eligibility_hardware_mining_auditor_account_id - // Some({ - // MiningSpeedBoostEligibilityHardwareMiningEligibilityResult { - // eligibility_hardware_mining_calculated_eligibility: 1, - // // to determine eligibility for proportion (incase user moves funds around during lock period) - // eligibility_hardware_mining_hardware_uptime_percentage: 1, - // // eligibility_hardware_mining_date_audited: 123, - // // eligibility_hardware_mining_auditor_account_id: 123 - // } - // }), - ) - ); - assert_ok!(MiningSpeedBoostEligibilityHardwareMiningTestModule::assign_eligibility_to_configuration(Origin::signed(0), 0, 0)); + assert_ok!(MiningEligibilityHardwareTestModule::set_mining_eligibility_hardware_eligibility_result( + Origin::signed(0), + 0, // mining_setting_hardware_id + 0, // mining_eligibility_hardware_id + Some(1), // mining_hardware_calculated_eligibility + Some(1), /* mining_hardware_uptime_percentage + * 123, // mining_hardware_block_audited + * 123, // mining_hardware_auditor_account_id + * Some({ + * MiningEligibilityHardwareResult { + * hardware_calculated_eligibility: 1, + * // to determine eligibility for proportion (incase user moves funds around + * during lock period) hardware_uptime_percentage: 1, + * // hardware_block_audited: 123, + * // hardware_auditor_account_id: 123 + * } + * }), */ + )); + assert_ok!(MiningEligibilityHardwareTestModule::assign_eligibility_to_configuration( + Origin::signed(0), + 0, + 0 + )); // Verify Storage - assert_eq!(MiningSpeedBoostEligibilityHardwareMiningTestModule::mining_speed_boosts_eligibility_hardware_mining_count(), 1); - assert!(MiningSpeedBoostEligibilityHardwareMiningTestModule::mining_speed_boosts_eligibility_hardware_mining(0).is_some()); - assert_eq!(MiningSpeedBoostEligibilityHardwareMiningTestModule::mining_speed_boosts_eligibility_hardware_mining_owner(0), Some(0)); + assert_eq!(MiningEligibilityHardwareTestModule::mining_eligibility_hardware_count(), 1); + assert!(MiningEligibilityHardwareTestModule::mining_eligibility_hardware(0).is_some()); + assert_eq!(MiningEligibilityHardwareTestModule::mining_eligibility_hardware_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostEligibilityHardwareMiningTestModule::mining_speed_boosts_eligibility_hardware_mining_eligibility_results((0, 0)), - Some(MiningSpeedBoostEligibilityHardwareMiningEligibilityResult { - eligibility_hardware_mining_calculated_eligibility: 1, + MiningEligibilityHardwareTestModule::mining_eligibility_hardware_eligibility_results((0, 0)), + Some(MiningEligibilityHardwareResult { + hardware_calculated_eligibility: 1, // to determine eligibility for proportion (incase user moves funds around during lock period) - eligibility_hardware_mining_hardware_uptime_percentage: 1, - // eligibility_hardware_mining_date_audited: 123, - // eligibility_hardware_mining_auditor_account_id: 123 + hardware_uptime_percentage: 1, + /* hardware_block_audited: 123, + * hardware_auditor_account_id: 123 */ }) ); // Create Mining Speed Boost Lodgements Hardware Mining // // Call Functions - assert_ok!(MiningSpeedBoostLodgementsHardwareMiningTestModule::create(Origin::signed(0))); - assert_ok!(MiningSpeedBoostLodgementsHardwareMiningTestModule::assign_claim_to_configuration(Origin::signed(0), 0, 0)); + assert_ok!(MiningClaimsHardwareTestModule::create(Origin::signed(0))); + assert_ok!(MiningClaimsHardwareTestModule::assign_claim_to_configuration(Origin::signed(0), 0, 0)); // assert_ok!( - // MiningSpeedBoostLodgementsHardwareMiningTestModule::claim( + // MiningClaimsHardwareTestModule::claim( // Origin::signed(0), - // 0, // mining_speed_boosts_configuration_hardware_mining_id - // 0, // mining_speed_boosts_eligibility_hardware_mining_id - // 0, // mining_speed_boosts_lodgements_hardware_mining_id + // 0, // mining_setting_hardware_id + // 0, // mining_eligibility_hardware_id + // 0, // mining_claims_hardware_id // ) // ) // Override by DAO if necessary - assert_ok!( - MiningSpeedBoostLodgementsHardwareMiningTestModule::set_mining_speed_boosts_lodgements_hardware_mining_lodgements_result( - Origin::signed(0), - 0, // mining_speed_boosts_configuration_hardware_mining_id - 0, // mining_speed_boosts_eligibility_hardware_mining_id - 0, // mining_speed_boosts_lodgements_hardware_mining_id - Some(1), // hardware_claim_amount - Some(34567), // hardware_claim_date_redeemed - ) - ); + assert_ok!(MiningClaimsHardwareTestModule::set_mining_claims_hardware_claims_result( + Origin::signed(0), + 0, // mining_setting_hardware_id + 0, // mining_eligibility_hardware_id + 0, // mining_claims_hardware_id + Some(1), // hardware_claim_amount + Some(34567), // hardware_claim_block_redeemed + )); // Verify Storage - assert_eq!(MiningSpeedBoostLodgementsHardwareMiningTestModule::mining_speed_boosts_lodgements_hardware_mining_count(), 1); - assert!(MiningSpeedBoostLodgementsHardwareMiningTestModule::mining_speed_boosts_lodgements_hardware_mining(0).is_some()); - assert_eq!(MiningSpeedBoostLodgementsHardwareMiningTestModule::mining_speed_boosts_lodgements_hardware_mining_owner(0), Some(0)); + assert_eq!(MiningClaimsHardwareTestModule::mining_claims_hardware_count(), 1); + assert!(MiningClaimsHardwareTestModule::mining_claims_hardware(0).is_some()); + assert_eq!(MiningClaimsHardwareTestModule::mining_claims_hardware_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostLodgementsHardwareMiningTestModule::mining_speed_boosts_lodgements_hardware_mining_lodgements_results((0, 0)), - Some(MiningSpeedBoostLodgementsHardwareMiningLodgementResult { + MiningClaimsHardwareTestModule::mining_claims_hardware_claims_results((0, 0)), + Some(MiningClaimsHardwareClaimResult { hardware_claim_amount: 1, - hardware_claim_date_redeemed: 34567, + hardware_claim_block_redeemed: 34567, }) ); }); diff --git a/runtime/tests/cli_integration_tests_mining_tokens.rs b/runtime/tests/cli_integration_tests_mining_tokens.rs index adf36f098..819942c01 100755 --- a/runtime/tests/cli_integration_tests_mining_tokens.rs +++ b/runtime/tests/cli_integration_tests_mining_tokens.rs @@ -1,9 +1,12 @@ // extern crate env as env; -extern crate mining_speed_boosts_configuration_token_mining as mining_speed_boosts_configuration_token_mining; -extern crate mining_speed_boosts_eligibility_token_mining as mining_speed_boosts_eligibility_token_mining; -extern crate mining_speed_boosts_lodgements_token_mining as mining_speed_boosts_lodgements_token_mining; -extern crate mining_speed_boosts_rates_token_mining as mining_speed_boosts_rates_token_mining; -extern crate mining_speed_boosts_sampling_token_mining as mining_speed_boosts_sampling_token_mining; +extern crate membership_supernodes as membership_supernodes; +extern crate mining_claims_token as mining_claims_token; +extern crate mining_eligibility_proxy as mining_eligibility_proxy; +extern crate mining_eligibility_token as mining_eligibility_token; +extern crate mining_execution_token as mining_execution_token; +extern crate mining_rates_token as mining_rates_token; +extern crate mining_sampling_token as mining_sampling_token; +extern crate mining_setting_token as mining_setting_token; extern crate roaming_operators as roaming_operators; #[cfg(test)] @@ -12,7 +15,6 @@ mod tests { use frame_support::{ assert_ok, - impl_outer_origin, parameter_types, weights::{ IdentityFee, @@ -33,30 +35,40 @@ mod tests { Permill, }; // Import Config for each runtime module being tested - use mining_speed_boosts_configuration_token_mining::{ - Config as MiningSpeedBoostConfigurationTokenMiningTrait, - MiningSpeedBoostConfigurationTokenMiningTokenConfig, - Module as MiningSpeedBoostConfigurationTokenMiningModule, + use membership_supernodes::{ + Config as MembershipSupernodesConfig, + Module as MembershipSupernodesModule, }; - use mining_speed_boosts_eligibility_token_mining::{ - Config as MiningSpeedBoostEligibilityTokenMiningTrait, - MiningSpeedBoostEligibilityTokenMiningEligibilityResult, - Module as MiningSpeedBoostEligibilityTokenMiningModule, + use mining_claims_token::{ + Config as MiningClaimsTokenConfig, + MiningClaimsTokenClaimResult, + Module as MiningClaimsTokenModule, }; - use mining_speed_boosts_lodgements_token_mining::{ - Config as MiningSpeedBoostLodgementsTokenMiningTrait, - MiningSpeedBoostLodgementsTokenMiningLodgementResult, - Module as MiningSpeedBoostLodgementsTokenMiningModule, + use mining_eligibility_token::{ + Config as MiningEligibilityTokenConfig, + MiningEligibilityTokenResult, + Module as MiningEligibilityTokenModule, }; - use mining_speed_boosts_rates_token_mining::{ - Config as MiningSpeedBoostRatesTokenMiningTrait, - MiningSpeedBoostRatesTokenMiningRatesConfig, - Module as MiningSpeedBoostRatesTokenMiningModule, + use mining_execution_token::{ + Config as MiningExecutionTokenConfig, + MiningExecutionTokenExecutionResult, + Module as MiningExecutionTokenModule, }; - use mining_speed_boosts_sampling_token_mining::{ - Config as MiningSpeedBoostSamplingTokenMiningTrait, - MiningSpeedBoostSamplingTokenMiningSamplingConfig, - Module as MiningSpeedBoostSamplingTokenMiningModule, + use mining_rates_token::{ + Config as MiningRatesTokenConfig, + MiningRatesTokenSetting, + Module as MiningRatesTokenModule, + }; + use mining_sampling_token::{ + Config as MiningSamplingTokenConfig, + MiningSamplingTokenSetting, + Module as MiningSamplingTokenModule, + }; + use mining_setting_token::{ + Config as MiningSettingTokenConfig, + MiningSettingTokenRequirementsSetting, + MiningSettingTokenSetting, + Module as MiningSettingTokenModule, }; use roaming_operators; @@ -64,17 +76,25 @@ mod tests { // ::Origin::signed((*who).clone()) // } - impl_outer_origin! { - pub enum Origin for Test {} - } + type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; + type Block = frame_system::mocking::MockBlock; + + frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Storage, Config, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + } + ); - #[derive(Clone, Eq, PartialEq)] - pub struct Test; parameter_types! { pub const BlockHashCount: u64 = 250; - pub const MaximumBlockWeight: Weight = 1024; - pub const MaximumBlockLength: u32 = 2 * 1024; - pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); + pub const SS58Prefix: u8 = 33; } impl frame_system::Config for Test { type AccountData = pallet_balances::AccountData; @@ -84,7 +104,7 @@ mod tests { type BlockLength = (); type BlockNumber = u64; type BlockWeights = (); - type Call = (); + type Call = Call; type DbWeight = (); type Event = (); type Hash = H256; @@ -94,8 +114,9 @@ mod tests { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; - type PalletInfo = (); + type PalletInfo = PalletInfo; type SS58Prefix = (); type SystemWeightInfo = (); type Version = (); @@ -105,16 +126,19 @@ mod tests { } impl pallet_balances::Config for Test { type AccountStore = System; - type Balance = u128; + type Balance = u64; type DustRemoval = (); type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } parameter_types! { pub const TransactionByteFee: u64 = 1; } + impl pallet_randomness_collective_flip::Config for Test {} impl pallet_transaction_payment::Config for Test { type FeeMultiplierUpdate = (); type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; @@ -128,60 +152,62 @@ mod tests { type Randomness = Randomness; type RoamingOperatorIndex = u64; } - impl MiningSpeedBoostConfigurationTokenMiningTrait for Test { + impl MiningSettingTokenConfig for Test { type Event = (); // type Currency = Balances; // type Randomness = Randomness; - type MiningSpeedBoostConfigurationTokenMiningIndex = u64; - type MiningSpeedBoostConfigurationTokenMiningTokenLockPeriod = u32; - type MiningSpeedBoostConfigurationTokenMiningTokenLockPeriodEndDate = u64; - type MiningSpeedBoostConfigurationTokenMiningTokenLockPeriodStartDate = u64; - // type MiningSpeedBoostConfigurationTokenMiningTokenType = MiningSpeedBoostConfigurationTokenMiningTokenTypes; - type MiningSpeedBoostConfigurationTokenMiningTokenLockedAmount = u64; + type MiningSettingTokenIndex = u64; + type MiningSettingTokenLockAmount = u64; // Mining Speed Boost Token Mining Config // FIXME - how to use this enum from std? (including importing `use std::str::FromStr;`) - type MiningSpeedBoostConfigurationTokenMiningTokenType = Vec; + type MiningSettingTokenType = Vec; } - impl MiningSpeedBoostRatesTokenMiningTrait for Test { + impl MiningRatesTokenConfig for Test { type Event = (); - type MiningSpeedBoostRatesTokenMiningIndex = u64; - type MiningSpeedBoostRatesTokenMiningMaxLoyalty = u32; + type MiningRatesTokenIndex = u64; + type MiningRatesTokenMaxLoyalty = u32; // Mining Speed Boost Max Rates - type MiningSpeedBoostRatesTokenMiningMaxToken = u32; - type MiningSpeedBoostRatesTokenMiningTokenDOT = u32; - type MiningSpeedBoostRatesTokenMiningTokenIOTA = u32; + type MiningRatesTokenMaxToken = u32; + type MiningRatesTokenTokenDOT = u32; + type MiningRatesTokenTokenIOTA = u32; // Mining Speed Boost Rate - type MiningSpeedBoostRatesTokenMiningTokenMXC = u32; + type MiningRatesTokenTokenMXC = u32; } - impl MiningSpeedBoostSamplingTokenMiningTrait for Test { + impl MiningSamplingTokenConfig for Test { type Event = (); - type MiningSpeedBoostSamplingTokenMiningIndex = u64; - type MiningSpeedBoostSamplingTokenMiningSampleDate = u64; - type MiningSpeedBoostSamplingTokenMiningSampleTokensLocked = u64; + type MiningSamplingTokenIndex = u64; + type MiningSamplingTokenSampleLockedAmount = u64; } - impl MiningSpeedBoostEligibilityTokenMiningTrait for Test { + impl MiningEligibilityTokenConfig for Test { type Event = (); - type MiningSpeedBoostEligibilityTokenMiningCalculatedEligibility = u64; - type MiningSpeedBoostEligibilityTokenMiningIndex = u64; - type MiningSpeedBoostEligibilityTokenMiningTokenLockedPercentage = u32; - // type MiningSpeedBoostEligibilityTokenMiningDateAudited = u64; - // type MiningSpeedBoostEligibilityTokenMiningAuditorAccountID = u64; + type MiningEligibilityTokenCalculatedEligibility = u64; + type MiningEligibilityTokenIndex = u64; + type MiningEligibilityTokenLockedPercentage = u32; + // type MiningEligibilityTokenAuditorAccountID = u64; } - impl MiningSpeedBoostLodgementsTokenMiningTrait for Test { + + impl MiningClaimsTokenConfig for Test { + type Event = (); + type MiningClaimsTokenClaimAmount = u64; + type MiningClaimsTokenIndex = u64; + } + impl MiningExecutionTokenConfig for Test { + type Event = (); + type MiningExecutionTokenIndex = u64; + } + impl MembershipSupernodesConfig for Test { type Event = (); - type MiningSpeedBoostLodgementsTokenMiningIndex = u64; - type MiningSpeedBoostLodgementsTokenMiningLodgementAmount = u64; - type MiningSpeedBoostLodgementsTokenMiningLodgementDateRedeemed = u64; } - type System = frame_system::Module; - pub type Balances = pallet_balances::Module; - pub type MiningSpeedBoostConfigurationTokenMiningTestModule = MiningSpeedBoostConfigurationTokenMiningModule; - pub type MiningSpeedBoostRatesTokenMiningTestModule = MiningSpeedBoostRatesTokenMiningModule; - pub type MiningSpeedBoostSamplingTokenMiningTestModule = MiningSpeedBoostSamplingTokenMiningModule; - pub type MiningSpeedBoostEligibilityTokenMiningTestModule = MiningSpeedBoostEligibilityTokenMiningModule; - pub type MiningSpeedBoostLodgementsTokenMiningTestModule = MiningSpeedBoostLodgementsTokenMiningModule; + pub type MiningSettingTokenTestModule = MiningSettingTokenModule; + pub type MiningRatesTokenTestModule = MiningRatesTokenModule; + pub type MiningSamplingTokenTestModule = MiningSamplingTokenModule; + pub type MiningEligibilityTokenTestModule = MiningEligibilityTokenModule; + pub type MiningClaimsTokenTestModule = MiningClaimsTokenModule; + pub type MiningExecutionTokenTestModule = MiningExecutionTokenModule; + pub type MembershipSupernodesTestModule = MembershipSupernodesModule; type Randomness = pallet_randomness_collective_flip::Module; + type MembershipSupernodes = membership_supernodes::Module; // This function basically just builds a genesis storage key/value store according to // our desired mockup. @@ -218,27 +244,25 @@ mod tests { // Create Mining Speed Boost Rates Token Mining // Call Functions - assert_ok!(MiningSpeedBoostRatesTokenMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostRatesTokenMiningTestModule::set_mining_speed_boosts_rates_token_mining_rates_config( + assert_ok!(MiningRatesTokenTestModule::create(Origin::signed(0))); + assert_ok!(MiningRatesTokenTestModule::set_mining_rates_token_rates_config( Origin::signed(0), - 0, // mining_speed_boosts_rates_token_mining_id + 0, // mining_rates_token_id // FIXME - convert all below types to Vec since float values? i.e. b"1.025".to_vec() Some(1), // token_token_mxc Some(1), // token_token_iota Some(1), // token_token_dot Some(1), // token_max_token Some(1), // token_max_loyalty - ) - ); + )); // Verify Storage - assert_eq!(MiningSpeedBoostRatesTokenMiningTestModule::mining_speed_boosts_rates_token_mining_count(), 1); - assert!(MiningSpeedBoostRatesTokenMiningTestModule::mining_speed_boosts_rates_token_mining(0).is_some()); - assert_eq!(MiningSpeedBoostRatesTokenMiningTestModule::mining_speed_boosts_rates_token_mining_owner(0), Some(0)); + assert_eq!(MiningRatesTokenTestModule::mining_rates_token_count(), 1); + assert!(MiningRatesTokenTestModule::mining_rates_token(0).is_some()); + assert_eq!(MiningRatesTokenTestModule::mining_rates_token_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostRatesTokenMiningTestModule::mining_speed_boosts_rates_token_mining_rates_configs(0), - Some(MiningSpeedBoostRatesTokenMiningRatesConfig { + MiningRatesTokenTestModule::mining_rates_token_rates_configs(0), + Some(MiningRatesTokenSetting { token_token_mxc: 1, token_token_iota: 1, token_token_dot: 1, @@ -250,58 +274,67 @@ mod tests { // Create Mining Speed Boost Configuration Token Mining // Call Functions - assert_ok!(MiningSpeedBoostConfigurationTokenMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostConfigurationTokenMiningTestModule::set_mining_speed_boosts_configuration_token_mining_token_config( + assert_ok!(MiningSettingTokenTestModule::create(Origin::signed(0))); + assert_ok!(MiningSettingTokenTestModule::set_mining_setting_token_token_cooldown_config( Origin::signed(0), - 0, // mining_speed_boosts_token_mining_id + 0, // mining_token_id + Some(b"DHX".to_vec()), // token_type + Some(10), // token_lock_min_amount + Some(7), // token_lock_min_blocks + )); + assert_ok!(MiningSettingTokenTestModule::set_mining_setting_token_token_setting( + Origin::signed(0), + 0, // mining_token_id Some(b"MXC".to_vec()), // token_type - Some(100), // token_locked_amount - Some(15), // token_lock_period - Some(12345), // token_lock_period_start_date - Some(23456), // token_lock_period_end_date - ) - ); + Some(100), // token_lock_amount + Some(12345), // token_lock_start_block + Some(23456), // token_lock_interval_blocks + )); // Verify Storage - assert_eq!(MiningSpeedBoostConfigurationTokenMiningTestModule::mining_speed_boosts_configuration_token_mining_count(), 1); - assert!(MiningSpeedBoostConfigurationTokenMiningTestModule::mining_speed_boosts_configuration_token_mining(0).is_some()); - assert_eq!(MiningSpeedBoostConfigurationTokenMiningTestModule::mining_speed_boosts_configuration_token_mining_owner(0), Some(0)); + assert_eq!(MiningSettingTokenTestModule::mining_setting_token_count(), 1); + assert!(MiningSettingTokenTestModule::mining_setting_token(0).is_some()); + assert_eq!(MiningSettingTokenTestModule::mining_setting_token_owner(0), Some(0)); + assert_eq!( + MiningSettingTokenTestModule::mining_setting_token_token_cooldown_configs(0), + Some(MiningSettingTokenRequirementsSetting { + token_type: b"DHX".to_vec(), // token_type + token_lock_min_amount: 10, // token_lock_min_amount + token_lock_min_blocks: 7, // token_lock_min_blocks + }) + ); assert_eq!( - MiningSpeedBoostConfigurationTokenMiningTestModule::mining_speed_boosts_configuration_token_mining_token_configs(0), - Some(MiningSpeedBoostConfigurationTokenMiningTokenConfig { - token_type: b"MXC".to_vec(), // token_type - token_locked_amount: 100, // token_locked_amount - token_lock_period: 15, // token_lock_period - token_lock_period_start_date: 12345, // token_lock_period_start_date - token_lock_period_end_date: 23456, // token_lock_period_end_date + MiningSettingTokenTestModule::mining_setting_token_token_settings(0), + Some(MiningSettingTokenSetting { + token_type: b"MXC".to_vec(), // token_type + token_lock_amount: 100, // token_lock_amount + token_lock_start_block: 12345, // token_lock_start_block + token_lock_interval_blocks: 23456, // token_lock_interval_blocks }) ); // Create Mining Speed Boost Sampling Token Mining // Call Functions - assert_ok!(MiningSpeedBoostSamplingTokenMiningTestModule::create(Origin::signed(0))); - assert_ok!( - MiningSpeedBoostSamplingTokenMiningTestModule::set_mining_speed_boosts_samplings_token_mining_samplings_config( + assert_ok!(MiningSamplingTokenTestModule::create(Origin::signed(0))); + assert_ok!(MiningSamplingTokenTestModule::set_mining_samplings_token_samplings_config( Origin::signed(0), - 0, // mining_speed_boosts_token_mining_id - 0, // mining_speed_boosts_token_mining_sample_id - Some(23456), // token_sample_date - Some(100), // token_sample_tokens_locked - ) - ); - assert_ok!(MiningSpeedBoostSamplingTokenMiningTestModule::assign_sampling_to_configuration(Origin::signed(0), 0, 0)); + 0, // mining_token_id + 0, // mining_token_sample_id + Some(23456), // token_sample_block + Some(100), // token_sample_locked_amount + )); + assert_ok!(MiningSamplingTokenTestModule::assign_sampling_to_configuration(Origin::signed(0), 0, 0)); // Verify Storage - assert_eq!(MiningSpeedBoostSamplingTokenMiningTestModule::mining_speed_boosts_samplings_token_mining_count(), 1); - assert!(MiningSpeedBoostSamplingTokenMiningTestModule::mining_speed_boosts_samplings_token_mining(0).is_some()); - assert_eq!(MiningSpeedBoostSamplingTokenMiningTestModule::mining_speed_boosts_samplings_token_mining_owner(0), Some(0)); + assert_eq!(MiningSamplingTokenTestModule::mining_samplings_token_count(), 1); + assert!(MiningSamplingTokenTestModule::mining_samplings_token(0).is_some()); + assert_eq!(MiningSamplingTokenTestModule::mining_samplings_token_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostSamplingTokenMiningTestModule::mining_speed_boosts_samplings_token_mining_samplings_configs((0, 0)), - Some(MiningSpeedBoostSamplingTokenMiningSamplingConfig { - token_sample_date: 23456, // token_sample_date - token_sample_tokens_locked: 100 // token_sample_tokens_locked + MiningSamplingTokenTestModule::mining_samplings_token_samplings_configs((0, 0)), + Some(MiningSamplingTokenSetting { + token_sample_block: 23456, // token_sample_block + token_sample_locked_amount: 100 // token_sample_locked_amount }) ); @@ -325,18 +358,18 @@ mod tests { // mining_speed_boosts_configuration_token_mining_id // Call Functions - assert_ok!(MiningSpeedBoostEligibilityTokenMiningTestModule::create(Origin::signed(0))); + assert_ok!(MiningEligibilityTokenTestModule::create(Origin::signed(0))); // assert_eq!( - // MiningSpeedBoostEligibilityTokenMiningTestModule::calculate_mining_speed_boosts_eligibility_token_mining_result( - // Origin::signed(0), + // MiningSpeedBoostEligibilityTokenMiningTestModule:: + // calculate_mining_speed_boosts_eligibility_token_mining_result( Origin::signed(0), // 0, // mining_speed_boosts_configuration_token_mining_id // 0, // mining_speed_boosts_eligibility_token_mining_id // ), // Some( // MiningSpeedBoostEligibilityTokenMiningEligibilityResult { // eligibility_token_mining_calculated_eligibility: 1.1 - // // to determine eligibility for proportion (incase user hardware is not online around during the whole lock period) - // eligibility_token_mining_token_locked_percentage: 0.7, // i.e. 70% + // // to determine eligibility for proportion (incase user hardware is not online around during the + // whole lock period) eligibility_token_mining_token_locked_percentage: 0.7, // i.e. 70% // // eligibility_token_mining_date_audited: 123, // // eligibility_token_mining_auditor_account_id: 123 // } @@ -344,77 +377,73 @@ mod tests { // )) // Override by DAO if necessary - assert_ok!( - MiningSpeedBoostEligibilityTokenMiningTestModule::set_mining_speed_boosts_eligibility_token_mining_eligibility_result( + assert_ok!(MiningEligibilityTokenTestModule::set_mining_eligibility_token_eligibility_result( Origin::signed(0), - 0, // mining_speed_boosts_configuration_token_mining_id - 0, // mining_speed_boosts_eligibility_token_mining_id - Some(1), // mining_speed_boosts_eligibility_token_mining_calculated_eligibility - Some(1), // mining_speed_boosts_eligibility_token_mining_token_locked_percentage - // 123, // mining_speed_boosts_eligibility_token_mining_date_audited - // 123, // mining_speed_boosts_eligibility_token_mining_auditor_account_id - // Some({ - // MiningSpeedBoostEligibilityTokenMiningEligibilityResult { - // eligibility_token_mining_calculated_eligibility: 1, // i.e. 1.1 - // // to determine eligibility for proportion (incase user hardware is not online around during the whole lock period) - // eligibility_token_mining_token_locked_percentage: 1, // i.e. 0.7 for 70% - // // eligibility_token_mining_date_audited: 123, - // // eligibility_token_mining_auditor_account_id: 123 - // } - // }), - ) - ); - assert_ok!(MiningSpeedBoostEligibilityTokenMiningTestModule::assign_eligibility_to_configuration(Origin::signed(0), 0, 0)); + 0, // mining_setting_token_id + 0, // mining_eligibility_token_id + Some(1), // mining_token_calculated_eligibility + Some(1), /* mining_token_locked_percentage + * 123, // mining_token_block_audited + * 123, // mining_token_auditor_account_id + * Some({ + * MiningEligibilityTokenResult { + * token_calculated_eligibility: 1, // i.e. 1.1 + * // to determine eligibility for proportion (incase user hardware is not online + * around during the whole lock period) + * token_locked_percentage: 1, // i.e. 0.7 for 70% + * // token_block_audited: 123, + * // token_auditor_account_id: 123 + * } + * }), */ + )); + assert_ok!(MiningEligibilityTokenTestModule::assign_eligibility_to_configuration(Origin::signed(0), 0, 0)); // Verify Storage - assert_eq!(MiningSpeedBoostEligibilityTokenMiningTestModule::mining_speed_boosts_eligibility_token_mining_count(), 1); - assert!(MiningSpeedBoostEligibilityTokenMiningTestModule::mining_speed_boosts_eligibility_token_mining(0).is_some()); - assert_eq!(MiningSpeedBoostEligibilityTokenMiningTestModule::mining_speed_boosts_eligibility_token_mining_owner(0), Some(0)); + assert_eq!(MiningEligibilityTokenTestModule::mining_eligibility_token_count(), 1); + assert!(MiningEligibilityTokenTestModule::mining_eligibility_token(0).is_some()); + assert_eq!(MiningEligibilityTokenTestModule::mining_eligibility_token_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostEligibilityTokenMiningTestModule::mining_speed_boosts_eligibility_token_mining_eligibility_results((0, 0)), - Some(MiningSpeedBoostEligibilityTokenMiningEligibilityResult { - eligibility_token_mining_calculated_eligibility: 1, - // to determine eligibility for proportion (incase user hardware is not online around during the whole lock period) - eligibility_token_mining_token_locked_percentage: 1, // i.e. 70% - // eligibility_token_mining_date_audited: 123, - // eligibility_token_mining_auditor_account_id: 123 + MiningEligibilityTokenTestModule::mining_eligibility_token_eligibility_results((0, 0)), + Some(MiningEligibilityTokenResult { + token_calculated_eligibility: 1, + // to determine eligibility for proportion (incase user hardware is not online around during the + // whole lock period) + token_locked_percentage: 1, /* i.e. 70% + * token_block_audited: 123, + * token_auditor_account_id: 123 */ }) ); // Create Mining Speed Boost Lodgements Token Mining // Call Functions - assert_ok!(MiningSpeedBoostLodgementsTokenMiningTestModule::create(Origin::signed(0))); - assert_ok!(MiningSpeedBoostLodgementsTokenMiningTestModule::assign_claim_to_configuration(Origin::signed(0), 0, 0)); - assert_ok!( - MiningSpeedBoostLodgementsTokenMiningTestModule::claim( - Origin::signed(0), - 0, // mining_speed_boosts_configuration_token_mining_id - 0, // mining_speed_boosts_eligibility_token_mining_id - 0, // mining_speed_boosts_lodgements_token_mining_id - ) - ); + assert_ok!(MiningClaimsTokenTestModule::create(Origin::signed(0))); + assert_ok!(MiningClaimsTokenTestModule::assign_claim_to_configuration(Origin::signed(0), 0, 0)); + assert_ok!(MiningClaimsTokenTestModule::claim( + Origin::signed(0), + 0, // mining_setting_token_id + 0, // mining_eligibility_token_id + 0, // mining_claims_token_id + )); // Override by DAO if necessary - assert_ok!( - MiningSpeedBoostLodgementsTokenMiningTestModule::set_mining_speed_boosts_lodgements_token_mining_lodgements_result( - Origin::signed(0), - 0, // mining_speed_boosts_configuration_token_mining_id - 0, // mining_speed_boosts_eligibility_token_mining_id - 0, // mining_speed_boosts_lodgements_token_mining_id - Some(1), // hardware_claim_amount - Some(34567) // hardware_claim_date_redeemed - ) - ); + assert_ok!(MiningClaimsTokenTestModule::set_mining_claims_token_claims_result( + Origin::signed(0), + 0, // mining_setting_token_id + 0, // mining_eligibility_token_id + 0, // mining_claims_token_id + Some(1), // token_claim_amount + Some(34567), // token_claim_block_redeemed + )); // Verify Storage - assert_eq!(MiningSpeedBoostLodgementsTokenMiningTestModule::mining_speed_boosts_lodgements_token_mining_count(), 1); - assert!(MiningSpeedBoostLodgementsTokenMiningTestModule::mining_speed_boosts_lodgements_token_mining(0).is_some()); - assert_eq!(MiningSpeedBoostLodgementsTokenMiningTestModule::mining_speed_boosts_lodgements_token_mining_owner(0), Some(0)); + assert_eq!(MiningClaimsTokenTestModule::mining_claims_token_count(), 1); + assert!(MiningClaimsTokenTestModule::mining_claims_token(0).is_some()); + assert_eq!(MiningClaimsTokenTestModule::mining_claims_token_owner(0), Some(0)); assert_eq!( - MiningSpeedBoostLodgementsTokenMiningTestModule::mining_speed_boosts_lodgements_token_mining_lodgements_results((0, 0)), - Some(MiningSpeedBoostLodgementsTokenMiningLodgementResult { + MiningClaimsTokenTestModule::mining_claims_token_claims_results((0, 0)), + Some(MiningClaimsTokenClaimResult { token_claim_amount: 1, - token_claim_date_redeemed: 34567, + token_claim_block_redeemed: 34567, }) ); }); diff --git a/runtime/tests/cli_integration_tests_roaming.rs b/runtime/tests/cli_integration_tests_roaming.rs index 655eb8626..3cfa33921 100755 --- a/runtime/tests/cli_integration_tests_roaming.rs +++ b/runtime/tests/cli_integration_tests_roaming.rs @@ -18,7 +18,6 @@ mod tests { use frame_support::{ assert_ok, - impl_outer_origin, parameter_types, weights::{ IdentityFee, @@ -26,74 +25,71 @@ mod tests { }, }; + pub use pallet_transaction_payment::CurrencyAdapter; use sp_core::H256; use sp_runtime::{ testing::Header, traits::{ BlakeTwo256, IdentityLookup, - Zero, }, - DispatchResult, - Perbill, - Permill, }; // Import Config for each runtime module being tested use roaming_accounting_policies::{ - Config as RoamingAccountingPolicyTrait, + Config as RoamingAccountingPolicyConfig, Module as RoamingAccountingPolicyModule, - RoamingAccountingPolicyConfig, + RoamingAccountingPolicySetting, }; use roaming_agreement_policies::{ - Config as RoamingAgreementPolicyTrait, + Config as RoamingAgreementPolicyConfig, Module as RoamingAgreementPolicyModule, - RoamingAgreementPolicyConfig, + RoamingAgreementPolicySetting, }; use roaming_billing_policies::{ - Config as RoamingBillingPolicyTrait, + Config as RoamingBillingPolicyConfig, Module as RoamingBillingPolicyModule, - RoamingBillingPolicyConfig, + RoamingBillingPolicySetting, }; use roaming_charging_policies::{ - Config as RoamingChargingPolicyTrait, + Config as RoamingChargingPolicyConfig, Module as RoamingChargingPolicyModule, - RoamingChargingPolicyConfig, + RoamingChargingPolicySetting, }; use roaming_device_profiles::{ - Config as RoamingDeviceProfileTrait, + Config as RoamingDeviceProfileConfig, Module as RoamingDeviceProfileModule, - RoamingDeviceProfileConfig, + RoamingDeviceProfileSetting, }; use roaming_devices::{ - Config as RoamingDeviceTrait, + Config as RoamingDeviceConfig, Module as RoamingDeviceModule, }; use roaming_network_profiles::{ - Config as RoamingNetworkProfileTrait, + Config as RoamingNetworkProfileConfig, Module as RoamingNetworkProfileModule, }; use roaming_network_servers::{ - Config as RoamingNetworkServerTrait, + Config as RoamingNetworkServerConfig, Module as RoamingNetworkServerModule, }; use roaming_networks::{ - Config as RoamingNetworkTrait, + Config as RoamingNetworkConfig, Module as RoamingNetworkModule, }; use roaming_operators::{ - Config as RoamingOperatorTrait, + Config as RoamingOperatorConfig, Module as RoamingOperatorModule, }; use roaming_organizations::{ - Config as RoamingOrganizationTrait, + Config as RoamingOrganizationConfig, Module as RoamingOrganizationModule, }; use roaming_routing_profiles::{ - Config as RoamingRoutingProfileTrait, + Config as RoamingRoutingProfileConfig, Module as RoamingRoutingProfileModule, }; use roaming_service_profiles::{ - Config as RoamingServiceProfileTrait, + Config as RoamingServiceProfileConfig, Module as RoamingServiceProfileModule, }; @@ -101,17 +97,25 @@ mod tests { // ::Origin::signed((*who).clone()) // } - impl_outer_origin! { - pub enum Origin for Test {} - } + type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; + type Block = frame_system::mocking::MockBlock; + + frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage}, + TransactionPayment: pallet_transaction_payment::{Pallet, Storage}, + } + ); - #[derive(Clone, Eq, PartialEq)] - pub struct Test; parameter_types! { pub const BlockHashCount: u64 = 250; - pub const MaximumBlockWeight: Weight = 1024; - pub const MaximumBlockLength: u32 = 2 * 1024; - pub const AvailableBlockRatio: Perbill = Perbill::from_percent(75); + pub const SS58Prefix: u8 = 33; } impl frame_system::Config for Test { type AccountData = pallet_balances::AccountData; @@ -121,8 +125,9 @@ mod tests { type BlockLength = (); type BlockNumber = u64; type BlockWeights = (); - type Call = (); + type Call = Call; type DbWeight = (); + // type WeightMultiplierUpdate = (); type Event = (); type Hash = H256; type Hashing = BlakeTwo256; @@ -131,9 +136,10 @@ mod tests { type Lookup = IdentityLookup; type OnKilledAccount = (); type OnNewAccount = (); + type OnSetCode = (); type Origin = Origin; - type PalletInfo = (); - type SS58Prefix = (); + type PalletInfo = PalletInfo; + type SS58Prefix = SS58Prefix; type SystemWeightInfo = (); type Version = (); } @@ -142,85 +148,80 @@ mod tests { } impl pallet_balances::Config for Test { type AccountStore = System; - type Balance = u128; + type Balance = u64; type DustRemoval = (); type Event = (); type ExistentialDeposit = ExistentialDeposit; type MaxLocks = (); + type MaxReserves = (); + type ReserveIdentifier = [u8; 8]; type WeightInfo = (); } - parameter_types! { - pub const TransactionByteFee: u64 = 1; - } + impl pallet_randomness_collective_flip::Config for Test {} impl pallet_transaction_payment::Config for Test { type FeeMultiplierUpdate = (); - type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; - type TransactionByteFee = TransactionByteFee; + type OnChargeTransaction = CurrencyAdapter; + type TransactionByteFee = (); type WeightToFee = IdentityFee; } - impl RoamingOperatorTrait for Test { + impl RoamingOperatorConfig for Test { type Currency = Balances; type Event = (); - type Randomness = Randomness; + type Randomness = RandomnessCollectiveFlip; type RoamingOperatorIndex = u64; } - impl RoamingNetworkTrait for Test { + impl RoamingNetworkConfig for Test { type Event = (); type RoamingNetworkIndex = u64; } - impl RoamingOrganizationTrait for Test { + impl RoamingOrganizationConfig for Test { type Event = (); type RoamingOrganizationIndex = u64; } - impl RoamingNetworkServerTrait for Test { + impl RoamingNetworkServerConfig for Test { type Event = (); type RoamingNetworkServerIndex = u64; } - impl RoamingAgreementPolicyTrait for Test { + impl RoamingAgreementPolicyConfig for Test { type Event = (); type RoamingAgreementPolicyActivationType = Vec; - type RoamingAgreementPolicyExpiry = u64; type RoamingAgreementPolicyIndex = u64; } - impl RoamingAccountingPolicyTrait for Test { + impl RoamingAccountingPolicyConfig for Test { type Event = (); type RoamingAccountingPolicyDownlinkFeeFactor = u32; type RoamingAccountingPolicyIndex = u64; type RoamingAccountingPolicyType = Vec; type RoamingAccountingPolicyUplinkFeeFactor = u32; } - impl RoamingRoutingProfileTrait for Test { + impl RoamingRoutingProfileConfig for Test { type Event = (); type RoamingRoutingProfileAppServer = Vec; type RoamingRoutingProfileIndex = u64; } - impl RoamingDeviceTrait for Test { + impl RoamingDeviceConfig for Test { type Event = (); type RoamingDeviceIndex = u64; } - impl RoamingServiceProfileTrait for Test { + impl RoamingServiceProfileConfig for Test { type Event = (); type RoamingServiceProfileDownlinkRate = u32; type RoamingServiceProfileIndex = u64; type RoamingServiceProfileUplinkRate = u32; } - impl RoamingBillingPolicyTrait for Test { + impl RoamingBillingPolicyConfig for Test { type Event = (); - type RoamingBillingPolicyFrequencyInDays = u64; type RoamingBillingPolicyIndex = u64; - type RoamingBillingPolicyNextBillingAt = u64; } - impl RoamingChargingPolicyTrait for Test { + impl RoamingChargingPolicyConfig for Test { type Event = (); - type RoamingChargingPolicyDelayAfterBillingInDays = u64; type RoamingChargingPolicyIndex = u64; - type RoamingChargingPolicyNextChargingAt = u64; } - impl RoamingNetworkProfileTrait for Test { + impl RoamingNetworkProfileConfig for Test { type Event = (); type RoamingNetworkProfileIndex = u64; } - impl RoamingDeviceProfileTrait for Test { + impl RoamingDeviceProfileConfig for Test { type Event = (); type RoamingDeviceProfileDevAddr = Vec; type RoamingDeviceProfileDevEUI = Vec; @@ -229,8 +230,6 @@ mod tests { type RoamingDeviceProfileVendorID = Vec; } - type System = frame_system::Module; - pub type Balances = pallet_balances::Module; pub type RoamingOperatorTestModule = RoamingOperatorModule; pub type RoamingNetworkTestModule = RoamingNetworkModule; pub type RoamingOrganizationTestModule = RoamingOrganizationModule; @@ -244,7 +243,6 @@ mod tests { pub type RoamingChargingPolicyTestModule = RoamingChargingPolicyModule; pub type RoamingNetworkProfileTestModule = RoamingNetworkProfileModule; pub type RoamingDeviceProfileTestModule = RoamingDeviceProfileModule; - type Randomness = pallet_randomness_collective_flip::Module; // This function basically just builds a genesis storage key/value store according to // our desired mockup. @@ -366,8 +364,8 @@ mod tests { // Verify Storage assert_eq!(RoamingAccountingPolicyTestModule::roaming_accounting_policies_count(), 1); assert_eq!( - RoamingAccountingPolicyTestModule::roaming_accounting_policy_configs(0), - Some(RoamingAccountingPolicyConfig { + RoamingAccountingPolicyTestModule::roaming_accounting_policy_settings(0), + Some(RoamingAccountingPolicySetting { policy_type: b"subscription".to_vec(), // policy_type subscription_fee: 200, // subscription_fee uplink_fee_factor: 15, // uplink_fee_factor @@ -397,10 +395,10 @@ mod tests { // Verify Storage assert_eq!(RoamingAgreementPolicyTestModule::roaming_agreement_policies_count(), 1); assert_eq!( - RoamingAgreementPolicyTestModule::roaming_agreement_policy_configs(0), - Some(RoamingAgreementPolicyConfig { + RoamingAgreementPolicyTestModule::roaming_agreement_policy_settings(0), + Some(RoamingAgreementPolicySetting { policy_activation_type: b"passive".to_vec(), - policy_expiry: 2019, + policy_expiry_block: 2019, }) ); @@ -484,10 +482,10 @@ mod tests { // Verify Storage assert_eq!(RoamingBillingPolicyTestModule::roaming_billing_policies_count(), 1); assert_eq!( - RoamingBillingPolicyTestModule::roaming_billing_policy_configs(0), - Some(RoamingBillingPolicyConfig { - policy_next_billing_at: 102020, - policy_frequency_in_days: 30, + RoamingBillingPolicyTestModule::roaming_billing_policy_settings(0), + Some(RoamingBillingPolicySetting { + policy_next_billing_at_block: 102020, + policy_frequency_in_blocks: 30, }) ); @@ -524,10 +522,10 @@ mod tests { // Verify Storage assert_eq!(RoamingChargingPolicyTestModule::roaming_charging_policies_count(), 1); assert_eq!( - RoamingChargingPolicyTestModule::roaming_charging_policy_configs(0), - Some(RoamingChargingPolicyConfig { - policy_next_charging_at: 102020, - policy_delay_after_billing_in_days: 7, + RoamingChargingPolicyTestModule::roaming_charging_policy_settings(0), + Some(RoamingChargingPolicySetting { + policy_next_charging_at_block: 102020, + policy_delay_after_billing_in_blocks: 7, }) ); @@ -617,8 +615,8 @@ mod tests { // Verify Storage assert_eq!(RoamingDeviceProfileTestModule::roaming_device_profiles_count(), 1); assert_eq!( - RoamingDeviceProfileTestModule::roaming_device_profile_configs(0), - Some(RoamingDeviceProfileConfig { + RoamingDeviceProfileTestModule::roaming_device_profile_settings(0), + Some(RoamingDeviceProfileSetting { device_profile_devaddr: b"1234".to_vec(), device_profile_deveui: b"5678".to_vec(), device_profile_joineui: b"6789".to_vec(), diff --git a/rustfmt.toml b/rustfmt.toml index 9b84d6f68..efdb96459 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -20,7 +20,7 @@ fn_single_line = false where_single_line = false imports_indent = "Block" imports_layout = "Vertical" -merge_imports = true +imports_granularity= "Crate" reorder_imports = true reorder_modules = true reorder_impl_items = true @@ -53,7 +53,7 @@ use_field_init_shorthand = true force_explicit_abi = true condense_wildcard_suffixes = true color = "Always" -required_version = "1.4.29" +required_version = "1.4.37" unstable_features = true disable_all_formatting = false skip_children = false diff --git a/traits/account-set/Cargo.toml b/traits/account-set/Cargo.toml index 6c928e862..26059aee4 100644 --- a/traits/account-set/Cargo.toml +++ b/traits/account-set/Cargo.toml @@ -26,5 +26,4 @@ std = [ [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -branch = "rococo-v1" -version = '3.0.0' +branch = "polkadot-v0.9.10"