diff --git a/substrate-node/Cargo.lock b/substrate-node/Cargo.lock index b6edb3aaf..8342ac0dc 100644 --- a/substrate-node/Cargo.lock +++ b/substrate-node/Cargo.lock @@ -1564,7 +1564,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", ] @@ -1587,7 +1587,7 @@ checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "Inflector", "array-bytes", @@ -1662,7 +1662,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -1691,7 +1691,7 @@ dependencies = [ [[package]] name = "frame-remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "env_logger 0.9.3", "futures", @@ -1710,7 +1710,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "bitflags", "frame-metadata", @@ -1742,7 +1742,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "Inflector", "cfg-expr", @@ -1756,7 +1756,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1768,7 +1768,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "proc-macro2", "quote", @@ -1778,7 +1778,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "log", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -1811,7 +1811,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "sp-api", @@ -1820,7 +1820,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "parity-scale-codec 3.2.1", @@ -3843,7 +3843,7 @@ dependencies = [ [[package]] name = "pallet-aura" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -3859,7 +3859,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -3874,7 +3874,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -3906,7 +3906,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -3946,7 +3946,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -3984,7 +3984,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -4001,7 +4001,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -4027,7 +4027,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -4044,7 +4044,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -4094,7 +4094,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -4178,7 +4178,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -4196,7 +4196,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-support", "frame-system", @@ -4212,7 +4212,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "jsonrpsee", "pallet-transaction-payment-rpc-runtime-api", @@ -4228,7 +4228,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "pallet-transaction-payment", "parity-scale-codec 3.2.1", @@ -4240,7 +4240,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-benchmarking", "frame-support", @@ -5312,7 +5312,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "log", "sp-core", @@ -5323,7 +5323,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "futures-timer", @@ -5346,7 +5346,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "sc-client-api", @@ -5362,7 +5362,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "impl-trait-for-tuples", "memmap2", @@ -5379,7 +5379,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -5390,7 +5390,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "chrono", @@ -5430,7 +5430,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "fnv", "futures", @@ -5458,7 +5458,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "hash-db", "kvdb", @@ -5483,7 +5483,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -5508,7 +5508,7 @@ dependencies = [ [[package]] name = "sc-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -5537,7 +5537,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -5561,7 +5561,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "lru", "parity-scale-codec 3.2.1", @@ -5585,7 +5585,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "sc-allocator", "sp-maybe-compressed-blob", @@ -5598,7 +5598,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "log", "sc-allocator", @@ -5611,7 +5611,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "cfg-if", "libc", @@ -5628,7 +5628,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ahash", "array-bytes", @@ -5669,7 +5669,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "finality-grandpa", "futures", @@ -5690,7 +5690,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ansi_term", "futures", @@ -5706,7 +5706,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "async-trait", @@ -5721,7 +5721,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "async-trait", @@ -5768,7 +5768,7 @@ dependencies = [ [[package]] name = "sc-network-bitswap" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "cid", "futures", @@ -5788,7 +5788,7 @@ dependencies = [ [[package]] name = "sc-network-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "bitflags", @@ -5814,7 +5814,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ahash", "futures", @@ -5832,7 +5832,7 @@ dependencies = [ [[package]] name = "sc-network-light" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "futures", @@ -5853,7 +5853,7 @@ dependencies = [ [[package]] name = "sc-network-sync" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "async-trait", @@ -5885,7 +5885,7 @@ dependencies = [ [[package]] name = "sc-network-transactions" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "futures", @@ -5904,7 +5904,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "bytes", @@ -5934,7 +5934,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "libp2p", @@ -5947,7 +5947,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -5956,7 +5956,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "hash-db", @@ -5986,7 +5986,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "jsonrpsee", @@ -6009,7 +6009,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "http", @@ -6025,7 +6025,7 @@ dependencies = [ [[package]] name = "sc-rpc-spec-v2" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "hex", @@ -6044,7 +6044,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "directories", @@ -6114,7 +6114,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "log", "parity-scale-codec 3.2.1", @@ -6126,7 +6126,7 @@ dependencies = [ [[package]] name = "sc-sysinfo" version = "6.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "libc", @@ -6145,7 +6145,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "chrono", "futures", @@ -6163,7 +6163,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ansi_term", "atty", @@ -6194,7 +6194,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -6205,7 +6205,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -6231,7 +6231,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -6245,7 +6245,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "futures-timer", @@ -6667,7 +6667,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "hash-db", "log", @@ -6685,7 +6685,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "blake2", "proc-macro-crate", @@ -6697,7 +6697,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "scale-info", @@ -6710,7 +6710,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "integer-sqrt", "num-traits", @@ -6725,7 +6725,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "parity-scale-codec 3.2.1", @@ -6737,7 +6737,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "sp-api", @@ -6749,7 +6749,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures", "log", @@ -6767,7 +6767,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -6786,7 +6786,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "parity-scale-codec 3.2.1", @@ -6804,7 +6804,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "scale-info", @@ -6818,7 +6818,7 @@ dependencies = [ [[package]] name = "sp-core" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "array-bytes", "base58", @@ -6863,7 +6863,7 @@ dependencies = [ [[package]] name = "sp-core-hashing" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "blake2", "byteorder", @@ -6877,7 +6877,7 @@ dependencies = [ [[package]] name = "sp-core-hashing-proc-macro" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "proc-macro2", "quote", @@ -6888,7 +6888,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "kvdb", "parking_lot 0.12.1", @@ -6897,7 +6897,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "proc-macro2", "quote", @@ -6907,7 +6907,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "environmental", "parity-scale-codec 3.2.1", @@ -6918,7 +6918,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "finality-grandpa", "log", @@ -6936,7 +6936,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -6950,7 +6950,7 @@ dependencies = [ [[package]] name = "sp-io" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "bytes", "ed25519-dalek", @@ -6977,7 +6977,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "lazy_static", "sp-core", @@ -6988,7 +6988,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures", @@ -7005,7 +7005,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.1.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "thiserror", "zstd", @@ -7014,7 +7014,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "sp-api", "sp-core", @@ -7024,7 +7024,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "backtrace", "lazy_static", @@ -7034,7 +7034,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "rustc-hash", "serde", @@ -7044,7 +7044,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "either", "hash256-std-hasher", @@ -7066,7 +7066,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "bytes", "impl-trait-for-tuples", @@ -7084,7 +7084,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "Inflector", "proc-macro-crate", @@ -7096,7 +7096,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "scale-info", @@ -7110,7 +7110,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "scale-info", @@ -7122,7 +7122,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.13.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "hash-db", "log", @@ -7149,12 +7149,12 @@ source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.29#cc [[package]] name = "sp-std" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" [[package]] name = "sp-storage" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "impl-serde", "parity-scale-codec 3.2.1", @@ -7167,7 +7167,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "futures-timer", @@ -7183,7 +7183,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "6.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "sp-std 5.0.0", @@ -7195,7 +7195,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "sp-api", "sp-runtime", @@ -7204,7 +7204,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "log", @@ -7220,7 +7220,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ahash", "hash-db", @@ -7243,7 +7243,7 @@ dependencies = [ [[package]] name = "sp-version" version = "5.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "impl-serde", "parity-scale-codec 3.2.1", @@ -7260,7 +7260,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "parity-scale-codec 3.2.1", "proc-macro2", @@ -7271,7 +7271,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "7.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "impl-trait-for-tuples", "log", @@ -7284,7 +7284,7 @@ dependencies = [ [[package]] name = "sp-weights" version = "4.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec 3.2.1", @@ -7425,7 +7425,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "platforms 2.0.0", ] @@ -7442,7 +7442,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "frame-system-rpc-runtime-api", "futures", @@ -7463,7 +7463,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "futures-util", "hyper", @@ -7476,7 +7476,7 @@ dependencies = [ [[package]] name = "substrate-rpc-client" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "async-trait", "jsonrpsee", @@ -7521,7 +7521,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "ansi_term", "build-helper", @@ -8132,7 +8132,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-v0.9.36#cb4f2491b00af7d7817f3a54209c26b20faa1f51" dependencies = [ "clap", "frame-remote-externalities", diff --git a/substrate-node/pallets/pallet-smart-contract/src/lib.rs b/substrate-node/pallets/pallet-smart-contract/src/lib.rs index deb18ea98..1aaf657d5 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/lib.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/lib.rs @@ -528,9 +528,18 @@ pub mod pallet { #[pallet::weight(::WeightInfo::bill_contract_for_block())] pub fn bill_contract_for_block( origin: OriginFor, + index: u64, contract_id: u64, ) -> DispatchResultWithPostInfo { let _account_id = ensure_signed(origin)?; + + // Clean up contract from billing loop if it doesn't exist anymore + if Contracts::::get(contract_id).is_none() { + log::debug!("cleaning up deleted contract from storage"); + Self::remove_contract_from_billing_loop(index, contract_id)?; + return Ok(().into()); + } + Self::bill_contract(contract_id) } @@ -1108,8 +1117,10 @@ impl Pallet { ); return Err(>::OffchainSignedTxCannotSign); } - let result = - signer.send_signed_transaction(|_acct| Call::bill_contract_for_block { contract_id }); + let index = Self::get_current_billing_loop_index(); + + let result = signer + .send_signed_transaction(|_acct| Call::bill_contract_for_block { index, contract_id }); if let Some((acc, res)) = result { // if res is an error this means sending the transaction failed @@ -1133,13 +1144,6 @@ impl Pallet { // Bills a contract (NodeContract, NameContract or RentContract) // Calculates how much TFT is due by the user and distributes the rewards fn bill_contract(contract_id: u64) -> DispatchResultWithPostInfo { - // Clean up contract from billing loop if it doesn't exist anymore - if Contracts::::get(contract_id).is_none() { - log::debug!("cleaning up deleted contract from storage"); - Self::remove_contract_from_billing_loop(contract_id)?; - return Ok(().into()); - } - let mut contract = Contracts::::get(contract_id).ok_or(Error::::ContractNotExists)?; let twin = @@ -1610,16 +1614,14 @@ impl Pallet { } } - // Removes contract from billing loop at current index + // Removes contract from billing loop at previous index + // The reason for this is that the offchain worker tries to bill this contract in the context of the previous block pub fn remove_contract_from_billing_loop( + index: u64, contract_id: u64, ) -> Result<(), DispatchErrorWithPostInfo> { - let index = Self::get_current_billing_loop_index(); let mut contract_ids = ContractsToBillAt::::get(index); - // Remove contracts from billing loop should only occur after a call - // to bill_contract() done by the offchain worker for a specific block - // So contract id must be at current billing loop index ensure!( contract_ids.contains(&contract_id), Error::::ContractWrongBillingLoopIndex diff --git a/substrate-node/pallets/pallet-smart-contract/src/mock.rs b/substrate-node/pallets/pallet-smart-contract/src/mock.rs index 141398cf2..e8f9f49c2 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/mock.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/mock.rs @@ -517,12 +517,13 @@ pub struct PoolState { impl PoolState { pub fn should_call_bill_contract( &mut self, + index: u64, contract_id: u64, expected_result: ExtrinsicResult, block_number: u64, ) { self.expected_calls.push(( - crate::Call::bill_contract_for_block { contract_id }, + crate::Call::bill_contract_for_block { index, contract_id }, expected_result, block_number, )); @@ -537,9 +538,10 @@ impl PoolState { for call_to_execute in self.calls_to_execute.iter() { let result = match call_to_execute.0 { // matches bill_contract_for_block - crate::Call::bill_contract_for_block { contract_id } => { + crate::Call::bill_contract_for_block { index, contract_id } => { SmartContractModule::bill_contract_for_block( RuntimeOrigin::signed(bob()), + index, contract_id, ) } diff --git a/substrate-node/pallets/pallet-smart-contract/src/tests.rs b/substrate-node/pallets/pallet-smart-contract/src/tests.rs index 6acbfe26e..414b47cb9 100644 --- a/substrate-node/pallets/pallet-smart-contract/src/tests.rs +++ b/substrate-node/pallets/pallet-smart-contract/src/tests.rs @@ -525,6 +525,7 @@ fn test_cancel_node_contract_and_remove_from_billing_loop_works() { // Ensure contract has been removed from index after // cycle and a call to bill_contract() by offchain worker pool_state.write().should_call_bill_contract( + billing_block % BillingFrequency::get(), contract_id, Ok(Pays::Yes.into()), billing_block, @@ -577,6 +578,7 @@ fn test_cancel_node_contract_and_try_remove_from_billing_loop_wrong_index_fails( assert_noop!( SmartContractModule::bill_contract_for_block( RuntimeOrigin::signed(alice()), + i + 2, contract_id ), Error::::ContractWrongBillingLoopIndex @@ -593,6 +595,7 @@ fn test_cancel_node_contract_and_try_remove_from_billing_loop_wrong_index_fails( // occur at block #11 assert_ok!(SmartContractModule::bill_contract_for_block( RuntimeOrigin::signed(alice()), + index, contract_id )); @@ -607,6 +610,7 @@ fn test_cancel_node_contract_and_try_remove_from_billing_loop_wrong_index_fails( assert_noop!( SmartContractModule::bill_contract_for_block( RuntimeOrigin::signed(alice()), + i, contract_id ), Error::::ContractWrongBillingLoopIndex @@ -987,10 +991,14 @@ fn test_node_contract_billing_details() { let initial_total_issuance = Balances::total_issuance(); // advance 25 cycles for i in 0..25 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11 + i * 10); - run_to_block(11 + i * 10, Some(&mut pool_state)); + let block_number = 11 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); + run_to_block(block_number, Some(&mut pool_state)); } let free_balance = Balances::free_balance(&twin.account_id); @@ -1074,10 +1082,14 @@ fn test_node_contract_billing_details_with_solution_provider() { // advance 25 cycles for i in 0..25 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11 + i * 10); - run_to_block(11 + i * 10, Some(&mut pool_state)); + let block_number = 11 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); + run_to_block(block_number, Some(&mut pool_state)); } let free_balance = Balances::free_balance(&twin.account_id); @@ -1116,12 +1128,18 @@ fn test_multiple_contracts_billing_loop_works() { assert_eq!(contracts_to_bill_at_block.len(), 2); // 2 contracts => 2 billings - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); // Test that the expected events were emitted @@ -1157,9 +1175,12 @@ fn test_node_contract_billing_cycles() { push_contract_resources_used(1); let (amount_due_1, discount_received) = calculate_tft_cost(contract_id, twin_id, 10); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); check_report_cost(1, amount_due_1, 11, discount_received); @@ -1174,16 +1195,22 @@ fn test_node_contract_billing_cycles() { ); let (amount_due_2, discount_received) = calculate_tft_cost(contract_id, twin_id, 10); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(21, Some(&mut pool_state)); check_report_cost(1, amount_due_2, 21, discount_received); let (amount_due_3, discount_received) = calculate_tft_cost(contract_id, twin_id, 10); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 31); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 31, + ); run_to_block(31, Some(&mut pool_state)); check_report_cost(1, amount_due_3, 31, discount_received); @@ -1225,12 +1252,18 @@ fn test_node_multiple_contract_billing_cycles() { )); let twin_id = 2; - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); push_contract_resources_used(1); push_contract_resources_used(2); @@ -1274,9 +1307,13 @@ fn test_node_contract_billing_cycles_delete_node_cancels_contract() { let twin_id = 2; for i in 0..5 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11 + i * 10); + let block_number = 11 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); } push_contract_resources_used(1); @@ -1367,10 +1404,12 @@ fn test_node_contract_only_public_ip_billing_cycles() { let twin_id = 2; for i in 0..5 { + let block_number = 11 + i * 10; pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), contract_id, Ok(Pays::Yes.into()), - 11 + i * 10, + block_number, ); } @@ -1419,10 +1458,12 @@ fn test_node_contract_billing_cycles_cancel_contract_during_cycle_works() { // 2 cycles for billing for i in 0..2 { + let block_number = 11 + i * 10; pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), contract_id, Ok(Pays::Yes.into()), - 11 + i * 10, + block_number, ); } push_contract_resources_used(1); @@ -1481,16 +1522,22 @@ fn test_node_contract_billing_cycles_cancel_contract_during_cycle_without_balanc push_contract_resources_used(1); let (amount_due_1, discount_received) = calculate_tft_cost(contract_id, twin_id, 10); - pool_state - .write() - .should_call_bill_contract(contract_id, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + contract_id, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); check_report_cost(1, amount_due_1, 11, discount_received); let (amount_due_2, discount_received) = calculate_tft_cost(contract_id, twin_id, 10); - pool_state - .write() - .should_call_bill_contract(contract_id, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + contract_id, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(21, Some(&mut pool_state)); check_report_cost(1, amount_due_2, 21, discount_received); @@ -1516,9 +1563,12 @@ fn test_node_contract_billing_cycles_cancel_contract_during_cycle_without_balanc 1 )); - pool_state - .write() - .should_call_bill_contract(contract_id, Ok(Pays::Yes.into()), 31); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + contract_id, + Ok(Pays::Yes.into()), + 31, + ); run_to_block(31, Some(&mut pool_state)); // After canceling contract, and not being able to pay for the remainder of the cycle @@ -1553,16 +1603,22 @@ fn test_node_contract_out_of_funds_should_move_state_to_graceperiod_works() { push_contract_resources_used(1); // cycle 1 - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); // cycle 2 // user does not have enough funds to pay for 2 cycles - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(21, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -1601,9 +1657,13 @@ fn test_restore_node_contract_in_grace_works() { )); for i in 0..6 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11 + i * 10); + let block_number = 11 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); } push_contract_resources_used(1); @@ -1665,16 +1725,22 @@ fn test_node_contract_grace_period_cancels_contract_when_grace_period_ends_works push_contract_resources_used(1); // cycle 1 - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); // cycle 2 // user does not have enough funds to pay for 2 cycles - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(21, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -1695,9 +1761,13 @@ fn test_node_contract_grace_period_cancels_contract_when_grace_period_ends_works // grace period stops after 100 blocknumbers, so after 121 for i in 1..11 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21 + i * 10); + let block_number = 21 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); } for i in 1..11 { @@ -1738,9 +1808,12 @@ fn test_name_contract_billing() { // let mature 11 blocks // because we bill every 10 blocks - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); // the contractbill event should look like: @@ -1785,9 +1858,12 @@ fn test_rent_contract_billing() { types::ContractData::RentContract(rent_contract) ); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let (amount_due_as_u128, discount_received) = calculate_tft_cost(1, 2, 10); @@ -1818,9 +1894,12 @@ fn test_rent_contract_billing_cancel_should_bill_reserved_balance() { types::ContractData::RentContract(rent_contract) ); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let (amount_due_as_u128, discount_received) = calculate_tft_cost(1, 2, 10); @@ -1851,9 +1930,12 @@ fn test_rent_contract_billing_cancel_should_bill_reserved_balance() { // cancel_contract. The contract id will still be in ContractsToBillAt // but the contract itself will no longer exist // But the - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(22, Some(&mut pool_state)); // Last amount due is the same as the first one @@ -1938,12 +2020,18 @@ fn test_create_rent_contract_and_node_contract_excludes_node_contract_from_billi None )); push_contract_resources_used(2); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let (amount_due_as_u128, discount_received) = calculate_tft_cost(1, 2, 10); @@ -1986,16 +2074,19 @@ fn test_rent_contract_canceled_due_to_out_of_funds_should_cancel_node_contracts_ push_contract_resources_used(2); // run 12 cycles, contracts should cancel at 11th due to lack of funds - for i in 1..=11 { + for i in 0..11 { + let block_number = 11 + i * 10; pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), 1, Ok(Pays::Yes.into()), - start_block + i * BillingFrequency::get(), + block_number, ); pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), 2, Ok(Pays::Yes.into()), - start_block + i * BillingFrequency::get(), + block_number, ); } for i in 1..=11 { @@ -2085,12 +2176,18 @@ fn test_create_rent_contract_and_node_contract_with_ip_billing_works() { )); // 2 contracts => we expect 2 calls to bill_contract - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); // check contract 1 costs (Rent Contract) @@ -2130,9 +2227,12 @@ fn test_rent_contract_out_of_funds_should_move_state_to_graceperiod_works() { // cycle 1 // user does not have enough funds to pay for 1 cycle - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2169,9 +2269,12 @@ fn test_restore_rent_contract_in_grace_works() { )); // cycle 1 - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2190,27 +2293,39 @@ fn test_restore_rent_contract_in_grace_works() { })) ); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(21, Some(&mut pool_state)); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 31); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 31, + ); run_to_block(31, Some(&mut pool_state)); // Transfer some balance to the owner of the contract to trigger the grace period to stop Balances::transfer(RuntimeOrigin::signed(bob()), charlie(), 100000000).unwrap(); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 41); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 41, + ); run_to_block(41, Some(&mut pool_state)); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 51); + pool_state.write().should_call_bill_contract( + 51 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 51, + ); run_to_block(51, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2243,12 +2358,18 @@ fn test_restore_rent_contract_and_node_contracts_in_grace_works() { push_contract_resources_used(2); // cycle 1 - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2278,39 +2399,63 @@ fn test_restore_rent_contract_and_node_contracts_in_grace_works() { })) ); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 21); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 21, + ); + pool_state.write().should_call_bill_contract( + 21 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 21, + ); run_to_block(22, Some(&mut pool_state)); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 31); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 31); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 31, + ); + pool_state.write().should_call_bill_contract( + 31 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 31, + ); run_to_block(32, Some(&mut pool_state)); // Transfer some balance to the owner of the contract to trigger the grace period to stop Balances::transfer(RuntimeOrigin::signed(bob()), charlie(), 100000000).unwrap(); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 41); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 41); + pool_state.write().should_call_bill_contract( + 41 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 41, + ); + pool_state.write().should_call_bill_contract( + 41 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 41, + ); run_to_block(42, Some(&mut pool_state)); - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 51); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 51); + pool_state.write().should_call_bill_contract( + 51 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 51, + ); + pool_state.write().should_call_bill_contract( + 51 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 51, + ); run_to_block(52, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2357,9 +2502,12 @@ fn test_rent_contract_grace_period_cancels_contract_when_grace_period_ends_works )); // cycle 1 - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); let c1 = SmartContractModule::contracts(1).unwrap(); @@ -2381,9 +2529,13 @@ fn test_rent_contract_grace_period_cancels_contract_when_grace_period_ends_works // run 12 cycles, after 10 cycles grace period has finished so no more // billing! for i in 0..11 { - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 21 + i * 10); + let block_number = 21 + i * 10; + pool_state.write().should_call_bill_contract( + block_number % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + block_number, + ); } for i in 0..12 { run_to_block(21 + i * 10, Some(&mut pool_state)); @@ -2420,12 +2572,18 @@ fn test_rent_contract_and_node_contract_canceled_when_node_is_deleted_works() { push_contract_resources_used(2); // 2 contracts => 2 calls to bill_contract - pool_state - .write() - .should_call_bill_contract(1, Ok(Pays::Yes.into()), 11); - pool_state - .write() - .should_call_bill_contract(2, Ok(Pays::Yes.into()), 11); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 1, + Ok(Pays::Yes.into()), + 11, + ); + pool_state.write().should_call_bill_contract( + 11 % BillingFrequency::get(), + 2, + Ok(Pays::Yes.into()), + 11, + ); run_to_block(11, Some(&mut pool_state)); run_to_block(16, Some(&mut pool_state));