diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7e34cab2ed18..2c7e1127e2e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -126,7 +126,7 @@ test-linux-stable: &test RUSTFLAGS: -Cdebug-assertions=y TARGET: native script: - - time cargo test --all --release --verbose --locked + - time cargo test --all --release --verbose --locked --features runtime-benchmarks - sccache -s @@ -281,4 +281,3 @@ deploy-polkasync-kusama: POLKADOT_CI_COMMIT_REF: "${CI_COMMIT_REF}" allow_failure: true trigger: "parity/infrastructure/parity-testnet" - diff --git a/Cargo.lock b/Cargo.lock index ca1e5356f8ca..d3b888e4ca97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1227,7 +1227,7 @@ checksum = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" [[package]] name = "fork-tree" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", ] @@ -1235,7 +1235,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -1252,7 +1252,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "parity-scale-codec", @@ -1271,7 +1271,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -1286,7 +1286,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "11.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "serde", @@ -1297,7 +1297,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "bitmask", "frame-metadata", @@ -1321,7 +1321,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.10", @@ -1332,7 +1332,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1344,7 +1344,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "proc-macro2 1.0.10", "quote 1.0.3", @@ -1354,7 +1354,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1370,7 +1370,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-api", @@ -2249,10 +2249,12 @@ dependencies = [ "pallet-membership", "pallet-nicks", "pallet-offences", + "pallet-offences-benchmarking", "pallet-randomness-collective-flip", "pallet-recovery", "pallet-scheduler", "pallet-session", + "pallet-session-benchmarking", "pallet-society", "pallet-staking", "pallet-staking-reward-curve", @@ -3258,7 +3260,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3276,7 +3278,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3293,7 +3295,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3314,7 +3316,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "frame-support", @@ -3329,7 +3331,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "frame-support", @@ -3345,7 +3347,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "frame-support", @@ -3360,7 +3362,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3374,7 +3376,7 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3390,7 +3392,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3408,7 +3410,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "enumflags2", "frame-benchmarking", @@ -3424,8 +3426,9 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "pallet-authorship", @@ -3443,7 +3446,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3459,7 +3462,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3473,7 +3476,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3487,7 +3490,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3499,10 +3502,29 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-offences-benchmarking" +version = "2.0.0-dev" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-im-online", + "pallet-offences", + "pallet-session", + "pallet-staking", + "parity-scale-codec", + "sp-io", + "sp-runtime", + "sp-staking", + "sp-std", +] + [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3515,7 +3537,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "enumflags2", "frame-support", @@ -3530,7 +3552,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "frame-support", @@ -3545,7 +3567,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3560,10 +3582,24 @@ dependencies = [ "sp-trie", ] +[[package]] +name = "pallet-session-benchmarking" +version = "2.0.0-dev" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-session", + "pallet-staking", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-society" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3578,13 +3614,15 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "pallet-authorship", "pallet-session", "parity-scale-codec", + "rand_chacha 0.2.2", "serde", "sp-application-crypto", "sp-core", @@ -3599,7 +3637,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -3610,7 +3648,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3624,7 +3662,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-benchmarking", "frame-support", @@ -3633,6 +3671,7 @@ dependencies = [ "parity-scale-codec", "serde", "sp-inherents", + "sp-io", "sp-runtime", "sp-std", "sp-timestamp", @@ -3641,7 +3680,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "frame-system", @@ -3654,7 +3693,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -3672,7 +3711,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-support", "parity-scale-codec", @@ -3685,8 +3724,9 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "pallet-balances", @@ -3699,8 +3739,9 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", @@ -3714,9 +3755,10 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "enumflags2", + "frame-benchmarking", "frame-support", "frame-system", "parity-scale-codec", @@ -4257,9 +4299,11 @@ dependencies = [ "pallet-membership", "pallet-nicks", "pallet-offences", + "pallet-offences-benchmarking", "pallet-randomness-collective-flip", "pallet-scheduler", "pallet-session", + "pallet-session-benchmarking", "pallet-staking", "pallet-staking-reward-curve", "pallet-sudo", @@ -5226,7 +5270,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "bytes 0.5.4", "derive_more 0.99.5", @@ -5253,7 +5297,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -5269,7 +5313,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "impl-trait-for-tuples", "sc-chain-spec-derive", @@ -5285,7 +5329,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -5296,7 +5340,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "ansi_term 0.12.1", "app_dirs", @@ -5338,7 +5382,7 @@ dependencies = [ [[package]] name = "sc-client" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "fnv", @@ -5375,7 +5419,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "fnv", @@ -5410,7 +5454,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "blake2-rfc", "hash-db", @@ -5440,7 +5484,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "fork-tree", @@ -5482,7 +5526,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "fork-tree", "parity-scale-codec", @@ -5495,7 +5539,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5516,7 +5560,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "log 0.4.8", "sc-client-api", @@ -5530,7 +5574,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "lazy_static", @@ -5558,7 +5602,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -5575,7 +5619,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5590,7 +5634,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "cranelift-codegen", "cranelift-wasm", @@ -5611,7 +5655,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "assert_matches", "finality-grandpa", @@ -5647,7 +5691,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "ansi_term 0.12.1", "futures 0.3.4", @@ -5664,7 +5708,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "hex", @@ -5679,7 +5723,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "bitflags", "bytes 0.5.4", @@ -5732,7 +5776,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "futures-timer 3.0.2", @@ -5748,7 +5792,7 @@ dependencies = [ [[package]] name = "sc-network-test" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "env_logger 0.7.1", "futures 0.3.4", @@ -5774,7 +5818,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "bytes 0.5.4", "fnv", @@ -5801,7 +5845,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "libp2p", @@ -5814,7 +5858,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "hash-db", @@ -5847,7 +5891,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -5871,7 +5915,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "jsonrpc-core", "jsonrpc-http-server", @@ -5886,7 +5930,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "exit-future", @@ -5937,7 +5981,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "log 0.4.8", "parity-scale-codec", @@ -5951,7 +5995,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "bytes 0.5.4", "futures 0.3.4", @@ -5973,7 +6017,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "erased-serde", "log 0.4.8", @@ -5988,7 +6032,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6008,7 +6052,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6393,7 +6437,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -6405,7 +6449,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "hash-db", "parity-scale-codec", @@ -6420,7 +6464,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -6432,7 +6476,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "serde", @@ -6444,7 +6488,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "integer-sqrt", "num-traits 0.2.11", @@ -6458,7 +6502,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-api", @@ -6470,7 +6514,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6481,7 +6525,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-api", @@ -6493,7 +6537,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "log 0.4.8", @@ -6509,7 +6553,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "serde", "serde_json", @@ -6518,7 +6562,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6541,7 +6585,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-api", @@ -6555,7 +6599,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-api", @@ -6571,7 +6615,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -6583,7 +6627,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "base58", "blake2-rfc", @@ -6624,7 +6668,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -6633,7 +6677,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "proc-macro2 1.0.10", "quote 1.0.3", @@ -6643,7 +6687,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "environmental", "sp-std", @@ -6653,7 +6697,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "serde", @@ -6666,7 +6710,7 @@ dependencies = [ [[package]] name = "sp-finality-tracker" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -6676,7 +6720,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "parity-scale-codec", @@ -6688,7 +6732,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "hash-db", @@ -6708,7 +6752,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "lazy_static", "sp-core", @@ -6719,7 +6763,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "sp-api", "sp-core", @@ -6729,7 +6773,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "backtrace", "log 0.4.8", @@ -6738,7 +6782,7 @@ dependencies = [ [[package]] name = "sp-phragmen" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "serde", @@ -6750,7 +6794,7 @@ dependencies = [ [[package]] name = "sp-phragmen-compact" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.10", @@ -6761,7 +6805,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "serde", "sp-core", @@ -6770,7 +6814,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "hash256-std-hasher", "impl-trait-for-tuples", @@ -6791,7 +6835,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "primitive-types", @@ -6806,7 +6850,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "Inflector", "proc-macro-crate", @@ -6818,7 +6862,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "serde", "serde_json", @@ -6827,7 +6871,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "sp-api", "sp-core", @@ -6838,7 +6882,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -6848,7 +6892,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "hash-db", "log 0.4.8", @@ -6867,12 +6911,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" [[package]] name = "sp-storage" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "impl-serde 0.2.3", "ref-cast", @@ -6884,7 +6928,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -6898,7 +6942,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "tracing", ] @@ -6906,7 +6950,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "derive_more 0.99.5", "futures 0.3.4", @@ -6921,7 +6965,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "hash-db", "memory-db", @@ -6935,7 +6979,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "futures-core", @@ -6946,7 +6990,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "impl-serde 0.2.3", "parity-scale-codec", @@ -6958,7 +7002,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7086,7 +7130,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "chrono", "clear_on_drop", @@ -7113,7 +7157,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "platforms", ] @@ -7121,7 +7165,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.4", @@ -7142,7 +7186,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "async-std", "derive_more 0.99.5", @@ -7156,7 +7200,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "hash-db", @@ -7176,7 +7220,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "cfg-if", "frame-executive", @@ -7215,7 +7259,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime-client" version = "2.0.0-dev" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" dependencies = [ "futures 0.3.4", "parity-scale-codec", @@ -7233,7 +7277,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder-runner" version = "1.0.5" -source = "git+https://github.com/paritytech/substrate#32ae0fd2221456d275471a2304fb30eba9736b14" +source = "git+https://github.com/paritytech/substrate#4b64b617112b0316d67b8f579c40504858f46232" [[package]] name = "substrate-wasm-builder-runner" @@ -8375,10 +8419,12 @@ dependencies = [ "pallet-membership", "pallet-nicks", "pallet-offences", + "pallet-offences-benchmarking", "pallet-randomness-collective-flip", "pallet-recovery", "pallet-scheduler", "pallet-session", + "pallet-session-benchmarking", "pallet-society", "pallet-staking", "pallet-staking-reward-curve", diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index fbc2863cc092..f9ba56e497ad 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -445,7 +445,7 @@ mod tests { // This function basically just builds a genesis storage key/value store according to // our desired mockup. - fn new_test_ext() -> sp_io::TestExternalities { + pub fn new_test_ext() -> sp_io::TestExternalities { let mut t = system::GenesisConfig::default().build_storage::().unwrap(); // We use default for brevity, but you can configure as desired if needed. balances::GenesisConfig::::default().assimilate_storage(&mut t).unwrap(); @@ -678,14 +678,21 @@ mod benchmarking { let vesting = Some((100_000.into(), 1_000.into(), 100.into())); let signature = sig::(&secret_key, &account.encode()); super::Module::::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting)?; + assert_eq!(Claims::::get(eth_address), Some(VALUE.into())); }: _(RawOrigin::None, account, signature) + verify { + assert_eq!(Claims::::get(eth_address), None); + } // Benchmark `mint_claim` when there already exists `c` claims in storage. mint_claim { let c in ...; - let account = account("user", c, SEED); + let eth_address = account("eth_address", c, SEED); let vesting = Some((100_000.into(), 1_000.into(), 100.into())); - }: _(RawOrigin::Root, account, VALUE.into(), vesting) + }: _(RawOrigin::Root, eth_address, VALUE.into(), vesting) + verify { + assert_eq!(Claims::::get(eth_address), Some(VALUE.into())); + } // Benchmark the time it takes to execute `validate_unsigned` validate_unsigned { @@ -720,8 +727,26 @@ mod benchmarking { let data = account.using_encoded(to_ascii_hex); }: { for _ in 0 .. i { - let _maybe_signer = super::Module::::eth_recover(&signature, &data); + assert!(super::Module::::eth_recover(&signature, &data).is_some()); } } } + + #[cfg(test)] + mod tests { + use super::*; + use crate::claims::tests::{new_test_ext, Test}; + use frame_support::assert_ok; + + #[test] + fn test_benchmarks() { + new_test_ext().execute_with(|| { + assert_ok!(test_benchmark_claim::()); + assert_ok!(test_benchmark_mint_claim::()); + assert_ok!(test_benchmark_validate_unsigned::()); + assert_ok!(test_benchmark_keccak256::()); + assert_ok!(test_benchmark_eth_recover::()); + }); + } + } } diff --git a/runtime/kusama/Cargo.toml b/runtime/kusama/Cargo.toml index 9818e00ed9e4..09e099560e09 100644 --- a/runtime/kusama/Cargo.toml +++ b/runtime/kusama/Cargo.toml @@ -60,7 +60,10 @@ timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } utility = { package = "pallet-utility", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } + frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-offences-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } @@ -137,11 +140,23 @@ std = [ "runtime-common/std", ] runtime-benchmarks = [ - "collective/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "frame-benchmarking", "frame-support/runtime-benchmarks", - "runtime-common/runtime-benchmarks", + "system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "balances/runtime-benchmarks", + "collective/runtime-benchmarks", + "democracy/runtime-benchmarks", "elections-phragmen/runtime-benchmarks", + "identity/runtime-benchmarks", + "im-online/runtime-benchmarks", "society/runtime-benchmarks", - "system/runtime-benchmarks", + "staking/runtime-benchmarks", + "timestamp/runtime-benchmarks", + "treasury/runtime-benchmarks", + "utility/runtime-benchmarks", + "vesting/runtime-benchmarks", + "pallet-offences-benchmarking", + "pallet-session-benchmarking", ] diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index d5b118824ee0..af3a434b9fc0 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -1002,10 +1002,33 @@ sp_api::impl_runtime_apis! { repeat: u32, ) -> Result, RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark}; + // Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues. + // To get around that, we separated the Session benchmarks into its own crate, which is why + // we need these two lines below. + use pallet_session_benchmarking::Module as SessionBench; + use pallet_offences_benchmarking::Module as OffencesBench; + + impl pallet_session_benchmarking::Trait for Runtime {} + impl pallet_offences_benchmarking::Trait for Runtime {} let mut batches = Vec::::new(); let params = (&pallet, &benchmark, &lowest_range_values, &highest_range_values, &steps, repeat); + // Polkadot add_benchmark!(params, batches, b"claims", Claims); + // Substrate + add_benchmark!(params, batches, b"balances", Balances); + add_benchmark!(params, batches, b"collective", Council); + add_benchmark!(params, batches, b"democracy", Democracy); + add_benchmark!(params, batches, b"identity", Identity); + add_benchmark!(params, batches, b"im-online", ImOnline); + add_benchmark!(params, batches, b"offences", OffencesBench::); + add_benchmark!(params, batches, b"session", SessionBench::); + add_benchmark!(params, batches, b"staking", Staking); + add_benchmark!(params, batches, b"timestamp", Timestamp); + add_benchmark!(params, batches, b"treasury", Treasury); + add_benchmark!(params, batches, b"utility", Utility); + add_benchmark!(params, batches, b"vesting", Vesting); + if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) } diff --git a/runtime/polkadot/Cargo.toml b/runtime/polkadot/Cargo.toml index 484af1730e63..aed4f9a98773 100644 --- a/runtime/polkadot/Cargo.toml +++ b/runtime/polkadot/Cargo.toml @@ -57,7 +57,10 @@ timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } sudo = { package = "pallet-sudo", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } + frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-offences-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } @@ -131,10 +134,20 @@ std = [ "vesting/std", ] runtime-benchmarks = [ - "collective/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "frame-benchmarking", "frame-support/runtime-benchmarks", - "runtime-common/runtime-benchmarks", - "elections-phragmen/runtime-benchmarks", "system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "balances/runtime-benchmarks", + "collective/runtime-benchmarks", + "democracy/runtime-benchmarks", + "elections-phragmen/runtime-benchmarks", + "im-online/runtime-benchmarks", + "staking/runtime-benchmarks", + "timestamp/runtime-benchmarks", + "treasury/runtime-benchmarks", + "vesting/runtime-benchmarks", + "pallet-offences-benchmarking", + "pallet-session-benchmarking", ] diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 8cfdebf1e98d..393bf17afe65 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -917,10 +917,31 @@ sp_api::impl_runtime_apis! { repeat: u32, ) -> Result, RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark}; + // Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues. + // To get around that, we separated the Session benchmarks into its own crate, which is why + // we need these two lines below. + use pallet_session_benchmarking::Module as SessionBench; + use pallet_offences_benchmarking::Module as OffencesBench; + + impl pallet_session_benchmarking::Trait for Runtime {} + impl pallet_offences_benchmarking::Trait for Runtime {} let mut batches = Vec::::new(); let params = (&pallet, &benchmark, &lowest_range_values, &highest_range_values, &steps, repeat); + // Polkadot add_benchmark!(params, batches, b"claims", Claims); + // Substrate + add_benchmark!(params, batches, b"balances", Balances); + add_benchmark!(params, batches, b"collective", Council); + add_benchmark!(params, batches, b"democracy", Democracy); + add_benchmark!(params, batches, b"im-online", ImOnline); + add_benchmark!(params, batches, b"offences", OffencesBench::); + add_benchmark!(params, batches, b"session", SessionBench::); + add_benchmark!(params, batches, b"staking", Staking); + add_benchmark!(params, batches, b"timestamp", Timestamp); + add_benchmark!(params, batches, b"treasury", Treasury); + add_benchmark!(params, batches, b"vesting", Vesting); + if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) } diff --git a/runtime/westend/Cargo.toml b/runtime/westend/Cargo.toml index 9099b0dfda35..0a80cb2914dd 100644 --- a/runtime/westend/Cargo.toml +++ b/runtime/westend/Cargo.toml @@ -61,7 +61,10 @@ timestamp = { package = "pallet-timestamp", git = "https://github.com/paritytech treasury = { package = "pallet-treasury", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } utility = { package = "pallet-utility", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } vesting = { package = "pallet-vesting", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } + frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-offences-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } +pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true } runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false } primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false } @@ -141,11 +144,23 @@ std = [ "runtime-common/std", ] runtime-benchmarks = [ - "collective/runtime-benchmarks", + "runtime-common/runtime-benchmarks", "frame-benchmarking", "frame-support/runtime-benchmarks", - "runtime-common/runtime-benchmarks", + "system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", + "balances/runtime-benchmarks", + "collective/runtime-benchmarks", + "democracy/runtime-benchmarks", "elections-phragmen/runtime-benchmarks", + "identity/runtime-benchmarks", + "im-online/runtime-benchmarks", "society/runtime-benchmarks", - "system/runtime-benchmarks", + "staking/runtime-benchmarks", + "timestamp/runtime-benchmarks", + "treasury/runtime-benchmarks", + "utility/runtime-benchmarks", + "vesting/runtime-benchmarks", + "pallet-offences-benchmarking", + "pallet-session-benchmarking", ] diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 92ca41fed55e..de5844fa42de 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -810,9 +810,28 @@ sp_api::impl_runtime_apis! { repeat: u32, ) -> Result, RuntimeString> { use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark}; + // Trying to add benchmarks directly to the Session Pallet caused cyclic dependency issues. + // To get around that, we separated the Session benchmarks into its own crate, which is why + // we need these two lines below. + use pallet_session_benchmarking::Module as SessionBench; + use pallet_offences_benchmarking::Module as OffencesBench; + + impl pallet_session_benchmarking::Trait for Runtime {} + impl pallet_offences_benchmarking::Trait for Runtime {} let mut batches = Vec::::new(); let params = (&pallet, &benchmark, &lowest_range_values, &highest_range_values, &steps, repeat); + + add_benchmark!(params, batches, b"balances", Balances); + add_benchmark!(params, batches, b"identity", Identity); + add_benchmark!(params, batches, b"im-online", ImOnline); + add_benchmark!(params, batches, b"offences", OffencesBench::); + add_benchmark!(params, batches, b"session", SessionBench::); + add_benchmark!(params, batches, b"staking", Staking); + add_benchmark!(params, batches, b"timestamp", Timestamp); + add_benchmark!(params, batches, b"utility", Utility); + add_benchmark!(params, batches, b"vesting", Vesting); + if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) }