From 79bea4b1fc9eb394fe53073f2ce87f3251bea229 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 10:50:50 +0200 Subject: [PATCH 01/32] chore(deps): cargo update --workspace --- Cargo.lock | 2388 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 1458 insertions(+), 930 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 42af2a5464..dca2830fd5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "Inflector" version = "0.11.4" @@ -94,6 +96,23 @@ 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" @@ -114,9 +133,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.38" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" +checksum = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b" [[package]] name = "approx" @@ -127,6 +146,15 @@ 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" @@ -149,23 +177,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] -name = "asn1_der" -version = "0.6.3" +name = "arrayvec" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fce6b6a0ffdafebd82c87e79e3f40e8d2c523e5fea5566ff6b90509bf98d638" -dependencies = [ - "asn1_der_derive", -] +checksum = "5a2f58b0bb10c380af2b26e57212856b8c9a59e0925b4c20f4a174a49734eaf7" [[package]] -name = "asn1_der_derive" -version = "0.1.2" +name = "asn1_der" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d0864d84b8e07b145449be9a8537db86bf9de5ce03b913214694643b4743502" -dependencies = [ - "quote 1.0.9", - "syn 1.0.63", -] +checksum = "9d6e24d2cce90c53b948c46271bfb053e4bdc2db9b5d3f65e20f8cf28a1b7fc3" [[package]] name = "assert_matches" @@ -173,6 +194,16 @@ 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.69", +] + [[package]] name = "async-channel" version = "1.6.1" @@ -274,6 +305,7 @@ 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", @@ -296,6 +328,20 @@ dependencies = [ "wasm-bindgen-futures", ] +[[package]] +name = "async-std-resolver" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f665c56111e244fe38e7708ee10948a4356ad6a548997c21f5a63a0f4e0edc4d" +dependencies = [ + "async-std", + "async-trait", + "futures-io", + "futures-util", + "pin-utils", + "trust-dns-resolver", +] + [[package]] name = "async-task" version = "4.0.3" @@ -304,13 +350,13 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] name = "async-trait" -version = "0.1.48" +version = "0.1.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36ea56748e10732c49404c153638a15ec3d6211ec5ff35d9bb20e13b93576adf" +checksum = "589652ce7ccb335d1e7ecb3be145425702b290dbcb7029bbeaae263fc1d87b48" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -381,7 +427,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "miniz_oxide", - "object 0.23.0", + "object", "rustc-demangle", ] @@ -409,13 +455,73 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" +[[package]] +name = "beefy-gadget" +version = "0.1.0" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#d3599994d4a54fb8573367c22e090354a2df1de6" +dependencies = [ + "beefy-primitives", + "futures 0.3.14", + "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#d3599994d4a54fb8573367c22e090354a2df1de6" +dependencies = [ + "beefy-gadget", + "beefy-primitives", + "futures 0.3.14", + "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#d3599994d4a54fb8573367c22e090354a2df1de6" +dependencies = [ + "parity-scale-codec", + "sp-api", + "sp-application-crypto", + "sp-core", + "sp-runtime", + "sp-std", +] + [[package]] name = "bincode" -version = "1.3.2" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" dependencies = [ - "byteorder", "serde", ] @@ -435,7 +541,7 @@ dependencies = [ "lazycell", "log", "peeking_take_while", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", "regex", "rustc-hash", @@ -623,9 +729,9 @@ checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" [[package]] name = "byteorder" -version = "1.3.4" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" @@ -708,6 +814,12 @@ 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" @@ -764,6 +876,15 @@ 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 = "0.29.3" @@ -814,6 +935,12 @@ 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" @@ -854,18 +981,18 @@ checksum = "dcb25d077389e53838a8158c8e99174c5a9d902dee4904320db714f3c653ffba" [[package]] name = "cranelift-bforest" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4066fd63b502d73eb8c5fa6bcab9c7962b05cd580f6b149ee83a8e730d8ce7fb" +checksum = "bcee7a5107071484772b89fdf37f0f460b7db75f476e43ea7a684fd942470bcf" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a54e4beb833a3c873a18a8fe735d73d732044004c7539a072c8faa35ccb0c60" +checksum = "654ab96f0f1cab71c0d323618a58360a492da2c341eb2c1f977fc195c664001b" dependencies = [ "byteorder", "cranelift-bforest", @@ -883,9 +1010,9 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c54cac7cacb443658d8f0ff36a3545822613fa202c946c0891897843bc933810" +checksum = "65994cfc5be9d5fd10c5fc30bcdddfa50c04bb79c91329287bff846434ff8f14" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -893,24 +1020,27 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a109760aff76788b2cdaeefad6875a73c2b450be13906524f6c2a81e05b8d83c" +checksum = "889d720b688b8b7df5e4903f9b788c3c59396050f5548e516e58ccb7312463ab" +dependencies = [ + "serde", +] [[package]] name = "cranelift-entity" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b044234aa32531f89a08b487630ddc6744696ec04c8123a1ad388de837f5de3" +checksum = "1a2e6884a363e42a9ba980193ea8603a4272f8a92bd8bbaf9f57a94dbea0ff96" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5452b3e4e97538ee5ef2cc071301c69a86c7adf2770916b9d04e9727096abd93" +checksum = "e6f41e2f9b57d2c030e249d0958f1cdc2c3cd46accf8c0438b3d1944e9153444" dependencies = [ "cranelift-codegen", "log", @@ -920,25 +1050,24 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f68035c10b2e80f26cc29c32fa824380877f38483504c2a47b54e7da311caaf3" +checksum = "aab70ba7575665375d31cbdea2462916ce58be887834e1b83c860b43b51af637" dependencies = [ "cranelift-codegen", - "raw-cpuid", "target-lexicon", ] [[package]] name = "cranelift-wasm" -version = "0.69.0" +version = "0.71.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a530eb9d1c95b3309deb24c3d179d8b0ba5837ed98914a429787c395f614949d" +checksum = "f2fc3d2e70da6439adf97648dcdf81834363154f2907405345b6fbe7ca38918c" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", - "itertools", + "itertools 0.10.0", "log", "serde", "smallvec 1.6.1", @@ -957,9 +1086,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dca26ee1f8d361640700bde38b2c37d8c22b3ce2d360e1fc1c74ea4b0aa7d775" +checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" dependencies = [ "cfg-if 1.0.0", "crossbeam-utils 0.8.3", @@ -1011,7 +1140,7 @@ dependencies = [ "cfg-if 1.0.0", "crossbeam-utils 0.8.3", "lazy_static", - "memoffset 0.6.1", + "memoffset 0.6.3", "scopeguard", ] @@ -1085,12 +1214,12 @@ dependencies = [ [[package]] name = "ctor" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8f45d9ad417bcef4817d614a501ab55cdd96a6fdb24f49aab89a54acfd66b19" +checksum = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d" dependencies = [ "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -1107,12 +1236,12 @@ dependencies = [ [[package]] name = "cumulus-client-collator" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-client-consensus-common", "cumulus-client-network", "cumulus-primitives-core", - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "parking_lot 0.9.0", "polkadot-node-primitives", @@ -1131,11 +1260,11 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-common" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "async-trait", "dyn-clone", - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "polkadot-primitives", "polkadot-runtime", @@ -1156,13 +1285,13 @@ dependencies = [ [[package]] name = "cumulus-client-consensus-relay-chain" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "async-trait", "cumulus-client-consensus-common", "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "parking_lot 0.9.0", "polkadot-service", @@ -1181,10 +1310,10 @@ dependencies = [ [[package]] name = "cumulus-client-network" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "futures-timer 3.0.2", "parity-scale-codec", "parking_lot 0.10.2", @@ -1205,18 +1334,19 @@ dependencies = [ [[package]] name = "cumulus-client-service" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-client-collator", "cumulus-client-consensus-common", "cumulus-primitives-core", - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "polkadot-primitives", "polkadot-service", "sc-chain-spec", "sc-client-api", "sc-service", + "sc-telemetry", "sc-tracing", "sp-api", "sp-blockchain", @@ -1229,7 +1359,7 @@ dependencies = [ [[package]] name = "cumulus-pallet-parachain-system" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", @@ -1253,18 +1383,37 @@ dependencies = [ "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#6ed96321a6b004eb860454087b3a7e278f326eb1" +dependencies = [ + "cumulus-primitives-core", + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", + "xcm", ] [[package]] -name = "cumulus-pallet-xcm-handler" +name = "cumulus-pallet-xcmp-queue" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" 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", @@ -1273,8 +1422,9 @@ dependencies = [ [[package]] name = "cumulus-primitives-core" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ + "frame-support", "impl-trait-for-tuples", "parity-scale-codec", "polkadot-core-primitives", @@ -1283,12 +1433,13 @@ dependencies = [ "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#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", "parity-scale-codec", @@ -1318,9 +1469,9 @@ dependencies = [ [[package]] name = "curve25519-dalek" -version = "3.0.2" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f627126b946c25a4638eec0ea634fc52506dea98db118aae985118ce7c3d723f" +checksum = "639891fde0dbea823fc3d798a0fdf9d2f9440a42d64a78ab3488b0ca025117b3" dependencies = [ "byteorder", "digest 0.9.0", @@ -1352,7 +1503,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f83e699727abca3c56e187945f303389590305ab2f0185ea445aa66e8d5f2a" dependencies = [ "data-encoding", - "syn 1.0.63", + "syn 1.0.69", +] + +[[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.69", ] [[package]] @@ -1371,13 +1533,14 @@ dependencies = [ [[package]] name = "derive_more" -version = "0.99.11" +version = "0.99.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41cb0e6161ad61ed084a36ba71fbba9e3ac5aee3606fb607fe08da6acbcf3d8c" +checksum = "f82b1b72f1263f214c0f823371768776c4f5841b942c9883aa8e5ec584fd0ba6" dependencies = [ - "proc-macro2 1.0.24", + "convert_case", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -1465,9 +1628,9 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "558e40ea573c374cf53507fd240b7ee2f5477df7cfebdb97323ec61c719399c5" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -1491,7 +1654,7 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" dependencies = [ - "curve25519-dalek 3.0.2", + "curve25519-dalek 3.1.0", "ed25519", "rand 0.7.3", "serde", @@ -1505,6 +1668,18 @@ 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.69", +] + [[package]] name = "enumflags2" version = "0.6.4" @@ -1520,9 +1695,9 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "946ee94e3dbf58fdd324f9ce245c7b238d46a66f00e86a020b71996349e46cce" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -1626,7 +1801,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", ] [[package]] @@ -1645,9 +1820,9 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "synstructure", ] @@ -1698,7 +1873,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6447e2f8178843749e8c8003206def83ec124a7859475395777a28b5338647c" dependencies = [ "either", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "log", "num-traits", @@ -1746,7 +1921,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", ] @@ -1764,14 +1939,14 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", "linregress", "log", "parity-scale-codec", - "paste 1.0.4", + "paste", "sp-api", "sp-io", "sp-runtime", @@ -1783,7 +1958,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "Inflector", "chrono", @@ -1803,10 +1978,23 @@ dependencies = [ "structopt", ] +[[package]] +name = "frame-election-provider-support" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +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#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -1822,7 +2010,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "serde", @@ -1833,7 +2021,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "bitflags", "frame-metadata", @@ -1842,7 +2030,7 @@ dependencies = [ "log", "once_cell", "parity-scale-codec", - "paste 1.0.4", + "paste", "serde", "smallvec 1.6.1", "sp-arithmetic", @@ -1859,41 +2047,41 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "Inflector", "frame-support-procedural-tools", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support-procedural-tools-derive", - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1910,7 +2098,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -1924,7 +2112,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-api", @@ -1933,7 +2121,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "parity-scale-codec", @@ -1942,11 +2130,17 @@ dependencies = [ "sp-std", ] +[[package]] +name = "fs-err" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcd1163ae48bda72a20ae26d66a04d3094135cadab911cff418ae5e33f253431" + [[package]] name = "fs-swap" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5839fda247e24ca4919c87c71dd5ca658f1f39e4f06829f80e3f15c3bafcfc2c" +checksum = "03d47dad3685eceed8488986cad3d5027165ea5edb164331770e2059555f10a5" dependencies = [ "lazy_static", "libc", @@ -2000,9 +2194,9 @@ checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678" [[package]] name = "futures" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f55667319111d593ba876406af7c409c0ebb44dc4be6132a783ccf163ea14c1" +checksum = "a9d5813545e459ad3ca1bff9915e9ad7f1a47dc6a91b627ce321d5863b7dd253" dependencies = [ "futures-channel", "futures-core", @@ -2015,9 +2209,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939" +checksum = "ce79c6a52a299137a6013061e0cf0e688fce5d7f1bc60125f520912fdb29ec25" dependencies = [ "futures-core", "futures-sink", @@ -2025,9 +2219,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94" +checksum = "098cd1c6dda6ca01650f1a37a794245eb73181d0d4d4e955e2f3c37db7af1815" [[package]] name = "futures-cpupool" @@ -2046,20 +2240,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdcef58a173af8148b182684c9f2d5250875adbcaff7b5794073894f9d8634a9" dependencies = [ "futures 0.1.31", - "futures 0.3.13", + "futures 0.3.14", "lazy_static", "log", "parking_lot 0.9.0", - "pin-project 0.4.27", + "pin-project 0.4.28", "serde", "serde_json", ] [[package]] name = "futures-executor" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891a4b7b96d84d5940084b2a37632dd65deeae662c114ceaa2c879629c9c0ad1" +checksum = "10f6cb7042eda00f0049b1d2080aa4b93442997ee507eb3828e8bd7577f94c9d" dependencies = [ "futures-core", "futures-task", @@ -2069,9 +2263,9 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59" +checksum = "365a1a1fb30ea1c03a830fdb2158f5236833ac81fa0ad12fe35b29cddc35cb04" [[package]] name = "futures-lite" @@ -2090,14 +2284,14 @@ dependencies = [ [[package]] name = "futures-macro" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7" +checksum = "668c6733a182cd7deb4f1de7ba3bf2120823835b3bcfbeacf7d2c4a773c1bb8b" dependencies = [ "proc-macro-hack", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -2113,15 +2307,15 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3" +checksum = "5c5629433c555de3d82861a7a4e3794a4c40040390907cfbfd7143a92a426c23" [[package]] name = "futures-task" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80" +checksum = "ba7aa51095076f3ba6d9a1f702f74bd05ec65f555d70d2033d55ba8d69f581bc" [[package]] name = "futures-timer" @@ -2137,9 +2331,9 @@ checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" [[package]] name = "futures-util" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1" +checksum = "3c144ad54d60f23927f0a6b6d816e4271278b64f005ad65e4e35291d2de9c025" dependencies = [ "futures 0.1.31", "futures-channel", @@ -2294,7 +2488,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http 0.2.3", + "http 0.2.4", "indexmap", "slab", "tokio 0.2.25", @@ -2305,9 +2499,9 @@ dependencies = [ [[package]] name = "handlebars" -version = "3.5.3" +version = "3.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb0867bbc5a3da37a753e78021d5fcf8a4db00e18dd2dd90fd36e24190e162d" +checksum = "580b6f551b29a3a02436318aed09ba1c58eea177dc49e39beac627ad356730a5" dependencies = [ "log", "pest", @@ -2427,6 +2621,17 @@ dependencies = [ "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" @@ -2440,9 +2645,9 @@ dependencies = [ [[package]] name = "http" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7245cd7449cc792608c3c8a9eaf69bd4eabbabf802713748fd739c98b82f0747" +checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11" dependencies = [ "bytes 1.0.1", "fnv", @@ -2468,14 +2673,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" dependencies = [ "bytes 0.5.6", - "http 0.2.3", + "http 0.2.4", ] [[package]] name = "httparse" -version = "1.3.5" +version = "1.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "615caabe2c3160b313d52ccc905335f4ed5f10881dd63dc5699d47e90be85691" +checksum = "bc35c995b9d93ec174cf9a27d425c7892722101e14993cd227fdb51d70cf9589" [[package]] name = "httpdate" @@ -2539,13 +2744,13 @@ dependencies = [ "futures-core", "futures-util", "h2 0.2.7", - "http 0.2.3", + "http 0.2.4", "http-body 0.3.1", "httparse", "httpdate", "itoa", - "pin-project 1.0.5", - "socket2", + "pin-project 1.0.6", + "socket2 0.3.19", "tokio 0.2.25", "tower-service", "tracing", @@ -2615,12 +2820,12 @@ dependencies = [ [[package]] name = "if-watch" -version = "0.1.8" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b8538953a3f0d0d3868f0a706eb4273535e10d72acb5c82c1c23ae48835c85" +checksum = "144c0ecbda48cc819482c37e460723b634dc060e23922f8ace87d94ff95ea4e5" dependencies = [ "async-io", - "futures 0.3.13", + "futures 0.3.14", "futures-lite", "if-addrs", "ipnet", @@ -2662,9 +2867,9 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5dacb10c5b3bb92d46ba347505a9041e676bb20ad220101326bffb0c93031ee" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -2708,7 +2913,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64fa110ec7b8f493f416eed552740d10e7030ad5f63b2308f82c9608ec2df275" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-timer 2.0.2", ] @@ -2727,6 +2932,18 @@ 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" @@ -2742,6 +2959,15 @@ 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" @@ -2759,9 +2985,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.48" +version = "0.3.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc9f84f9b115ce7843d60706df1422a916680bfdfcbdb0447c5614ff9d7e4d78" +checksum = "2d99f9e3e84b8f67f846ef5b4cbbc3b1c29f6c759fcbce6f01aa0e73d932a24c" dependencies = [ "wasm-bindgen", ] @@ -2810,10 +3036,10 @@ version = "15.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99a847f9ec7bb52149b2786a17c9cb260d6effc6b8eeb8c16b343a487a7563a3" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 0.1.5", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -2890,13 +3116,14 @@ dependencies = [ [[package]] name = "jsonrpsee-http-client" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f1d8440e2617bdebdf45114e90f65aed3f14bf73e23d874dde8e4b764676fe9" +checksum = "9b15fc3a0ef2e02d770aa1a221d3412443dcaedc43e27d80c957dd5bbd65321b" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.14", "hyper 0.13.10", + "hyper-rustls", "jsonrpsee-types", "jsonrpsee-utils", "log", @@ -2909,24 +3136,24 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cb3f732ccbeafd15cefb59c7c7b5ac6c553c2653613b63e5e7feb7f06a219e9" +checksum = "6bb4afbda476e2ee11cc6245055c498c116fc8002d2d60fe8338b6ee15d84c3a" dependencies = [ "Inflector", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "jsonrpsee-types" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a8cd20c190e75dc56f7543b9d5713c3186351b301b5507ea6b85d8c403aac78" +checksum = "c42a82588b5f7830e94341bb7e79d15f46070ab6f64dde1e3b3719721b61c5bf" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.14", "log", "serde", "serde_json", @@ -2936,11 +3163,11 @@ dependencies = [ [[package]] name = "jsonrpsee-utils" -version = "0.2.0-alpha.2" +version = "0.2.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e51670a3b56e5fb0d325920ce317c76184b8afabfd7bc5009831229cfef0732b" +checksum = "e65c77838fce96bc554b4a3a159d0b9a2497319ae9305c66ee853998c7ed2fd3" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "globset", "hyper 0.13.10", "jsonrpsee-types", @@ -2967,14 +3194,16 @@ dependencies = [ [[package]] name = "kusama-runtime" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-primitives", "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", + "frame-try-runtime", "log", "pallet-authority-discovery", "pallet-authorship", @@ -2990,6 +3219,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", + "pallet-mmr-primitives", "pallet-multisig", "pallet-nicks", "pallet-offences", @@ -3022,6 +3252,7 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-npos-elections", "sp-offchain", "sp-runtime", "sp-session", @@ -3101,9 +3332,9 @@ checksum = "3576a87f2ba00f6f106fdfcd16db1d698d648a26ad8e0573cad8537c3c362d2a" [[package]] name = "libc" -version = "0.2.88" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b07a082330a35e43f63177cc01689da34fbffa0105e1246cf0311472cac73a" +checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" [[package]] name = "libloading" @@ -3123,13 +3354,13 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.35.1" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc225a49973cf9ab10d0cdd6a4b8f0cda299df9b760824bbb623f15f8f0c95a" +checksum = "fe5759b526f75102829c15e4d8566603b4bf502ed19b5f35920d98113873470d" dependencies = [ "atomic", "bytes 1.0.1", - "futures 0.3.13", + "futures 0.3.14", "lazy_static", "libp2p-core", "libp2p-deflate", @@ -3144,6 +3375,7 @@ dependencies = [ "libp2p-ping", "libp2p-plaintext", "libp2p-pnet", + "libp2p-relay", "libp2p-request-response", "libp2p-swarm", "libp2p-swarm-derive", @@ -3154,23 +3386,23 @@ dependencies = [ "libp2p-yamux", "parity-multiaddr", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "smallvec 1.6.1", "wasm-timer", ] [[package]] name = "libp2p-core" -version = "0.27.1" +version = "0.28.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a2d56aadc2c2bf22cd7797f86e56a65b5b3994a0136b65be3106938acae7a26" +checksum = "71dd51b562e14846e65bad00e5808d0644376e6588668c490d3c48e1dfeb4a9a" dependencies = [ "asn1_der", "bs58", "ed25519-dalek", "either", "fnv", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "lazy_static", "libsecp256k1", @@ -3179,7 +3411,7 @@ dependencies = [ "multistream-select", "parity-multiaddr", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "prost", "prost-build", "rand 0.7.3", @@ -3195,35 +3427,38 @@ dependencies = [ [[package]] name = "libp2p-deflate" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d42eed63305f0420736fa487f9acef720c4528bd7852a6a760f5ccde4813345" +checksum = "a2181a641cd15f9b6ba71b1335800f309012a0a97a29ffaabbbf40e9d3d58f08" dependencies = [ "flate2", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", ] [[package]] name = "libp2p-dns" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5153b6db68fd4baa3b304e377db744dd8fea8ff4e4504509ee636abcde88d3e3" +checksum = "62e63dab8b5ff35e0c101a3e51e843ba782c07bbb1682f5fd827622e0d02b98b" dependencies = [ - "futures 0.3.13", + "async-std-resolver", + "futures 0.3.14", "libp2p-core", "log", + "smallvec 1.6.1", + "trust-dns-resolver", ] [[package]] name = "libp2p-floodsub" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3c63dfa06581b24b1d12bf9815b43689a784424be217d6545c800c7c75a207f" +checksum = "897645f99e9b396df256a6aa8ba8c4bc019ac6b7c62556f624b5feea9acc82bb" dependencies = [ "cuckoofilter", "fnv", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "libp2p-swarm", "log", @@ -3235,16 +3470,16 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "502dc5fcbfec4aa1c63ef3f7307ffe20e90c1a1387bf23ed0bec087f2dde58a1" +checksum = "794b0c85f5df1acbc1fc38414d37272594811193b6325c76d3931c3e3f5df8c0" dependencies = [ "asynchronous-codec 0.6.0", "base64 0.13.0", "byteorder", "bytes 1.0.1", "fnv", - "futures 0.3.13", + "futures 0.3.14", "hex_fmt", "libp2p-core", "libp2p-swarm", @@ -3261,11 +3496,11 @@ dependencies = [ [[package]] name = "libp2p-identify" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b40fb36a059b7a8cce1514bd8b546fa612e006c9937caa7f5950cb20021fe91e" +checksum = "f88ebc841d744979176ab4b8b294a3e655a7ba4ef26a905d073a52b49ed4dff5" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "libp2p-swarm", "log", @@ -3277,16 +3512,16 @@ dependencies = [ [[package]] name = "libp2p-kad" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf3da6c9acbcc05f93235d201d7d45ef4e8b88a45d8836f98becd8b4d443f066" +checksum = "bbb5b90b6bda749023a85f60b49ea74b387c25f17d8df541ae72a3c75dd52e63" dependencies = [ "arrayvec 0.5.2", "asynchronous-codec 0.6.0", "bytes 1.0.1", "either", "fnv", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "libp2p-swarm", "log", @@ -3303,34 +3538,34 @@ dependencies = [ [[package]] name = "libp2p-mdns" -version = "0.28.1" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e9e6374814d1b118d97ccabdfc975c8910bd16dc38a8bc058eeb08bf2080fe1" +checksum = "be28ca13bb648d249a9baebd750ebc64ce7040ddd5f0ce1035ff1f4549fb596d" dependencies = [ "async-io", "data-encoding", "dns-parser", - "futures 0.3.13", + "futures 0.3.14", "if-watch", "lazy_static", "libp2p-core", "libp2p-swarm", "log", - "rand 0.7.3", + "rand 0.8.3", "smallvec 1.6.1", - "socket2", + "socket2 0.4.0", "void", ] [[package]] name = "libp2p-mplex" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "350ce8b3923594aedabd5d6e3f875d058435052a29c3f32df378bc70d10be464" +checksum = "85e9b544335d1ed30af71daa96edbefadef6f19c7a55f078b9fc92c87163105d" dependencies = [ "asynchronous-codec 0.6.0", "bytes 1.0.1", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "log", "nohash-hasher", @@ -3342,13 +3577,13 @@ dependencies = [ [[package]] name = "libp2p-noise" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4aca322b52a0c5136142a7c3971446fb1e9964923a526c9cc6ef3b7c94e57778" +checksum = "36db0f0db3b0433f5b9463f1c0cd9eadc0a3734a9170439ce501ff99733a88bd" dependencies = [ "bytes 1.0.1", - "curve25519-dalek 3.0.2", - "futures 0.3.13", + "curve25519-dalek 3.1.0", + "futures 0.3.14", "lazy_static", "libp2p-core", "log", @@ -3364,11 +3599,11 @@ dependencies = [ [[package]] name = "libp2p-ping" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f3813276d0708c8db0f500d8beda1bda9ad955723b9cb272c41f4727256f73c" +checksum = "dea10fc5209260915ea65b78f612d7ff78a29ab288e7aa3250796866af861c45" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "libp2p-swarm", "log", @@ -3379,13 +3614,13 @@ dependencies = [ [[package]] name = "libp2p-plaintext" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d58defcadb646ae4b033e130b48d87410bf76394dc3335496cae99dac803e61" +checksum = "0c8c37b4d2a075b4be8442760a5f8c037180f0c8dd5b5734b9978ab868b3aa11" dependencies = [ "asynchronous-codec 0.6.0", "bytes 1.0.1", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "log", "prost", @@ -3400,42 +3635,65 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce3374f3b28162db9d3442c9347c4f14cb01e8290052615c7d341d40eae0599" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "log", - "pin-project 1.0.5", + "pin-project 1.0.6", "rand 0.7.3", "salsa20", "sha3", ] [[package]] -name = "libp2p-request-response" -version = "0.9.1" +name = "libp2p-relay" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10e5552827c33d8326502682da73a0ba4bfa40c1b55b216af3c303f32169dd89" +checksum = "3ff268be6a9d6f3c6cca3b81bbab597b15217f9ad8787c6c40fc548c1af7cd24" dependencies = [ - "async-trait", + "asynchronous-codec 0.6.0", "bytes 1.0.1", - "futures 0.3.13", + "futures 0.3.14", + "futures-timer 3.0.2", "libp2p-core", "libp2p-swarm", "log", - "lru", - "minicbor", + "pin-project 1.0.6", + "prost", + "prost-build", "rand 0.7.3", "smallvec 1.6.1", "unsigned-varint 0.7.0", + "void", "wasm-timer", ] [[package]] -name = "libp2p-swarm" -version = "0.27.2" +name = "libp2p-request-response" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7955b973e1fd2bd61ffd43ce261c1223f61f4aacd5bae362a924993f9a25fd98" +checksum = "725367dd2318c54c5ab1a6418592e5b01c63b0dedfbbfb8389220b2bcf691899" dependencies = [ - "either", - "futures 0.3.13", + "async-trait", + "bytes 1.0.1", + "futures 0.3.14", + "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.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75c26980cadd7c25d89071cb23e1f7f5df4863128cc91d83c6ddc72338cecafa" +dependencies = [ + "either", + "futures 0.3.14", "libp2p-core", "log", "rand 0.7.3", @@ -3451,45 +3709,45 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c564ebaa36a64839f51eaddb0243aaaa29ce64affb56129193cc3248b72af273" dependencies = [ "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "libp2p-tcp" -version = "0.27.1" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88a5aef80e519a6cb8e2663605142f97baaaea1a252eecbf8756184765f7471b" +checksum = "2b1a27d21c477951799e99d5c105d78868258502ce092988040a808d5a19bbd9" dependencies = [ "async-io", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "if-watch", "ipnet", "libc", "libp2p-core", "log", - "socket2", + "socket2 0.4.0", ] [[package]] name = "libp2p-uds" -version = "0.27.0" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80ac51ce419f60be966e02103c17f67ff5dc4422ba83ba54d251d6c62a4ed487" +checksum = "ffd6564bb3b7ff203661ccbb69003c2b551e34cef974f2d6c6a28306a12170b5" dependencies = [ "async-std", - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "log", ] [[package]] name = "libp2p-wasm-ext" -version = "0.27.0" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6149c46cb76935c80bc8be6ec6e3ebd5f5e1679765a255fb34331d54610f15dd" +checksum = "cef45d61e43c313531b5e903e4e8415212ff6338e0c54c47da5b9b412b5760de" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "js-sys", "libp2p-core", "parity-send-wrapper", @@ -3499,12 +3757,12 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.28.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3b1c6a3431045da8b925ed83384e4c5163e14b990572307fca9c507435d4d22" +checksum = "cace60995ef6f637e4752cccbb2590f6bc358e8741a0d066307636c69a4b3a74" dependencies = [ "either", - "futures 0.3.13", + "futures 0.3.14", "futures-rustls", "libp2p-core", "log", @@ -3517,11 +3775,11 @@ dependencies = [ [[package]] name = "libp2p-yamux" -version = "0.30.1" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4819358c542a86ff95f6ae691efb4b94ddaf477079b01a686f5705b79bfc232a" +checksum = "96d6144cc94143fb0a8dd1e7c2fbcc32a2808168bcd1d69920635424d5993b7b" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "libp2p-core", "parking_lot 0.11.1", "thiserror", @@ -3584,11 +3842,11 @@ dependencies = [ [[package]] name = "linregress" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d0ad4b5cc8385a881c561fac3501353d63d2a2b7a357b5064d71815c9a92724" +checksum = "b36162d2e1dcbdeb61223cb788f029f8ac9f2ab19969b89c5a8f4517aad4d940" dependencies = [ - "nalgebra", + "nalgebra 0.25.4", "statrs", ] @@ -3603,9 +3861,9 @@ dependencies = [ [[package]] name = "lock_api" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96ffd135b2fd7b973ac026d28085defbe8983df057ced3eb4f2130b0831312" +checksum = "5a3c91c24eae6777794bb1997ad98bbb87daf92890acab859f7eaa4320333176" dependencies = [ "scopeguard", ] @@ -3629,6 +3887,15 @@ 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" @@ -3644,6 +3911,12 @@ 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" @@ -3668,6 +3941,15 @@ 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" @@ -3682,9 +3964,9 @@ checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] name = "memmap2" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04e3e85b970d650e2ae6d70592474087051c11c54da7f7b4949725c5735fbcc6" +checksum = "397d1a6d6d0563c0f5462bbdae662cf6c784edf5e828e40c7257f85d82bf56dd" dependencies = [ "libc", ] @@ -3700,9 +3982,9 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.6.1" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "157b4208e3059a8f9e78d559edc658e13df41410cb3ae03979c83130067fdd87" +checksum = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d" dependencies = [ "autocfg", ] @@ -3748,9 +4030,10 @@ dependencies = [ [[package]] name = "metered-channel" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "futures-timer 3.0.2", ] @@ -3760,29 +4043,29 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c023c3f16109e7f33aa451f773fd61070e265b4977d0b6e344a51049296dd7df" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "rand 0.7.3", "thrift", ] [[package]] name = "minicbor" -version = "0.7.2" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c2b2c73f9640fccab53947e2b3474d5071fcbc8f82cac51ddf6c8041a30a9ea" +checksum = "51aa5bb0ca22415daca596a227b507f880ad1b2318a87fa9325312a5d285ca0d" dependencies = [ "minicbor-derive", ] [[package]] name = "minicbor-derive" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19ce18b5423c573a13e80cb3046ea0af6379ef725dc3af4886bdb8f4e5093068" +checksum = "7f2b9e8883d58e34b18facd16c4564a77ea50fce028ad3d0ee6753440e37acc8" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -3834,7 +4117,7 @@ checksum = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" dependencies = [ "log", "mio", - "miow 0.3.6", + "miow 0.3.7", "winapi 0.3.9", ] @@ -3863,11 +4146,10 @@ dependencies = [ [[package]] name = "miow" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" +checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" dependencies = [ - "socket2", "winapi 0.3.9", ] @@ -3911,19 +4193,19 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85ee3c48cb9d9b275ad967a0e96715badc13c6029adb92f34fa17b9ff28fd81f" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 0.1.5", "proc-macro-error", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "synstructure", ] [[package]] name = "multimap" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1255076139a83bb467426e7f8d0134968a8118844faa755985e077cf31850333" +checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a" [[package]] name = "multistream-select" @@ -3932,27 +4214,44 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d91ec0a2440aaff5f78ec35631a7027d50386c6163aa975f7caa0d5da4b6ff8" dependencies = [ "bytes 1.0.1", - "futures 0.3.13", + "futures 0.3.14", "log", - "pin-project 1.0.5", + "pin-project 1.0.6", "smallvec 1.6.1", "unsigned-varint 0.7.0", ] [[package]] name = "nalgebra" -version = "0.21.1" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6b6147c3d50b4f3cdabfe2ecc94a0191fd3d6ad58aefd9664cf396285883486" +checksum = "0abb021006c01b126a936a8dd1351e0720d83995f4fc942d0d426c654f990745" dependencies = [ - "approx", + "alga", + "approx 0.3.2", "generic-array 0.13.3", - "matrixmultiply", - "num-complex", - "num-rational", + "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", ] @@ -3968,12 +4267,12 @@ dependencies = [ [[package]] name = "nb-connect" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670361df1bc2399ee1ff50406a0d422587dd3bb0da596e1978fe8e05dabddf4f" +checksum = "a19900e7eee95eb2b3c2e26d12a874cc80aaf750e31be6fcbe743ead369fa45d" dependencies = [ "libc", - "socket2", + "socket2 0.4.0", ] [[package]] @@ -3987,18 +4286,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "nix" -version = "0.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa9b4819da1bc61c0ea48b63b7bc8604064dd43013e7cc325df098d49cd7c18a" -dependencies = [ - "bitflags", - "cc", - "cfg-if 1.0.0", - "libc", -] - [[package]] name = "nodrop" version = "0.1.14" @@ -4042,6 +4329,15 @@ dependencies = [ "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" @@ -4064,6 +4360,17 @@ dependencies = [ "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" @@ -4086,20 +4393,14 @@ dependencies = [ [[package]] name = "object" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" +checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" dependencies = [ "crc32fast", "indexmap", ] -[[package]] -name = "object" -version = "0.23.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" - [[package]] name = "once_cell" version = "1.7.2" @@ -4109,12 +4410,6 @@ dependencies = [ "parking_lot 0.11.1", ] -[[package]] -name = "oorandom" -version = "11.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" - [[package]] name = "opaque-debug" version = "0.2.3" @@ -4154,7 +4449,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4170,7 +4465,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4185,7 +4480,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4204,13 +4499,12 @@ dependencies = [ "sp-session", "sp-staking", "sp-std", - "sp-timestamp", ] [[package]] name = "pallet-balances" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4222,10 +4516,25 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-beefy" +version = "0.1.0" +source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#d3599994d4a54fb8573367c22e090354a2df1de6" +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#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4239,7 +4548,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4269,7 +4578,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4284,15 +4593,15 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "frame-election-provider-support", "frame-support", "frame-system", "log", "parity-scale-codec", "serde", "sp-arithmetic", - "sp-election-providers", "sp-io", "sp-npos-elections", "sp-runtime", @@ -4303,7 +4612,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4318,7 +4627,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4340,7 +4649,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4356,7 +4665,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4375,7 +4684,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4405,21 +4714,73 @@ dependencies = [ [[package]] name = "pallet-membership" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "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#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "ckb-merkle-mountain-range", + "frame-benchmarking", "frame-support", "frame-system", + "pallet-mmr-primitives", "parity-scale-codec", "serde", + "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#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +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#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +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#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4434,7 +4795,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4448,7 +4809,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4464,7 +4825,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4479,7 +4840,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4492,7 +4853,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", "frame-support", @@ -4521,7 +4882,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4537,7 +4898,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4557,7 +4918,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4571,19 +4932,19 @@ dependencies = [ [[package]] name = "pallet-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "frame-election-provider-support", "frame-support", "frame-system", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", + "paste", "serde", "sp-application-crypto", - "sp-election-providers", "sp-io", - "sp-npos-elections", "sp-runtime", "sp-staking", "sp-std", @@ -4593,18 +4954,18 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "pallet-sudo" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4618,7 +4979,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4637,7 +4998,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4651,7 +5012,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4667,7 +5028,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4684,7 +5045,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4695,7 +5056,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4710,7 +5071,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-support", "frame-system", @@ -4725,7 +5086,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", "frame-support", @@ -4736,6 +5097,20 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-xcm" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" +dependencies = [ + "frame-support", + "frame-system", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", + "xcm", +] + [[package]] name = "parachain-collator" version = "2.0.0" @@ -4791,7 +5166,7 @@ dependencies = [ [[package]] name = "parachain-info" version = "0.1.0" -source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#24b1ee6bd1d96f255889f167e59ef9c9399a6305" +source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", "frame-support", @@ -4805,7 +5180,8 @@ name = "parachain-runtime" version = "2.0.0" dependencies = [ "cumulus-pallet-parachain-system", - "cumulus-pallet-xcm-handler", + "cumulus-pallet-xcm", + "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", "frame-benchmarking", "frame-executive", @@ -4861,9 +5237,9 @@ dependencies = [ [[package]] name = "parity-multiaddr" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2c6805f98667a3828afb2ec2c396a8d610497e8d546f5447188aae47c5a79ec" +checksum = "58341485071825827b7f03cf7efd1cb21e6a709bea778fb50227fd45d2f361b4" dependencies = [ "arrayref", "bs58", @@ -4879,11 +5255,11 @@ dependencies = [ [[package]] name = "parity-scale-codec" -version = "2.0.1" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cd3dab59b5cf4bc81069ade0fc470341a1ef3ad5fa73e5a8943bed2ec12b2e8" +checksum = "e0f518afaa5a47d0d6386229b0a6e01e86427291d643aa4cabb4992219f504f8" dependencies = [ - "arrayvec 0.5.2", + "arrayvec 0.7.0", "bitvec", "byte-slice-cast", "parity-scale-codec-derive", @@ -4892,14 +5268,14 @@ dependencies = [ [[package]] name = "parity-scale-codec-derive" -version = "2.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa04976a81fde04924b40cc4036c4d12841e8bb04325a5cf2ada75731a150a7d" +checksum = "f44c5f94427bd0b5076e8f7e15ca3f60a4d8ac0077e4793884e6fdfd8915344e" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 0.1.5", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -4919,7 +5295,7 @@ dependencies = [ "libc", "log", "mio-named-pipes", - "miow 0.3.6", + "miow 0.3.7", "rand 0.7.3", "tokio 0.1.22", "tokio-named-pipes", @@ -4951,8 +5327,8 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f557c32c6d268a07c921471619c0295f5efad3a0e76d4f97a05c091a51d110b2" dependencies = [ - "proc-macro2 1.0.24", - "syn 1.0.63", + "proc-macro2 1.0.26", + "syn 1.0.69", "synstructure", ] @@ -5023,7 +5399,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", - "lock_api 0.4.2", + "lock_api 0.4.3", "parking_lot_core 0.8.3", ] @@ -5065,35 +5441,16 @@ dependencies = [ "cfg-if 1.0.0", "instant", "libc", - "redox_syscall 0.2.5", + "redox_syscall 0.2.6", "smallvec 1.6.1", "winapi 0.3.9", ] [[package]] name = "paste" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880" -dependencies = [ - "paste-impl", - "proc-macro-hack", -] - -[[package]] -name = "paste" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5d65c4d95931acda4498f675e332fcbdc9a06705cd07086c510e9b6009cd1c1" - -[[package]] -name = "paste-impl" -version = "0.1.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6" -dependencies = [ - "proc-macro-hack", -] +checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" [[package]] name = "pbkdf2" @@ -5165,9 +5522,9 @@ checksum = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55" dependencies = [ "pest", "pest_meta", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -5193,42 +5550,42 @@ dependencies = [ [[package]] name = "pin-project" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffbc8e94b38ea3d2d8ba92aea2983b503cd75d0888d75b86bb37970b5698e15" +checksum = "918192b5c59119d51e0cd221f4d49dde9112824ba717369e903c97d076083d0f" dependencies = [ - "pin-project-internal 0.4.27", + "pin-project-internal 0.4.28", ] [[package]] name = "pin-project" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96fa8ebb90271c4477f144354485b8068bd8f6b78b428b01ba892ca26caf0b63" +checksum = "bc174859768806e91ae575187ada95c91a29e96a98dc5d2cd9a1fed039501ba6" dependencies = [ - "pin-project-internal 1.0.5", + "pin-project-internal 1.0.6", ] [[package]] name = "pin-project-internal" -version = "0.4.27" +version = "0.4.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65ad2ae56b6abe3a1ee25f15ee605bacadb9a764edaba9c2bf4103800d4a1895" +checksum = "3be26700300be6d9d23264c73211d8190e755b6b5ca7a1b28230025511b52a5e" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "pin-project-internal" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "758669ae3558c6f74bd2a18b41f7ac0b5a195aea6639d6a9b5e5d1ad5ba24c0b" +checksum = "a490329918e856ed1b083f244e3bfe2d8c4f336407e4ea9e1a9f479ff09049e5" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -5264,44 +5621,43 @@ checksum = "989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325" [[package]] name = "polkadot-approval-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "polkadot-node-network-protocol", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-availability-bitfield-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "polkadot-node-network-protocol", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-availability-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "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", @@ -5311,38 +5667,36 @@ dependencies = [ "sp-keystore", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-availability-recovery" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", - "futures-timer 3.0.2", + "futures 0.3.14", "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", - "streamunordered", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-cli" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "frame-benchmarking-cli", - "futures 0.3.13", + "futures 0.3.14", "log", - "polkadot-parachain", + "polkadot-node-core-pvf", "polkadot-service", "sc-cli", "sc-service", @@ -5351,30 +5705,33 @@ dependencies = [ "structopt", "substrate-build-script-utils", "thiserror", - "tracing-futures", "try-runtime-cli", ] [[package]] name = "polkadot-collator-protocol" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "always-assert", + "futures 0.3.14", + "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", - "tracing-futures", ] [[package]] name = "polkadot-core-primitives" -version = "0.7.30" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "parity-scale-codec", "parity-util-mem", @@ -5385,12 +5742,13 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "parity-scale-codec", + "polkadot-node-primitives", "polkadot-primitives", - "reed-solomon-erasure", + "reed-solomon-novelpoly", "sp-core", "sp-trie", "thiserror", @@ -5399,64 +5757,66 @@ dependencies = [ [[package]] name = "polkadot-gossip-support" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "polkadot-node-network-protocol", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "rand 0.8.3", + "sp-application-crypto", + "sp-keystore", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-network-bridge" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.14", "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", - "tracing-futures", ] [[package]] name = "polkadot-node-collation-generation" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", + "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", - "tracing-futures", ] [[package]] name = "polkadot-node-core-approval-voting" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "futures-timer 3.0.2", "kvdb", - "kvdb-rocksdb", "merlin", "parity-scale-codec", "polkadot-node-jaeger", @@ -5470,41 +5830,39 @@ dependencies = [ "schnorrkel", "sp-application-crypto", "sp-blockchain", + "sp-consensus", "sp-consensus-slots", "sp-runtime", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-av-store" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "kvdb", - "kvdb-rocksdb", "parity-scale-codec", "polkadot-erasure-coding", + "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-overseer", "polkadot-primitives", - "sc-service", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-backing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "futures 0.3.13", + "futures 0.3.14", "polkadot-erasure-coding", "polkadot-node-primitives", "polkadot-node-subsystem", @@ -5514,31 +5872,29 @@ dependencies = [ "sp-keystore", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-bitfield-signing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "sp-keystore", "thiserror", "tracing", - "tracing-futures", "wasm-timer", ] [[package]] name = "polkadot-node-core-candidate-selection" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", @@ -5546,46 +5902,45 @@ dependencies = [ "sp-keystore", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-candidate-validation" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "async-trait", + "futures 0.3.14", "parity-scale-codec", + "polkadot-node-core-pvf", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-parachain", "polkadot-primitives", - "sp-core", + "sp-maybe-compressed-blob", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-chain-api" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "sp-blockchain", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-core-proposer" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "polkadot-node-subsystem", "polkadot-overseer", @@ -5593,6 +5948,7 @@ dependencies = [ "sc-basic-authorship", "sc-block-builder", "sc-client-api", + "sc-telemetry", "sp-api", "sp-blockchain", "sp-consensus", @@ -5607,41 +5963,68 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "thiserror", "tracing", - "tracing-futures", +] + +[[package]] +name = "polkadot-node-core-pvf" +version = "0.1.0" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" +dependencies = [ + "always-assert", + "assert_matches", + "async-process", + "async-std", + "futures 0.3.14", + "futures-timer 3.0.2", + "libc", + "parity-scale-codec", + "pin-project 1.0.6", + "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#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "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", - "tracing-futures", ] [[package]] name = "polkadot-node-jaeger" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "async-std", "lazy_static", @@ -5649,6 +6032,7 @@ dependencies = [ "mick-jaeger", "parity-scale-codec", "parking_lot 0.11.1", + "polkadot-node-primitives", "polkadot-primitives", "sc-network", "sp-core", @@ -5658,9 +6042,9 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "parity-scale-codec", "polkadot-node-jaeger", "polkadot-node-primitives", @@ -5668,43 +6052,46 @@ dependencies = [ "sc-network", "strum", "thiserror", - "zstd", ] [[package]] name = "polkadot-node-primitives" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "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#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "async-std", "async-trait", - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "futures-timer 3.0.2", "lazy_static", "log", "mick-jaeger", "parity-scale-codec", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "polkadot-node-jaeger", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -5717,25 +6104,25 @@ dependencies = [ "substrate-prometheus-endpoint", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-node-subsystem-util" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "metered-channel", "parity-scale-codec", - "pin-project 1.0.5", + "pin-project 1.0.6", "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", @@ -5744,73 +6131,44 @@ dependencies = [ "substrate-prometheus-endpoint", "thiserror", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-overseer" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "async-trait", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", - "oorandom", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", "sc-client-api", + "sp-api", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-parachain" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", - "libc", - "log", + "derive_more 0.99.13", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", "polkadot-core-primitives", - "raw_sync", - "sc-executor", "serde", - "shared_memory", "sp-core", - "sp-externalities", - "sp-io", "sp-runtime", "sp-std", - "sp-wasm-interface", - "static_assertions", - "thiserror", -] - -[[package]] -name = "polkadot-pov-distribution" -version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" -dependencies = [ - "futures 0.3.13", - "polkadot-node-network-protocol", - "polkadot-node-subsystem", - "polkadot-node-subsystem-util", - "polkadot-primitives", - "thiserror", - "tracing", - "tracing-futures", ] [[package]] name = "polkadot-primitives" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", "frame-system", @@ -5833,25 +6191,29 @@ dependencies = [ "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#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "assert_matches", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "polkadot-rpc" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-gadget", + "beefy-gadget-rpc", "jsonrpc-core", + "pallet-mmr-rpc", "pallet-transaction-payment-rpc", "parity-scale-codec", "polkadot-primitives", @@ -5878,14 +6240,16 @@ dependencies = [ [[package]] name = "polkadot-runtime" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-primitives", "bitvec", "frame-executive", "frame-support", "frame-system", "frame-system-rpc-runtime-api", + "frame-try-runtime", "log", "pallet-authority-discovery", "pallet-authorship", @@ -5901,6 +6265,7 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", + "pallet-mmr-primitives", "pallet-multisig", "pallet-nicks", "pallet-offences", @@ -5931,6 +6296,7 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-npos-elections", "sp-offchain", "sp-runtime", "sp-session", @@ -5944,15 +6310,20 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" 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", @@ -5966,6 +6337,7 @@ dependencies = [ "rustc-hex", "serde", "serde_derive", + "slot-range-helper", "sp-api", "sp-core", "sp-inherents", @@ -5980,11 +6352,11 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" -version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "derive_more 0.99.11", + "derive_more 0.99.13", "frame-support", "frame-system", "log", @@ -6017,16 +6389,21 @@ dependencies = [ [[package]] name = "polkadot-service" -version = "0.8.3" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-gadget", + "beefy-primitives", "frame-benchmarking", "frame-system-rpc-runtime-api", - "futures 0.3.13", + "futures 0.3.14", "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", @@ -6047,11 +6424,11 @@ dependencies = [ "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-pov-distribution", "polkadot-primitives", "polkadot-rpc", "polkadot-runtime", @@ -6096,17 +6473,16 @@ dependencies = [ "substrate-prometheus-endpoint", "thiserror", "tracing", - "tracing-futures", "westend-runtime", ] [[package]] name = "polkadot-statement-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "arrayvec 0.5.2", - "futures 0.3.13", + "futures 0.3.14", "indexmap", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -6115,13 +6491,12 @@ dependencies = [ "polkadot-primitives", "sp-staking", "tracing", - "tracing-futures", ] [[package]] name = "polkadot-statement-table" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -6130,10 +6505,12 @@ dependencies = [ [[package]] name = "polkadot-test-runtime" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-primitives", "bitvec", + "frame-election-provider-support", "frame-executive", "frame-support", "frame-system", @@ -6145,6 +6522,7 @@ dependencies = [ "pallet-balances", "pallet-grandpa", "pallet-indices", + "pallet-mmr-primitives", "pallet-nicks", "pallet-offences", "pallet-randomness-collective-flip", @@ -6170,7 +6548,6 @@ dependencies = [ "sp-block-builder", "sp-consensus-babe", "sp-core", - "sp-election-providers", "sp-inherents", "sp-io", "sp-offchain", @@ -6185,13 +6562,13 @@ dependencies = [ [[package]] name = "polkadot-test-service" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "frame-benchmarking", "frame-system", "futures 0.1.31", - "futures 0.3.13", + "futures 0.3.14", "hex", "pallet-balances", "pallet-staking", @@ -6233,16 +6610,15 @@ dependencies = [ "substrate-test-client", "tempfile", "tracing", - "tracing-futures", ] [[package]] name = "polling" -version = "2.0.2" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2a7bc6b2a29e632e45451c941832803a18cce6781db04de8a04696cdca8bde4" +checksum = "4fc12d774e799ee9ebae13f4076ca003b40d18a11ac0f3641e6f899618580b7b" dependencies = [ - "cfg-if 0.1.10", + "cfg-if 1.0.0", "libc", "log", "wepoll-sys", @@ -6298,6 +6674,16 @@ 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" @@ -6305,9 +6691,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ "proc-macro-error-attr", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "version_check", ] @@ -6317,7 +6703,7 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", "version_check", ] @@ -6345,9 +6731,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.24" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" dependencies = [ "unicode-xid 0.2.1", ] @@ -6384,14 +6770,14 @@ checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" dependencies = [ "bytes 1.0.1", "heck", - "itertools", + "itertools 0.9.0", "log", "multimap", "petgraph", "prost", "prost-types", "tempfile", - "which 4.0.2", + "which 4.1.0", ] [[package]] @@ -6401,10 +6787,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" dependencies = [ "anyhow", - "itertools", - "proc-macro2 1.0.24", + "itertools 0.9.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -6475,7 +6861,7 @@ version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", ] [[package]] @@ -6622,30 +7008,6 @@ dependencies = [ "rand_core 0.5.1", ] -[[package]] -name = "raw-cpuid" -version = "8.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fdf7d9dbd43f3d81d94a49c1c3df73cc2b3827995147e6cf7f89d4ec5483e73" -dependencies = [ - "bitflags", - "cc", - "rustc_version", -] - -[[package]] -name = "raw_sync" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a34bde3561f980a51c70495164200569a11662644fe5af017f0b5d7015688cc" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "nix", - "rand 0.8.3", - "winapi 0.3.9", -] - [[package]] name = "rawpointer" version = "0.2.1" @@ -6694,9 +7056,9 @@ checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" [[package]] name = "redox_syscall" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9" +checksum = "8270314b5ccceb518e7e578952f0b72b88222d02e8f77f5ecf7abbb673539041" dependencies = [ "bitflags", ] @@ -6719,16 +7081,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" dependencies = [ "getrandom 0.2.2", - "redox_syscall 0.2.5", + "redox_syscall 0.2.6", ] [[package]] -name = "reed-solomon-erasure" -version = "4.0.2" +name = "reed-solomon-novelpoly" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a415a013dd7c5d4221382329a5a3482566da675737494935cbbbcdec04662f9d" +checksum = "3bd8f48b2066e9f69ab192797d66da804d1935bf22763204ed3675740cb0f221" dependencies = [ - "smallvec 1.6.1", + "derive_more 0.99.13", + "fs-err", + "itertools 0.10.0", + "static_init", + "thiserror", ] [[package]] @@ -6746,9 +7112,9 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c38e3aecd2b21cb3959637b883bb3714bc7e43f0268b9a29d3743ee3e55cdd2" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -6759,19 +7125,19 @@ checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" dependencies = [ "log", "rustc-hash", + "serde", "smallvec 1.6.1", ] [[package]] name = "regex" -version = "1.4.3" +version = "1.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" +checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] @@ -6786,9 +7152,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.22" +version = "0.6.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" +checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548" [[package]] name = "region" @@ -6805,7 +7171,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "env_logger 0.8.3", "hex-literal 0.3.1", @@ -6816,6 +7182,7 @@ dependencies = [ "parity-scale-codec", "sp-core", "sp-io", + "sp-runtime", ] [[package]] @@ -6827,6 +7194,16 @@ 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.2" @@ -6870,9 +7247,10 @@ dependencies = [ [[package]] name = "rococo-runtime" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "beefy-primitives", "frame-executive", "frame-support", "frame-system", @@ -6883,10 +7261,16 @@ dependencies = [ "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", @@ -6894,6 +7278,8 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", + "pallet-utility", + "pallet-xcm", "parity-scale-codec", "polkadot-parachain", "polkadot-primitives", @@ -7009,14 +7395,24 @@ dependencies = [ "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.13", - "pin-project 0.4.27", + "futures 0.3.14", + "pin-project 0.4.28", "static_assertions", ] @@ -7056,12 +7452,12 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-trait", - "derive_more 0.99.11", + "derive_more 0.99.13", "either", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "libp2p", "log", @@ -7084,9 +7480,9 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "log", "parity-scale-codec", @@ -7107,7 +7503,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7123,7 +7519,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7144,22 +7540,22 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sc-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "chrono", "fdlimit", - "futures 0.3.13", + "futures 0.3.14", "hex", "libp2p", "log", @@ -7193,11 +7589,11 @@ dependencies = [ [[package]] name = "sc-client-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "derive_more 0.99.13", "fnv", - "futures 0.3.13", + "futures 0.3.14", "hash-db", "kvdb", "lazy_static", @@ -7227,7 +7623,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "blake2-rfc", "hash-db", @@ -7257,8 +7653,9 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "parking_lot 0.11.1", "sc-client-api", "sp-blockchain", "sp-consensus", @@ -7268,16 +7665,17 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "async-trait", + "derive_more 0.99.13", "fork-tree", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "log", "merlin", "num-bigint", - "num-rational", + "num-rational 0.2.4", "num-traits", "parity-scale-codec", "parking_lot 0.11.1", @@ -7314,10 +7712,10 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -7338,12 +7736,12 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "fork-tree", "parity-scale-codec", - "parking_lot 0.11.1", "sc-client-api", + "sc-consensus", "sp-blockchain", "sp-runtime", ] @@ -7351,13 +7749,13 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "async-trait", + "futures 0.3.14", "futures-timer 3.0.2", "log", "parity-scale-codec", - "parking_lot 0.11.1", "sc-client-api", "sc-telemetry", "sp-api", @@ -7370,6 +7768,7 @@ dependencies = [ "sp-inherents", "sp-runtime", "sp-state-machine", + "sp-timestamp", "sp-trie", "thiserror", ] @@ -7377,7 +7776,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "sc-client-api", @@ -7391,9 +7790,9 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "derive_more 0.99.13", "lazy_static", "libsecp256k1", "log", @@ -7407,6 +7806,7 @@ dependencies = [ "sp-core", "sp-externalities", "sp-io", + "sp-maybe-compressed-blob", "sp-panic-handler", "sp-runtime-interface", "sp-serializer", @@ -7420,11 +7820,12 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "derive_more 0.99.13", "parity-scale-codec", "parity-wasm 0.41.0", + "pwasm-utils", "sp-allocator", "sp-core", "sp-serializer", @@ -7436,7 +7837,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "parity-scale-codec", @@ -7451,7 +7852,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "parity-scale-codec", @@ -7469,19 +7870,20 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "async-trait", + "derive_more 0.99.13", "dyn-clone", "finality-grandpa", "fork-tree", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "linked-hash-map", "log", "parity-scale-codec", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "rand 0.7.3", "sc-block-builder", "sc-client-api", @@ -7508,11 +7910,11 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", + "derive_more 0.99.13", "finality-grandpa", - "futures 0.3.13", + "futures 0.3.14", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -7532,10 +7934,10 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "log", "num-traits", "parity-scale-codec", @@ -7553,10 +7955,10 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "ansi_term 0.12.1", - "futures 0.3.13", + "futures 0.3.14", "log", "parity-util-mem", "sc-client-api", @@ -7571,11 +7973,11 @@ dependencies = [ [[package]] name = "sc-keystore" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-trait", - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "futures-util", "hex", "merlin", @@ -7591,7 +7993,7 @@ dependencies = [ [[package]] name = "sc-light" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "lazy_static", @@ -7610,7 +8012,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-std", "async-trait", @@ -7619,12 +8021,12 @@ dependencies = [ "bs58", "bytes 1.0.1", "cid", - "derive_more 0.99.11", + "derive_more 0.99.13", "either", "erased-serde", "fnv", "fork-tree", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "hex", "ip_network", @@ -7636,7 +8038,7 @@ dependencies = [ "nohash-hasher", "parity-scale-codec", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "prost", "prost-build", "rand 0.7.3", @@ -7663,9 +8065,9 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "libp2p", "log", @@ -7673,18 +8075,20 @@ dependencies = [ "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#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "bytes 0.5.6", "fnv", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", + "hex", "hyper 0.13.10", "hyper-rustls", "log", @@ -7706,9 +8110,9 @@ dependencies = [ [[package]] name = "sc-peerset" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "libp2p", "log", "serde_json", @@ -7719,7 +8123,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7728,9 +8132,9 @@ dependencies = [ [[package]] name = "sc-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "hash-db", "jsonrpc-core", "jsonrpc-pubsub", @@ -7762,10 +8166,10 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -7786,7 +8190,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "futures 0.1.31", "jsonrpc-core", @@ -7804,12 +8208,13 @@ dependencies = [ [[package]] name = "sc-service" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "async-trait", "directories", "exit-future", "futures 0.1.31", - "futures 0.3.13", + "futures 0.3.14", "futures-timer 3.0.2", "hash-db", "jsonrpc-core", @@ -7819,7 +8224,7 @@ dependencies = [ "parity-scale-codec", "parity-util-mem", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -7867,7 +8272,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "parity-scale-codec", @@ -7882,7 +8287,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -7902,21 +8307,19 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "chrono", - "futures 0.3.13", + "futures 0.3.14", "libp2p", "log", "parking_lot 0.11.1", - "pin-project 1.0.5", + "pin-project 1.0.6", "rand 0.7.3", "serde", "serde_json", - "sp-utils", "take_mut", - "tracing", - "tracing-subscriber", + "thiserror", "void", "wasm-timer", ] @@ -7924,7 +8327,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "ansi_term 0.12.1", "atty", @@ -7935,7 +8338,6 @@ dependencies = [ "parking_lot 0.11.1", "regex", "rustc-hash", - "sc-telemetry", "sc-tracing-proc-macro", "serde", "serde_json", @@ -7952,21 +8354,21 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sc-transaction-graph" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "linked-hash-map", "log", "parity-util-mem", @@ -7985,9 +8387,9 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-diagnose", "intervalier", "log", @@ -8064,16 +8466,16 @@ version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sct" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c" +checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" dependencies = [ "ring", "untrusted", @@ -8156,22 +8558,22 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.124" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd761ff957cb2a45fbb9ab3da6512de9de55872866160b23c25f1a841e99d29f" +checksum = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.124" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1800f7693e94e186f5e25a28291ae1570da908aff7d97a095dec1e56ff99069b" +checksum = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -8256,20 +8658,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "shared_memory" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b854a362375dfe8ab12ea8a98228040d37293c988f85fbac9fa0f83336387966" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "nix", - "quick-error 2.0.0", - "rand 0.8.3", - "winapi 0.3.9", -] - [[package]] name = "shlex" version = "0.1.1" @@ -8278,9 +8666,9 @@ checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" [[package]] name = "signal-hook" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aa894ef3fade0ee7243422f4fbbd6c2b48e6de767e621d37ef65f2310f53cea" +checksum = "ef33d6d0cd06e0840fba9985aab098c147e67e05cee14d412d3345ed14ff30ac" dependencies = [ "libc", "signal-hook-registry", @@ -8303,14 +8691,14 @@ checksum = "0f0242b8e50dd9accdd56170e94ca1ebd223b098eb9c83539a6e367d0f36ae68" [[package]] name = "simba" -version = "0.1.5" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb931b1367faadea6b1ab1c306a860ec17aaa5fa39f367d0c744e69d971a1fb2" +checksum = "5132a955559188f3d13c9ba831e77c802ddc8782783f050ed0c52f5988b95f4c" dependencies = [ - "approx", - "num-complex", + "approx 0.4.0", + "num-complex 0.3.1", "num-traits", - "paste 0.1.18", + "paste", ] [[package]] @@ -8319,6 +8707,26 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" +[[package]] +name = "slot-range-helper" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" +dependencies = [ + "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" @@ -8363,6 +8771,16 @@ dependencies = [ "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" @@ -8372,7 +8790,7 @@ dependencies = [ "base64 0.12.3", "bytes 0.5.6", "flate2", - "futures 0.3.13", + "futures 0.3.14", "httparse", "log", "rand 0.7.3", @@ -8382,7 +8800,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "sp-core", @@ -8394,7 +8812,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "log", @@ -8411,19 +8829,19 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "blake2-rfc", - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "serde", @@ -8435,7 +8853,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "integer-sqrt", "num-traits", @@ -8443,12 +8861,13 @@ dependencies = [ "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#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-api", @@ -8460,7 +8879,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8471,7 +8890,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-api", @@ -8483,9 +8902,9 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "log", "lru", "parity-scale-codec", @@ -8501,7 +8920,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "serde", "serde_json", @@ -8510,9 +8929,10 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "async-trait", + "futures 0.3.14", "futures-timer 3.0.2", "libp2p", "log", @@ -8536,10 +8956,11 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "merlin", "parity-scale-codec", + "serde", "sp-api", "sp-application-crypto", "sp-consensus", @@ -8556,7 +8977,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -8566,7 +8987,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8578,14 +8999,14 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "base58", "blake2-rfc", "byteorder", "dyn-clonable", "ed25519-dalek", - "futures 0.3.13", + "futures 0.3.14", "hash-db", "hash256-std-hasher", "hex", @@ -8622,7 +9043,7 @@ dependencies = [ [[package]] name = "sp-database" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -8631,28 +9052,17 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", -] - -[[package]] -name = "sp-election-providers" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" -dependencies = [ - "parity-scale-codec", - "sp-arithmetic", - "sp-npos-elections", - "sp-std", + "syn 1.0.69", ] [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "environmental", "parity-scale-codec", @@ -8663,7 +9073,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "finality-grandpa", "log", @@ -8680,7 +9090,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -8692,9 +9102,9 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "hash-db", "libsecp256k1", "log", @@ -8716,7 +9126,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "lazy_static", "sp-core", @@ -8727,11 +9137,11 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-trait", - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "merlin", "parity-scale-codec", "parking_lot 0.11.1", @@ -8741,10 +9151,19 @@ dependencies = [ "sp-externalities", ] +[[package]] +name = "sp-maybe-compressed-blob" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "ruzstd", + "zstd", +] + [[package]] name = "sp-npos-elections" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "serde", @@ -8757,18 +9176,18 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sp-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "sp-api", "sp-core", @@ -8778,7 +9197,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "backtrace", ] @@ -8786,7 +9205,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "serde", "sp-core", @@ -8795,7 +9214,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "either", "hash256-std-hasher", @@ -8803,7 +9222,7 @@ dependencies = [ "log", "parity-scale-codec", "parity-util-mem", - "paste 1.0.4", + "paste", "rand 0.7.3", "serde", "sp-application-crypto", @@ -8816,7 +9235,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8833,19 +9252,19 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "Inflector", - "proc-macro-crate", - "proc-macro2 1.0.24", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "serde", "serde_json", @@ -8854,7 +9273,7 @@ dependencies = [ [[package]] name = "sp-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-api", @@ -8867,7 +9286,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8877,7 +9296,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "log", @@ -8899,12 +9318,12 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8917,7 +9336,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "sp-core", @@ -8930,9 +9349,8 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "impl-trait-for-tuples", "parity-scale-codec", "sp-api", "sp-inherents", @@ -8944,7 +9362,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "parity-scale-codec", @@ -8957,10 +9375,10 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "derive_more 0.99.11", - "futures 0.3.13", + "derive_more 0.99.13", + "futures 0.3.14", "log", "parity-scale-codec", "serde", @@ -8973,7 +9391,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "memory-db", @@ -8987,9 +9405,9 @@ dependencies = [ [[package]] name = "sp-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "futures-core", "futures-timer 3.0.2", "lazy_static", @@ -8999,7 +9417,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9011,7 +9429,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9037,12 +9455,38 @@ 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.69", +] + [[package]] name = "statrs" -version = "0.12.0" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cce16f6de653e88beca7bd13780d08e09d4489dbca1f9210e041bc4852481382" +checksum = "1e34b58a8f9b7462b6922e0b4e3c83d1b3c2075f7f996a56d6c66afa81590064" dependencies = [ + "nalgebra 0.19.0", "rand 0.7.3", ] @@ -9102,9 +9546,9 @@ checksum = "5ba9cdfda491b814720b6b06e0cac513d922fc407582032e8706e9f137976f90" dependencies = [ "heck", "proc-macro-error", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -9123,9 +9567,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee8bc6b87a5112aeeab1f4a9f7ab634fe6cbefc4850006df31267f4cfb9e3149" dependencies = [ "heck", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -9144,7 +9588,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "platforms", ] @@ -9152,10 +9596,10 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-system-rpc-runtime-api", - "futures 0.3.13", + "futures 0.3.14", "jsonrpc-core", "jsonrpc-core-client", "jsonrpc-derive", @@ -9175,10 +9619,10 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-std", - "derive_more 0.99.11", + "derive_more 0.99.13", "futures-util", "hyper 0.13.10", "log", @@ -9189,10 +9633,11 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "async-trait", "futures 0.1.31", - "futures 0.3.13", + "futures 0.3.14", "hash-db", "hex", "parity-scale-codec", @@ -9201,6 +9646,7 @@ dependencies = [ "sc-consensus", "sc-executor", "sc-light", + "sc-offchain", "sc-service", "serde", "serde_json", @@ -9232,12 +9678,13 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "ansi_term 0.12.1", "atty", "build-helper", "cargo_metadata", + "sp-maybe-compressed-blob", "tempfile", "toml", "walkdir", @@ -9269,11 +9716,11 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.63" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd9bc7ccc2688b3344c2f48b9b546648b25ce0b20fc717ee7fa7981a8ca9717" +checksum = "48fe99c6bd8b1cc636890bcc071842de909d902c81ac7dab53ba33c421ab8ffb" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", "unicode-xid 0.2.1", ] @@ -9284,9 +9731,9 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b834f2d66f734cb897113e34aaff2f1ab4719ca946f9a7358dba8f8064148701" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "unicode-xid 0.2.1", ] @@ -9317,7 +9764,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "rand 0.8.3", - "redox_syscall 0.2.5", + "redox_syscall 0.2.6", "remove_dir_all", "winapi 0.3.9", ] @@ -9355,9 +9802,9 @@ version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -9431,9 +9878,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023" +checksum = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342" dependencies = [ "tinyvec_macros", ] @@ -9737,13 +10184,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.14" +version = "0.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41768be5b9f3489491825f56f01f25290aa1d3e7cc97e182d4d34360493ba6fa" +checksum = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", ] [[package]] @@ -9761,7 +10208,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" dependencies = [ - "pin-project 1.0.5", + "pin-project 1.0.6", "tracing", ] @@ -9788,9 +10235,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ab8966ac3ca27126141f7999361cc97dd6fb4b71da04c02044fa9045d98bb96" +checksum = "705096c6f83bf68ea5d357a6aa01829ddbdac531b357b45abeca842938085baa" dependencies = [ "ansi_term 0.12.1", "chrono", @@ -9830,6 +10277,49 @@ dependencies = [ "hash-db", ] +[[package]] +name = "trust-dns-proto" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57e219ba600dd96c2f6d82eb79645068e14edbc5c7e27514af40436b88150c" +dependencies = [ + "async-trait", + "cfg-if 1.0.0", + "data-encoding", + "enum-as-inner", + "futures-channel", + "futures-io", + "futures-util", + "idna 0.2.2", + "ipnet", + "lazy_static", + "log", + "rand 0.8.3", + "smallvec 1.6.1", + "thiserror", + "tinyvec", + "url 2.2.1", +] + +[[package]] +name = "trust-dns-resolver" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0437eea3a6da51acc1e946545ff53d5b8fb2611ff1c3bed58522dde100536ae" +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" @@ -9839,7 +10329,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#645299e8b23ec5fa52935b1a6edbf36886e80141" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-try-runtime", "log", @@ -9865,15 +10355,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" dependencies = [ "cfg-if 0.1.10", - "rand 0.7.3", + "rand 0.3.23", "static_assertions", ] [[package]] name = "typenum" -version = "1.12.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" +checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06" [[package]] name = "ucd-trie" @@ -9904,9 +10394,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" +checksum = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0" dependencies = [ "matches", ] @@ -10030,9 +10520,9 @@ checksum = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb" [[package]] name = "vec-arena" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eafc1b9b2dfc6f5529177b62cf806484db55b32dc7c9658a118e11bbeb33061d" +checksum = "34b2f665b594b07095e3ac3f718e13c2197143416fae4c5706cffb7b1af8d7f1" [[package]] name = "vec_map" @@ -10042,9 +10532,9 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" [[package]] name = "version_check" -version = "0.9.2" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" +checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" [[package]] name = "void" @@ -10060,9 +10550,9 @@ checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" [[package]] name = "walkdir" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "777182bc735b6424e1a57516d35ed72cb8019d85c8c9bf536dccb3445c1a2f7d" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" dependencies = [ "same-file", "winapi 0.3.9", @@ -10104,9 +10594,9 @@ checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" [[package]] name = "wasm-bindgen" -version = "0.2.71" +version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ee1280240b7c461d6a0071313e08f34a60b0365f14260362e5a2b17d1d31aa7" +checksum = "83240549659d187488f91f33c0f8547cbfef0b2088bc470c116d1d260ef623d9" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -10114,24 +10604,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.71" +version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b7d8b6942b8bb3a9b0e73fc79b98095a27de6fa247615e59d096754a3bc2aa8" +checksum = "ae70622411ca953215ca6d06d3ebeb1e915f0f6613e3b495122878d7ebec7dae" dependencies = [ "bumpalo", "lazy_static", "log", - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.21" +version = "0.4.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e67a5806118af01f0d9045915676b22aaebecf4178ae7021bc171dab0b897ab" +checksum = "81b8b767af23de6ac18bf2168b690bed2902743ddf0fb39252e36f9e2bfc63ea" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -10141,9 +10631,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.71" +version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5ac38da8ef716661f0f36c0d8320b89028efe10c7c0afde65baffb496ce0d3b" +checksum = "3e734d91443f177bfdb41969de821e15c516931c3c3db3d318fa1b68975d0f6f" dependencies = [ "quote 1.0.9", "wasm-bindgen-macro-support", @@ -10151,22 +10641,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.71" +version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc053ec74d454df287b9374ee8abb36ffd5acb95ba87da3ba5b7d3fe20eb401e" +checksum = "d53739ff08c8a68b0fdbcd54c372b8ab800b1449ab3c9d706503bc7dd1621b2c" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.71" +version = "0.2.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d6f8ec44822dd71f5f221a5847fb34acd9060535c1211b70a05844c0f6383b1" +checksum = "d9a543ae66aa233d14bb765ed9af4a33e81b8b58d1584cf1b47ff8cd0b9e4489" [[package]] name = "wasm-gc-api" @@ -10185,7 +10675,7 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "js-sys", "parking_lot 0.11.1", "pin-utils", @@ -10202,7 +10692,7 @@ checksum = "bf617d864d25af3587aa745529f7aaa541066c876d57e050c0d0c85c61c92aff" dependencies = [ "libc", "memory_units", - "num-rational", + "num-rational 0.2.4", "num-traits", "parity-wasm 0.41.0", "wasmi-validation", @@ -10219,15 +10709,15 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.71.0" +version = "0.76.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89a30c99437829ede826802bfcf28500cf58df00e66cb9114df98813bc145ff1" +checksum = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8" [[package]] name = "wasmtime" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7426055cb92bd9a1e9469b48154d8d6119cd8c498c8b70284e420342c05dc45d" +checksum = "718cb52a9fdb7ab12471e9b9d051c9adfa6b5c504e0a1fea045e5eabc81eedd9" dependencies = [ "anyhow", "backtrace", @@ -10237,6 +10727,7 @@ dependencies = [ "indexmap", "libc", "log", + "paste", "region", "rustc-demangle", "serde", @@ -10245,6 +10736,7 @@ dependencies = [ "wasmparser", "wasmtime-cache", "wasmtime-environ", + "wasmtime-fiber", "wasmtime-jit", "wasmtime-profiling", "wasmtime-runtime", @@ -10254,9 +10746,9 @@ dependencies = [ [[package]] name = "wasmtime-cache" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c01d9287e36921e46f5887a47007824ae5dbb9b7517a2d565660ab4471478709" +checksum = "1f984df56c4adeba91540f9052db9f7a8b3b00cfaac1a023bee50a972f588b0c" dependencies = [ "anyhow", "base64 0.13.0", @@ -10275,27 +10767,28 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4134ed3a4316cd0de0e546c6004850afe472b0fa3fcdc2f2c15f8d449562d962" +checksum = "2a05abbf94e03c2c8ee02254b1949320c4d45093de5d9d6ed4d9351d536075c9" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "cranelift-wasm", + "wasmparser", "wasmtime-environ", ] [[package]] name = "wasmtime-debug" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e91fa931df6dd8af2b02606307674d3bad23f55473d5f4c809dddf7e4c4dc411" +checksum = "382eecd6281c6c1d1f3c904c3c143e671fc1a9573820cbfa777fba45ce2eda9c" dependencies = [ "anyhow", "gimli", "more-asserts", - "object 0.22.0", + "object", "target-lexicon", "thiserror", "wasmparser", @@ -10304,9 +10797,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1098871dc3120aaf8190d79153e470658bb79f63ee9ca31716711e123c28220" +checksum = "81011b2b833663d7e0ce34639459a0e301e000fc7331e0298b3a27c78d0cec60" dependencies = [ "anyhow", "cfg-if 1.0.0", @@ -10322,11 +10815,22 @@ dependencies = [ "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.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "738bfcd1561ede8bb174215776fd7d9a95d5f0a47ca3deabe0282c55f9a89f68" +checksum = "9b5f649623859a12d361fe4cc4793de44f7c3ff34c322c5714289787e89650bb" dependencies = [ "addr2line", "anyhow", @@ -10339,7 +10843,7 @@ dependencies = [ "gimli", "log", "more-asserts", - "object 0.22.0", + "object", "rayon", "region", "serde", @@ -10357,13 +10861,13 @@ dependencies = [ [[package]] name = "wasmtime-obj" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e96d77f1801131c5e86d93e42a3cf8a35402107332c202c245c83f34888a906" +checksum = "ef2e99cd9858f57fd062e9351e07881cedfc8597928385e02a48d9333b9e15a1" dependencies = [ "anyhow", "more-asserts", - "object 0.22.0", + "object", "target-lexicon", "wasmtime-debug", "wasmtime-environ", @@ -10371,16 +10875,16 @@ dependencies = [ [[package]] name = "wasmtime-profiling" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60bb672c9d894776d7b9250dd9b4fe890f8760201ee4f53e5f2da772b6c4debb" +checksum = "e46c0a590e49278ba7f79ef217af9db4ecc671b50042c185093e22d73524abb2" dependencies = [ "anyhow", "cfg-if 1.0.0", "gimli", "lazy_static", "libc", - "object 0.22.0", + "object", "scroll", "serde", "target-lexicon", @@ -10390,9 +10894,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.22.0" +version = "0.24.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a978086740949eeedfefcee667b57a9e98d9a7fc0de382fcfa0da30369e3530d" +checksum = "1438a09185fc7ca067caf1a80d7e5b398eefd4fb7630d94841448ade60feb3d0" dependencies = [ "backtrace", "cc", @@ -10401,7 +10905,7 @@ dependencies = [ "lazy_static", "libc", "log", - "memoffset 0.6.1", + "memoffset 0.6.3", "more-asserts", "psm", "region", @@ -10412,27 +10916,27 @@ dependencies = [ [[package]] name = "wast" -version = "35.0.0" +version = "35.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db5ae96da18bb5926341516fd409b5a8ce4e4714da7f0a1063d3b20ac9f9a1e1" +checksum = "2ef140f1b49946586078353a453a1d28ba90adfc54dde75710bc1931de204d68" dependencies = [ "leb128", ] [[package]] name = "wat" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b0fa059022c5dabe129f02b429d67086400deb8277f89c975555dacc1dadbcc" +checksum = "8ec280a739b69173e0ffd12c1658507996836ba4e992ed9bc1e5385a0bd72a02" dependencies = [ "wast", ] [[package]] name = "web-sys" -version = "0.3.48" +version = "0.3.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec600b26223b2948cedfde2a0aa6756dcf1fef616f43d7b3097aaf53a6c4d92b" +checksum = "a905d57e488fec8861446d3393670fb50d27a262344013181c2cdf9fff5481be" dependencies = [ "js-sys", "wasm-bindgen", @@ -10450,9 +10954,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.21.0" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376" +checksum = "aabe153544e473b775453675851ecc86863d2a81d786d741f6b76778f2a48940" dependencies = [ "webpki", ] @@ -10468,19 +10972,22 @@ dependencies = [ [[package]] name = "westend-runtime" -version = "0.8.29" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" 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-beefy", "pallet-collective", "pallet-democracy", "pallet-election-provider-multi-phase", @@ -10490,6 +10997,8 @@ dependencies = [ "pallet-im-online", "pallet-indices", "pallet-membership", + "pallet-mmr", + "pallet-mmr-primitives", "pallet-multisig", "pallet-nicks", "pallet-offences", @@ -10512,6 +11021,7 @@ dependencies = [ "polkadot-parachain", "polkadot-primitives", "polkadot-runtime-common", + "polkadot-runtime-parachains", "rustc-hex", "serde", "serde_derive", @@ -10523,6 +11033,7 @@ dependencies = [ "sp-core", "sp-inherents", "sp-io", + "sp-npos-elections", "sp-offchain", "sp-runtime", "sp-session", @@ -10545,14 +11056,20 @@ dependencies = [ [[package]] name = "which" -version = "4.0.2" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87c14ef7e1b8b8ecfc75d5eca37949410046e66f15d185c01d70824f1f8111ef" +checksum = "b55551e42cbdf2ce2bedd2203d0cc08dba002c27510f86dab6d0ce304cba3dfe" dependencies = [ + "either", "libc", - "thiserror", ] +[[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" @@ -10596,6 +11113,15 @@ 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" @@ -10614,29 +11140,33 @@ checksum = "85e60b0d1b5f99db2556934e21937020776a5d31520bf169e851ac44e6420214" [[package]] name = "x25519-dalek" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc614d95359fd7afc321b66d2107ede58b246b844cf5d8a0adcca413e439f088" +checksum = "5a0c105152107e3b96f6a00a65e86ce82d9b125230e1c4302940eca58ff71f4f" dependencies = [ - "curve25519-dalek 3.0.2", + "curve25519-dalek 3.1.0", "rand_core 0.5.1", "zeroize", ] [[package]] name = "xcm" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ + "derivative", + "impl-trait-for-tuples", "parity-scale-codec", ] [[package]] name = "xcm-builder" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "frame-support", + "frame-system", + "impl-trait-for-tuples", "parity-scale-codec", "polkadot-parachain", "sp-arithmetic", @@ -10649,8 +11179,8 @@ dependencies = [ [[package]] name = "xcm-executor" -version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#72243baaedf3ded4226032949a23f8478f5565d9" +version = "0.8.30" +source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -10670,7 +11200,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cc7bd8c983209ed5d527f44b01c41b7dc146fd960c61cf9e1d25399841dc271" dependencies = [ - "futures 0.3.13", + "futures 0.3.14", "log", "nohash-hasher", "parking_lot 0.11.1", @@ -10693,26 +11223,26 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3f369ddb18862aba61aa49bf31e74d29f0f162dec753063200e1dc084345d16" dependencies = [ - "proc-macro2 1.0.24", + "proc-macro2 1.0.26", "quote 1.0.9", - "syn 1.0.63", + "syn 1.0.69", "synstructure", ] [[package]] name = "zstd" -version = "0.5.4+zstd.1.4.7" +version = "0.6.1+zstd.1.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69996ebdb1ba8b1517f61387a883857818a66c8a295f487b1ffd8fd9d2c82910" +checksum = "5de55e77f798f205d8561b8fe2ef57abfb6e0ff2abe7fd3c089e119cdb5631a3" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "2.0.6+zstd.1.4.7" +version = "3.0.1+zstd.1.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98aa931fb69ecee256d44589d19754e61851ae4769bf963b385119b1cc37a49e" +checksum = "1387cabcd938127b30ce78c4bf00b30387dddf704e3f0881dbc4ff62b5566f8c" dependencies = [ "libc", "zstd-sys", @@ -10720,12 +11250,10 @@ dependencies = [ [[package]] name = "zstd-sys" -version = "1.4.18+zstd.1.4.7" +version = "1.4.20+zstd.1.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e6e8778706838f43f771d80d37787cb2fe06dafe89dd3aebaf6721b9eaec81" +checksum = "ebd5b733d7cf2d9447e2c3e76a5589b4f5e5ae065c22a2bc0b023cbc331b6c8e" dependencies = [ "cc", - "glob", - "itertools", "libc", ] From 7aacf06db7e1c004664db8f3293a22dbc20e61b2 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 10:51:22 +0200 Subject: [PATCH 02/32] fix(deps): update renamed xcm crate names --- runtime/Cargo.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 6bd50338fd..8af1ccbcb2 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -193,7 +193,12 @@ git = 'https://github.com/paritytech/cumulus.git' branch = 'rococo-v1' default-features = false -[dependencies.cumulus-pallet-xcm-handler] +[dependencies.cumulus-pallet-xcm] +git = 'https://github.com/paritytech/cumulus.git' +branch = 'rococo-v1' +default-features = false + +[dependencies.cumulus-pallet-xcmp-queue] git = 'https://github.com/paritytech/cumulus.git' branch = 'rococo-v1' default-features = false @@ -259,5 +264,6 @@ std = [ "xcm/std", "xcm-builder/std", "xcm-executor/std", - "cumulus-pallet-xcm-handler/std", + "cumulus-pallet-xcm/std", + "cumulus-pallet-xcmp-queue/std", ] From c3799e4838dcee909706cbfc18f35273e5e3bc1f Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 10:51:55 +0200 Subject: [PATCH 03/32] fix: rename ModuleId to PalletId --- pallets/local-treasury/src/lib.rs | 13 ++++--------- pallets/local-treasury/src/mock.rs | 8 ++++---- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/pallets/local-treasury/src/lib.rs b/pallets/local-treasury/src/lib.rs index bb0e30566c..9a3d60d7c6 100644 --- a/pallets/local-treasury/src/lib.rs +++ b/pallets/local-treasury/src/lib.rs @@ -15,12 +15,7 @@ mod tests; // this is requires as the #[pallet::event] proc macro generates code that violates this lint #[allow(clippy::unused_unit)] pub mod pallet { - use frame_support::{ - dispatch::DispatchResultWithPostInfo, - pallet_prelude::*, - sp_runtime::{traits::AccountIdConversion, ModuleId}, - traits::{Currency, ExistenceRequirement::AllowDeath, Get}, - }; + use frame_support::{dispatch::DispatchResultWithPostInfo, pallet_prelude::*, sp_runtime::{traits::AccountIdConversion}, traits::{Currency, ExistenceRequirement::AllowDeath, Get}, PalletId}; use frame_system::pallet_prelude::*; type AccountIdFor = ::AccountId; @@ -30,10 +25,10 @@ pub mod pallet { pub trait Config: frame_system::Config { /// Origin that is allowed to manage the treasury balance and initiate withdrawals type AdminOrigin: EnsureOrigin; - /// ModuleId must be an unique 8 character string. + /// PalletId must be an unique 8 character string. /// It is used to generate the account ID which holds the balance of the treasury. #[pallet::constant] - type ModuleId: Get; + type PalletId: Get; /// The pallet to use as the base currency for this treasury type Currency: Currency; type Event: From> + IsType<::Event>; @@ -62,7 +57,7 @@ pub mod pallet { /// Returns the accountID for the treasury balance /// Transferring balance to this account funds the treasury pub fn account_id() -> T::AccountId { - T::ModuleId::get().into_account() + T::PalletId::get().into_account() } } diff --git a/pallets/local-treasury/src/mock.rs b/pallets/local-treasury/src/mock.rs index 188286740c..db33c7c8bb 100644 --- a/pallets/local-treasury/src/mock.rs +++ b/pallets/local-treasury/src/mock.rs @@ -13,7 +13,7 @@ use sp_runtime::{ testing::Header, traits::AccountIdConversion, traits::{BlakeTwo256, IdentityLookup}, - ModuleId, + PalletId, }; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; @@ -86,11 +86,11 @@ impl pallet_balances::Config for Test { type WeightInfo = (); } -pub(crate) const LOCAL_TREASURE_MODULE_ID: ModuleId = ModuleId(*b"12345678"); +pub(crate) const LOCAL_TREASURE_MODULE_ID: PalletId = PalletId(*b"12345678"); pub(crate) const ADMIN_ACCOUNT_ID: AccountId = 88; parameter_types! { - pub const TestModuleId: ModuleId = LOCAL_TREASURE_MODULE_ID; + pub const TestPalletId: PalletId = LOCAL_TREASURE_MODULE_ID; } ord_parameter_types! { pub const AdminAccountId: AccountId = ADMIN_ACCOUNT_ID; @@ -98,7 +98,7 @@ ord_parameter_types! { impl pallet_local_treasury::Config for Test { type AdminOrigin = frame_system::EnsureSignedBy; - type ModuleId = TestModuleId; + type PalletId = TestPalletId; type Currency = Balances; type Event = Event; } From 7b3b477f249e160b4834667aed5cfa5e90dac305 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 9 Apr 2021 10:04:34 +0200 Subject: [PATCH 04/32] feat:pallets/orcale: add oracle pallet template --- pallets/oracle/Cargo.toml | 76 ++++++++++++++++++++++ pallets/oracle/README.md | 1 + pallets/oracle/src/lib.rs | 62 ++++++++++++++++++ pallets/oracle/src/mock.rs | 122 ++++++++++++++++++++++++++++++++++++ pallets/oracle/src/tests.rs | 122 ++++++++++++++++++++++++++++++++++++ 5 files changed, 383 insertions(+) create mode 100644 pallets/oracle/Cargo.toml create mode 100644 pallets/oracle/README.md create mode 100644 pallets/oracle/src/lib.rs create mode 100644 pallets/oracle/src/mock.rs create mode 100644 pallets/oracle/src/tests.rs diff --git a/pallets/oracle/Cargo.toml b/pallets/oracle/Cargo.toml new file mode 100644 index 0000000000..6f663f62b5 --- /dev/null +++ b/pallets/oracle/Cargo.toml @@ -0,0 +1,76 @@ +[package] +authors = ['ChainSafe Systems'] +description = 'FRAME pallet to implement PINT price feeds.' +edition = '2018' +license = 'LGPL-3.0-only' +name = 'pallet-oracle' +readme = 'README.md' +repository = 'https://github.com/ChainSafe/PINT/' +version = '0.0.1' + +[features] +default = ['std'] +std = [ + 'codec/std', + 'frame-support/std', + 'frame-system/std', + 'chainlink/std' +] +[dependencies.codec] +default-features = false +features = ['derive'] +package = 'parity-scale-codec' +version = '2.0.0' + +[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' + +[dev-dependencies] +serde = { version = "1.0.101" } + +[dev-dependencies.pallet-balances] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +branch = 'rococo-v1' +version = '3.0.0' + +[dev-dependencies.sp-core] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +branch = 'rococo-v1' +version = '3.0.0' + +[dev-dependencies.sp-io] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +branch = 'rococo-v1' +version = '3.0.0' + +[dev-dependencies.sp-runtime] +default-features = false +git = 'https://github.com/paritytech/substrate.git' +branch = 'rococo-v1' +version = '3.0.0' + +[dependencies.chainlink] +default_features = false +package = 'pallet-chainlink-feed' +path = '../../../chainlink-polkadot/pallet-chainlink-feed' +#git = 'https://github.com/smartcontractkit/chainlink-polkadot.git' + +[package.metadata.docs.rs] +targets = ['x86_64-unknown-linux-gnu'] + + +#[patch.crates-io] +#sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = 'rococo-v1', version = '3.0.0' } +#parity-util-mem = {version = '0.7.0'} \ No newline at end of file diff --git a/pallets/oracle/README.md b/pallets/oracle/README.md new file mode 100644 index 0000000000..e850d9c23f --- /dev/null +++ b/pallets/oracle/README.md @@ -0,0 +1 @@ +License: LGPL-3.0-only \ No newline at end of file diff --git a/pallets/oracle/src/lib.rs b/pallets/oracle/src/lib.rs new file mode 100644 index 0000000000..ff1daa10c6 --- /dev/null +++ b/pallets/oracle/src/lib.rs @@ -0,0 +1,62 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +#![cfg_attr(not(feature = "std"), no_std)] + +pub use pallet::*; + +#[cfg(test)] +mod mock; + +#[cfg(test)] +mod tests; + +#[frame_support::pallet] +// this is requires as the #[pallet::event] proc macro generates code that violates this lint +#[allow(clippy::unused_unit)] +pub mod pallet { + use frame_support::{ + dispatch::DispatchResultWithPostInfo, + pallet_prelude::*, + sp_runtime::{traits::AccountIdConversion, ModuleId}, + traits::{Currency, ExistenceRequirement::AllowDeath, Get}, + }; + use frame_system::pallet_prelude::*; + + type AccountIdFor = ::AccountId; + type BalanceFor = <::Currency as Currency>>::Balance; + + #[pallet::config] + pub trait Config: frame_system::Config { + type Currency: Currency; + type Event: From> + IsType<::Event>; + } + + #[pallet::pallet] + #[pallet::generate_store(pub(super) trait Store)] + pub struct Pallet(_); + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + } + + #[pallet::error] + pub enum Error {} + + #[pallet::hooks] + impl Hooks> for Pallet {} + + #[pallet::call] + impl Pallet { + #[pallet::weight(10_000)] // TODO: Set weights + pub fn withdraw( + origin: OriginFor, + amount: BalanceFor, + recipient: AccountIdFor, + ) -> DispatchResultWithPostInfo { + + Ok(().into()) + } + } +} diff --git a/pallets/oracle/src/mock.rs b/pallets/oracle/src/mock.rs new file mode 100644 index 0000000000..188286740c --- /dev/null +++ b/pallets/oracle/src/mock.rs @@ -0,0 +1,122 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +// Required as construct_runtime! produces code that violates this lint +#![allow(clippy::from_over_into)] + +use crate as pallet_local_treasury; +use frame_support::{ord_parameter_types, parameter_types, traits::StorageMapShim}; +use frame_system as system; + +use sp_core::H256; +use sp_runtime::{ + testing::Header, + traits::AccountIdConversion, + traits::{BlakeTwo256, IdentityLookup}, + ModuleId, +}; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +// Configure a mock runtime to test the pallet. +frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Module, Call, Config, Storage, Event}, + Balances: pallet_balances::{Module, Call, Storage, Config, Event}, + LocalTreasury: pallet_local_treasury::{Module, Call, Storage, Event}, + } +); + +parameter_types! { + pub const BlockHashCount: u64 = 250; + pub const SS58Prefix: u8 = 42; +} + +pub(crate) type Balance = u64; +pub(crate) type AccountId = u64; + +impl system::Config for Test { + type BaseCallFilter = (); + type BlockWeights = (); + type BlockLength = (); + type DbWeight = (); + type Origin = Origin; + type Call = Call; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type Event = Event; + type BlockHashCount = BlockHashCount; + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = (); + type OnNewAccount = (); + type OnKilledAccount = (); + type SystemWeightInfo = (); + type SS58Prefix = SS58Prefix; +} + +// param types for balances +parameter_types! { + pub const MaxLocks: u32 = 1024; + pub static ExistentialDeposit: Balance = 0; +} + +impl pallet_balances::Config for Test { + type Balance = Balance; + type DustRemoval = (); + type Event = Event; + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = StorageMapShim< + pallet_balances::Account, + system::Provider, + Balance, + pallet_balances::AccountData, + >; + type MaxLocks = MaxLocks; + type WeightInfo = (); +} + +pub(crate) const LOCAL_TREASURE_MODULE_ID: ModuleId = ModuleId(*b"12345678"); +pub(crate) const ADMIN_ACCOUNT_ID: AccountId = 88; + +parameter_types! { + pub const TestModuleId: ModuleId = LOCAL_TREASURE_MODULE_ID; +} +ord_parameter_types! { + pub const AdminAccountId: AccountId = ADMIN_ACCOUNT_ID; +} + +impl pallet_local_treasury::Config for Test { + type AdminOrigin = frame_system::EnsureSignedBy; + type ModuleId = TestModuleId; + type Currency = Balances; + type Event = Event; +} + +pub fn local_treasury_account_id() -> AccountId { + LOCAL_TREASURE_MODULE_ID.into_account() +} + +// Build genesis storage according to the mock runtime. +pub fn new_test_ext(balances: Vec<(AccountId, Balance)>) -> sp_io::TestExternalities { + let mut t = frame_system::GenesisConfig::default() + .build_storage::() + .unwrap(); + pallet_balances::GenesisConfig:: { + // Assign initial balances to accounts + balances, + } + .assimilate_storage(&mut t) + .unwrap(); + t.into() +} diff --git a/pallets/oracle/src/tests.rs b/pallets/oracle/src/tests.rs new file mode 100644 index 0000000000..26782a3b14 --- /dev/null +++ b/pallets/oracle/src/tests.rs @@ -0,0 +1,122 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +use crate::mock::*; +use frame_support::{assert_noop, assert_ok}; +use pallet_balances::Error as BalancesError; +use sp_runtime::traits::BadOrigin; + +const ASHLEY: AccountId = 0; + +fn assert_balances(balances: &[(AccountId, Balance)]) { + for (account, balance) in balances { + assert_eq!(&Balances::free_balance(account), balance) + } +} + +#[test] +fn unprivileged_account_can_deposit() { + const INITIAL_BALANCE: Balance = 100; + const AMOUNT: Balance = 10; + + let initial_balances: Vec<(u64, u64)> = + vec![(local_treasury_account_id(), 0), (ASHLEY, INITIAL_BALANCE)]; + + let final_balances: Vec<(u64, u64)> = vec![ + (local_treasury_account_id(), AMOUNT), + (ASHLEY, INITIAL_BALANCE - AMOUNT), + ]; + + new_test_ext(initial_balances).execute_with(|| { + assert_ok!(Balances::transfer( + Origin::signed(ASHLEY), + local_treasury_account_id(), + AMOUNT + )); + assert_balances(&final_balances); + }); +} + +#[test] +fn unprivileged_account_cannot_withdraw() { + const INITIAL_BALANCE: Balance = 100; + const AMOUNT: Balance = 10; + + let initial_balances: Vec<(u64, u64)> = + vec![(local_treasury_account_id(), 0), (ASHLEY, INITIAL_BALANCE)]; + + new_test_ext(initial_balances.clone()).execute_with(|| { + assert_noop!( + LocalTreasury::withdraw(Origin::signed(ASHLEY), AMOUNT, ASHLEY), + BadOrigin + ); + assert_balances(&initial_balances); + }); +} + +#[test] +fn admin_account_can_withdraw() { + const INITIAL_BALANCE: Balance = 100; + const AMOUNT: Balance = 1; + + let initial_balances: Vec<(u64, u64)> = vec![ + (local_treasury_account_id(), INITIAL_BALANCE), + (ADMIN_ACCOUNT_ID, 0), + ]; + + let final_balances: Vec<(u64, u64)> = vec![ + (local_treasury_account_id(), INITIAL_BALANCE - AMOUNT), + (ADMIN_ACCOUNT_ID, AMOUNT), + ]; + + new_test_ext(initial_balances).execute_with(|| { + assert_ok!(LocalTreasury::withdraw( + Origin::signed(ADMIN_ACCOUNT_ID), + AMOUNT, + ADMIN_ACCOUNT_ID + )); + assert_balances(&final_balances); + }); +} + +#[test] +fn admin_account_can_withdraw_to_zero() { + const INITIAL_BALANCE: Balance = 100; + const AMOUNT: Balance = 100; + + let initial_balances: Vec<(u64, u64)> = vec![ + (local_treasury_account_id(), INITIAL_BALANCE), + (ADMIN_ACCOUNT_ID, 0), + ]; + + let final_balances: Vec<(u64, u64)> = + vec![(local_treasury_account_id(), 0), (ADMIN_ACCOUNT_ID, AMOUNT)]; + + new_test_ext(initial_balances).execute_with(|| { + assert_ok!(LocalTreasury::withdraw( + Origin::signed(ADMIN_ACCOUNT_ID), + AMOUNT, + ADMIN_ACCOUNT_ID + )); + assert_balances(&final_balances); + }); +} + +#[test] +fn admin_account_overdraw_fails() { + const INITIAL_BALANCE: Balance = 100; + const AMOUNT: Balance = 101; + + let initial_balances: Vec<(u64, u64)> = vec![ + (local_treasury_account_id(), INITIAL_BALANCE), + (ADMIN_ACCOUNT_ID, 0), + ]; + + new_test_ext(initial_balances.clone()).execute_with(|| { + assert_noop!( + LocalTreasury::withdraw(Origin::signed(ADMIN_ACCOUNT_ID), AMOUNT, ADMIN_ACCOUNT_ID), + BalancesError::::InsufficientBalance + ); + assert_balances(&initial_balances); + }); +} From 9c566a69145d5cfd6b6835c075c7943db613afbc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 09:12:36 +0200 Subject: [PATCH 05/32] feat:pallets/orcale: rename to price feed and include chainlink feed --- pallets/oracle/src/mock.rs | 122 ---------------------- pallets/oracle/src/tests.rs | 122 ---------------------- pallets/{oracle => price-feed}/Cargo.toml | 21 ++-- pallets/{oracle => price-feed}/README.md | 0 pallets/{oracle => price-feed}/src/lib.rs | 24 ++--- 5 files changed, 18 insertions(+), 271 deletions(-) delete mode 100644 pallets/oracle/src/mock.rs delete mode 100644 pallets/oracle/src/tests.rs rename pallets/{oracle => price-feed}/Cargo.toml (76%) rename pallets/{oracle => price-feed}/README.md (100%) rename pallets/{oracle => price-feed}/src/lib.rs (81%) diff --git a/pallets/oracle/src/mock.rs b/pallets/oracle/src/mock.rs deleted file mode 100644 index 188286740c..0000000000 --- a/pallets/oracle/src/mock.rs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2021 ChainSafe Systems -// SPDX-License-Identifier: LGPL-3.0-only - -// Required as construct_runtime! produces code that violates this lint -#![allow(clippy::from_over_into)] - -use crate as pallet_local_treasury; -use frame_support::{ord_parameter_types, parameter_types, traits::StorageMapShim}; -use frame_system as system; - -use sp_core::H256; -use sp_runtime::{ - testing::Header, - traits::AccountIdConversion, - traits::{BlakeTwo256, IdentityLookup}, - ModuleId, -}; - -type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; -type Block = frame_system::mocking::MockBlock; - -// Configure a mock runtime to test the pallet. -frame_support::construct_runtime!( - pub enum Test where - Block = Block, - NodeBlock = Block, - UncheckedExtrinsic = UncheckedExtrinsic, - { - System: frame_system::{Module, Call, Config, Storage, Event}, - Balances: pallet_balances::{Module, Call, Storage, Config, Event}, - LocalTreasury: pallet_local_treasury::{Module, Call, Storage, Event}, - } -); - -parameter_types! { - pub const BlockHashCount: u64 = 250; - pub const SS58Prefix: u8 = 42; -} - -pub(crate) type Balance = u64; -pub(crate) type AccountId = u64; - -impl system::Config for Test { - type BaseCallFilter = (); - type BlockWeights = (); - type BlockLength = (); - type DbWeight = (); - type Origin = Origin; - type Call = Call; - type Index = u64; - type BlockNumber = u64; - type Hash = H256; - type Hashing = BlakeTwo256; - type AccountId = AccountId; - type Lookup = IdentityLookup; - type Header = Header; - type Event = Event; - type BlockHashCount = BlockHashCount; - type Version = (); - type PalletInfo = PalletInfo; - type AccountData = (); - type OnNewAccount = (); - type OnKilledAccount = (); - type SystemWeightInfo = (); - type SS58Prefix = SS58Prefix; -} - -// param types for balances -parameter_types! { - pub const MaxLocks: u32 = 1024; - pub static ExistentialDeposit: Balance = 0; -} - -impl pallet_balances::Config for Test { - type Balance = Balance; - type DustRemoval = (); - type Event = Event; - type ExistentialDeposit = ExistentialDeposit; - type AccountStore = StorageMapShim< - pallet_balances::Account, - system::Provider, - Balance, - pallet_balances::AccountData, - >; - type MaxLocks = MaxLocks; - type WeightInfo = (); -} - -pub(crate) const LOCAL_TREASURE_MODULE_ID: ModuleId = ModuleId(*b"12345678"); -pub(crate) const ADMIN_ACCOUNT_ID: AccountId = 88; - -parameter_types! { - pub const TestModuleId: ModuleId = LOCAL_TREASURE_MODULE_ID; -} -ord_parameter_types! { - pub const AdminAccountId: AccountId = ADMIN_ACCOUNT_ID; -} - -impl pallet_local_treasury::Config for Test { - type AdminOrigin = frame_system::EnsureSignedBy; - type ModuleId = TestModuleId; - type Currency = Balances; - type Event = Event; -} - -pub fn local_treasury_account_id() -> AccountId { - LOCAL_TREASURE_MODULE_ID.into_account() -} - -// Build genesis storage according to the mock runtime. -pub fn new_test_ext(balances: Vec<(AccountId, Balance)>) -> sp_io::TestExternalities { - let mut t = frame_system::GenesisConfig::default() - .build_storage::() - .unwrap(); - pallet_balances::GenesisConfig:: { - // Assign initial balances to accounts - balances, - } - .assimilate_storage(&mut t) - .unwrap(); - t.into() -} diff --git a/pallets/oracle/src/tests.rs b/pallets/oracle/src/tests.rs deleted file mode 100644 index 26782a3b14..0000000000 --- a/pallets/oracle/src/tests.rs +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2021 ChainSafe Systems -// SPDX-License-Identifier: LGPL-3.0-only - -use crate::mock::*; -use frame_support::{assert_noop, assert_ok}; -use pallet_balances::Error as BalancesError; -use sp_runtime::traits::BadOrigin; - -const ASHLEY: AccountId = 0; - -fn assert_balances(balances: &[(AccountId, Balance)]) { - for (account, balance) in balances { - assert_eq!(&Balances::free_balance(account), balance) - } -} - -#[test] -fn unprivileged_account_can_deposit() { - const INITIAL_BALANCE: Balance = 100; - const AMOUNT: Balance = 10; - - let initial_balances: Vec<(u64, u64)> = - vec![(local_treasury_account_id(), 0), (ASHLEY, INITIAL_BALANCE)]; - - let final_balances: Vec<(u64, u64)> = vec![ - (local_treasury_account_id(), AMOUNT), - (ASHLEY, INITIAL_BALANCE - AMOUNT), - ]; - - new_test_ext(initial_balances).execute_with(|| { - assert_ok!(Balances::transfer( - Origin::signed(ASHLEY), - local_treasury_account_id(), - AMOUNT - )); - assert_balances(&final_balances); - }); -} - -#[test] -fn unprivileged_account_cannot_withdraw() { - const INITIAL_BALANCE: Balance = 100; - const AMOUNT: Balance = 10; - - let initial_balances: Vec<(u64, u64)> = - vec![(local_treasury_account_id(), 0), (ASHLEY, INITIAL_BALANCE)]; - - new_test_ext(initial_balances.clone()).execute_with(|| { - assert_noop!( - LocalTreasury::withdraw(Origin::signed(ASHLEY), AMOUNT, ASHLEY), - BadOrigin - ); - assert_balances(&initial_balances); - }); -} - -#[test] -fn admin_account_can_withdraw() { - const INITIAL_BALANCE: Balance = 100; - const AMOUNT: Balance = 1; - - let initial_balances: Vec<(u64, u64)> = vec![ - (local_treasury_account_id(), INITIAL_BALANCE), - (ADMIN_ACCOUNT_ID, 0), - ]; - - let final_balances: Vec<(u64, u64)> = vec![ - (local_treasury_account_id(), INITIAL_BALANCE - AMOUNT), - (ADMIN_ACCOUNT_ID, AMOUNT), - ]; - - new_test_ext(initial_balances).execute_with(|| { - assert_ok!(LocalTreasury::withdraw( - Origin::signed(ADMIN_ACCOUNT_ID), - AMOUNT, - ADMIN_ACCOUNT_ID - )); - assert_balances(&final_balances); - }); -} - -#[test] -fn admin_account_can_withdraw_to_zero() { - const INITIAL_BALANCE: Balance = 100; - const AMOUNT: Balance = 100; - - let initial_balances: Vec<(u64, u64)> = vec![ - (local_treasury_account_id(), INITIAL_BALANCE), - (ADMIN_ACCOUNT_ID, 0), - ]; - - let final_balances: Vec<(u64, u64)> = - vec![(local_treasury_account_id(), 0), (ADMIN_ACCOUNT_ID, AMOUNT)]; - - new_test_ext(initial_balances).execute_with(|| { - assert_ok!(LocalTreasury::withdraw( - Origin::signed(ADMIN_ACCOUNT_ID), - AMOUNT, - ADMIN_ACCOUNT_ID - )); - assert_balances(&final_balances); - }); -} - -#[test] -fn admin_account_overdraw_fails() { - const INITIAL_BALANCE: Balance = 100; - const AMOUNT: Balance = 101; - - let initial_balances: Vec<(u64, u64)> = vec![ - (local_treasury_account_id(), INITIAL_BALANCE), - (ADMIN_ACCOUNT_ID, 0), - ]; - - new_test_ext(initial_balances.clone()).execute_with(|| { - assert_noop!( - LocalTreasury::withdraw(Origin::signed(ADMIN_ACCOUNT_ID), AMOUNT, ADMIN_ACCOUNT_ID), - BalancesError::::InsufficientBalance - ); - assert_balances(&initial_balances); - }); -} diff --git a/pallets/oracle/Cargo.toml b/pallets/price-feed/Cargo.toml similarity index 76% rename from pallets/oracle/Cargo.toml rename to pallets/price-feed/Cargo.toml index 6f663f62b5..f3747e7613 100644 --- a/pallets/oracle/Cargo.toml +++ b/pallets/price-feed/Cargo.toml @@ -3,7 +3,7 @@ authors = ['ChainSafe Systems'] description = 'FRAME pallet to implement PINT price feeds.' edition = '2018' license = 'LGPL-3.0-only' -name = 'pallet-oracle' +name = 'pallet-price-feed' readme = 'README.md' repository = 'https://github.com/ChainSafe/PINT/' version = '0.0.1' @@ -14,7 +14,7 @@ std = [ 'codec/std', 'frame-support/std', 'frame-system/std', - 'chainlink/std' + 'pallet-chainlink-feed/std' ] [dependencies.codec] default-features = false @@ -35,7 +35,7 @@ branch = 'rococo-v1' version = '3.0.0' [dev-dependencies] -serde = { version = "1.0.101" } +serde = { version = "1.0" } [dev-dependencies.pallet-balances] default-features = false @@ -61,16 +61,13 @@ git = 'https://github.com/paritytech/substrate.git' branch = 'rococo-v1' version = '3.0.0' -[dependencies.chainlink] +[dependencies.pallet-chainlink-feed] default_features = false package = 'pallet-chainlink-feed' -path = '../../../chainlink-polkadot/pallet-chainlink-feed' -#git = 'https://github.com/smartcontractkit/chainlink-polkadot.git' +git = "https://github.com/mattsse/chainlink-polkadot" +# this is substrate v3 branch that is compatible with PINT's locked substrate revision +# see https://github.com/ChainSafe/PINT/issues/37 +branch = "substrate-v3-compat" [package.metadata.docs.rs] -targets = ['x86_64-unknown-linux-gnu'] - - -#[patch.crates-io] -#sp-runtime = { git = 'https://github.com/paritytech/substrate.git', branch = 'rococo-v1', version = '3.0.0' } -#parity-util-mem = {version = '0.7.0'} \ No newline at end of file +targets = ['x86_64-unknown-linux-gnu'] \ No newline at end of file diff --git a/pallets/oracle/README.md b/pallets/price-feed/README.md similarity index 100% rename from pallets/oracle/README.md rename to pallets/price-feed/README.md diff --git a/pallets/oracle/src/lib.rs b/pallets/price-feed/src/lib.rs similarity index 81% rename from pallets/oracle/src/lib.rs rename to pallets/price-feed/src/lib.rs index ff1daa10c6..142f58db88 100644 --- a/pallets/oracle/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -5,12 +5,6 @@ pub use pallet::*; -#[cfg(test)] -mod mock; - -#[cfg(test)] -mod tests; - #[frame_support::pallet] // this is requires as the #[pallet::event] proc macro generates code that violates this lint #[allow(clippy::unused_unit)] @@ -22,13 +16,21 @@ pub mod pallet { traits::{Currency, ExistenceRequirement::AllowDeath, Get}, }; use frame_system::pallet_prelude::*; + use pallet_chainlink_feed::FeedOracle; type AccountIdFor = ::AccountId; type BalanceFor = <::Currency as Currency>>::Balance; + /// Provides access to all the price feeds #[pallet::config] pub trait Config: frame_system::Config { type Currency: Currency; + + type AssetId: Parameter + Member; + + /// The oracle for price feeds + type Oracle: FeedOracle; + type Event: From> + IsType<::Event>; } @@ -49,14 +51,6 @@ pub mod pallet { #[pallet::call] impl Pallet { - #[pallet::weight(10_000)] // TODO: Set weights - pub fn withdraw( - origin: OriginFor, - amount: BalanceFor, - recipient: AccountIdFor, - ) -> DispatchResultWithPostInfo { - - Ok(().into()) - } + } } From 82f4b463c7dfcad20d3be2dd32daadb8f528c52f Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 11:15:05 +0200 Subject: [PATCH 06/32] feat:pallets/price-feed: integrate latest chainlink price feed pallet --- pallets/price-feed/Cargo.toml | 7 ++++--- pallets/price-feed/src/lib.rs | 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pallets/price-feed/Cargo.toml b/pallets/price-feed/Cargo.toml index f3747e7613..7b718d6322 100644 --- a/pallets/price-feed/Cargo.toml +++ b/pallets/price-feed/Cargo.toml @@ -65,9 +65,10 @@ version = '3.0.0' default_features = false package = 'pallet-chainlink-feed' git = "https://github.com/mattsse/chainlink-polkadot" -# this is substrate v3 branch that is compatible with PINT's locked substrate revision -# see https://github.com/ChainSafe/PINT/issues/37 -branch = "substrate-v3-compat" +# this is substrate v3 branch that is upstreamed with rococo-v1 +# and requires https://github.com/ChainSafe/PINT/issues/37 +# see also https://github.com/ChainSafe/PINT/pull/39 +branch = "substrate-v3" [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] \ No newline at end of file diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 142f58db88..307c811aef 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -10,10 +10,9 @@ pub use pallet::*; #[allow(clippy::unused_unit)] pub mod pallet { use frame_support::{ - dispatch::DispatchResultWithPostInfo, pallet_prelude::*, - sp_runtime::{traits::AccountIdConversion, ModuleId}, - traits::{Currency, ExistenceRequirement::AllowDeath, Get}, + PalletId, + traits::{Currency, Get}, }; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; From 09c266270266685ae15704be28a4dc8c625851f3 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 11:19:13 +0200 Subject: [PATCH 07/32] rustfmt --- pallets/price-feed/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 307c811aef..50cb4dceb7 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -11,8 +11,8 @@ pub use pallet::*; pub mod pallet { use frame_support::{ pallet_prelude::*, - PalletId, traits::{Currency, Get}, + PalletId, }; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; @@ -39,8 +39,7 @@ pub mod pallet { #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event { - } + pub enum Event {} #[pallet::error] pub enum Error {} @@ -49,7 +48,5 @@ pub mod pallet { impl Hooks> for Pallet {} #[pallet::call] - impl Pallet { - - } + impl Pallet {} } From e5325d53a0866e1054e8b8186b99297da2de0960 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 15 Apr 2021 12:14:31 +0200 Subject: [PATCH 08/32] chore(deps): sync with chainlink deps --- Cargo.lock | 2075 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 1284 insertions(+), 791 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dca2830fd5..faa0d4cf0f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -470,13 +470,13 @@ dependencies = [ "sc-keystore", "sc-network", "sc-network-gossip", - "sp-api", - "sp-application-crypto", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", "substrate-prometheus-endpoint", "thiserror", @@ -499,8 +499,8 @@ dependencies = [ "sc-rpc", "serde", "serde_json", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -509,11 +509,11 @@ version = "0.1.0" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#d3599994d4a54fb8573367c22e090354a2df1de6" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -1250,10 +1250,10 @@ dependencies = [ "polkadot-primitives", "sc-client-api", "sp-consensus", - "sp-core", - "sp-io", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -1269,14 +1269,14 @@ dependencies = [ "polkadot-primitives", "polkadot-runtime", "sc-client-api", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-trie", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "tokio 0.1.22", "tracing", @@ -1296,13 +1296,13 @@ dependencies = [ "parking_lot 0.9.0", "polkadot-service", "sc-client-api", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "tracing", ] @@ -1323,11 +1323,11 @@ dependencies = [ "polkadot-service", "polkadot-statement-table", "sc-client-api", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -1348,11 +1348,11 @@ dependencies = [ "sc-service", "sc-telemetry", "sc-tracing", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -1364,8 +1364,8 @@ dependencies = [ "cumulus-primitives-core", "cumulus-primitives-parachain-inherent", "environmental", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "hash-db", "log", "memory-db", @@ -1373,15 +1373,15 @@ dependencies = [ "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", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "trie-db", "xcm", ] @@ -1392,12 +1392,12 @@ version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", ] @@ -1407,14 +1407,14 @@ version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "rand 0.8.3", "rand_chacha 0.3.0", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", "xcm-executor", ] @@ -1424,15 +1424,15 @@ name = "cumulus-primitives-core" version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ - "frame-support", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "parity-scale-codec", "polkadot-core-primitives", "polkadot-parachain", "polkadot-primitives", - "sp-runtime", - "sp-std", - "sp-trie", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", ] @@ -1444,13 +1444,13 @@ 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", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -1941,18 +1941,37 @@ name = "frame-benchmarking" version = "3.1.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "linregress", "log", "parity-scale-codec", "paste", - "sp-api", - "sp-io", - "sp-runtime", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "frame-benchmarking" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70fe99487f84579a3f2c4ba52650fec875492eea41be0e4eea8019187f105052" +dependencies = [ + "frame-support 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "frame-system 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "linregress", + "parity-scale-codec", + "paste", + "sp-api 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1962,7 +1981,7 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "Inflector", "chrono", - "frame-benchmarking", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "handlebars", "parity-scale-codec", "sc-cli", @@ -1970,11 +1989,11 @@ dependencies = [ "sc-executor", "sc-service", "serde", - "sp-core", - "sp-externalities", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "structopt", ] @@ -1983,12 +2002,12 @@ name = "frame-election-provider-support" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", - "sp-arithmetic", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections", - "sp-std", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -1996,15 +2015,15 @@ name = "frame-executive" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-tracing", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2014,8 +2033,20 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "serde", - "sp-core", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "frame-metadata" +version = "13.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "073f7bef18421362441a1708f8528e442234954611f95bdc554b313fb321948e" +dependencies = [ + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2024,8 +2055,35 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "bitflags", - "frame-metadata", - "frame-support-procedural", + "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "impl-trait-for-tuples", + "log", + "once_cell", + "parity-scale-codec", + "paste", + "serde", + "smallvec 1.6.1", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "frame-support" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04e521e6214615bd82ba6b5fc7fd40a9cc14fdeb40f83da5eba12aa2f8179fb8" +dependencies = [ + "bitflags", + "frame-metadata 13.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "frame-support-procedural 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "impl-trait-for-tuples", "log", "once_cell", @@ -2033,15 +2091,15 @@ dependencies = [ "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", + "sp-arithmetic 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-inherents 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-staking 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-state-machine 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-tracing 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2050,7 +2108,20 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "Inflector", - "frame-support-procedural-tools", + "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + +[[package]] +name = "frame-support-procedural" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2668e24cbaba7f0e91d0c92a94bd1ae425a942608ad0b775db32477f5df4da9e" +dependencies = [ + "Inflector", + "frame-support-procedural-tools 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", @@ -2061,13 +2132,26 @@ name = "frame-support-procedural-tools" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support-procedural-tools-derive", + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "proc-macro-crate 1.0.0", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", ] +[[package]] +name = "frame-support-procedural-tools" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4f88cfd111e004590f4542b75e6d3302137b9067d7e7219e4ac47a535c3b5c1" +dependencies = [ + "frame-support-procedural-tools-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro-crate 0.1.5", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" @@ -2078,21 +2162,49 @@ dependencies = [ "syn 1.0.69", ] +[[package]] +name = "frame-support-procedural-tools-derive" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79285388b120ac96c15a791c56b26b9264f7231324fbe0fd05026acd92bf2e6a" +dependencies = [ + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + [[package]] name = "frame-system" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "log", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", - "sp-version", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "frame-system" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5fedbff05d665c00bf4e089b4377fcb15b8bd37ebc3e5fc06665474cf6e25d7" +dependencies = [ + "frame-support 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "impl-trait-for-tuples", + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-version 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2100,13 +2212,13 @@ name = "frame-system-benchmarking" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2115,7 +2227,7 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2123,11 +2235,11 @@ name = "frame-try-runtime" version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", - "sp-api", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -3200,8 +3312,8 @@ dependencies = [ "beefy-primitives", "bitvec", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", @@ -3245,21 +3357,21 @@ dependencies = [ "serde", "serde_derive", "smallvec 1.6.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", "substrate-wasm-builder 3.0.0", ] @@ -4451,15 +4563,15 @@ name = "pallet-authority-discovery" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-session", "parity-scale-codec", "serde", - "sp-application-crypto", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4467,14 +4579,14 @@ name = "pallet-authorship" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "parity-scale-codec", "sp-authorship", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4482,23 +4594,23 @@ name = "pallet-babe" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-authorship", "pallet-session", "pallet-timestamp", "parity-scale-codec", "serde", - "sp-application-crypto", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-consensus-babe", "sp-consensus-vrf", - "sp-io", - "sp-runtime", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4506,14 +4618,14 @@ name = "pallet-balances" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4522,13 +4634,13 @@ version = "0.1.0" source = "git+https://github.com/paritytech/grandpa-bridge-gadget?branch=rococo-v1#d3599994d4a54fb8573367c22e090354a2df1de6" dependencies = [ "beefy-primitives", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-session", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4536,13 +4648,29 @@ name = "pallet-bounties" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-treasury", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "pallet-chainlink-feed" +version = "0.1.0" +source = "git+https://github.com/mattsse/chainlink-polkadot?branch=substrate-v3#f4a222f67dc0766f3c662b2d31d3e8b0f1872fd5" +dependencies = [ + "frame-benchmarking 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "parity-scale-codec", + "serde", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4550,29 +4678,29 @@ name = "pallet-collective" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "pallet-committee" version = "0.0.1" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-balances", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4580,14 +4708,14 @@ name = "pallet-democracy" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4596,16 +4724,16 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", - "sp-arithmetic", - "sp-io", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] @@ -4614,14 +4742,14 @@ name = "pallet-elections-phragmen" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", "sp-npos-elections", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4629,21 +4757,21 @@ name = "pallet-grandpa" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", "serde", - "sp-application-crypto", - "sp-core", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-finality-grandpa", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4652,14 +4780,14 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4667,18 +4795,18 @@ name = "pallet-im-online" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-authorship", "parity-scale-codec", "serde", - "sp-application-crypto", - "sp-core", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4686,29 +4814,29 @@ name = "pallet-indices" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-core", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-keyring", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "pallet-local-treasury" version = "0.0.1" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-balances", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4716,13 +4844,13 @@ name = "pallet-membership" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4731,16 +4859,16 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "ckb-merkle-mountain-range", - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-mmr-primitives", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4748,15 +4876,15 @@ name = "pallet-mmr-primitives" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", - "sp-api", - "sp-core", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4770,11 +4898,11 @@ dependencies = [ "pallet-mmr-primitives", "parity-scale-codec", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-rpc", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4782,14 +4910,14 @@ name = "pallet-multisig" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4797,13 +4925,13 @@ name = "pallet-nicks" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4811,15 +4939,30 @@ name = "pallet-offences" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-balances", "parity-scale-codec", "serde", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "pallet-price-feed" +version = "0.0.1" +dependencies = [ + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "pallet-balances", + "pallet-chainlink-feed", + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4827,14 +4970,14 @@ name = "pallet-proxy" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4842,12 +4985,12 @@ name = "pallet-randomness-collective-flip" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "safe-mix", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4856,27 +4999,27 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "pallet-saft-registry" version = "0.0.1" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-balances", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4884,15 +5027,15 @@ name = "pallet-scheduler" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4900,19 +5043,19 @@ name = "pallet-session" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "pallet-timestamp", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", - "sp-trie", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4920,13 +5063,13 @@ name = "pallet-society" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "rand_chacha 0.2.2", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4935,19 +5078,19 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "frame-election-provider-support", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-authorship", "pallet-session", "parity-scale-codec", "paste", "serde", - "sp-application-crypto", - "sp-io", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] @@ -4967,13 +5110,13 @@ name = "pallet-sudo" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-io", - "sp-runtime", - "sp-std", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -4981,17 +5124,17 @@ name = "pallet-timestamp" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-benchmarking", - "frame-support", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "log", "parity-scale-codec", "serde", - "sp-inherents", - "sp-io", - "sp-runtime", - "sp-std", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-timestamp", ] @@ -5000,13 +5143,13 @@ name = "pallet-tips" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "pallet-treasury", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5014,15 +5157,15 @@ name = "pallet-transaction-payment" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", "smallvec 1.6.1", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5035,11 +5178,11 @@ dependencies = [ "jsonrpc-derive", "pallet-transaction-payment-rpc-runtime-api", "parity-scale-codec", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-rpc", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5049,8 +5192,8 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "pallet-transaction-payment", "parity-scale-codec", - "sp-api", - "sp-runtime", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5058,14 +5201,14 @@ name = "pallet-treasury" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "pallet-balances", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5073,14 +5216,14 @@ name = "pallet-utility" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5089,12 +5232,12 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "enumflags2", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5102,12 +5245,12 @@ name = "pallet-xcm" version = "0.1.0" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", ] @@ -5121,7 +5264,7 @@ dependencies = [ "cumulus-client-service", "cumulus-primitives-core", "derive_more 0.15.0", - "frame-benchmarking", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-benchmarking-cli", "hex-literal 0.2.1", "jsonrpc-core", @@ -5148,16 +5291,16 @@ dependencies = [ "sc-tracing", "sc-transaction-pool", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-timestamp", "sp-transaction-pool", - "sp-trie", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "structopt", "substrate-build-script-utils", "substrate-frame-rpc-system", @@ -5169,8 +5312,8 @@ version = "0.1.0" source = "git+https://github.com/paritytech/cumulus.git?branch=rococo-v1#6ed96321a6b004eb860454087b3a7e278f326eb1" dependencies = [ "cumulus-primitives-core", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "parity-scale-codec", "serde", ] @@ -5183,10 +5326,10 @@ dependencies = [ "cumulus-pallet-xcm", "cumulus-pallet-xcmp-queue", "cumulus-primitives-core", - "frame-benchmarking", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-benchmarking", "frame-system-rpc-runtime-api", "hex-literal 0.3.1", @@ -5201,17 +5344,17 @@ dependencies = [ "parity-scale-codec", "polkadot-parachain", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-std", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-wasm-builder 4.0.0", "xcm", "xcm-builder", @@ -5662,9 +5805,9 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-primitives", "rand 0.8.3", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", ] @@ -5700,8 +5843,8 @@ dependencies = [ "polkadot-service", "sc-cli", "sc-service", - "sp-core", - "sp-trie", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "structopt", "substrate-build-script-utils", "thiserror", @@ -5721,9 +5864,9 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", ] @@ -5735,9 +5878,9 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "parity-scale-codec", "parity-util-mem", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -5749,8 +5892,8 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "reed-solomon-novelpoly", - "sp-core", - "sp-trie", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -5764,8 +5907,8 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-application-crypto", - "sp-keystore", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -5801,7 +5944,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-maybe-compressed-blob", "thiserror", "tracing", @@ -5828,11 +5971,11 @@ dependencies = [ "sc-client-api", "sc-keystore", "schnorrkel", - "sp-application-crypto", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -5869,7 +6012,7 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-primitives", "polkadot-statement-table", - "sp-keystore", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", ] @@ -5883,7 +6026,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-keystore", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", "wasm-timer", @@ -5899,7 +6042,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-keystore", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", ] @@ -5949,12 +6092,12 @@ dependencies = [ "sc-block-builder", "sc-client-api", "sc-telemetry", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "substrate-prometheus-endpoint", "tracing", @@ -5996,10 +6139,10 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmtime", "slotmap", - "sp-core", - "sp-externalities", - "sp-io", - "sp-wasm-interface", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -6014,10 +6157,10 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-consensus-babe", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -6035,7 +6178,7 @@ dependencies = [ "polkadot-node-primitives", "polkadot-primitives", "sc-network", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -6066,12 +6209,12 @@ dependencies = [ "polkadot-statement-table", "schnorrkel", "serde", - "sp-application-crypto", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-consensus-babe", "sp-consensus-vrf", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-maybe-compressed-blob", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "zstd", ] @@ -6100,7 +6243,7 @@ dependencies = [ "polkadot-statement-table", "sc-network", "smallvec 1.6.1", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "thiserror", "tracing", @@ -6124,9 +6267,9 @@ dependencies = [ "polkadot-primitives", "rand 0.8.3", "sc-network", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "streamunordered", "substrate-prometheus-endpoint", "thiserror", @@ -6146,7 +6289,7 @@ dependencies = [ "polkadot-node-subsystem-util", "polkadot-primitives", "sc-client-api", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -6160,9 +6303,9 @@ dependencies = [ "parity-util-mem", "polkadot-core-primitives", "serde", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -6171,26 +6314,26 @@ version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ "bitvec", - "frame-system", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "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-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", - "sp-staking", - "sp-std", - "sp-trie", - "sp-version", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -6227,13 +6370,13 @@ dependencies = [ "sc-keystore", "sc-rpc", "sc-sync-state-rpc", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-keystore", - "sp-runtime", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "substrate-frame-rpc-system", ] @@ -6246,8 +6389,8 @@ dependencies = [ "beefy-primitives", "bitvec", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", @@ -6289,21 +6432,21 @@ dependencies = [ "serde", "serde_derive", "smallvec 1.6.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", "substrate-wasm-builder 3.0.0", ] @@ -6315,8 +6458,8 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "beefy-primitives", "bitvec", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "libsecp256k1", "log", @@ -6338,14 +6481,14 @@ dependencies = [ "serde", "serde_derive", "slot-range-helper", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-runtime", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", "xcm", ] @@ -6357,8 +6500,8 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "bitvec", "derive_more 0.99.13", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "log", "pallet-authority-discovery", "pallet-authorship", @@ -6374,15 +6517,15 @@ dependencies = [ "rand_chacha 0.3.0", "rustc-hex", "serde", - "sp-api", - "sp-core", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", "xcm-executor", ] @@ -6394,7 +6537,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "beefy-gadget", "beefy-primitives", - "frame-benchmarking", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "futures 0.3.14", "hex-literal 0.3.1", @@ -6452,24 +6595,24 @@ dependencies = [ "sc-telemetry", "sc-transaction-pool", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-finality-grandpa", - "sp-inherents", - "sp-io", - "sp-keystore", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-state-machine", - "sp-storage", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-trie", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "thiserror", "tracing", @@ -6489,7 +6632,7 @@ dependencies = [ "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-primitives", - "sp-staking", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", ] @@ -6500,7 +6643,7 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "parity-scale-codec", "polkadot-primitives", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -6512,8 +6655,8 @@ dependencies = [ "bitvec", "frame-election-provider-support", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "log", "pallet-authority-discovery", @@ -6543,20 +6686,20 @@ dependencies = [ "serde", "serde_derive", "smallvec 1.6.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-wasm-builder 3.0.0", ] @@ -6565,8 +6708,8 @@ name = "polkadot-test-service" version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "frame-benchmarking", - "frame-system", + "frame-benchmarking 3.1.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "futures 0.1.31", "futures 0.3.14", "hex", @@ -6596,17 +6739,17 @@ dependencies = [ "sc-service", "sc-tracing", "sc-transaction-pool", - "sp-arithmetic", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-finality-grandpa", - "sp-inherents", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-keyring", - "sp-runtime", - "sp-state-machine", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-test-client", "tempfile", "tracing", @@ -7180,9 +7323,9 @@ dependencies = [ "jsonrpsee-types", "log", "parity-scale-codec", - "sp-core", - "sp-io", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7252,8 +7395,8 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "beefy-primitives", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "hex-literal 0.3.1", "log", @@ -7288,20 +7431,20 @@ dependencies = [ "serde", "serde_derive", "smallvec 1.6.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-wasm-builder 3.0.0", "xcm", "xcm-builder", @@ -7468,12 +7611,12 @@ dependencies = [ "sc-client-api", "sc-network", "serde_json", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-blockchain", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", ] @@ -7490,12 +7633,12 @@ dependencies = [ "sc-client-api", "sc-proposer-metrics", "sc-telemetry", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "substrate-prometheus-endpoint", ] @@ -7507,13 +7650,13 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "sc-client-api", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7533,8 +7676,8 @@ dependencies = [ "serde_json", "sp-chain-spec", "sp-consensus-babe", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7573,13 +7716,13 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-keyring", - "sp-keystore", - "sp-panic-handler", - "sp-runtime", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "structopt", "thiserror", "tiny-bip39", @@ -7601,22 +7744,22 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", "sc-executor", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-database", - "sp-externalities", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-storage", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-trie", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", ] @@ -7639,14 +7782,14 @@ dependencies = [ "sc-client-api", "sc-executor", "sc-state-db", - "sp-arithmetic", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-database", - "sp-runtime", - "sp-state-machine", - "sp-trie", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", ] @@ -7659,7 +7802,7 @@ dependencies = [ "sc-client-api", "sp-blockchain", "sp-consensus", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7690,22 +7833,22 @@ dependencies = [ "sc-telemetry", "schnorrkel", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "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-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-timestamp", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", ] @@ -7723,14 +7866,14 @@ dependencies = [ "sc-consensus-epochs", "sc-rpc-api", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", "sp-consensus-babe", - "sp-core", - "sp-keystore", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7743,7 +7886,7 @@ dependencies = [ "sc-client-api", "sc-consensus", "sp-blockchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7758,18 +7901,18 @@ dependencies = [ "parity-scale-codec", "sc-client-api", "sc-telemetry", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", "sp-consensus-slots", - "sp-core", - "sp-inherents", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-timestamp", - "sp-trie", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -7782,9 +7925,9 @@ dependencies = [ "sc-client-api", "sp-authorship", "sp-consensus", - "sp-core", - "sp-inherents", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7802,18 +7945,18 @@ dependencies = [ "sc-executor-common", "sc-executor-wasmi", "sc-executor-wasmtime", - "sp-api", - "sp-core", - "sp-externalities", - "sp-io", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-maybe-compressed-blob", - "sp-panic-handler", - "sp-runtime-interface", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-serializer", "sp-tasks", - "sp-trie", - "sp-version", - "sp-wasm-interface", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmi", ] @@ -7827,9 +7970,9 @@ dependencies = [ "parity-wasm 0.41.0", "pwasm-utils", "sp-allocator", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-serializer", - "sp-wasm-interface", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "wasmi", ] @@ -7843,9 +7986,9 @@ dependencies = [ "parity-scale-codec", "sc-executor-common", "sp-allocator", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmi", ] @@ -7861,9 +8004,9 @@ dependencies = [ "sc-executor-common", "scoped-tls", "sp-allocator", - "sp-core", - "sp-runtime-interface", - "sp-wasm-interface", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmtime", ] @@ -7893,16 +8036,16 @@ dependencies = [ "sc-network-gossip", "sc-telemetry", "serde_json", - "sp-api", - "sp-application-crypto", - "sp-arithmetic", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-finality-grandpa", - "sp-inherents", - "sp-keystore", - "sp-runtime", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", "substrate-prometheus-endpoint", ] @@ -7927,8 +8070,8 @@ dependencies = [ "serde", "serde_json", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7949,7 +8092,7 @@ dependencies = [ "sc-service", "sp-blockchain", "sp-finality-grandpa", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -7964,7 +8107,7 @@ dependencies = [ "sc-client-api", "sc-network", "sp-blockchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "sp-utils", "wasm-timer", @@ -7984,9 +8127,9 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "serde_json", - "sp-application-crypto", - "sp-core", - "sp-keystore", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "subtle 2.4.0", ] @@ -8001,12 +8144,12 @@ dependencies = [ "parking_lot 0.11.1", "sc-client-api", "sc-executor", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8048,11 +8191,11 @@ dependencies = [ "serde", "serde_json", "smallvec 1.6.1", - "sp-arithmetic", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", "substrate-prometheus-endpoint", "thiserror", @@ -8073,7 +8216,7 @@ dependencies = [ "log", "lru", "sc-network", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "tracing", "wasm-timer", @@ -8099,10 +8242,10 @@ dependencies = [ "sc-client-api", "sc-keystore", "sc-network", - "sp-api", - "sp-core", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", "threadpool", ] @@ -8148,19 +8291,19 @@ dependencies = [ "sc-rpc-api", "sc-tracing", "serde_json", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", "sp-chain-spec", - "sp-core", - "sp-keystore", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-offchain", "sp-rpc", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-state-machine", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8180,11 +8323,11 @@ dependencies = [ "serde", "serde_json", "sp-chain-spec", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-rpc", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8201,7 +8344,7 @@ dependencies = [ "log", "serde", "serde_json", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", ] @@ -8243,24 +8386,24 @@ dependencies = [ "sc-transaction-pool", "serde", "serde_json", - "sp-api", - "sp-application-crypto", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", "sp-consensus", - "sp-core", - "sp-externalities", - "sp-inherents", - "sp-io", - "sp-keystore", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-state-machine", - "sp-tracing", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-trie", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "tempfile", "thiserror", @@ -8280,7 +8423,7 @@ dependencies = [ "parity-util-mem-derive", "parking_lot 0.11.1", "sc-client-api", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -8300,7 +8443,7 @@ dependencies = [ "sc-rpc-api", "serde_json", "sp-blockchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -8341,7 +8484,7 @@ dependencies = [ "sc-tracing-proc-macro", "serde", "serde_json", - "sp-tracing", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "tracing", "tracing-core", @@ -8376,8 +8519,8 @@ dependencies = [ "retain_mut", "serde", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "sp-utils", "thiserror", @@ -8398,11 +8541,11 @@ dependencies = [ "parking_lot 0.11.1", "sc-client-api", "sc-transaction-graph", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-core", - "sp-runtime", - "sp-tracing", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", "sp-utils", "substrate-prometheus-endpoint", @@ -8714,8 +8857,8 @@ source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888 dependencies = [ "parity-scale-codec", "paste", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8803,9 +8946,9 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", - "sp-core", - "sp-std", - "sp-wasm-interface", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -8817,12 +8960,29 @@ dependencies = [ "hash-db", "log", "parity-scale-codec", - "sp-api-proc-macro", - "sp-core", - "sp-runtime", - "sp-state-machine", - "sp-std", - "sp-version", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "thiserror", +] + +[[package]] +name = "sp-api" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e63c3460d5daecf67df542c34c2bbd636214a5a200d4bddcfa2ffb9e72c346af" +dependencies = [ + "hash-db", + "parity-scale-codec", + "sp-api-proc-macro 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-state-machine 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-version 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "thiserror", ] @@ -8838,6 +8998,19 @@ dependencies = [ "syn 1.0.69", ] +[[package]] +name = "sp-api-proc-macro" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "289624f4fe0f61e63a5019ed26c3bc732b5145eb52796ac6053cd72656d947a1" +dependencies = [ + "blake2-rfc", + "proc-macro-crate 0.1.5", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + [[package]] name = "sp-application-crypto" version = "3.0.0" @@ -8845,9 +9018,22 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "serde", - "sp-core", - "sp-io", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-application-crypto" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c52e2e6d43036b97c4fce1ed87c5262c1ffdc78c655ada4d3024a3f8094bdd2c" +dependencies = [ + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -8859,21 +9045,35 @@ dependencies = [ "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive", - "sp-std", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] +[[package]] +name = "sp-arithmetic" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f1c69966c192d1dee8521f0b29ece2b14db07b9b44d801a94e295234761645" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "serde", + "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "sp-authority-discovery" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-application-crypto", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8882,9 +9082,9 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8893,10 +9093,10 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8909,11 +9109,11 @@ dependencies = [ "lru", "parity-scale-codec", "parking_lot 0.11.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-consensus", "sp-database", - "sp-runtime", - "sp-state-machine", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -8939,15 +9139,15 @@ dependencies = [ "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-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-utils", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-prometheus-endpoint", "thiserror", "wasm-timer", @@ -8961,16 +9161,16 @@ dependencies = [ "merlin", "parity-scale-codec", "serde", - "sp-api", - "sp-application-crypto", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-consensus", "sp-consensus-slots", "sp-consensus-vrf", - "sp-core", - "sp-inherents", - "sp-keystore", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-timestamp", ] @@ -8980,8 +9180,8 @@ version = "0.9.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-arithmetic", - "sp-runtime", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -8991,9 +9191,9 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "schnorrkel", - "sp-core", - "sp-runtime", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9026,11 +9226,56 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.3", - "sp-debug-derive", - "sp-externalities", - "sp-runtime-interface", - "sp-std", - "sp-storage", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "substrate-bip39", + "thiserror", + "tiny-bip39", + "tiny-keccak", + "twox-hash", + "wasmi", + "zeroize", +] + +[[package]] +name = "sp-core" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abbc8d4e9b8a7d5819ed26f1374017bb32833ef4890e4ff065e1da30669876bc" +dependencies = [ + "base58", + "blake2-rfc", + "byteorder", + "dyn-clonable", + "ed25519-dalek", + "futures 0.3.14", + "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.3", + "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9059,6 +9304,17 @@ dependencies = [ "syn 1.0.69", ] +[[package]] +name = "sp-debug-derive" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e80275f23b4e7ba8f54dec5f90f016530e7307d2ee9445f617ab986cbe97f31e" +dependencies = [ + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + [[package]] name = "sp-externalities" version = "0.9.0" @@ -9066,8 +9322,20 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "environmental", "parity-scale-codec", - "sp-std", - "sp-storage", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-externalities" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fdc625f8c7b13b9a136d334888b21b5743d2081cb666cb03efca1dc9b8f74d1" +dependencies = [ + "environmental", + "parity-scale-codec", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9079,12 +9347,12 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-api", - "sp-application-crypto", - "sp-core", - "sp-keystore", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9094,8 +9362,21 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", - "sp-core", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "thiserror", +] + +[[package]] +name = "sp-inherents" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2542380b535c6941502a0a3069a657eb5abb70fd67b11afa164d4a4b038ba73a" +dependencies = [ + "parity-scale-codec", + "parking_lot 0.11.1", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "thiserror", ] @@ -9110,15 +9391,40 @@ dependencies = [ "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", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "tracing", + "tracing-core", +] + +[[package]] +name = "sp-io" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33fd69f0a6e91bedc2fb1c5cc3689c212474b6c918274cb4cb14dbbe3c428c14" +dependencies = [ + "futures 0.3.14", + "hash-db", + "libsecp256k1", + "log", + "parity-scale-codec", + "parking_lot 0.11.1", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-keystore 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-state-machine 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-tracing 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-trie 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-wasm-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", "tracing-core", ] @@ -9129,8 +9435,8 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "lazy_static", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "strum", ] @@ -9147,8 +9453,25 @@ dependencies = [ "parking_lot 0.11.1", "schnorrkel", "serde", - "sp-core", - "sp-externalities", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-keystore" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6ccd2baf189112355338e8b224dc513cd239b974dbd717f12b3dc7a7248c3b" +dependencies = [ + "async-trait", + "derive_more 0.99.13", + "futures 0.3.14", + "merlin", + "parity-scale-codec", + "parking_lot 0.11.1", + "schnorrkel", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9167,10 +9490,10 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "parity-scale-codec", "serde", - "sp-arithmetic", - "sp-core", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections-compact", - "sp-std", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9189,9 +9512,9 @@ name = "sp-offchain" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "sp-api", - "sp-core", - "sp-runtime", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9202,13 +9525,22 @@ dependencies = [ "backtrace", ] +[[package]] +name = "sp-panic-handler" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54702e109f1c8a870dd4065a497d2612d42cec5817126e96cc0658c5ea975784" +dependencies = [ + "backtrace", +] + [[package]] name = "sp-rpc" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "serde", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9225,11 +9557,33 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-std", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-runtime" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa4b353b76f04616dbdb8d269d58dcac47acb31c006d3b70e7b64233e68695e" +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 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9240,12 +9594,30 @@ 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", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "static_assertions", +] + +[[package]] +name = "sp-runtime-interface" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5c88b4bc8d607e4e2ff767a85db58cf7101f3dd6064f06929342ea67fe8fb" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "primitive-types", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface-proc-macro 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-tracing 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-wasm-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "static_assertions", ] @@ -9261,6 +9633,19 @@ dependencies = [ "syn 1.0.69", ] +[[package]] +name = "sp-runtime-interface-proc-macro" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19a6c7c2251512c9e533d15db8a863b06ece1cbee778130dd9adbe44b6b39aa9" +dependencies = [ + "Inflector", + "proc-macro-crate 0.1.5", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", +] + [[package]] name = "sp-serializer" version = "3.0.0" @@ -9276,11 +9661,11 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-core", - "sp-runtime", - "sp-staking", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9289,8 +9674,19 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-staking" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc729eb10f8809c61a1fe439ac118a4413de004aaf863003ee8752ac0b596e73" +dependencies = [ + "parity-scale-codec", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9305,11 +9701,34 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core", - "sp-externalities", - "sp-panic-handler", - "sp-std", - "sp-trie", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "thiserror", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-state-machine" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46fa4143e58e9130f726d4e8a9b86f3530a8bd19a2eedcdcf4af205f4b5a6d4f" +dependencies = [ + "hash-db", + "log", + "num-traits", + "parity-scale-codec", + "parking_lot 0.11.1", + "rand 0.7.3", + "smallvec 1.6.1", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-panic-handler 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-trie 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "thiserror", "trie-db", "trie-root", @@ -9320,6 +9739,12 @@ name = "sp-std" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +[[package]] +name = "sp-std" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35391ea974fa5ee869cb094d5b437688fbf3d8127d64d1b9fed5822a1ed39b12" + [[package]] name = "sp-storage" version = "3.0.0" @@ -9329,8 +9754,22 @@ dependencies = [ "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive", - "sp-std", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-storage" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86af458d4a0251c490cdde9dcaaccb88d398f3b97ac6694cdd49ed9337e6b961" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "ref-cast", + "serde", + "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9339,11 +9778,11 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", - "sp-core", - "sp-externalities", - "sp-io", - "sp-runtime-interface", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9352,10 +9791,10 @@ version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-api", - "sp-inherents", - "sp-runtime", - "sp-std", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasm-timer", ] @@ -9366,7 +9805,21 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "log", "parity-scale-codec", - "sp-std", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "sp-tracing" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567382d8d4e14fb572752863b5cd57a78f9e9a6583332b590b726f061f3ea957" +dependencies = [ + "log", + "parity-scale-codec", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", "tracing-core", "tracing-subscriber", @@ -9382,9 +9835,9 @@ dependencies = [ "log", "parity-scale-codec", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", ] @@ -9396,8 +9849,23 @@ dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core", - "sp-std", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "trie-db", + "trie-root", +] + +[[package]] +name = "sp-trie" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b85b7f745da41ef825c6f7b93f1fdc897b03df94a4884adfbb70fbcd0aed1298" +dependencies = [ + "hash-db", + "memory-db", + "parity-scale-codec", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "trie-db", "trie-root", ] @@ -9422,8 +9890,21 @@ dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime", - "sp-std", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + +[[package]] +name = "sp-version" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbeffa538a13d715d30e01d57a2636ba32845b737a29a3ea32403576588222e7" +dependencies = [ + "impl-serde", + "parity-scale-codec", + "serde", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -9433,7 +9914,19 @@ source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "wasmi", +] + +[[package]] +name = "sp-wasm-interface" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b214e125666a6416cf30a70cc6a5dacd34a4e5197f8a3d479f714af7e1dc7a47" +dependencies = [ + "impl-trait-for-tuples", + "parity-scale-codec", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "wasmi", ] @@ -9608,11 +10101,11 @@ dependencies = [ "sc-client-api", "sc-rpc-api", "serde", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-block-builder", "sp-blockchain", - "sp-core", - "sp-runtime", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", ] @@ -9652,11 +10145,11 @@ dependencies = [ "serde_json", "sp-blockchain", "sp-consensus", - "sp-core", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-keyring", - "sp-keystore", - "sp-runtime", - "sp-state-machine", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -10339,12 +10832,12 @@ dependencies = [ "sc-client-api", "sc-executor", "sc-service", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-blockchain", - "sp-core", - "sp-externalities", - "sp-runtime", - "sp-state-machine", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "structopt", ] @@ -10978,8 +11471,8 @@ dependencies = [ "beefy-primitives", "bitvec", "frame-executive", - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "frame-system-rpc-runtime-api", "frame-try-runtime", "log", @@ -11026,21 +11519,21 @@ dependencies = [ "serde", "serde_derive", "smallvec 1.6.1", - "sp-api", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-authority-discovery", "sp-block-builder", "sp-consensus-babe", - "sp-core", - "sp-inherents", - "sp-io", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-npos-elections", "sp-offchain", - "sp-runtime", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-session", - "sp-staking", - "sp-std", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-transaction-pool", - "sp-version", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", "substrate-wasm-builder 3.0.0", ] @@ -11164,15 +11657,15 @@ name = "xcm-builder" version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "frame-support", - "frame-system", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "parity-scale-codec", "polkadot-parachain", - "sp-arithmetic", - "sp-io", - "sp-runtime", - "sp-std", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", "xcm-executor", ] @@ -11182,15 +11675,15 @@ name = "xcm-executor" version = "0.8.30" source = "git+https://github.com/paritytech/polkadot?branch=rococo-v1#943038a888bfaf736142642e2610b248f7af486c" dependencies = [ - "frame-support", + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "impl-trait-for-tuples", "log", "parity-scale-codec", - "sp-arithmetic", - "sp-core", - "sp-io", - "sp-runtime", - "sp-std", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "xcm", ] From 82ff8c8dce6c718e283179db5951fe2e9d5eb7be Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:06:54 +0200 Subject: [PATCH 09/32] chore(deps): sort members --- pallets/price-feed/Cargo.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pallets/price-feed/Cargo.toml b/pallets/price-feed/Cargo.toml index 7b718d6322..c728889c8e 100644 --- a/pallets/price-feed/Cargo.toml +++ b/pallets/price-feed/Cargo.toml @@ -34,6 +34,15 @@ git = 'https://github.com/paritytech/substrate.git' branch = 'rococo-v1' version = '3.0.0' +[dependencies.pallet-chainlink-feed] +default_features = false +package = 'pallet-chainlink-feed' +git = "https://github.com/mattsse/chainlink-polkadot" +# this is substrate v3 branch that is upstreamed with rococo-v1 +# and requires https://github.com/ChainSafe/PINT/issues/37 +# see also https://github.com/ChainSafe/PINT/pull/39 +branch = "substrate-v3" + [dev-dependencies] serde = { version = "1.0" } @@ -61,14 +70,5 @@ git = 'https://github.com/paritytech/substrate.git' branch = 'rococo-v1' version = '3.0.0' -[dependencies.pallet-chainlink-feed] -default_features = false -package = 'pallet-chainlink-feed' -git = "https://github.com/mattsse/chainlink-polkadot" -# this is substrate v3 branch that is upstreamed with rococo-v1 -# and requires https://github.com/ChainSafe/PINT/issues/37 -# see also https://github.com/ChainSafe/PINT/pull/39 -branch = "substrate-v3" - [package.metadata.docs.rs] targets = ['x86_64-unknown-linux-gnu'] \ No newline at end of file From 39edc2126b525dd9271aa1174dd7cf2483fd2ec3 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:07:45 +0200 Subject: [PATCH 10/32] feat:pallets/price-feed: add types --- pallets/price-feed/src/lib.rs | 57 ++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 11 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 50cb4dceb7..a5ea2c8855 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -5,31 +5,53 @@ pub use pallet::*; +#[cfg(test)] +mod mock; + +#[cfg(test)] +mod tests; + +/// Additional type used in this pallet +mod traits; +/// Additional structures used in this pallet +mod types; + #[frame_support::pallet] // this is requires as the #[pallet::event] proc macro generates code that violates this lint #[allow(clippy::unused_unit)] pub mod pallet { - use frame_support::{ - pallet_prelude::*, - traits::{Currency, Get}, - PalletId, - }; + pub use crate::traits::PriceFeed; + use frame_support::sp_runtime::PerThing; + use frame_support::{pallet_prelude::*, traits::Get}; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; - type AccountIdFor = ::AccountId; - type BalanceFor = <::Currency as Currency>>::Balance; - /// Provides access to all the price feeds + /// This is used to determine the equivalent amount of PINT for assets #[pallet::config] pub trait Config: frame_system::Config { - type Currency: Currency; + /// The unit used to measure the value of assets + type BaseCurrency: Parameter + Member; + + /// The asset identifier for the native asset (PINT) price feed in the oracle. + #[pallet::constant] + type SelfAssetFeedId: Get; + + /// Used to define the decimal precision when calculating prices + // TODO should this be a property of the FeedOracle::Feed type instead, so that feeds can have different precisions? + // however when the base currency is the same for all feeds the precision should also be + type Precision: PerThing + Encode; - type AssetId: Parameter + Member; + /// Type used to identify the asset's feed. + type AssetFeedId: Parameter + Member; - /// The oracle for price feeds + /// The internal oracle that gives access to the asset's price feeds. + /// + /// NOTE: this assumes all the feed's provide data in the same base currency. + /// When querying the price of an asset (`quote` asset) from the, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) type Oracle: FeedOracle; + // TODO probably also make this IsType<::Event type Event: From> + IsType<::Event>; } @@ -37,6 +59,16 @@ pub mod pallet { #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); + // TODO here we could track historical price pairs + + #[pallet::extra_constants] + impl Pallet { + /// The decimal precision to use when calculating price fractions + pub fn precision() -> T::Precision { + T::Precision::one() + } + } + #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event {} @@ -49,4 +81,7 @@ pub mod pallet { #[pallet::call] impl Pallet {} + + impl Pallet {} + } From 2a07bf4bda7d1ffd9048ce130ed04aaed84afff5 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:08:21 +0200 Subject: [PATCH 11/32] feat:pallets/price-feed: introduce price feed types and price feed trait --- pallets/price-feed/src/traits.rs | 17 ++++++++ pallets/price-feed/src/types.rs | 74 ++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 pallets/price-feed/src/traits.rs create mode 100644 pallets/price-feed/src/types.rs diff --git a/pallets/price-feed/src/traits.rs b/pallets/price-feed/src/traits.rs new file mode 100644 index 0000000000..d7f7f371bf --- /dev/null +++ b/pallets/price-feed/src/traits.rs @@ -0,0 +1,17 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +use crate::types::AssetPricePair; +use frame_support::dispatch::DispatchError; + +/// An interface to access price data +pub trait PriceFeed { + /// Returns the current price pair for `base/quote` where `base` is the native token + fn get_price(quote: AssetId) -> Result, DispatchError>; + + /// Returns the current price pair for `base/quote` + fn get_price_pair( + base: AssetId, + quote: AssetId, + ) -> Result, DispatchError>; +} diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs new file mode 100644 index 0000000000..43ecc7e80c --- /dev/null +++ b/pallets/price-feed/src/types.rs @@ -0,0 +1,74 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +use frame_support::pallet_prelude::*; +use frame_support::sp_runtime::traits::AtLeast32BitUnsigned; +use frame_support::sp_runtime::{PerThing, SaturatedConversion}; + +/// Defines an asset pair identifier +#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] +pub struct AssetPricePair { + /// The base asset id of this pair. + pub base: AssetId, + /// The quote asset + pub quote: AssetId, + /// The price for `base/quote` + price: Price, +} + +impl AssetPricePair +where + AssetId: Member, + Price: PerThing, +{ + /// Whether this pair involves the `asset` + pub fn involves_asset(&self, asset: &AssetId) -> bool { + self.is_base(asset) || self.is_quote(asset) + } + + /// Whether the provided asset is the `base` asset of this price pair + pub fn is_base(&self, asset: &AssetId) -> bool { + self.base == *asset + } + + /// Whether the provided asset is the `quote` asset of this price pair + pub fn is_quote(&self, asset: &AssetId) -> bool { + self.quote == *asset + } + + /// Returns the price fraction `base/quote` + pub fn price(&self) -> &Price { + &self.price + } + + /// Calculates the total volume of the provided units of the `quote` assetId w.r.t. price pair + pub fn volume(&self, units: N) -> Price + where + N: Into, + { + self.price * Price::saturated_from(units) + } + + /// Calculates the total volume of the provided units of the `base` assetId w.r.t. price pair + pub fn reciprocal_volume(&self, units: N) -> u128 + where + N: Into, + { + self.price.saturating_reciprocal_mul(units.into()) + } +} + +impl AssetPricePair +where + AssetId: Member, + Price: PerThing + From, +{ + /// Turns this price pair of `base/quote` into a price pair of `quote/base` + pub fn invert(self) -> Self { + Self { + base: self.quote, + quote: self.base, + price: self.price.saturating_reciprocal_mul(1).into(), + } + } +} From f0bd7e8c32e97f6188a92f534cfd622ac6526115 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:14:15 +0200 Subject: [PATCH 12/32] feat:pallets/price-feed: empty price feed trait implementation --- pallets/price-feed/src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index a5ea2c8855..fca1115e05 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -21,6 +21,7 @@ mod types; #[allow(clippy::unused_unit)] pub mod pallet { pub use crate::traits::PriceFeed; + use crate::types::AssetPricePair; use frame_support::sp_runtime::PerThing; use frame_support::{pallet_prelude::*, traits::Get}; use frame_system::pallet_prelude::*; @@ -84,4 +85,18 @@ pub mod pallet { impl Pallet {} + impl PriceFeed for Pallet { + fn get_price( + quote: T::AssetFeedId, + ) -> Result, DispatchError> { + Self::get_price_pair(T::SelfAssetFeedId::get(), quote) + } + + fn get_price_pair( + _base: T::AssetFeedId, + _quote: T::AssetFeedId, + ) -> Result, DispatchError> { + todo!() + } + } } From 6112a622b6f637ec3d73c14ea90011c0903d0236 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:14:45 +0200 Subject: [PATCH 13/32] rustfmt --- pallets/price-feed/src/lib.rs | 2 +- pallets/price-feed/src/types.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index fca1115e05..252b97b02b 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -89,7 +89,7 @@ pub mod pallet { fn get_price( quote: T::AssetFeedId, ) -> Result, DispatchError> { - Self::get_price_pair(T::SelfAssetFeedId::get(), quote) + Self::get_price_pair(T::SelfAssetFeedId::get(), quote) } fn get_price_pair( diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs index 43ecc7e80c..bd9ac5d731 100644 --- a/pallets/price-feed/src/types.rs +++ b/pallets/price-feed/src/types.rs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only use frame_support::pallet_prelude::*; -use frame_support::sp_runtime::traits::AtLeast32BitUnsigned; use frame_support::sp_runtime::{PerThing, SaturatedConversion}; /// Defines an asset pair identifier From 7851a9f9f12a8919d15a85bfe56609331ac83e56 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:21:11 +0200 Subject: [PATCH 14/32] chore(deps): enable std feature for balances --- pallets/price-feed/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pallets/price-feed/Cargo.toml b/pallets/price-feed/Cargo.toml index c728889c8e..7a2683e5d5 100644 --- a/pallets/price-feed/Cargo.toml +++ b/pallets/price-feed/Cargo.toml @@ -14,7 +14,8 @@ std = [ 'codec/std', 'frame-support/std', 'frame-system/std', - 'pallet-chainlink-feed/std' + 'pallet-balances/std', + 'pallet-chainlink-feed/std', ] [dependencies.codec] default-features = false From ba70d39fbf592ed2efb339ee04fa6ca457a74500 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:21:32 +0200 Subject: [PATCH 15/32] feat:pallets/price-feed: add mock config --- pallets/price-feed/src/mock.rs | 131 ++++++++++++++++++++++++++++++++ pallets/price-feed/src/tests.rs | 5 ++ 2 files changed, 136 insertions(+) create mode 100644 pallets/price-feed/src/mock.rs create mode 100644 pallets/price-feed/src/tests.rs diff --git a/pallets/price-feed/src/mock.rs b/pallets/price-feed/src/mock.rs new file mode 100644 index 0000000000..82ac973b5e --- /dev/null +++ b/pallets/price-feed/src/mock.rs @@ -0,0 +1,131 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +// Required as construct_runtime! produces code that violates this lint +#![allow(clippy::from_over_into)] + +use crate as pallet_price_feed; +use frame_support::{parameter_types, PalletId}; +use frame_system as system; +use sp_core::H256; +use sp_runtime::{ + testing::Header, + traits::{BlakeTwo256, IdentityLookup}, + Perbill, +}; + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +// Configure a mock runtime to test the pallet. +frame_support::construct_runtime!( + pub enum Test where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Config, Storage, Event}, + PriceFeed: pallet_price_feed::{Pallet, Call, Storage, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + ChainlinkFeed: pallet_chainlink_feed::{Pallet, Call, Storage, Event}, + } +); + +parameter_types! { + pub const BlockHashCount: u64 = 250; + pub const SS58Prefix: u8 = 42; +} + +pub(crate) type Balance = u64; +pub(crate) type AccountId = u64; + +impl system::Config for Test { + type BaseCallFilter = (); + type BlockWeights = (); + type BlockLength = (); + type DbWeight = (); + type Origin = Origin; + type Call = Call; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type Event = Event; + type BlockHashCount = BlockHashCount; + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = pallet_balances::AccountData; + type OnNewAccount = (); + type OnKilledAccount = (); + type SystemWeightInfo = (); + type SS58Prefix = SS58Prefix; + type OnSetCode = (); +} + +parameter_types! { + pub const ExistentialDeposit: u64 = 1; +} + +impl pallet_balances::Config for Test { + type MaxLocks = (); + type Balance = Balance; + type Event = Event; + type DustRemoval = (); + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = System; + type WeightInfo = (); +} + +pub(crate) const MIN_RESERVE: u64 = 100; + +parameter_types! { + pub const FeedPalletId: PalletId = PalletId(*b"linkfeed"); + pub const MinimumReserve: u64 = MIN_RESERVE; + pub const StringLimit: u32 = 15; + pub const OracleLimit: u32 = 10; + pub const FeedLimit: u16 = 10; + pub const PruningWindow: u32 = 3; +} + +type FeedId = u16; +type Value = u64; + +impl pallet_chainlink_feed::Config for Test { + type Event = Event; + type FeedId = FeedId; + type Value = Value; + type Currency = Balances; + type PalletId = FeedPalletId; + type MinimumReserve = MinimumReserve; + type StringLimit = StringLimit; + type OracleCountLimit = OracleLimit; + type FeedLimit = FeedLimit; + type PruningWindow = PruningWindow; + type WeightInfo = (); +} + +parameter_types! { + pub const PINTFeed: FeedId = 1u16; +} + +type BaseCurrency = u128; + +impl pallet_price_feed::Config for Test { + type Event = Event; + type Oracle = ChainlinkFeed; + type BaseCurrency = BaseCurrency; + type SelfAssetFeedId = PINTFeed; + type Precision = Perbill; + type AssetFeedId = FeedId; +} + +// Build genesis storage according to the mock runtime. +pub fn new_test_ext() -> sp_io::TestExternalities { + let t = frame_system::GenesisConfig::default() + .build_storage::() + .unwrap(); + t.into() +} diff --git a/pallets/price-feed/src/tests.rs b/pallets/price-feed/src/tests.rs new file mode 100644 index 0000000000..21fd2588dc --- /dev/null +++ b/pallets/price-feed/src/tests.rs @@ -0,0 +1,5 @@ +// Copyright 2021 ChainSafe Systems +// SPDX-License-Identifier: LGPL-3.0-only + +use crate as pallet; +use crate::mock::*; From 194626234633e78acac1d4eea5bf85823fad705d Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:37:21 +0200 Subject: [PATCH 16/32] docs:pallets/price-feed: clarify notes on precision --- pallets/price-feed/src/lib.rs | 6 ++---- pallets/price-feed/src/mock.rs | 19 ++++++++++++++++++- pallets/price-feed/src/tests.rs | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 252b97b02b..de88a99a9d 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -39,8 +39,7 @@ pub mod pallet { type SelfAssetFeedId: Get; /// Used to define the decimal precision when calculating prices - // TODO should this be a property of the FeedOracle::Feed type instead, so that feeds can have different precisions? - // however when the base currency is the same for all feeds the precision should also be + // TODO this needs to be factored in when converting the feed prices with their decimals type Precision: PerThing + Encode; /// Type used to identify the asset's feed. @@ -49,10 +48,9 @@ pub mod pallet { /// The internal oracle that gives access to the asset's price feeds. /// /// NOTE: this assumes all the feed's provide data in the same base currency. - /// When querying the price of an asset (`quote` asset) from the, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) + /// When querying the price of an asset (`quote`/`asset`) from the, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) type Oracle: FeedOracle; - // TODO probably also make this IsType<::Event type Event: From> + IsType<::Event>; } diff --git a/pallets/price-feed/src/mock.rs b/pallets/price-feed/src/mock.rs index 82ac973b5e..28ca737b5f 100644 --- a/pallets/price-feed/src/mock.rs +++ b/pallets/price-feed/src/mock.rs @@ -13,6 +13,7 @@ use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, Perbill, }; +use frame_support::sp_runtime::traits::AccountIdConversion; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; @@ -124,8 +125,24 @@ impl pallet_price_feed::Config for Test { // Build genesis storage according to the mock runtime. pub fn new_test_ext() -> sp_io::TestExternalities { - let t = frame_system::GenesisConfig::default() + let mut t = frame_system::GenesisConfig::default() .build_storage::() .unwrap(); + + let pallet_account: AccountId = FeedPalletId::get().into_account(); + pallet_balances::GenesisConfig:: { + balances: vec![(pallet_account, 100 * MIN_RESERVE)], + } + .assimilate_storage(&mut t) + .unwrap(); + + pallet_chainlink_feed::GenesisConfig:: { + pallet_admin: Some(pallet_account), + feed_creators: vec![1], + } + .assimilate_storage(&mut t) + .unwrap(); + + t.into() } diff --git a/pallets/price-feed/src/tests.rs b/pallets/price-feed/src/tests.rs index 21fd2588dc..e252414706 100644 --- a/pallets/price-feed/src/tests.rs +++ b/pallets/price-feed/src/tests.rs @@ -3,3 +3,25 @@ use crate as pallet; use crate::mock::*; +use frame_support::{assert_noop, assert_ok, sp_runtime::traits::Zero}; +use frame_support::sp_runtime::traits::{AccountIdConversion}; +use frame_support::traits::{ Currency}; + +type Balances = pallet_balances::Pallet; + +#[test] +fn feed_creation_should_work() { + new_test_ext().execute_with(|| { + assert_ok!(ChainlinkFeed::create_feed( + Origin::signed(1), + 20, // payment + 10, // timeout + (10, 1_000), // value range + 3, // min values + 5, // decimals + b"desc".to_vec(), // desc + 2, // restart delay + vec![(1, 4), (2, 4), (3, 4)], // oracles + )); + }); +} From 1d609bc8a214407938e39743d9bb91cca83bbfcc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:40:48 +0200 Subject: [PATCH 17/32] test:pallets/price-feed: add basic feed creation test --- pallets/price-feed/src/mock.rs | 11 +++++------ pallets/price-feed/src/tests.rs | 26 +++++++++++--------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/pallets/price-feed/src/mock.rs b/pallets/price-feed/src/mock.rs index 28ca737b5f..0b9b966892 100644 --- a/pallets/price-feed/src/mock.rs +++ b/pallets/price-feed/src/mock.rs @@ -5,6 +5,7 @@ #![allow(clippy::from_over_into)] use crate as pallet_price_feed; +use frame_support::sp_runtime::traits::AccountIdConversion; use frame_support::{parameter_types, PalletId}; use frame_system as system; use sp_core::H256; @@ -13,7 +14,6 @@ use sp_runtime::{ traits::{BlakeTwo256, IdentityLookup}, Perbill, }; -use frame_support::sp_runtime::traits::AccountIdConversion; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; type Block = frame_system::mocking::MockBlock; @@ -133,16 +133,15 @@ pub fn new_test_ext() -> sp_io::TestExternalities { pallet_balances::GenesisConfig:: { balances: vec![(pallet_account, 100 * MIN_RESERVE)], } - .assimilate_storage(&mut t) - .unwrap(); + .assimilate_storage(&mut t) + .unwrap(); pallet_chainlink_feed::GenesisConfig:: { pallet_admin: Some(pallet_account), feed_creators: vec![1], } - .assimilate_storage(&mut t) - .unwrap(); - + .assimilate_storage(&mut t) + .unwrap(); t.into() } diff --git a/pallets/price-feed/src/tests.rs b/pallets/price-feed/src/tests.rs index e252414706..eba4a939d6 100644 --- a/pallets/price-feed/src/tests.rs +++ b/pallets/price-feed/src/tests.rs @@ -3,25 +3,21 @@ use crate as pallet; use crate::mock::*; -use frame_support::{assert_noop, assert_ok, sp_runtime::traits::Zero}; -use frame_support::sp_runtime::traits::{AccountIdConversion}; -use frame_support::traits::{ Currency}; - -type Balances = pallet_balances::Pallet; +use frame_support::assert_ok; #[test] fn feed_creation_should_work() { new_test_ext().execute_with(|| { assert_ok!(ChainlinkFeed::create_feed( - Origin::signed(1), - 20, // payment - 10, // timeout - (10, 1_000), // value range - 3, // min values - 5, // decimals - b"desc".to_vec(), // desc - 2, // restart delay - vec![(1, 4), (2, 4), (3, 4)], // oracles - )); + Origin::signed(1), + 20, // payment + 10, // timeout + (10, 1_000), // value range + 3, // min values + 5, // decimals + b"desc".to_vec(), // desc + 2, // restart delay + vec![(1, 4), (2, 4), (3, 4)], // oracles + )); }); } From b7ace6d5545842662b3abf308284a2d5b793f32b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 16 Apr 2021 15:53:21 +0200 Subject: [PATCH 18/32] rustfmt --- pallets/price-feed/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index de88a99a9d..cd62ba6dc1 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -22,8 +22,7 @@ mod types; pub mod pallet { pub use crate::traits::PriceFeed; use crate::types::AssetPricePair; - use frame_support::sp_runtime::PerThing; - use frame_support::{pallet_prelude::*, traits::Get}; + use frame_support::{pallet_prelude::*, sp_runtime::PerThing, traits::Get}; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; From 92bc95eba5c654c37b18be7cf93715f6e65ed073 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 10:55:00 +0200 Subject: [PATCH 19/32] Update pallets/price-feed/src/lib.rs Co-authored-by: Willem Olding --- pallets/price-feed/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index cd62ba6dc1..c887466f68 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -47,7 +47,7 @@ pub mod pallet { /// The internal oracle that gives access to the asset's price feeds. /// /// NOTE: this assumes all the feed's provide data in the same base currency. - /// When querying the price of an asset (`quote`/`asset`) from the, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) + /// When querying the price of an asset (`quote`/`asset`) from the oracle, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) type Oracle: FeedOracle; type Event: From> + IsType<::Event>; From b36ae3ff76329a9aec1cb18c4db318ca421d5c1e Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 12:42:16 +0200 Subject: [PATCH 20/32] feat:pallets/price-feed: add mapping from assetId to feedId --- pallets/price-feed/src/lib.rs | 77 +++++++++++++++++++++++++++++------ 1 file changed, 65 insertions(+), 12 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index c887466f68..d1db8a51f5 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -26,6 +26,8 @@ pub mod pallet { use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; + type FeedIdFor = <::Oracle as FeedOracle>::FeedId; + /// Provides access to all the price feeds /// This is used to determine the equivalent amount of PINT for assets #[pallet::config] @@ -33,21 +35,25 @@ pub mod pallet { /// The unit used to measure the value of assets type BaseCurrency: Parameter + Member; - /// The asset identifier for the native asset (PINT) price feed in the oracle. + /// The origin that is allowed to insert asset -> feed mappings + type AdminOrigin: EnsureOrigin; + + /// The asset identifier for the native asset (PINT). #[pallet::constant] - type SelfAssetFeedId: Get; + type SelfAssetId: Get; /// Used to define the decimal precision when calculating prices // TODO this needs to be factored in when converting the feed prices with their decimals type Precision: PerThing + Encode; - /// Type used to identify the asset's feed. - type AssetFeedId: Parameter + Member; + /// Type used to identify the assets. + type AssetId: Parameter + Member; /// The internal oracle that gives access to the asset's price feeds. /// - /// NOTE: this assumes all the feed's provide data in the same base currency. - /// When querying the price of an asset (`quote`/`asset`) from the oracle, its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) + /// NOTE: this assumes all the feeds provide data in the same base currency. + /// When querying the price of an asset (`quote`/`asset`) from the oracle, + /// its price is given by means of the asset pair `(base / quote)`. (e.g. DOT/PINT) type Oracle: FeedOracle; type Event: From> + IsType<::Event>; @@ -57,7 +63,15 @@ pub mod pallet { #[pallet::generate_store(pub(super) trait Store)] pub struct Pallet(_); - // TODO here we could track historical price pairs + #[pallet::storage] + /// Store a mapping (AssetId) -> FeedId for all active assets + pub type AssetFeeds = StorageMap< + _, + Blake2_128Concat, + T::AssetId, + FeedIdFor, + OptionQuery, + >; #[pallet::extra_constants] impl Pallet { @@ -69,18 +83,57 @@ pub mod pallet { #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] - pub enum Event {} + pub enum Event { + /// A new assetId -> feedId mapping was inserted + /// \[AssetId, NewFeedId, OldFeedId\] + UpdateAssetPriceFeed(T::AssetId, FeedIdFor, Option>), + /// An assetId -> feedId was removed + /// \[AssetId, FeedId\] + RemoveAssetPriceFeed(T::AssetId, Option>), + } + + #[pallet::call] + impl Pallet { + + /// Callable by an admin to track a price feed identifier for the asset + #[pallet::weight(10_000)] // TODO: Set weights + pub fn track_asset_price_feed( + origin: OriginFor, + asset_id: T::AssetId, + feed_id : FeedIdFor + ) -> DispatchResultWithPostInfo { + T::AdminOrigin::ensure_origin(origin)?; + let old_feed_id = AssetFeeds::::mutate(&asset_id, |maybe_feed_id | { + maybe_feed_id.replace(feed_id.clone()) + } ); + Self::deposit_event(Event::UpdateAssetPriceFeed(asset_id, feed_id, old_feed_id)); + Ok(().into()) + } + + /// Callable by an admin to untrack the asset's price feed. + #[pallet::weight(10_000)] // TODO: Set weights + pub fn untrack_asset_price_feed( + origin: OriginFor, + asset_id: T::AssetId, + ) -> DispatchResultWithPostInfo { + T::AdminOrigin::ensure_origin(origin)?; + let feed_id = AssetFeeds::::take(&asset_id); + Self::deposit_event(Event::RemoveAssetPriceFeed(asset_id, feed_id)); + Ok(().into()) + } + } #[pallet::error] - pub enum Error {} + pub enum Error { + /// Thrown if no price feed was found for an asset + AssetPriceFeedNotFound + } #[pallet::hooks] impl Hooks> for Pallet {} - #[pallet::call] - impl Pallet {} - impl Pallet {} + impl Pallet { impl PriceFeed for Pallet { fn get_price( From d23ca01ea9303f950b7b407bd53da80943a17251 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 14:46:52 +0200 Subject: [PATCH 21/32] feat:pallets/price-feed: add genesis build support --- pallets/price-feed/src/lib.rs | 48 ++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index d1db8a51f5..24a0789b4f 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -25,6 +25,8 @@ pub mod pallet { use frame_support::{pallet_prelude::*, sp_runtime::PerThing, traits::Get}; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::FeedOracle; + #[cfg(feature = "std")] + use frame_support::traits::GenesisBuild; type FeedIdFor = <::Oracle as FeedOracle>::FeedId; @@ -47,7 +49,7 @@ pub mod pallet { type Precision: PerThing + Encode; /// Type used to identify the assets. - type AssetId: Parameter + Member; + type AssetId: Parameter + Member + MaybeSerializeDeserialize; /// The internal oracle that gives access to the asset's price feeds. /// @@ -81,6 +83,50 @@ pub mod pallet { } } + #[pallet::genesis_config] + pub struct GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + /// The mappings to insert at genesis + pub asset_feeds: Vec<(T::AssetId, FeedIdFor)>, + } + + #[cfg(feature = "std")] + impl Default for GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize{ + fn default() -> Self { + Self { + asset_feeds: Default::default(), + } + } + } + + #[pallet::genesis_build] + impl GenesisBuild for GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + fn build(&self) { + for (asset, feed) in &self.asset_feeds { + AssetFeeds::::insert(asset.clone(),feed.clone()) + } + } + } + + #[cfg(feature = "std")] + impl GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + /// Direct implementation of `GenesisBuild::build_storage`. + /// + /// Kept in order not to break dependency. + pub fn build_storage(&self) -> Result { + >::build_storage(self) + } + + /// Direct implementation of `GenesisBuild::assimilate_storage`. + /// + /// Kept in order not to break dependency. + pub fn assimilate_storage( + &self, + storage: &mut frame_support::sp_runtime::Storage, + ) -> Result<(), String> { + >::assimilate_storage(self, storage) + } + } + #[pallet::event] #[pallet::generate_deposit(pub(super) fn deposit_event)] pub enum Event { From b7e8fea526527f6b215fbe8fc9a8e921e6d9180a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 17:12:42 +0200 Subject: [PATCH 22/32] refactor:pallets/price-feed: replace generic price type with FixedU128 --- pallets/price-feed/Cargo.toml | 5 +- pallets/price-feed/src/lib.rs | 80 +++++++++++++++++++++++--------- pallets/price-feed/src/traits.rs | 6 +-- pallets/price-feed/src/types.rs | 47 ++++++++++--------- 4 files changed, 91 insertions(+), 47 deletions(-) diff --git a/pallets/price-feed/Cargo.toml b/pallets/price-feed/Cargo.toml index 7a2683e5d5..ba19e71c34 100644 --- a/pallets/price-feed/Cargo.toml +++ b/pallets/price-feed/Cargo.toml @@ -11,6 +11,7 @@ version = '0.0.1' [features] default = ['std'] std = [ + 'serde', 'codec/std', 'frame-support/std', 'frame-system/std', @@ -44,8 +45,8 @@ git = "https://github.com/mattsse/chainlink-polkadot" # see also https://github.com/ChainSafe/PINT/pull/39 branch = "substrate-v3" -[dev-dependencies] -serde = { version = "1.0" } +[dependencies] +serde = { version = "1.0.101", optional = true } [dev-dependencies.pallet-balances] default-features = false diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 24a0789b4f..98ad25db28 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -22,14 +22,17 @@ mod types; pub mod pallet { pub use crate::traits::PriceFeed; use crate::types::AssetPricePair; - use frame_support::{pallet_prelude::*, sp_runtime::PerThing, traits::Get}; + use frame_support::{pallet_prelude::*, sp_runtime::PerThing, traits::{Get}, }; use frame_system::pallet_prelude::*; - use pallet_chainlink_feed::FeedOracle; + use pallet_chainlink_feed::{FeedOracle, FeedInterface, Feed}; #[cfg(feature = "std")] use frame_support::traits::GenesisBuild; + use frame_support::sp_runtime::{FixedU128}; type FeedIdFor = <::Oracle as FeedOracle>::FeedId; + type FeedValueFor = <<::Oracle as FeedOracle>::Feed as FeedInterface>::Value; + /// Provides access to all the price feeds /// This is used to determine the equivalent amount of PINT for assets #[pallet::config] @@ -44,9 +47,8 @@ pub mod pallet { #[pallet::constant] type SelfAssetId: Get; - /// Used to define the decimal precision when calculating prices - // TODO this needs to be factored in when converting the feed prices with their decimals - type Precision: PerThing + Encode; + // /// The price type to represent the different asset price pairs + // type Price: FixedPointNumber + CheckedMul + One; /// Type used to identify the assets. type AssetId: Parameter + Member + MaybeSerializeDeserialize; @@ -75,14 +77,6 @@ pub mod pallet { OptionQuery, >; - #[pallet::extra_constants] - impl Pallet { - /// The decimal precision to use when calculating price fractions - pub fn precision() -> T::Precision { - T::Precision::one() - } - } - #[pallet::genesis_config] pub struct GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { /// The mappings to insert at genesis @@ -172,7 +166,12 @@ pub mod pallet { #[pallet::error] pub enum Error { /// Thrown if no price feed was found for an asset - AssetPriceFeedNotFound + AssetPriceFeedNotFound, + /// Thrown when the underlying price feed does not yet contain a valid round. + InvalidFeedValue, + /// Thrown if the calculation of the price ratio fails due to exceeding the + /// accuracy of the configured price. + ExceededAccuracy } #[pallet::hooks] @@ -181,18 +180,57 @@ pub mod pallet { impl Pallet { - impl PriceFeed for Pallet { + /// Returns the corresponding identifier for the asset's price feed + pub fn get_asset_feed_id(asset_id : &T::AssetId) -> Option> { + AssetFeeds::::get(asset_id) + } + + /// Returns the latest value in the feed together with the feed's decimals + /// or an error if no feed was found for the given + /// or the feed doesn't contain any valid round yet. + fn get_latest_valid_value(feed_id: FeedIdFor) -> Result<(FeedValueFor, u8), DispatchError> { + let feed = T::Oracle::feed(feed_id).ok_or_else(||Error::::AssetPriceFeedNotFound)?; + ensure!(feed.first_valid_round().is_some(), Error::::InvalidFeedValue); + Ok((feed.latest_data().answer, feed.decimals())) + } + } + + impl PriceFeed for Pallet { + + /// Returns a `AssetPricePair` where `base` is the configured `SelfAssetId`. fn get_price( - quote: T::AssetFeedId, - ) -> Result, DispatchError> { - Self::get_price_pair(T::SelfAssetFeedId::get(), quote) + quote: T::AssetId, + ) -> Result, DispatchError> { + Self::get_price_pair(T::SelfAssetId::get(), quote) } fn get_price_pair( - _base: T::AssetFeedId, - _quote: T::AssetFeedId, - ) -> Result, DispatchError> { + base: T::AssetId, + quote: T::AssetId, + ) -> Result, DispatchError> { + let base_feed_id = Self::get_asset_feed_id(&base).ok_or_else(||Error::::AssetPriceFeedNotFound)?; + let quote_feed_id = Self::get_asset_feed_id("e).ok_or_else(||Error::::AssetPriceFeedNotFound)?; + + let (mut last_base_value, base_decimals) = Self::get_latest_valid_value(base_feed_id)?; + let (mut last_quote_value, quote_decimals) = Self::get_latest_valid_value(quote_feed_id)?; + + if base_decimals > quote_decimals { + + } else if quote_decimals > base_decimals { + + } + + let maybe_adjustment_multiplier = 10u128.checked_pow(10); + + + // T::Price::checked_from_rational() + todo!() } } + + + fn adjust_with_multiplier() { + + } } diff --git a/pallets/price-feed/src/traits.rs b/pallets/price-feed/src/traits.rs index d7f7f371bf..d710a862de 100644 --- a/pallets/price-feed/src/traits.rs +++ b/pallets/price-feed/src/traits.rs @@ -5,13 +5,13 @@ use crate::types::AssetPricePair; use frame_support::dispatch::DispatchError; /// An interface to access price data -pub trait PriceFeed { +pub trait PriceFeed { /// Returns the current price pair for `base/quote` where `base` is the native token - fn get_price(quote: AssetId) -> Result, DispatchError>; + fn get_price(quote: AssetId) -> Result, DispatchError>; /// Returns the current price pair for `base/quote` fn get_price_pair( base: AssetId, quote: AssetId, - ) -> Result, DispatchError>; + ) -> Result, DispatchError>; } diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs index bd9ac5d731..3ee91acf8b 100644 --- a/pallets/price-feed/src/types.rs +++ b/pallets/price-feed/src/types.rs @@ -2,11 +2,14 @@ // SPDX-License-Identifier: LGPL-3.0-only use frame_support::pallet_prelude::*; -use frame_support::sp_runtime::{PerThing, SaturatedConversion}; +use frame_support::sp_runtime::{PerThing, SaturatedConversion, FixedPointNumber, FixedU128}; + +/// The type to represent asset prices +pub type Price = FixedU128; /// Defines an asset pair identifier #[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)] -pub struct AssetPricePair { +pub struct AssetPricePair { /// The base asset id of this pair. pub base: AssetId, /// The quote asset @@ -15,10 +18,9 @@ pub struct AssetPricePair { price: Price, } -impl AssetPricePair +impl AssetPricePair where - AssetId: Member, - Price: PerThing, + AssetId: Member { /// Whether this pair involves the `asset` pub fn involves_asset(&self, asset: &AssetId) -> bool { @@ -45,7 +47,9 @@ where where N: Into, { - self.price * Price::saturated_from(units) + // where N: From + // self.price * Price::saturated_from(units) + todo!() } /// Calculates the total volume of the provided units of the `base` assetId w.r.t. price pair @@ -53,21 +57,22 @@ where where N: Into, { - self.price.saturating_reciprocal_mul(units.into()) + todo!() + // self.price.saturating_reciprocal_mul(units.into()) } } -impl AssetPricePair -where - AssetId: Member, - Price: PerThing + From, -{ - /// Turns this price pair of `base/quote` into a price pair of `quote/base` - pub fn invert(self) -> Self { - Self { - base: self.quote, - quote: self.base, - price: self.price.saturating_reciprocal_mul(1).into(), - } - } -} +// impl AssetPricePair +// where +// AssetId: Member, +// Price: PerThing + From, +// { +// /// Turns this price pair of `base/quote` into a price pair of `quote/base` +// pub fn invert(self) -> Self { +// Self { +// base: self.quote, +// quote: self.base, +// price: self.price.saturating_reciprocal_mul(1).into(), +// } +// } +// } From a23ba9c6a3f2ade4af438176327dbca4a38499c7 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 18:53:29 +0200 Subject: [PATCH 23/32] feat:pallets/price-feed: implement get_price_pair --- pallets/price-feed/src/lib.rs | 48 ++++++++++++++++++----------- pallets/price-feed/src/types.rs | 54 +++++++++++++++------------------ 2 files changed, 55 insertions(+), 47 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 98ad25db28..e667c5ffc8 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -21,13 +21,14 @@ mod types; #[allow(clippy::unused_unit)] pub mod pallet { pub use crate::traits::PriceFeed; - use crate::types::AssetPricePair; - use frame_support::{pallet_prelude::*, sp_runtime::PerThing, traits::{Get}, }; + use crate::types::{AssetPricePair, Price}; + use frame_support::{pallet_prelude::*, traits::{Get}, }; use frame_system::pallet_prelude::*; - use pallet_chainlink_feed::{FeedOracle, FeedInterface, Feed}; + use pallet_chainlink_feed::{FeedOracle, FeedInterface}; #[cfg(feature = "std")] use frame_support::traits::GenesisBuild; - use frame_support::sp_runtime::{FixedU128}; + use frame_support::sp_runtime::{FixedPointNumber}; + use frame_support::sp_std::convert::TryInto; type FeedIdFor = <::Oracle as FeedOracle>::FeedId; @@ -194,8 +195,16 @@ pub mod pallet { Ok((feed.latest_data().answer, feed.decimals())) } } + impl Pallet where FeedValueFor : TryInto { - impl PriceFeed for Pallet { + fn adjust_with_multiplier(value: u128, exp: u8 ) -> Result{ + let multiplier = 10u128.checked_pow(exp.into()).ok_or_else(||Error::::ExceededAccuracy)?; + Ok(value.checked_mul(multiplier).ok_or_else(||Error::::ExceededAccuracy)?) + } + + } + + impl PriceFeed for Pallet where FeedValueFor : TryInto { /// Returns a `AssetPricePair` where `base` is the configured `SelfAssetId`. fn get_price( @@ -211,26 +220,29 @@ pub mod pallet { let base_feed_id = Self::get_asset_feed_id(&base).ok_or_else(||Error::::AssetPriceFeedNotFound)?; let quote_feed_id = Self::get_asset_feed_id("e).ok_or_else(||Error::::AssetPriceFeedNotFound)?; - let (mut last_base_value, base_decimals) = Self::get_latest_valid_value(base_feed_id)?; - let (mut last_quote_value, quote_decimals) = Self::get_latest_valid_value(quote_feed_id)?; + let (last_base_value, base_decimals) = Self::get_latest_valid_value(base_feed_id)?; + let (last_quote_value, quote_decimals) = Self::get_latest_valid_value(quote_feed_id)?; - if base_decimals > quote_decimals { + let mut last_base_value = last_base_value.try_into().map_err(|_|Error::::ExceededAccuracy)?; + let mut last_quote_value = last_quote_value.try_into().map_err(|_|Error::::ExceededAccuracy)?; + // upscale the precision of the feed, which measures in fewer decimals + if base_decimals > quote_decimals { + last_quote_value = Self::adjust_with_multiplier(last_quote_value, base_decimals - quote_decimals)?; } else if quote_decimals > base_decimals { - + last_base_value = Self::adjust_with_multiplier(last_base_value, quote_decimals - base_decimals)?; } - let maybe_adjustment_multiplier = 10u128.checked_pow(10); - - - // T::Price::checked_from_rational() + let price = Price::checked_from_rational(last_base_value, last_quote_value).ok_or_else(||Error::::ExceededAccuracy)?; - todo!() + Ok( + AssetPricePair { + base, + quote, + price + } + ) } } - - fn adjust_with_multiplier() { - - } } diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs index 3ee91acf8b..84a4d5b3d4 100644 --- a/pallets/price-feed/src/types.rs +++ b/pallets/price-feed/src/types.rs @@ -2,7 +2,7 @@ // SPDX-License-Identifier: LGPL-3.0-only use frame_support::pallet_prelude::*; -use frame_support::sp_runtime::{PerThing, SaturatedConversion, FixedPointNumber, FixedU128}; +use frame_support::sp_runtime::{FixedPointNumber, FixedPointOperand, FixedU128}; /// The type to represent asset prices pub type Price = FixedU128; @@ -14,8 +14,8 @@ pub struct AssetPricePair { pub base: AssetId, /// The quote asset pub quote: AssetId, - /// The price for `base/quote` - price: Price, + /// The price of `base/quote` + pub price: Price, } impl AssetPricePair @@ -42,37 +42,33 @@ where &self.price } + /// Returns the price fraction `quote/base` + /// + /// Returns `None` if `price = 0`. + pub fn reciprocal_price(&self) -> Option { + self.price.reciprocal() + } + /// Calculates the total volume of the provided units of the `quote` assetId w.r.t. price pair - pub fn volume(&self, units: N) -> Price - where - N: Into, + pub fn volume(&self, units: N) -> Option { - // where N: From - // self.price * Price::saturated_from(units) - todo!() + self.price.checked_mul_int(units) } /// Calculates the total volume of the provided units of the `base` assetId w.r.t. price pair - pub fn reciprocal_volume(&self, units: N) -> u128 - where - N: Into, + pub fn reciprocal_volume(&self, units: N) -> Option { - todo!() - // self.price.saturating_reciprocal_mul(units.into()) + self.reciprocal_price()?.checked_mul_int(units) } -} -// impl AssetPricePair -// where -// AssetId: Member, -// Price: PerThing + From, -// { -// /// Turns this price pair of `base/quote` into a price pair of `quote/base` -// pub fn invert(self) -> Self { -// Self { -// base: self.quote, -// quote: self.base, -// price: self.price.saturating_reciprocal_mul(1).into(), -// } -// } -// } + /// Turns this price pair of `base/quote` into a price pair of `quote/base` + /// + /// Returns `None` if `price = 0`. + pub fn invert(self) -> Option { + Some(Self { + base: self.quote, + quote: self.base, + price: self.price.reciprocal()? + }) + } +} \ No newline at end of file From 70072799e1bb0bc41f77af1329fa25c54ac40974 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 18:54:11 +0200 Subject: [PATCH 24/32] rustfmt --- pallets/price-feed/src/lib.rs | 136 ++++++++++++++++++-------------- pallets/price-feed/src/types.rs | 14 ++-- 2 files changed, 83 insertions(+), 67 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index e667c5ffc8..a11c713385 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -22,17 +22,18 @@ mod types; pub mod pallet { pub use crate::traits::PriceFeed; use crate::types::{AssetPricePair, Price}; - use frame_support::{pallet_prelude::*, traits::{Get}, }; - use frame_system::pallet_prelude::*; - use pallet_chainlink_feed::{FeedOracle, FeedInterface}; + use frame_support::sp_runtime::FixedPointNumber; + use frame_support::sp_std::convert::TryInto; #[cfg(feature = "std")] use frame_support::traits::GenesisBuild; - use frame_support::sp_runtime::{FixedPointNumber}; - use frame_support::sp_std::convert::TryInto; + use frame_support::{pallet_prelude::*, traits::Get}; + use frame_system::pallet_prelude::*; + use pallet_chainlink_feed::{FeedInterface, FeedOracle}; - type FeedIdFor = <::Oracle as FeedOracle>::FeedId; + type FeedIdFor = <::Oracle as FeedOracle>::FeedId; - type FeedValueFor = <<::Oracle as FeedOracle>::Feed as FeedInterface>::Value; + type FeedValueFor = + <<::Oracle as FeedOracle>::Feed as FeedInterface>::Value; /// Provides access to all the price feeds /// This is used to determine the equivalent amount of PINT for assets @@ -70,22 +71,23 @@ pub mod pallet { #[pallet::storage] /// Store a mapping (AssetId) -> FeedId for all active assets - pub type AssetFeeds = StorageMap< - _, - Blake2_128Concat, - T::AssetId, - FeedIdFor, - OptionQuery, - >; + pub type AssetFeeds = + StorageMap<_, Blake2_128Concat, T::AssetId, FeedIdFor, OptionQuery>; #[pallet::genesis_config] - pub struct GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + pub struct GenesisConfig + where + <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize, + { /// The mappings to insert at genesis pub asset_feeds: Vec<(T::AssetId, FeedIdFor)>, } #[cfg(feature = "std")] - impl Default for GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize{ + impl Default for GenesisConfig + where + <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize, + { fn default() -> Self { Self { asset_feeds: Default::default(), @@ -94,16 +96,22 @@ pub mod pallet { } #[pallet::genesis_build] - impl GenesisBuild for GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + impl GenesisBuild for GenesisConfig + where + <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize, + { fn build(&self) { - for (asset, feed) in &self.asset_feeds { - AssetFeeds::::insert(asset.clone(),feed.clone()) - } + for (asset, feed) in &self.asset_feeds { + AssetFeeds::::insert(asset.clone(), feed.clone()) + } } } #[cfg(feature = "std")] - impl GenesisConfig where <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize { + impl GenesisConfig + where + <::Oracle as FeedOracle>::FeedId: MaybeSerializeDeserialize, + { /// Direct implementation of `GenesisBuild::build_storage`. /// /// Kept in order not to break dependency. @@ -135,18 +143,17 @@ pub mod pallet { #[pallet::call] impl Pallet { - /// Callable by an admin to track a price feed identifier for the asset #[pallet::weight(10_000)] // TODO: Set weights pub fn track_asset_price_feed( origin: OriginFor, asset_id: T::AssetId, - feed_id : FeedIdFor + feed_id: FeedIdFor, ) -> DispatchResultWithPostInfo { T::AdminOrigin::ensure_origin(origin)?; - let old_feed_id = AssetFeeds::::mutate(&asset_id, |maybe_feed_id | { + let old_feed_id = AssetFeeds::::mutate(&asset_id, |maybe_feed_id| { maybe_feed_id.replace(feed_id.clone()) - } ); + }); Self::deposit_event(Event::UpdateAssetPriceFeed(asset_id, feed_id, old_feed_id)); Ok(().into()) } @@ -158,7 +165,7 @@ pub mod pallet { asset_id: T::AssetId, ) -> DispatchResultWithPostInfo { T::AdminOrigin::ensure_origin(origin)?; - let feed_id = AssetFeeds::::take(&asset_id); + let feed_id = AssetFeeds::::take(&asset_id); Self::deposit_event(Event::RemoveAssetPriceFeed(asset_id, feed_id)); Ok(().into()) } @@ -172,44 +179,53 @@ pub mod pallet { InvalidFeedValue, /// Thrown if the calculation of the price ratio fails due to exceeding the /// accuracy of the configured price. - ExceededAccuracy + ExceededAccuracy, } #[pallet::hooks] impl Hooks> for Pallet {} - impl Pallet { - /// Returns the corresponding identifier for the asset's price feed - pub fn get_asset_feed_id(asset_id : &T::AssetId) -> Option> { + pub fn get_asset_feed_id(asset_id: &T::AssetId) -> Option> { AssetFeeds::::get(asset_id) } /// Returns the latest value in the feed together with the feed's decimals /// or an error if no feed was found for the given /// or the feed doesn't contain any valid round yet. - fn get_latest_valid_value(feed_id: FeedIdFor) -> Result<(FeedValueFor, u8), DispatchError> { - let feed = T::Oracle::feed(feed_id).ok_or_else(||Error::::AssetPriceFeedNotFound)?; - ensure!(feed.first_valid_round().is_some(), Error::::InvalidFeedValue); + fn get_latest_valid_value( + feed_id: FeedIdFor, + ) -> Result<(FeedValueFor, u8), DispatchError> { + let feed = + T::Oracle::feed(feed_id).ok_or_else(|| Error::::AssetPriceFeedNotFound)?; + ensure!( + feed.first_valid_round().is_some(), + Error::::InvalidFeedValue + ); Ok((feed.latest_data().answer, feed.decimals())) } } - impl Pallet where FeedValueFor : TryInto { - - fn adjust_with_multiplier(value: u128, exp: u8 ) -> Result{ - let multiplier = 10u128.checked_pow(exp.into()).ok_or_else(||Error::::ExceededAccuracy)?; - Ok(value.checked_mul(multiplier).ok_or_else(||Error::::ExceededAccuracy)?) + impl Pallet + where + FeedValueFor: TryInto, + { + fn adjust_with_multiplier(value: u128, exp: u8) -> Result { + let multiplier = 10u128 + .checked_pow(exp.into()) + .ok_or_else(|| Error::::ExceededAccuracy)?; + Ok(value + .checked_mul(multiplier) + .ok_or_else(|| Error::::ExceededAccuracy)?) } - } - impl PriceFeed for Pallet where FeedValueFor : TryInto { - + impl PriceFeed for Pallet + where + FeedValueFor: TryInto, + { /// Returns a `AssetPricePair` where `base` is the configured `SelfAssetId`. - fn get_price( - quote: T::AssetId, - ) -> Result, DispatchError> { + fn get_price(quote: T::AssetId) -> Result, DispatchError> { Self::get_price_pair(T::SelfAssetId::get(), quote) } @@ -217,32 +233,34 @@ pub mod pallet { base: T::AssetId, quote: T::AssetId, ) -> Result, DispatchError> { - let base_feed_id = Self::get_asset_feed_id(&base).ok_or_else(||Error::::AssetPriceFeedNotFound)?; - let quote_feed_id = Self::get_asset_feed_id("e).ok_or_else(||Error::::AssetPriceFeedNotFound)?; + let base_feed_id = + Self::get_asset_feed_id(&base).ok_or_else(|| Error::::AssetPriceFeedNotFound)?; + let quote_feed_id = Self::get_asset_feed_id("e) + .ok_or_else(|| Error::::AssetPriceFeedNotFound)?; let (last_base_value, base_decimals) = Self::get_latest_valid_value(base_feed_id)?; let (last_quote_value, quote_decimals) = Self::get_latest_valid_value(quote_feed_id)?; - let mut last_base_value = last_base_value.try_into().map_err(|_|Error::::ExceededAccuracy)?; - let mut last_quote_value = last_quote_value.try_into().map_err(|_|Error::::ExceededAccuracy)?; + let mut last_base_value = last_base_value + .try_into() + .map_err(|_| Error::::ExceededAccuracy)?; + let mut last_quote_value = last_quote_value + .try_into() + .map_err(|_| Error::::ExceededAccuracy)?; // upscale the precision of the feed, which measures in fewer decimals if base_decimals > quote_decimals { - last_quote_value = Self::adjust_with_multiplier(last_quote_value, base_decimals - quote_decimals)?; + last_quote_value = + Self::adjust_with_multiplier(last_quote_value, base_decimals - quote_decimals)?; } else if quote_decimals > base_decimals { - last_base_value = Self::adjust_with_multiplier(last_base_value, quote_decimals - base_decimals)?; + last_base_value = + Self::adjust_with_multiplier(last_base_value, quote_decimals - base_decimals)?; } - let price = Price::checked_from_rational(last_base_value, last_quote_value).ok_or_else(||Error::::ExceededAccuracy)?; + let price = Price::checked_from_rational(last_base_value, last_quote_value) + .ok_or_else(|| Error::::ExceededAccuracy)?; - Ok( - AssetPricePair { - base, - quote, - price - } - ) + Ok(AssetPricePair { base, quote, price }) } } - } diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs index 84a4d5b3d4..9a0a54f4f6 100644 --- a/pallets/price-feed/src/types.rs +++ b/pallets/price-feed/src/types.rs @@ -20,7 +20,7 @@ pub struct AssetPricePair { impl AssetPricePair where - AssetId: Member + AssetId: Member, { /// Whether this pair involves the `asset` pub fn involves_asset(&self, asset: &AssetId) -> bool { @@ -50,15 +50,13 @@ where } /// Calculates the total volume of the provided units of the `quote` assetId w.r.t. price pair - pub fn volume(&self, units: N) -> Option - { + pub fn volume(&self, units: N) -> Option { self.price.checked_mul_int(units) } /// Calculates the total volume of the provided units of the `base` assetId w.r.t. price pair - pub fn reciprocal_volume(&self, units: N) -> Option - { - self.reciprocal_price()?.checked_mul_int(units) + pub fn reciprocal_volume(&self, units: N) -> Option { + self.reciprocal_price()?.checked_mul_int(units) } /// Turns this price pair of `base/quote` into a price pair of `quote/base` @@ -68,7 +66,7 @@ where Some(Self { base: self.quote, quote: self.base, - price: self.price.reciprocal()? + price: self.price.reciprocal()?, }) } -} \ No newline at end of file +} From bb074a6c102322d2ae89708a805a11f4120b5cdc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 18:58:36 +0200 Subject: [PATCH 25/32] chore(clippy): make clippy happy --- pallets/price-feed/src/lib.rs | 36 +++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index a11c713385..55942cadbe 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -29,6 +29,7 @@ pub mod pallet { use frame_support::{pallet_prelude::*, traits::Get}; use frame_system::pallet_prelude::*; use pallet_chainlink_feed::{FeedInterface, FeedOracle}; + use std::cmp::Ordering; type FeedIdFor = <::Oracle as FeedOracle>::FeedId; @@ -197,8 +198,7 @@ pub mod pallet { fn get_latest_valid_value( feed_id: FeedIdFor, ) -> Result<(FeedValueFor, u8), DispatchError> { - let feed = - T::Oracle::feed(feed_id).ok_or_else(|| Error::::AssetPriceFeedNotFound)?; + let feed = T::Oracle::feed(feed_id).ok_or(Error::::AssetPriceFeedNotFound)?; ensure!( feed.first_valid_round().is_some(), Error::::InvalidFeedValue @@ -213,10 +213,10 @@ pub mod pallet { fn adjust_with_multiplier(value: u128, exp: u8) -> Result { let multiplier = 10u128 .checked_pow(exp.into()) - .ok_or_else(|| Error::::ExceededAccuracy)?; + .ok_or(Error::::ExceededAccuracy)?; Ok(value .checked_mul(multiplier) - .ok_or_else(|| Error::::ExceededAccuracy)?) + .ok_or(Error::::ExceededAccuracy)?) } } @@ -234,9 +234,9 @@ pub mod pallet { quote: T::AssetId, ) -> Result, DispatchError> { let base_feed_id = - Self::get_asset_feed_id(&base).ok_or_else(|| Error::::AssetPriceFeedNotFound)?; - let quote_feed_id = Self::get_asset_feed_id("e) - .ok_or_else(|| Error::::AssetPriceFeedNotFound)?; + Self::get_asset_feed_id(&base).ok_or(Error::::AssetPriceFeedNotFound)?; + let quote_feed_id = + Self::get_asset_feed_id("e).ok_or(Error::::AssetPriceFeedNotFound)?; let (last_base_value, base_decimals) = Self::get_latest_valid_value(base_feed_id)?; let (last_quote_value, quote_decimals) = Self::get_latest_valid_value(quote_feed_id)?; @@ -249,16 +249,24 @@ pub mod pallet { .map_err(|_| Error::::ExceededAccuracy)?; // upscale the precision of the feed, which measures in fewer decimals - if base_decimals > quote_decimals { - last_quote_value = - Self::adjust_with_multiplier(last_quote_value, base_decimals - quote_decimals)?; - } else if quote_decimals > base_decimals { - last_base_value = - Self::adjust_with_multiplier(last_base_value, quote_decimals - base_decimals)?; + match base_decimals.cmp("e_decimals) { + Ordering::Less => { + last_base_value = Self::adjust_with_multiplier( + last_base_value, + quote_decimals - base_decimals, + )?; + } + Ordering::Greater => { + last_quote_value = Self::adjust_with_multiplier( + last_quote_value, + base_decimals - quote_decimals, + )?; + } + _ => {} } let price = Price::checked_from_rational(last_base_value, last_quote_value) - .ok_or_else(|| Error::::ExceededAccuracy)?; + .ok_or(Error::::ExceededAccuracy)?; Ok(AssetPricePair { base, quote, price }) } From f1b60abff59694e47258fef4f0683ea282d78259 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 18:59:07 +0200 Subject: [PATCH 26/32] chore(deps): update chainlink feed pallet --- Cargo.lock | 502 ++++++++++++++++++++++++++--------------------------- 1 file changed, 251 insertions(+), 251 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index faa0d4cf0f..1604e0a8cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1936,25 +1936,6 @@ dependencies = [ "percent-encoding 2.1.0", ] -[[package]] -name = "frame-benchmarking" -version = "3.1.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" -dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "linregress", - "log", - "parity-scale-codec", - "paste", - "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", -] - [[package]] name = "frame-benchmarking" version = "3.1.0" @@ -1974,6 +1955,25 @@ dependencies = [ "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "frame-benchmarking" +version = "3.1.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-system 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "linregress", + "log", + "parity-scale-codec", + "paste", + "sp-api 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + [[package]] name = "frame-benchmarking-cli" version = "3.0.0" @@ -2026,17 +2026,6 @@ dependencies = [ "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] -[[package]] -name = "frame-metadata" -version = "13.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" -dependencies = [ - "parity-scale-codec", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", -] - [[package]] name = "frame-metadata" version = "13.0.0" @@ -2050,29 +2039,14 @@ dependencies = [ ] [[package]] -name = "frame-support" -version = "3.0.0" +name = "frame-metadata" +version = "13.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "bitflags", - "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "impl-trait-for-tuples", - "log", - "once_cell", "parity-scale-codec", - "paste", "serde", - "smallvec 1.6.1", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2103,15 +2077,29 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural" +name = "frame-support" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "Inflector", - "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.69", + "bitflags", + "frame-metadata 13.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "frame-support-procedural 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "impl-trait-for-tuples", + "log", + "once_cell", + "parity-scale-codec", + "paste", + "serde", + "smallvec 1.6.1", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-inherents 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-staking 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -2128,12 +2116,12 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural-tools" +name = "frame-support-procedural" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "proc-macro-crate 1.0.0", + "Inflector", + "frame-support-procedural-tools 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", @@ -2153,10 +2141,12 @@ dependencies = [ ] [[package]] -name = "frame-support-procedural-tools-derive" +name = "frame-support-procedural-tools" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ + "frame-support-procedural-tools-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "proc-macro-crate 1.0.0", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", @@ -2174,20 +2164,13 @@ dependencies = [ ] [[package]] -name = "frame-system" +name = "frame-support-procedural-tools-derive" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "impl-trait-for-tuples", - "log", - "parity-scale-codec", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", ] [[package]] @@ -2207,6 +2190,23 @@ dependencies = [ "sp-version 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "frame-system" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "impl-trait-for-tuples", + "log", + "parity-scale-codec", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", +] + [[package]] name = "frame-system-benchmarking" version = "3.0.0" @@ -4660,7 +4660,7 @@ dependencies = [ [[package]] name = "pallet-chainlink-feed" version = "0.1.0" -source = "git+https://github.com/mattsse/chainlink-polkadot?branch=substrate-v3#f4a222f67dc0766f3c662b2d31d3e8b0f1872fd5" +source = "git+https://github.com/mattsse/chainlink-polkadot?branch=substrate-v3#1a163a11e7ec527aa3dc1d1fa0da078b4b3b96c1" dependencies = [ "frame-benchmarking 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-support 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", @@ -8952,23 +8952,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "sp-api" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" -dependencies = [ - "hash-db", - "log", - "parity-scale-codec", - "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "thiserror", -] - [[package]] name = "sp-api" version = "3.0.0" @@ -8987,15 +8970,20 @@ dependencies = [ ] [[package]] -name = "sp-api-proc-macro" +name = "sp-api" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "blake2-rfc", - "proc-macro-crate 1.0.0", - "proc-macro2 1.0.26", - "quote 1.0.9", - "syn 1.0.69", + "hash-db", + "log", + "parity-scale-codec", + "sp-api-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-version 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "thiserror", ] [[package]] @@ -9012,15 +9000,15 @@ dependencies = [ ] [[package]] -name = "sp-application-crypto" +name = "sp-api-proc-macro" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "parity-scale-codec", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "blake2-rfc", + "proc-macro-crate 1.0.0", + "proc-macro2 1.0.26", + "quote 1.0.9", + "syn 1.0.69", ] [[package]] @@ -9037,17 +9025,15 @@ dependencies = [ ] [[package]] -name = "sp-arithmetic" +name = "sp-application-crypto" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "integer-sqrt", - "num-traits", "parity-scale-codec", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "static_assertions", ] [[package]] @@ -9064,6 +9050,20 @@ dependencies = [ "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "sp-arithmetic" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "integer-sqrt", + "num-traits", + "parity-scale-codec", + "serde", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "static_assertions", +] + [[package]] name = "sp-authority-discovery" version = "3.0.0" @@ -9199,7 +9199,8 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abbc8d4e9b8a7d5819ed26f1374017bb32833ef4890e4ff065e1da30669876bc" dependencies = [ "base58", "blake2-rfc", @@ -9226,11 +9227,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.3", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9243,8 +9244,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abbc8d4e9b8a7d5819ed26f1374017bb32833ef4890e4ff065e1da30669876bc" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "base58", "blake2-rfc", @@ -9271,11 +9271,11 @@ dependencies = [ "secrecy", "serde", "sha2 0.9.3", - "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9297,7 +9297,8 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e80275f23b4e7ba8f54dec5f90f016530e7307d2ee9445f617ab986cbe97f31e" dependencies = [ "proc-macro2 1.0.26", "quote 1.0.9", @@ -9307,8 +9308,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e80275f23b4e7ba8f54dec5f90f016530e7307d2ee9445f617ab986cbe97f31e" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "proc-macro2 1.0.26", "quote 1.0.9", @@ -9318,24 +9318,24 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fdc625f8c7b13b9a136d334888b21b5743d2081cb666cb03efca1dc9b8f74d1" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-externalities" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fdc625f8c7b13b9a136d334888b21b5743d2081cb666cb03efca1dc9b8f74d1" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "environmental", "parity-scale-codec", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9355,18 +9355,6 @@ dependencies = [ "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] -[[package]] -name = "sp-inherents" -version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" -dependencies = [ - "parity-scale-codec", - "parking_lot 0.11.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "thiserror", -] - [[package]] name = "sp-inherents" version = "3.0.0" @@ -9381,27 +9369,15 @@ dependencies = [ ] [[package]] -name = "sp-io" +name = "sp-inherents" version = "3.0.0" source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ - "futures 0.3.14", - "hash-db", - "libsecp256k1", - "log", "parity-scale-codec", "parking_lot 0.11.1", "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "tracing", - "tracing-core", + "thiserror", ] [[package]] @@ -9429,6 +9405,30 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "sp-io" +version = "3.0.0" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +dependencies = [ + "futures 0.3.14", + "hash-db", + "libsecp256k1", + "log", + "parity-scale-codec", + "parking_lot 0.11.1", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-keystore 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-state-machine 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "tracing", + "tracing-core", +] + [[package]] name = "sp-keyring" version = "3.0.0" @@ -9443,7 +9443,8 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6ccd2baf189112355338e8b224dc513cd239b974dbd717f12b3dc7a7248c3b" dependencies = [ "async-trait", "derive_more 0.99.13", @@ -9452,16 +9453,14 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "serde", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-keystore" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db6ccd2baf189112355338e8b224dc513cd239b974dbd717f12b3dc7a7248c3b" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "async-trait", "derive_more 0.99.13", @@ -9470,8 +9469,9 @@ dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", "schnorrkel", - "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9520,7 +9520,8 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54702e109f1c8a870dd4065a497d2612d42cec5817126e96cc0658c5ea975784" dependencies = [ "backtrace", ] @@ -9528,8 +9529,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54702e109f1c8a870dd4065a497d2612d42cec5817126e96cc0658c5ea975784" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "backtrace", ] @@ -9546,7 +9546,8 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa4b353b76f04616dbdb8d269d58dcac47acb31c006d3b70e7b64233e68695e" dependencies = [ "either", "hash256-std-hasher", @@ -9557,18 +9558,17 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-application-crypto 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-arithmetic 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-runtime" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfa4b353b76f04616dbdb8d269d58dcac47acb31c006d3b70e7b64233e68695e" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "either", "hash256-std-hasher", @@ -9579,55 +9579,56 @@ dependencies = [ "paste", "rand 0.7.3", "serde", - "sp-application-crypto 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-arithmetic 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-io 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-application-crypto 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-arithmetic 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-io 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5c88b4bc8d607e4e2ff767a85db58cf7101f3dd6064f06929342ea67fe8fb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime-interface-proc-macro 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-tracing 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-wasm-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "static_assertions", ] [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2e5c88b4bc8d607e4e2ff767a85db58cf7101f3dd6064f06929342ea67fe8fb" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", "primitive-types", - "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-runtime-interface-proc-macro 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-storage 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-tracing 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-wasm-interface 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime-interface-proc-macro 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-storage 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-tracing 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-wasm-interface 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "static_assertions", ] [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19a6c7c2251512c9e533d15db8a863b06ece1cbee778130dd9adbe44b6b39aa9" dependencies = [ "Inflector", - "proc-macro-crate 1.0.0", + "proc-macro-crate 0.1.5", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", @@ -9636,11 +9637,10 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19a6c7c2251512c9e533d15db8a863b06ece1cbee778130dd9adbe44b6b39aa9" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "Inflector", - "proc-macro-crate 0.1.5", + "proc-macro-crate 1.0.0", "proc-macro2 1.0.26", "quote 1.0.9", "syn 1.0.69", @@ -9671,28 +9671,29 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc729eb10f8809c61a1fe439ac118a4413de004aaf863003ee8752ac0b596e73" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-staking" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc729eb10f8809c61a1fe439ac118a4413de004aaf863003ee8752ac0b596e73" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "parity-scale-codec", - "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46fa4143e58e9130f726d4e8a9b86f3530a8bd19a2eedcdcf4af205f4b5a6d4f" dependencies = [ "hash-db", "log", @@ -9701,11 +9702,11 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-panic-handler 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-trie 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "thiserror", "trie-db", "trie-root", @@ -9714,8 +9715,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fa4143e58e9130f726d4e8a9b86f3530a8bd19a2eedcdcf4af205f4b5a6d4f" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "log", @@ -9724,11 +9724,11 @@ dependencies = [ "parking_lot 0.11.1", "rand 0.7.3", "smallvec 1.6.1", - "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-externalities 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-panic-handler 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-trie 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-externalities 0.9.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-panic-handler 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-trie 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "thiserror", "trie-db", "trie-root", @@ -9737,39 +9737,39 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35391ea974fa5ee869cb094d5b437688fbf3d8127d64d1b9fed5822a1ed39b12" [[package]] name = "sp-std" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35391ea974fa5ee869cb094d5b437688fbf3d8127d64d1b9fed5822a1ed39b12" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86af458d4a0251c490cdde9dcaaccb88d398f3b97ac6694cdd49ed9337e6b961" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-storage" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86af458d4a0251c490cdde9dcaaccb88d398f3b97ac6694cdd49ed9337e6b961" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-serde", "parity-scale-codec", "ref-cast", "serde", - "sp-debug-derive 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-debug-derive 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] @@ -9801,11 +9801,12 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "567382d8d4e14fb572752863b5cd57a78f9e9a6583332b590b726f061f3ea957" dependencies = [ "log", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", "tracing-core", "tracing-subscriber", @@ -9814,12 +9815,11 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567382d8d4e14fb572752863b5cd57a78f9e9a6583332b590b726f061f3ea957" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "log", "parity-scale-codec", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "tracing", "tracing-core", "tracing-subscriber", @@ -9844,13 +9844,14 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b85b7f745da41ef825c6f7b93f1fdc897b03df94a4884adfbb70fbcd0aed1298" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "trie-db", "trie-root", ] @@ -9858,14 +9859,13 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85b7f745da41ef825c6f7b93f1fdc897b03df94a4884adfbb70fbcd0aed1298" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "hash-db", "memory-db", "parity-scale-codec", - "sp-core 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-core 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "trie-db", "trie-root", ] @@ -9885,48 +9885,48 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbeffa538a13d715d30e01d57a2636ba32845b737a29a3ea32403576588222e7" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sp-version" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbeffa538a13d715d30e01d57a2636ba32845b737a29a3ea32403576588222e7" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-serde", "parity-scale-codec", "serde", - "sp-runtime 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-runtime 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", ] [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b214e125666a6416cf30a70cc6a5dacd34a4e5197f8a3d479f714af7e1dc7a47" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", + "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "wasmi", ] [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b214e125666a6416cf30a70cc6a5dacd34a4e5197f8a3d479f714af7e1dc7a47" +source = "git+https://github.com/paritytech/substrate.git?branch=rococo-v1#68cfc326fa0e3d96d0d92509e4db1a104b9da9bb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", - "sp-std 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "sp-std 3.0.0 (git+https://github.com/paritytech/substrate.git?branch=rococo-v1)", "wasmi", ] @@ -10848,7 +10848,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" dependencies = [ "cfg-if 0.1.10", - "rand 0.3.23", + "rand 0.7.3", "static_assertions", ] From 9763582445ec56a878a2e969f60ea1fa470173fc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 19:09:52 +0200 Subject: [PATCH 27/32] feat:pallets/price-feed: drop unused type --- pallets/price-feed/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 55942cadbe..151ec915ed 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -40,9 +40,6 @@ pub mod pallet { /// This is used to determine the equivalent amount of PINT for assets #[pallet::config] pub trait Config: frame_system::Config { - /// The unit used to measure the value of assets - type BaseCurrency: Parameter + Member; - /// The origin that is allowed to insert asset -> feed mappings type AdminOrigin: EnsureOrigin; From 549f8f0869b109d863bf4e14c03bc734d022484f Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 19:26:12 +0200 Subject: [PATCH 28/32] test:pallets/price-feed: update mock template --- pallets/price-feed/src/mock.rs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pallets/price-feed/src/mock.rs b/pallets/price-feed/src/mock.rs index 0b9b966892..f26fe9662b 100644 --- a/pallets/price-feed/src/mock.rs +++ b/pallets/price-feed/src/mock.rs @@ -6,13 +6,12 @@ use crate as pallet_price_feed; use frame_support::sp_runtime::traits::AccountIdConversion; -use frame_support::{parameter_types, PalletId}; +use frame_support::{ord_parameter_types, parameter_types, PalletId}; use frame_system as system; use sp_core::H256; use sp_runtime::{ testing::Header, traits::{BlakeTwo256, IdentityLookup}, - Perbill, }; type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; @@ -92,7 +91,7 @@ parameter_types! { } type FeedId = u16; -type Value = u64; +type Value = u128; impl pallet_chainlink_feed::Config for Test { type Event = Event; @@ -108,19 +107,23 @@ impl pallet_chainlink_feed::Config for Test { type WeightInfo = (); } +type AssetId = u64; +pub(crate) const ADMIN_ACCOUNT_ID: AccountId = 88; + parameter_types! { - pub const PINTFeed: FeedId = 1u16; + pub const PINTAssetId: AssetId = 1u64; } -type BaseCurrency = u128; +ord_parameter_types! { + pub const AdminAccountId: AccountId = ADMIN_ACCOUNT_ID; +} impl pallet_price_feed::Config for Test { - type Event = Event; + type AdminOrigin = frame_system::EnsureSignedBy; + type SelfAssetId = PINTAssetId; + type AssetId = AssetId; type Oracle = ChainlinkFeed; - type BaseCurrency = BaseCurrency; - type SelfAssetFeedId = PINTFeed; - type Precision = Perbill; - type AssetFeedId = FeedId; + type Event = Event; } // Build genesis storage according to the mock runtime. From 46aef803ba17a44da1ce407668c7cb68a72e1b21 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 19:26:32 +0200 Subject: [PATCH 29/32] test:pallets/price-feed: add price pair tests --- pallets/price-feed/src/types.rs | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/pallets/price-feed/src/types.rs b/pallets/price-feed/src/types.rs index 9a0a54f4f6..e294db3ac6 100644 --- a/pallets/price-feed/src/types.rs +++ b/pallets/price-feed/src/types.rs @@ -70,3 +70,45 @@ where }) } } + +#[cfg(test)] +mod tests { + use super::*; + + fn mock_pair(base: u128, quote: u128) -> AssetPricePair { + AssetPricePair { + base: 1, + quote: 2, + price: Price::checked_from_rational(base, quote).unwrap(), + } + } + + #[test] + fn can_detect_involvement() { + let pair = mock_pair(600, 200); + assert!(pair.is_quote(&2)); + assert!(pair.is_base(&1)); + } + + #[test] + fn can_determine_volume() { + let pair = mock_pair(600, 200); + let value_of_units_measured_in_quote = pair.volume(300u128).unwrap(); + assert_eq!(value_of_units_measured_in_quote, 600 / 200 * 300); + } + + #[test] + fn can_determine_reciprocal_volume() { + let pair = mock_pair(800, 200); + let value_of_units_measured_in_base = pair.reciprocal_volume(500u128).unwrap(); + assert_eq!(value_of_units_measured_in_base, 200 / 8 * 5); + } + + #[test] + fn can_invert_pair() { + let pair = mock_pair(500, 100); + let reciprocal_price = pair.reciprocal_price().unwrap(); + let inverted = pair.invert().unwrap(); + assert_eq!(reciprocal_price, *inverted.price()); + } +} From 70444eea671cbcab87f894734dde1e9041c47aa0 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 20:09:15 +0200 Subject: [PATCH 30/32] test:pallets/price-feed: reexport feedbuilder for tests --- pallets/price-feed/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 151ec915ed..422c4bd8de 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -7,6 +7,8 @@ pub use pallet::*; #[cfg(test)] mod mock; +#[cfg(test)] +pub use mock::FeedBuilder; #[cfg(test)] mod tests; From 0b3cc3393101b6982dd2f594324f940b74ba05c5 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 20:23:06 +0200 Subject: [PATCH 31/32] test:pallets/price-feed: add price feed tests --- pallets/price-feed/src/mock.rs | 101 +++++++++++++++++++-- pallets/price-feed/src/tests.rs | 151 +++++++++++++++++++++++++++++--- 2 files changed, 231 insertions(+), 21 deletions(-) diff --git a/pallets/price-feed/src/mock.rs b/pallets/price-feed/src/mock.rs index f26fe9662b..4f3897940a 100644 --- a/pallets/price-feed/src/mock.rs +++ b/pallets/price-feed/src/mock.rs @@ -5,9 +5,10 @@ #![allow(clippy::from_over_into)] use crate as pallet_price_feed; -use frame_support::sp_runtime::traits::AccountIdConversion; +use frame_support::dispatch::DispatchResultWithPostInfo; use frame_support::{ord_parameter_types, parameter_types, PalletId}; use frame_system as system; +use pallet_chainlink_feed::RoundId; use sp_core::H256; use sp_runtime::{ testing::Header, @@ -38,6 +39,7 @@ parameter_types! { pub(crate) type Balance = u64; pub(crate) type AccountId = u64; +pub(crate) type BlockNumber = u64; impl system::Config for Test { type BaseCallFilter = (); @@ -47,7 +49,7 @@ impl system::Config for Test { type Origin = Origin; type Call = Call; type Index = u64; - type BlockNumber = u64; + type BlockNumber = BlockNumber; type Hash = H256; type Hashing = BlakeTwo256; type AccountId = AccountId; @@ -90,8 +92,8 @@ parameter_types! { pub const PruningWindow: u32 = 3; } -type FeedId = u16; -type Value = u128; +pub(crate) type FeedId = u16; +pub(crate) type Value = u128; impl pallet_chainlink_feed::Config for Test { type Event = Event; @@ -107,7 +109,7 @@ impl pallet_chainlink_feed::Config for Test { type WeightInfo = (); } -type AssetId = u64; +pub(crate) type AssetId = u64; pub(crate) const ADMIN_ACCOUNT_ID: AccountId = 88; parameter_types! { @@ -126,21 +128,104 @@ impl pallet_price_feed::Config for Test { type Event = Event; } +#[derive(Debug, Clone, Default)] +pub struct FeedBuilder { + owner: Option, + payment: Option, + timeout: Option, + value_bounds: Option<(Value, Value)>, + min_submissions: Option, + description: Option>, + restart_delay: Option, + oracles: Option>, +} + +/// Helper implementation +impl FeedBuilder { + pub fn new() -> Self { + Self::default() + } + + pub fn owner(mut self, o: AccountId) -> Self { + self.owner = Some(o); + self + } + + pub fn payment(mut self, p: Balance) -> Self { + self.payment = Some(p); + self + } + + pub fn timeout(mut self, t: BlockNumber) -> Self { + self.timeout = Some(t); + self + } + + pub fn value_bounds(mut self, min: Value, max: Value) -> Self { + self.value_bounds = Some((min, max)); + self + } + + pub fn min_submissions(mut self, m: u32) -> Self { + self.min_submissions = Some(m); + self + } + + pub fn description(mut self, d: Vec) -> Self { + self.description = Some(d); + self + } + + pub fn restart_delay(mut self, d: RoundId) -> Self { + self.restart_delay = Some(d); + self + } + + pub fn oracles(mut self, o: Vec<(AccountId, AccountId)>) -> Self { + self.oracles = Some(o); + self + } + + pub fn build_and_store(self) -> DispatchResultWithPostInfo { + let owner = Origin::signed(self.owner.unwrap_or(1)); + let payment = self.payment.unwrap_or(20); + let timeout = self.timeout.unwrap_or(1); + let value_bounds = self.value_bounds.unwrap_or((1, 1_000)); + let min_submissions = self.min_submissions.unwrap_or(2); + let decimals = 5; + let description = self.description.unwrap_or(b"desc".to_vec()); + let oracles = self.oracles.unwrap_or(vec![(2, 4), (3, 4), (4, 4)]); + let restart_delay = self + .restart_delay + .unwrap_or(oracles.len().saturating_sub(1) as u32); + ChainlinkFeed::create_feed( + owner, + payment, + timeout, + value_bounds, + min_submissions, + decimals, + description, + restart_delay, + oracles, + ) + } +} + // Build genesis storage according to the mock runtime. pub fn new_test_ext() -> sp_io::TestExternalities { let mut t = frame_system::GenesisConfig::default() .build_storage::() .unwrap(); - let pallet_account: AccountId = FeedPalletId::get().into_account(); pallet_balances::GenesisConfig:: { - balances: vec![(pallet_account, 100 * MIN_RESERVE)], + balances: vec![(ADMIN_ACCOUNT_ID, 100 * MIN_RESERVE)], } .assimilate_storage(&mut t) .unwrap(); pallet_chainlink_feed::GenesisConfig:: { - pallet_admin: Some(pallet_account), + pallet_admin: Some(ADMIN_ACCOUNT_ID), feed_creators: vec![1], } .assimilate_storage(&mut t) diff --git a/pallets/price-feed/src/tests.rs b/pallets/price-feed/src/tests.rs index eba4a939d6..1e066d317d 100644 --- a/pallets/price-feed/src/tests.rs +++ b/pallets/price-feed/src/tests.rs @@ -2,22 +2,147 @@ // SPDX-License-Identifier: LGPL-3.0-only use crate as pallet; -use crate::mock::*; -use frame_support::assert_ok; +use crate::types::{AssetPricePair, Price}; +use crate::{mock::*, Error}; +use frame_support::{assert_noop, assert_ok}; +use pallet::PriceFeed as _; +use sp_runtime::traits::BadOrigin; +use sp_runtime::FixedPointNumber; + +const ASSET_X_ID: AssetId = 2; #[test] -fn feed_creation_should_work() { +fn feed_creation_and_mapping_should_work() { new_test_ext().execute_with(|| { - assert_ok!(ChainlinkFeed::create_feed( - Origin::signed(1), - 20, // payment - 10, // timeout - (10, 1_000), // value range - 3, // min values - 5, // decimals - b"desc".to_vec(), // desc - 2, // restart delay - vec![(1, 4), (2, 4), (3, 4)], // oracles + // insert two feeds + assert_ok!(FeedBuilder::new() + .description(b"PINT".to_vec()) + .build_and_store()); + assert_ok!(FeedBuilder::new() + .description(b"X".to_vec()) + .build_and_store()); + + // PINT asset id is not tracked yet + assert_noop!( + PriceFeed::get_price(PINTAssetId::get()), + Error::::AssetPriceFeedNotFound + ); + + // map feed 0 to PINT + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + PINTAssetId::get(), + 0 + )); + + // map feed 1 to assetId 2 + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + ASSET_X_ID, + 1 )); }); } + +#[test] +fn non_admin_cannot_map_feeds() { + new_test_ext().execute_with(|| { + assert_ok!(FeedBuilder::new() + .description(b"PINT".to_vec()) + .build_and_store()); + + assert_noop!( + PriceFeed::track_asset_price_feed(Origin::signed(1), PINTAssetId::get(), 0), + BadOrigin + ); + }) +} + +#[test] +fn cannot_get_price_pair_for_feed_without_valid_round() { + new_test_ext().execute_with(|| { + // insert two feeds + assert_ok!(FeedBuilder::new() + .description(b"PINT".to_vec()) + .build_and_store()); + assert_ok!(FeedBuilder::new() + .description(b"X".to_vec()) + .build_and_store()); + + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + PINTAssetId::get(), + 0 + )); + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + ASSET_X_ID, + 1 + )); + assert_noop!( + PriceFeed::get_price(ASSET_X_ID), + Error::::InvalidFeedValue + ); + }) +} + +#[test] +fn price_pair_should_be_available() { + new_test_ext().execute_with(|| { + // insert two feeds + assert_ok!(FeedBuilder::new() + .description(b"PINT".to_vec()) + .min_submissions(1) + .build_and_store()); + assert_ok!(FeedBuilder::new() + .description(b"X".to_vec()) + .min_submissions(1) + .build_and_store()); + + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + PINTAssetId::get(), + 0 + )); + assert_ok!(PriceFeed::track_asset_price_feed( + Origin::signed(ADMIN_ACCOUNT_ID), + ASSET_X_ID, + 1 + )); + + // insert round feed 1 + let feed_id = 0; + let round_id = 1; + let oracle = 2; + let base_submission = 600; + assert_ok!(ChainlinkFeed::submit( + Origin::signed(oracle), + feed_id, + round_id, + base_submission + )); + + // insert round feed 2 + let feed_id = 1; + let round_id = 1; + let oracle = 2; + let quote_submission = 200; + assert_ok!(ChainlinkFeed::submit( + Origin::signed(oracle), + feed_id, + round_id, + quote_submission + )); + + let price_pair = PriceFeed::get_price(ASSET_X_ID).expect("price pair should be available"); + + assert_eq!( + price_pair, + AssetPricePair { + base: PINTAssetId::get(), + quote: ASSET_X_ID, + price: Price::checked_from_rational(base_submission, quote_submission).unwrap() + } + ); + }) +} From 0b620720c4ca663a401ad43850f3ca8a2d3a45c8 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 19 Apr 2021 20:58:33 +0200 Subject: [PATCH 32/32] chore:pallets/price-feed: remove commented out config typ eartefacts --- pallets/price-feed/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/pallets/price-feed/src/lib.rs b/pallets/price-feed/src/lib.rs index 422c4bd8de..ed55a84628 100644 --- a/pallets/price-feed/src/lib.rs +++ b/pallets/price-feed/src/lib.rs @@ -49,9 +49,6 @@ pub mod pallet { #[pallet::constant] type SelfAssetId: Get; - // /// The price type to represent the different asset price pairs - // type Price: FixedPointNumber + CheckedMul + One; - /// Type used to identify the assets. type AssetId: Parameter + Member + MaybeSerializeDeserialize;