From d0acf29038530364a82eec842cf31bbab178ebc9 Mon Sep 17 00:00:00 2001 From: emostov <32168567+emostov@users.noreply.github.com> Date: Thu, 24 Jun 2021 16:51:32 -0700 Subject: [PATCH] Additional test for shawntabrizi-check-bid (#3361) --- Cargo.lock | 329 ++++++++++++------------ runtime/common/src/integration_tests.rs | 120 ++++++++- 2 files changed, 279 insertions(+), 170 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eeaac3b736a4..1689f43d6d08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1898,7 +1898,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", ] @@ -1916,14 +1916,14 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", "linregress", "log", "parity-scale-codec", - "paste 1.0.5", + "paste 1.0.4", "sp-api", "sp-io", "sp-runtime", @@ -1935,7 +1935,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "Inflector", "chrono", @@ -1958,7 +1958,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -1971,7 +1971,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -1986,7 +1986,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "serde", @@ -1997,7 +1997,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "bitflags", "frame-metadata", @@ -2007,7 +2007,7 @@ dependencies = [ "max-encoded-len", "once_cell", "parity-scale-codec", - "paste 1.0.5", + "paste 1.0.4", "serde", "smallvec 1.6.1", "sp-arithmetic", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2036,7 +2036,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.0.0", @@ -2048,7 +2048,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro2", "quote", @@ -2058,7 +2058,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-metadata", "frame-support", @@ -2078,7 +2078,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -2095,7 +2095,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -2109,7 +2109,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-api", @@ -2118,7 +2118,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "parity-scale-codec", @@ -4050,7 +4050,7 @@ dependencies = [ [[package]] name = "max-encoded-len" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-trait-for-tuples", "max-encoded-len-derive", @@ -4061,7 +4061,7 @@ dependencies = [ [[package]] name = "max-encoded-len-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -4564,7 +4564,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -4579,7 +4579,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -4593,7 +4593,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4616,7 +4616,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4646,7 +4646,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4682,7 +4682,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4698,7 +4698,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4713,7 +4713,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4734,7 +4734,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4751,7 +4751,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4765,7 +4765,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4787,7 +4787,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4802,7 +4802,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4821,7 +4821,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4837,7 +4837,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4852,7 +4852,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -4869,7 +4869,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -4885,7 +4885,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4903,7 +4903,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4918,7 +4918,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -4931,7 +4931,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -4947,7 +4947,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4969,7 +4969,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4985,7 +4985,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "enumflags2", "frame-support", @@ -4999,7 +4999,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5014,7 +5014,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -5034,7 +5034,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5050,7 +5050,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -5063,7 +5063,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5073,7 +5073,7 @@ dependencies = [ "pallet-authorship", "pallet-session", "parity-scale-codec", - "paste 1.0.5", + "paste 1.0.4", "rand_chacha 0.2.2", "serde", "sp-application-crypto", @@ -5087,7 +5087,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -5098,7 +5098,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "sp-arithmetic", @@ -5107,7 +5107,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -5120,7 +5120,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5138,7 +5138,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5153,7 +5153,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-support", "frame-system", @@ -5169,7 +5169,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5186,7 +5186,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5197,7 +5197,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5213,7 +5213,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5228,7 +5228,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5495,9 +5495,9 @@ dependencies = [ [[package]] name = "paste" -version = "1.0.5" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" +checksum = "c5d65c4d95931acda4498f675e332fcbdc9a06705cd07086c510e9b6009cd1c1" [[package]] name = "paste-impl" @@ -7559,7 +7559,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "env_logger 0.8.4", "hex", @@ -7853,7 +7853,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "derive_more", @@ -7882,7 +7882,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "futures-timer 3.0.2", @@ -7905,7 +7905,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7921,7 +7921,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7942,7 +7942,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -7953,7 +7953,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "chrono", "fdlimit", @@ -7991,7 +7991,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "fnv", @@ -8025,7 +8025,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "blake2-rfc", "hash-db", @@ -8055,7 +8055,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "parking_lot 0.11.1", @@ -8068,7 +8068,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "derive_more", @@ -8114,7 +8114,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "futures 0.3.15", @@ -8138,7 +8138,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8151,7 +8151,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "futures 0.3.15", @@ -8179,7 +8179,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "sc-client-api", "sp-authorship", @@ -8190,7 +8190,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "lazy_static", @@ -8219,7 +8219,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "parity-scale-codec", @@ -8236,7 +8236,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "parity-scale-codec", @@ -8251,7 +8251,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8270,7 +8270,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "derive_more", @@ -8311,7 +8311,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "finality-grandpa", @@ -8335,7 +8335,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "futures 0.3.15", @@ -8356,7 +8356,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "ansi_term 0.12.1", "futures 0.3.15", @@ -8374,7 +8374,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "derive_more", @@ -8394,7 +8394,7 @@ dependencies = [ [[package]] name = "sc-light" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "hash-db", "lazy_static", @@ -8413,7 +8413,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-std", "async-trait", @@ -8466,7 +8466,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "futures-timer 3.0.2", @@ -8483,7 +8483,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "bytes 0.5.6", "fnv", @@ -8511,7 +8511,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "libp2p", @@ -8524,7 +8524,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8533,7 +8533,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "hash-db", @@ -8568,7 +8568,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "futures 0.3.15", @@ -8593,7 +8593,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.1.29", "jsonrpc-core", @@ -8611,7 +8611,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "directories", @@ -8659,7 +8659,6 @@ dependencies = [ "sp-runtime", "sp-session", "sp-state-machine", - "sp-storage", "sp-tracing", "sp-transaction-pool", "sp-transaction-storage-proof", @@ -8677,7 +8676,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "parity-scale-codec", @@ -8692,7 +8691,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8712,7 +8711,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "chrono", "futures 0.3.15", @@ -8732,7 +8731,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8769,7 +8768,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -8780,7 +8779,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "futures 0.3.15", @@ -8802,7 +8801,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "intervalier", @@ -9178,7 +9177,7 @@ version = "0.9.5" dependencies = [ "enumn", "parity-scale-codec", - "paste 1.0.5", + "paste 1.0.4", "sp-runtime", "sp-std", ] @@ -9281,7 +9280,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "sp-core", @@ -9293,7 +9292,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "hash-db", "log", @@ -9310,7 +9309,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -9322,7 +9321,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "max-encoded-len", "parity-scale-codec", @@ -9335,7 +9334,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "integer-sqrt", "num-traits", @@ -9349,7 +9348,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-api", @@ -9361,7 +9360,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "parity-scale-codec", @@ -9373,7 +9372,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-api", @@ -9385,7 +9384,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "log", @@ -9403,7 +9402,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "serde", "serde_json", @@ -9412,7 +9411,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "futures 0.3.15", @@ -9439,7 +9438,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "merlin", @@ -9461,7 +9460,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -9471,7 +9470,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9483,7 +9482,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "base58", "blake2-rfc", @@ -9528,7 +9527,7 @@ dependencies = [ [[package]] name = "sp-database" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9537,7 +9536,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro2", "quote", @@ -9547,7 +9546,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "environmental", "parity-scale-codec", @@ -9558,7 +9557,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "finality-grandpa", "log", @@ -9575,7 +9574,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9589,7 +9588,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "hash-db", @@ -9614,7 +9613,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "lazy_static", "sp-core", @@ -9625,7 +9624,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "derive_more", @@ -9642,7 +9641,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "ruzstd", "zstd", @@ -9651,7 +9650,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "serde", @@ -9664,7 +9663,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -9675,7 +9674,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "sp-api", "sp-core", @@ -9685,7 +9684,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "backtrace", ] @@ -9693,7 +9692,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "rustc-hash", "serde", @@ -9704,7 +9703,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "either", "hash256-std-hasher", @@ -9713,7 +9712,7 @@ dependencies = [ "max-encoded-len", "parity-scale-codec", "parity-util-mem", - "paste 1.0.5", + "paste 1.0.4", "rand 0.7.3", "serde", "sp-application-crypto", @@ -9726,7 +9725,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9743,7 +9742,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9755,7 +9754,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "serde", "serde_json", @@ -9764,7 +9763,7 @@ dependencies = [ [[package]] name = "sp-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-api", @@ -9777,7 +9776,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -9787,7 +9786,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "hash-db", "log", @@ -9810,12 +9809,12 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9828,7 +9827,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "log", "sp-core", @@ -9841,7 +9840,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -9858,7 +9857,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "erased-serde", "log", @@ -9876,7 +9875,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "derive_more", "futures 0.3.15", @@ -9892,7 +9891,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "log", @@ -9907,7 +9906,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "hash-db", "memory-db", @@ -9921,7 +9920,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "futures-core", @@ -9933,7 +9932,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9946,7 +9945,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "parity-scale-codec", "proc-macro-crate 1.0.0", @@ -9958,7 +9957,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10103,7 +10102,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "chrono", "console_error_panic_hook", @@ -10129,7 +10128,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "platforms", ] @@ -10137,7 +10136,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.15", @@ -10160,7 +10159,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-std", "derive_more", @@ -10174,7 +10173,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "async-trait", "futures 0.1.29", @@ -10203,7 +10202,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "futures 0.3.15", "substrate-test-utils-derive", @@ -10213,7 +10212,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "proc-macro-crate 1.0.0", "quote", @@ -10896,9 +10895,9 @@ checksum = "a7f741b240f1a48843f9b8e0444fb55fb2a4ff67293b50a9179dfd5ea67f8d41" [[package]] name = "trie-db" -version = "0.22.5" +version = "0.22.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd81fe0c8bc2b528a51c9d2c31dae4483367a26a723a3c9a4a8120311d7774e3" +checksum = "ec051edf7f0fc9499a2cb0947652cab2148b9d7f61cee7605e312e9f970dacaf" dependencies = [ "hash-db", "hashbrown", @@ -10968,7 +10967,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97338fc60fdfcf647ba62e108d373e96acafb9c2" +source = "git+https://github.com/paritytech/substrate?branch=master#d03a91a181d0b22d00a6b9ba2a8007dc254779e3" dependencies = [ "frame-try-runtime", "log", @@ -11390,7 +11389,7 @@ dependencies = [ "lazy_static", "libc", "log", - "paste 1.0.5", + "paste 1.0.4", "psm", "region", "rustc-demangle", diff --git a/runtime/common/src/integration_tests.rs b/runtime/common/src/integration_tests.rs index 1456a297f0d9..4fe5c4115ace 100644 --- a/runtime/common/src/integration_tests.rs +++ b/runtime/common/src/integration_tests.rs @@ -75,8 +75,7 @@ frame_support::construct_runtime!( } ); -use crate::crowdloan::Error as CrowdloanError; -use crate::auctions::Error as AuctionsError; +use crate::{auctions::Error as AuctionsError, crowdloan::Error as CrowdloanError}; parameter_types! { pub const BlockHashCount: u32 = 250; @@ -1118,13 +1117,13 @@ fn cant_bid_on_existing_lease_periods() { // 2 sessions later they are parathreads run_to_session(2); - // Open a crowdloan for Para 1 for slots 0-3 + // Open a crowdloan for Para 1 for slots 4-5 assert_ok!(Crowdloan::create( Origin::signed(1), ParaId::from(2000), 1_000_000, // Cap - lease_period_index_start + 0, // First Slot - lease_period_index_start + 1, // Last Slot + lease_period_index_start + 0, // First Slot, 4 + lease_period_index_start + 1, // Last Slot, 5 400, // Long block end None, )); @@ -1243,3 +1242,114 @@ fn cant_bid_on_existing_lease_periods() { ); }); } + +#[test] +// This test builds on `cant_bid_on_existing_lease_periods`, by showing that if a parachain has won +// lease periods, it cannot bid on those lease periods again even if the bid includes a period prior +// to those won. Additionally, it explicitly shows that a poked crowdloan will fail in a follow up +// auction if it already has the slots. +fn cant_bid_on_existing_lease_periods_even_if_bid_includes_prior_period() { + new_test_ext().execute_with(|| { + assert!(System::block_number().is_one()); // So events are emitted + Balances::make_free_balance_be(&1, 1_000_000_000); + // First register 2 parathreads + assert_ok!(Registrar::reserve(Origin::signed(1))); + assert_ok!(Registrar::register( + Origin::signed(1), + ParaId::from(2000), + test_genesis_head(10), + test_validation_code(10), + )); + + // Start a new auction in the future + let starting_block = System::block_number(); + let duration = 99u32; + let lease_period_index_start = 4u32; + assert_ok!(Auctions::new_auction(Origin::root(), duration, lease_period_index_start)); + + // 2 sessions later they are parathreads + run_to_session(2); + + // Open a crowdloan for Para 1 for slots 4-5 + assert_ok!(Crowdloan::create( + Origin::signed(1), + ParaId::from(2000), + 1_000_000, // Cap + lease_period_index_start + 1, // First Slot, 5 + lease_period_index_start + 2, // Last Slot, 6 + 400, // Long block end + None, + )); + let crowdloan_account = Crowdloan::fund_account_id(ParaId::from(2000)); + + // Bunch of contributions + let mut total = 0; + for i in 10 .. 20 { + Balances::make_free_balance_be(&i, 1_000_000_000); + assert_ok!(Crowdloan::contribute(Origin::signed(i), ParaId::from(2000), 900 - i, None)); + total += 900 - i; + } + assert!(total > 0); + assert_eq!(Balances::free_balance(&crowdloan_account), total); + + // Finish the auction. + run_to_block(starting_block + 110); + + // Appropriate Paras should have won slots + assert_eq!( + slots::Leases::::get(ParaId::from(2000)), + vec![ + None, + None, + None, + None, + Some((crowdloan_account, 8855)), // 5 + Some((crowdloan_account, 8855)), // 6 + ], + ); + + // Let's start another auction for the same range + let starting_block = System::block_number(); + let duration = 99u32; + let lease_period_index_start = 4u32; + assert_ok!(Auctions::new_auction(Origin::root(), duration, lease_period_index_start)); + + // Poke the crowdloan into `NewRaise` + assert_ok!(Crowdloan::poke(Origin::signed(1), ParaId::from(2000))); + assert_eq!(Crowdloan::new_raise(), vec![ParaId::from(2000)]); + // which should cause a failed bid in the next call of crowdloan's `on_initialize` due to + // bidding on the crowdloan slots again + Crowdloan::on_initialize(System::block_number() + 1); + let failed_handle_bid_event = crowdloan::Event::::HandleBidResult( + ParaId::from(2000), + Err(sp_runtime::DispatchError::from(AuctionsError::::AlreadyLeasedOut)), + ); + assert_eq!(last_event(), failed_handle_bid_event.into()); + + // Beginning of ending block. + run_to_block(starting_block + 100); + + // Bid is rejected if intersects and includes a prior, non-intersecting slot + assert_noop!( + Auctions::bid( + Origin::signed(crowdloan_account), + ParaId::from(2000), + 2, + lease_period_index_start, + lease_period_index_start + 1, + 100, + ), + AuctionsError::::AlreadyLeasedOut, + ); + + // Will work when not overlapping + assert_ok!(Auctions::bid( + Origin::signed(crowdloan_account), + ParaId::from(2000), + 2, + lease_period_index_start, + lease_period_index_start, + 100, + )); + }); +}