diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index f07dd56dda..a55b062db8 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -318,9 +318,9 @@ checksum = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0" [[package]] name = "async-tls" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0d8b6fc362bebff7502479fb5e9aed00c8cc3abc5af755536e73a128f0cb88" +checksum = "2f23d769dbf1838d5df5156e7b1ad404f4c463d1ac2c6aeb6cd943630f8a8400" dependencies = [ "futures-core", "futures-io", @@ -1489,7 +1489,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", ] @@ -1507,7 +1507,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -1525,8 +1525,9 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ + "Inflector", "chrono", "frame-benchmarking", "handlebars", @@ -1547,7 +1548,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -1563,7 +1564,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "12.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "serde", @@ -1574,7 +1575,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "bitflags", "frame-metadata", @@ -1599,7 +1600,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support-procedural-tools", "proc-macro2 1.0.24", @@ -1610,7 +1611,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1622,7 +1623,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -1632,7 +1633,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "impl-trait-for-tuples 0.1.3", @@ -1648,7 +1649,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -1662,7 +1663,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-api", @@ -2199,6 +2200,12 @@ version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" +[[package]] +name = "httpdate" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" + [[package]] name = "humantime" version = "1.3.0" @@ -2246,9 +2253,9 @@ dependencies = [ [[package]] name = "hyper" -version = "0.13.6" +version = "0.13.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6e7655b9594024ad0ee439f3b5a7299369dc2a3f459b47c696f9ff676f9aa1f" +checksum = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf" dependencies = [ "bytes 0.5.6", "futures-channel", @@ -2258,13 +2265,13 @@ dependencies = [ "http 0.2.1", "http-body 0.3.1", "httparse", + "httpdate", "itoa", - "log", - "pin-project 0.4.23", + "pin-project 1.0.2", "socket2", - "time", "tokio 0.2.21", "tower-service", + "tracing", "want 0.3.0", ] @@ -2277,7 +2284,7 @@ dependencies = [ "bytes 0.5.6", "ct-logs", "futures-util", - "hyper 0.13.6", + "hyper 0.13.9", "log", "rustls 0.18.0", "rustls-native-certs", @@ -2670,6 +2677,7 @@ dependencies = [ "pallet-authorship", "pallet-babe", "pallet-balances", + "pallet-bounties", "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", @@ -2692,6 +2700,7 @@ dependencies = [ "pallet-staking", "pallet-staking-reward-curve", "pallet-timestamp", + "pallet-tips", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", @@ -2834,9 +2843,9 @@ checksum = "c7d73b3f436185384286bd8098d17ec07c9a7d2388a6599f824d8502b529702a" [[package]] name = "libp2p" -version = "0.32.1" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "941af10b45fd27d15e94aea83002c4a21521849fad8aad78d1cdbf00a60b0a17" +checksum = "022cdac4ab124be12de581e591796d4dfb7d1f1eef94669d2c1eaa0e98dd2f0e" dependencies = [ "atomic", "bytes 0.5.6", @@ -3210,9 +3219,9 @@ dependencies = [ [[package]] name = "libp2p-websocket" -version = "0.26.2" +version = "0.26.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8a0af4ea43104a01c634ee1b8026ce11f9ee3766a894a44f9e1da5a0eb74fc0" +checksum = "522a877ce42ededf1f5dd011dbc40ea116f1776818f09dacb3d7a206f3ad6305" dependencies = [ "async-tls", "either", @@ -3886,7 +3895,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -3902,7 +3911,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -3917,7 +3926,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -3942,7 +3951,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -3953,10 +3962,25 @@ dependencies = [ "sp-std", ] +[[package]] +name = "pallet-bounties" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-treasury", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-collective" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -3972,7 +3996,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -3987,7 +4011,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4002,7 +4026,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4023,7 +4047,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4039,7 +4063,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4059,7 +4083,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4076,7 +4100,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4090,7 +4114,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4106,7 +4130,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4120,7 +4144,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4135,7 +4159,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4156,7 +4180,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4172,7 +4196,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4185,7 +4209,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "enumflags2", "frame-support", @@ -4200,7 +4224,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4215,7 +4239,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4235,7 +4259,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4251,7 +4275,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4265,7 +4289,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4287,7 +4311,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -4298,7 +4322,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4312,7 +4336,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4327,10 +4351,25 @@ dependencies = [ "sp-timestamp", ] +[[package]] +name = "pallet-tips" +version = "2.0.0" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" +dependencies = [ + "frame-benchmarking", + "frame-support", + "frame-system", + "pallet-treasury", + "parity-scale-codec", + "serde", + "sp-runtime", + "sp-std", +] + [[package]] name = "pallet-transaction-payment" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "frame-system", @@ -4347,7 +4386,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4365,7 +4404,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-support", "parity-scale-codec", @@ -4378,11 +4417,12 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", "frame-system", + "impl-trait-for-tuples 0.1.3", "pallet-balances", "parity-scale-codec", "serde", @@ -4393,7 +4433,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4409,7 +4449,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "enumflags2", "frame-benchmarking", @@ -5412,6 +5452,7 @@ dependencies = [ "pallet-authorship", "pallet-babe", "pallet-balances", + "pallet-bounties", "pallet-collective", "pallet-democracy", "pallet-elections-phragmen", @@ -5432,6 +5473,7 @@ dependencies = [ "pallet-staking", "pallet-staking-reward-curve", "pallet-timestamp", + "pallet-tips", "pallet-transaction-payment", "pallet-transaction-payment-rpc-runtime-api", "pallet-treasury", @@ -6683,7 +6725,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "async-trait", "derive_more", @@ -6711,7 +6753,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-timer 3.0.2", @@ -6734,7 +6776,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -6751,7 +6793,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-trait-for-tuples 0.1.3", "parity-scale-codec", @@ -6772,7 +6814,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -6783,7 +6825,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "atty", "chrono", @@ -6826,7 +6868,7 @@ dependencies = [ [[package]] name = "sc-cli-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -6837,7 +6879,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "fnv", @@ -6871,7 +6913,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "blake2-rfc", "hash-db", @@ -6901,7 +6943,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "sc-client-api", "sp-blockchain", @@ -6912,7 +6954,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "fork-tree", @@ -6957,7 +6999,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "futures 0.3.8", @@ -6981,7 +7023,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "fork-tree", "parity-scale-codec", @@ -6994,7 +7036,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-timer 3.0.2", @@ -7020,7 +7062,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "sc-client-api", @@ -7034,7 +7076,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "lazy_static", @@ -7063,7 +7105,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "parity-scale-codec", @@ -7079,7 +7121,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "parity-scale-codec", @@ -7094,7 +7136,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "parity-scale-codec", @@ -7112,7 +7154,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "finality-grandpa", @@ -7149,7 +7191,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "finality-grandpa", @@ -7173,7 +7215,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "ansi_term 0.12.1", "futures 0.3.8", @@ -7191,7 +7233,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "async-trait", "derive_more", @@ -7211,7 +7253,7 @@ dependencies = [ [[package]] name = "sc-light" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "hash-db", "lazy_static", @@ -7230,7 +7272,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "async-std", "async-trait", @@ -7284,7 +7326,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-timer 3.0.2", @@ -7299,13 +7341,13 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "bytes 0.5.6", "fnv", "futures 0.3.8", "futures-timer 3.0.2", - "hyper 0.13.6", + "hyper 0.13.9", "hyper-rustls", "log", "num_cpus", @@ -7326,7 +7368,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "libp2p", @@ -7339,7 +7381,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7348,7 +7390,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "hash-db", @@ -7382,7 +7424,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "futures 0.3.8", @@ -7406,7 +7448,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.1.29", "jsonrpc-core", @@ -7424,7 +7466,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "directories 3.0.1", "exit-future", @@ -7488,7 +7530,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "parity-scale-codec", @@ -7503,7 +7545,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -7523,7 +7565,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-timer 3.0.2", @@ -7544,7 +7586,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "ansi_term 0.12.1", "erased-serde", @@ -7568,7 +7610,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "futures 0.3.8", @@ -7590,7 +7632,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-diagnose", @@ -8056,7 +8098,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "sp-core", @@ -8068,7 +8110,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "hash-db", "parity-scale-codec", @@ -8084,7 +8126,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -8096,7 +8138,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "serde", @@ -8108,7 +8150,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "integer-sqrt", "num-traits 0.2.12", @@ -8121,7 +8163,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8133,7 +8175,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8144,7 +8186,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8156,7 +8198,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "log", @@ -8174,7 +8216,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "serde", "serde_json", @@ -8183,7 +8225,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-timer 3.0.2", @@ -8209,7 +8251,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "merlin", "parity-scale-codec", @@ -8229,7 +8271,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8238,7 +8280,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8250,7 +8292,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "base58", "blake2-rfc", @@ -8294,7 +8336,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "kvdb", "parking_lot 0.10.2", @@ -8303,7 +8345,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.7", @@ -8313,7 +8355,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "environmental", "parity-scale-codec", @@ -8324,7 +8366,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "finality-grandpa", "log", @@ -8341,7 +8383,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "parking_lot 0.10.2", @@ -8353,7 +8395,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "hash-db", @@ -8377,7 +8419,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "lazy_static", "sp-core", @@ -8388,7 +8430,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "async-trait", "derive_more", @@ -8405,7 +8447,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "serde", @@ -8417,7 +8459,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -8428,7 +8470,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "sp-api", "sp-core", @@ -8438,7 +8480,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "backtrace", ] @@ -8446,7 +8488,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "serde", "sp-core", @@ -8455,7 +8497,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "either", "hash256-std-hasher", @@ -8476,7 +8518,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-trait-for-tuples 0.1.3", "parity-scale-codec", @@ -8493,7 +8535,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "Inflector", "proc-macro-crate", @@ -8505,7 +8547,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "serde", "serde_json", @@ -8514,7 +8556,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-api", @@ -8527,7 +8569,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8537,7 +8579,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "hash-db", "log", @@ -8559,12 +8601,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" [[package]] name = "sp-storage" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8577,7 +8619,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "sp-core", @@ -8590,7 +8632,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-trait-for-tuples 0.1.3", "parity-scale-codec", @@ -8604,7 +8646,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "log", "parity-scale-codec", @@ -8617,7 +8659,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "derive_more", "futures 0.3.8", @@ -8633,7 +8675,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "hash-db", "memory-db", @@ -8647,7 +8689,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "futures-core", @@ -8659,7 +8701,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8671,7 +8713,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "impl-trait-for-tuples 0.1.3", "parity-scale-codec", @@ -8813,7 +8855,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "chrono", "console_error_panic_hook", @@ -8839,7 +8881,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "platforms", ] @@ -8847,7 +8889,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.8", @@ -8870,12 +8912,12 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "async-std", "derive_more", "futures-util", - "hyper 0.13.6", + "hyper 0.13.9", "log", "prometheus", "tokio 0.2.21", @@ -8884,7 +8926,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.1.29", "futures 0.3.8", @@ -8911,7 +8953,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "futures 0.3.8", "substrate-test-utils-derive", @@ -8921,7 +8963,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate#6b600cdeb4043e512bc5f342eb02a5a17d26797a" +source = "git+https://github.com/paritytech/substrate#987a9723920217917f2708388d150add5ef52ef7" dependencies = [ "proc-macro-crate", "quote 1.0.7", @@ -9494,6 +9536,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ "cfg-if 1.0.0", + "log", "pin-project-lite 0.2.0", "tracing-attributes", "tracing-core", @@ -10387,9 +10430,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f33972566adbd2d3588b0491eb94b98b43695c4ef897903470ede4f3f5a28a" +checksum = "81a974bcdd357f0dca4d41677db03436324d45a4c9ed2d0b873a5a360ce41c36" dependencies = [ "zeroize_derive", ] diff --git a/polkadot/node/service/src/chain_spec.rs b/polkadot/node/service/src/chain_spec.rs index d4dfcdd597..90b690d4bd 100644 --- a/polkadot/node/service/src/chain_spec.rs +++ b/polkadot/node/service/src/chain_spec.rs @@ -245,6 +245,7 @@ fn polkadot_staging_testnet_config_genesis(wasm_binary: &[u8]) -> polkadot::Gene vesting: vec![], }), pallet_vesting: Some(polkadot::VestingConfig { vesting: vec![] }), + pallet_treasury: Some(Default::default()), } } @@ -627,6 +628,7 @@ fn kusama_staging_testnet_config_genesis(wasm_binary: &[u8]) -> kusama::GenesisC vesting: vec![], }), pallet_vesting: Some(kusama::VestingConfig { vesting: vec![] }), + pallet_treasury: Some(Default::default()), } } @@ -1083,6 +1085,7 @@ pub fn polkadot_testnet_genesis( vesting: vec![], }), pallet_vesting: Some(polkadot::VestingConfig { vesting: vec![] }), + pallet_treasury: Some(Default::default()), } } @@ -1177,6 +1180,7 @@ pub fn kusama_testnet_genesis( vesting: vec![], }), pallet_vesting: Some(kusama::VestingConfig { vesting: vec![] }), + pallet_treasury: Some(Default::default()), } } diff --git a/polkadot/runtime/common/src/crowdfund.rs b/polkadot/runtime/common/src/crowdfund.rs index 865dbcc6fc..8e856087bd 100644 --- a/polkadot/runtime/common/src/crowdfund.rs +++ b/polkadot/runtime/common/src/crowdfund.rs @@ -573,13 +573,12 @@ mod tests { impl_outer_origin, assert_ok, assert_noop, parameter_types, traits::{OnInitialize, OnFinalize}, }; - use frame_support::traits::{Contains, ContainsLengthBound}; use sp_core::H256; use primitives::v1::{Id as ParaId, ValidationCode}; // The testing primitives are very useful for avoiding having to work with signatures // or public keys. `u64` is used as the `AccountId` and no `Signature`s are requried. use sp_runtime::{ - Permill, Percent, testing::Header, DispatchResult, + Permill, testing::Header, DispatchResult, traits::{BlakeTwo256, IdentityLookup}, }; use crate::slots::Registrar; @@ -638,28 +637,7 @@ mod tests { pub const ProposalBondMinimum: u64 = 1; pub const SpendPeriod: u64 = 2; pub const Burn: Permill = Permill::from_percent(50); - pub const TipCountdown: u64 = 1; - pub const TipFindersFee: Percent = Percent::from_percent(20); - pub const TipReportDepositBase: u64 = 1; pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry"); - pub const DataDepositPerByte: u64 = 1; - pub const BountyDepositBase: u64 = 1; - pub const BountyDepositPayoutDelay: u64 = 1; - pub const BountyUpdatePeriod: u64 = 1; - pub const MaximumReasonLength: u32 = 16384; - pub const BountyCuratorDeposit: Permill = Permill::from_percent(50); - pub const BountyValueMinimum: u64 = 1; - } - pub struct Nobody; - impl Contains for Nobody { - fn contains(_: &u64) -> bool { false } - fn sorted_members() -> Vec { vec![] } - #[cfg(feature = "runtime-benchmarks")] - fn add(_: &u64) { unimplemented!() } - } - impl ContainsLengthBound for Nobody { - fn min_len() -> usize { 0 } - fn max_len() -> usize { 0 } } impl pallet_treasury::Config for Test { type Currency = pallet_balances::Module; @@ -672,18 +650,8 @@ mod tests { type SpendPeriod = SpendPeriod; type Burn = Burn; type BurnDestination = (); - type Tippers = Nobody; - type TipCountdown = TipCountdown; - type TipFindersFee = TipFindersFee; - type TipReportDepositBase = TipReportDepositBase; - type DataDepositPerByte = DataDepositPerByte; - type BountyDepositBase = BountyDepositBase; - type BountyDepositPayoutDelay = BountyDepositPayoutDelay; - type BountyUpdatePeriod = BountyUpdatePeriod; - type MaximumReasonLength = MaximumReasonLength; - type BountyCuratorDeposit = BountyCuratorDeposit; - type BountyValueMinimum = BountyValueMinimum; type ModuleId = TreasuryModuleId; + type SpendFunds = (); type WeightInfo = (); } diff --git a/polkadot/runtime/common/src/impls.rs b/polkadot/runtime/common/src/impls.rs index b9bace0098..185dee74a7 100644 --- a/polkadot/runtime/common/src/impls.rs +++ b/polkadot/runtime/common/src/impls.rs @@ -138,18 +138,6 @@ mod tests { type WeightInfo = (); } - pub struct Nobody; - impl frame_support::traits::Contains for Nobody { - fn contains(_: &AccountId) -> bool { false } - fn sorted_members() -> Vec { vec![] } - #[cfg(feature = "runtime-benchmarks")] - fn add(_: &AccountId) { unimplemented!() } - } - impl frame_support::traits::ContainsLengthBound for Nobody { - fn min_len() -> usize { 0 } - fn max_len() -> usize { 0 } - } - parameter_types! { pub const TreasuryModuleId: ModuleId = ModuleId(*b"py/trsry"); } @@ -165,18 +153,8 @@ mod tests { type SpendPeriod = (); type Burn = (); type BurnDestination = (); - type Tippers = Nobody; - type TipCountdown = (); - type TipFindersFee = (); - type TipReportDepositBase = (); - type DataDepositPerByte = (); - type BountyDepositBase = (); - type BountyDepositPayoutDelay = (); - type BountyUpdatePeriod = (); - type MaximumReasonLength = (); - type BountyCuratorDeposit = (); - type BountyValueMinimum = (); type ModuleId = TreasuryModuleId; + type SpendFunds = (); type WeightInfo = (); } diff --git a/polkadot/runtime/kusama/Cargo.toml b/polkadot/runtime/kusama/Cargo.toml index 9a7e1028a8..2af5811f6c 100644 --- a/polkadot/runtime/kusama/Cargo.toml +++ b/polkadot/runtime/kusama/Cargo.toml @@ -34,6 +34,7 @@ pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-bounties = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -60,6 +61,7 @@ pallet-staking-reward-curve = { package = "pallet-staking-reward-curve", git = " frame-system = {git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-tips = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -107,6 +109,7 @@ std = [ "frame-support/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-bounties/std", "pallet-transaction-payment/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-collective/std", @@ -132,6 +135,7 @@ std = [ "frame-system/std", "frame-system-rpc-runtime-api/std", "pallet-timestamp/std", + "pallet-tips/std", "pallet-treasury/std", "sp-version/std", "pallet-utility/std", @@ -153,6 +157,7 @@ runtime-benchmarks = [ "sp-runtime/runtime-benchmarks", "pallet-babe/runtime-benchmarks", "pallet-balances/runtime-benchmarks", + "pallet-bounties/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "pallet-democracy/runtime-benchmarks", "pallet-elections-phragmen/runtime-benchmarks", @@ -166,6 +171,7 @@ runtime-benchmarks = [ "pallet-society/runtime-benchmarks", "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "pallet-tips/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index 31d92bd019..7eb2003961 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -559,25 +559,39 @@ impl pallet_treasury::Config for Runtime { type Currency = Balances; type ApproveOrigin = ApproveOrigin; type RejectOrigin = MoreThanHalfCouncil; - type Tippers = ElectionsPhragmen; - type TipCountdown = TipCountdown; - type TipFindersFee = TipFindersFee; - type TipReportDepositBase = TipReportDepositBase; - type DataDepositPerByte = DataDepositPerByte; type Event = Event; type OnSlash = Treasury; type ProposalBond = ProposalBond; type ProposalBondMinimum = ProposalBondMinimum; type SpendPeriod = SpendPeriod; type Burn = Burn; + type BurnDestination = Society; + type SpendFunds = Bounties; + type WeightInfo = weights::pallet_treasury::WeightInfo; +} + +impl pallet_bounties::Config for Runtime { + type Event = Event; type BountyDepositBase = BountyDepositBase; type BountyDepositPayoutDelay = BountyDepositPayoutDelay; type BountyUpdatePeriod = BountyUpdatePeriod; - type MaximumReasonLength = MaximumReasonLength; type BountyCuratorDeposit = BountyCuratorDeposit; type BountyValueMinimum = BountyValueMinimum; - type BurnDestination = Society; - type WeightInfo = weights::pallet_treasury::WeightInfo; + type DataDepositPerByte = DataDepositPerByte; + type MaximumReasonLength = MaximumReasonLength; + type WeightInfo = weights::pallet_bounties::WeightInfo; + +} + +impl pallet_tips::Config for Runtime { + type Event = Event; + type DataDepositPerByte = DataDepositPerByte; + type MaximumReasonLength = MaximumReasonLength; + type Tippers = ElectionsPhragmen; + type TipCountdown = TipCountdown; + type TipFindersFee = TipFindersFee; + type TipReportDepositBase = TipReportDepositBase; + type WeightInfo = weights::pallet_tips::WeightInfo; } parameter_types! { @@ -850,6 +864,8 @@ impl InstanceFilter for ProxyType { Call::ElectionsPhragmen(..) | Call::TechnicalMembership(..) | Call::Treasury(..) | + Call::Bounties(..) | + Call::Tips(..) | Call::Claims(..) | Call::Utility(..) | Call::Identity(..) | @@ -874,6 +890,8 @@ impl InstanceFilter for ProxyType { Call::TechnicalCommittee(..) | Call::ElectionsPhragmen(..) | Call::Treasury(..) | + Call::Bounties(..) | + Call::Tips(..) | Call::Utility(..) ), ProxyType::Staking => matches!(c, @@ -1185,7 +1203,7 @@ construct_runtime! { TechnicalCommittee: pallet_collective::::{Module, Call, Storage, Origin, Event, Config} = 15, ElectionsPhragmen: pallet_elections_phragmen::{Module, Call, Storage, Event, Config} = 16, TechnicalMembership: pallet_membership::::{Module, Call, Storage, Event, Config} = 17, - Treasury: pallet_treasury::{Module, Call, Storage, Event} = 18, + Treasury: pallet_treasury::{Module, Call, Storage, Config, Event} = 18, // Claims. Usable initially. Claims: claims::{Module, Call, Storage, Event, Config, ValidateUnsigned} = 19, @@ -1213,6 +1231,12 @@ construct_runtime! { // Multisig module. Late addition. Multisig: pallet_multisig::{Module, Call, Storage, Event} = 31, + + // Bounties module. + Bounties: pallet_bounties::{Module, Call, Storage, Event} = 35, + + // Tips module. + Tips: pallet_tips::{Module, Call, Storage, Event} = 36, } } @@ -1528,6 +1552,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, claims, Claims); // Substrate add_benchmark!(params, batches, pallet_balances, Balances); + add_benchmark!(params, batches, pallet_bounties, Bounties); add_benchmark!(params, batches, pallet_collective, Council); add_benchmark!(params, batches, pallet_democracy, Democracy); add_benchmark!(params, batches, pallet_elections_phragmen, ElectionsPhragmen); @@ -1542,6 +1567,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_staking, Staking); add_benchmark!(params, batches, frame_system, SystemBench::); add_benchmark!(params, batches, pallet_timestamp, Timestamp); + add_benchmark!(params, batches, pallet_tips, Tips); add_benchmark!(params, batches, pallet_treasury, Treasury); add_benchmark!(params, batches, pallet_utility, Utility); add_benchmark!(params, batches, pallet_vesting, Vesting); diff --git a/polkadot/runtime/kusama/src/weights/mod.rs b/polkadot/runtime/kusama/src/weights/mod.rs index 19269d0261..f8c7cb230b 100644 --- a/polkadot/runtime/kusama/src/weights/mod.rs +++ b/polkadot/runtime/kusama/src/weights/mod.rs @@ -17,6 +17,7 @@ pub mod frame_system; pub mod pallet_balances; +pub mod pallet_bounties; pub mod pallet_collective; pub mod pallet_democracy; pub mod pallet_elections_phragmen; @@ -29,6 +30,7 @@ pub mod pallet_scheduler; pub mod pallet_session; pub mod pallet_staking; pub mod pallet_timestamp; +pub mod pallet_tips; pub mod pallet_treasury; pub mod pallet_utility; pub mod pallet_vesting; diff --git a/polkadot/runtime/kusama/src/weights/pallet_bounties.rs b/polkadot/runtime/kusama/src/weights/pallet_bounties.rs new file mode 100644 index 0000000000..562e13c4b9 --- /dev/null +++ b/polkadot/runtime/kusama/src/weights/pallet_bounties.rs @@ -0,0 +1,108 @@ +// This file is part of Substrate. + +// Copyright (C) 2020 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for pallet_bounties +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 +//! DATE: 2020-11-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 + +// Executed Command: +// target/release/substrate +// benchmark +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_bounties +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./frame/bounties/src/weights.rs +// --template=./.maintain/frame-weight-template.hbs + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weights for pallet_bounties using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); +impl pallet_bounties::WeightInfo for WeightInfo { + fn propose_bounty(d: u32, ) -> Weight { + (64_778_000 as Weight) + // Standard Error: 0 + .saturating_add((1_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn approve_bounty() -> Weight { + (18_293_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn propose_curator() -> Weight { + (14_248_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn unassign_curator() -> Weight { + (52_100_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn accept_curator() -> Weight { + (52_564_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn award_bounty() -> Weight { + (37_426_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn claim_bounty() -> Weight { + (176_077_000 as Weight) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(5 as Weight)) + } + fn close_bounty_proposed() -> Weight { + (51_162_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + fn close_bounty_active() -> Weight { + (116_907_000 as Weight) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn extend_bounty_expiry() -> Weight { + (36_419_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn spend_funds(b: u32, ) -> Weight { + (7_562_000 as Weight) + // Standard Error: 16_000 + .saturating_add((77_328_000 as Weight).saturating_mul(b as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight))) + } +} diff --git a/polkadot/runtime/kusama/src/weights/pallet_tips.rs b/polkadot/runtime/kusama/src/weights/pallet_tips.rs new file mode 100644 index 0000000000..1f1a59faba --- /dev/null +++ b/polkadot/runtime/kusama/src/weights/pallet_tips.rs @@ -0,0 +1,77 @@ +// This file is part of Substrate. + +// Copyright (C) 2020 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for pallet_tips +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 +//! DATE: 2020-11-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 + +// Executed Command: +// target/release/substrate +// benchmark +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_tips +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./frame/tips/src/weights.rs +// --template=./.maintain/frame-weight-template.hbs + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weights for pallet_tips using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); +impl pallet_tips::WeightInfo for WeightInfo { + fn report_awesome(r: u32, ) -> Weight { + (70_338_000 as Weight) + .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn retract_tip() -> Weight { + (59_051_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn tip_new(r: u32, t: u32, ) -> Weight { + (41_984_000 as Weight) + .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) + .saturating_add((180_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn tip(t: u32, ) -> Weight { + (33_313_000 as Weight) + .saturating_add((700_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn close_tip(t: u32, ) -> Weight { + (110_781_000 as Weight) + .saturating_add((364_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } +} diff --git a/polkadot/runtime/kusama/src/weights/pallet_treasury.rs b/polkadot/runtime/kusama/src/weights/pallet_treasury.rs index 73e1b6a82a..43ed53f898 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_treasury.rs +++ b/polkadot/runtime/kusama/src/weights/pallet_treasury.rs @@ -44,123 +44,26 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl pallet_treasury::WeightInfo for WeightInfo { fn propose_spend() -> Weight { - (53_899_000 as Weight) + (55_957_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn reject_proposal() -> Weight { - (84_208_000 as Weight) + (45_616_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn approve_proposal() -> Weight { - (11_576_000 as Weight) + (13_362_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn report_awesome(r: u32, ) -> Weight { - (66_679_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn retract_tip() -> Weight { - (56_703_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn tip_new(r: u32, t: u32, ) -> Weight { - (42_139_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 0 - .saturating_add((144_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn tip(t: u32, ) -> Weight { - (27_980_000 as Weight) - // Standard Error: 1_000 - .saturating_add((691_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn close_tip(t: u32, ) -> Weight { - (105_039_000 as Weight) - // Standard Error: 0 - .saturating_add((360_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) - } - fn propose_bounty(d: u32, ) -> Weight { - (57_452_000 as Weight) - // Standard Error: 0 - .saturating_add((1_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn approve_bounty() -> Weight { - (15_509_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn propose_curator() -> Weight { - (12_403_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn unassign_curator() -> Weight { - (68_535_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn accept_curator() -> Weight { - (48_001_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn award_bounty() -> Weight { - (33_291_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn claim_bounty() -> Weight { - (159_266_000 as Weight) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) - .saturating_add(T::DbWeight::get().writes(5 as Weight)) - } - fn close_bounty_proposed() -> Weight { - (67_667_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) - } - fn close_bounty_active() -> Weight { - (105_482_000 as Weight) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn extend_bounty_expiry() -> Weight { - (32_502_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } fn on_initialize_proposals(p: u32, ) -> Weight { - (108_437_000 as Weight) - // Standard Error: 16_000 - .saturating_add((70_932_000 as Weight).saturating_mul(p as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) + (74_689_000 as Weight) + .saturating_add((71_943_000 as Weight).saturating_mul(p as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(p as Weight))) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(p as Weight))) } - fn on_initialize_bounties(b: u32, ) -> Weight { - (105_767_000 as Weight) - // Standard Error: 17_000 - .saturating_add((70_197_000 as Weight).saturating_mul(b as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight))) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) - .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight))) - } } diff --git a/polkadot/runtime/polkadot/Cargo.toml b/polkadot/runtime/polkadot/Cargo.toml index 5a4a71a315..f13b4b0069 100644 --- a/polkadot/runtime/polkadot/Cargo.toml +++ b/polkadot/runtime/polkadot/Cargo.toml @@ -34,6 +34,7 @@ pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-bounties = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -58,6 +59,7 @@ pallet-staking-reward-curve = { git = "https://github.com/paritytech/substrate", frame-system = {git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } +pallet-tips = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } @@ -104,6 +106,7 @@ std = [ "frame-support/std", "pallet-authorship/std", "pallet-balances/std", + "pallet-bounties/std", "pallet-transaction-payment/std", "pallet-transaction-payment-rpc-runtime-api/std", "pallet-collective/std", @@ -128,6 +131,7 @@ std = [ "frame-system-rpc-runtime-api/std", "pallet-timestamp/std", "pallet-treasury/std", + "pallet-tips/std", "sp-version/std", "serde_derive", "serde/std", @@ -161,6 +165,8 @@ runtime-benchmarks = [ "pallet-staking/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-treasury/runtime-benchmarks", + "pallet-bounties/runtime-benchmarks", + "pallet-tips/runtime-benchmarks", "pallet-utility/runtime-benchmarks", "pallet-vesting/runtime-benchmarks", "pallet-offences-benchmarking", diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 5721ef40cc..872a11fc58 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -123,7 +123,8 @@ impl Filter for BaseFilter { Call::Session(_) | Call::Grandpa(_) | Call::ImOnline(_) | Call::AuthorityDiscovery(_) | Call::Utility(_) | Call::Claims(_) | Call::Vesting(_) | - Call::Identity(_) | Call::Proxy(_) | Call::Multisig(_) + Call::Identity(_) | Call::Proxy(_) | Call::Multisig(_) | + Call::Bounties(_) | Call::Tips(_) => true, } } @@ -605,25 +606,38 @@ impl pallet_treasury::Config for Runtime { type Currency = Balances; type ApproveOrigin = ApproveOrigin; type RejectOrigin = MoreThanHalfCouncil; - type Tippers = ElectionsPhragmen; - type TipCountdown = TipCountdown; - type TipFindersFee = TipFindersFee; - type TipReportDepositBase = TipReportDepositBase; - type DataDepositPerByte = DataDepositPerByte; type Event = Event; type OnSlash = Treasury; type ProposalBond = ProposalBond; type ProposalBondMinimum = ProposalBondMinimum; type SpendPeriod = SpendPeriod; type Burn = Burn; + type BurnDestination = (); + type SpendFunds = Bounties; + type WeightInfo = weights::pallet_treasury::WeightInfo; +} + +impl pallet_bounties::Config for Runtime { + type Event = Event; type BountyDepositBase = BountyDepositBase; type BountyDepositPayoutDelay = BountyDepositPayoutDelay; type BountyUpdatePeriod = BountyUpdatePeriod; - type MaximumReasonLength = MaximumReasonLength; type BountyCuratorDeposit = BountyCuratorDeposit; type BountyValueMinimum = BountyValueMinimum; - type BurnDestination = (); - type WeightInfo = weights::pallet_treasury::WeightInfo; + type DataDepositPerByte = DataDepositPerByte; + type MaximumReasonLength = MaximumReasonLength; + type WeightInfo = weights::pallet_bounties::WeightInfo; +} + +impl pallet_tips::Config for Runtime { + type Event = Event; + type DataDepositPerByte = DataDepositPerByte; + type MaximumReasonLength = MaximumReasonLength; + type Tippers = ElectionsPhragmen; + type TipCountdown = TipCountdown; + type TipFindersFee = TipFindersFee; + type TipReportDepositBase = TipReportDepositBase; + type WeightInfo = weights::pallet_tips::WeightInfo; } parameter_types! { @@ -864,6 +878,8 @@ impl InstanceFilter for ProxyType { Call::ElectionsPhragmen(..) | Call::TechnicalMembership(..) | Call::Treasury(..) | + Call::Bounties(..) | + Call::Tips(..) | Call::Claims(..) | Call::Vesting(pallet_vesting::Call::vest(..)) | Call::Vesting(pallet_vesting::Call::vest_other(..)) | @@ -879,6 +895,8 @@ impl InstanceFilter for ProxyType { Call::TechnicalCommittee(..) | Call::ElectionsPhragmen(..) | Call::Treasury(..) | + Call::Bounties(..) | + Call::Tips(..) | Call::Utility(..) ), ProxyType::Staking => matches!(c, @@ -969,7 +987,7 @@ construct_runtime! { TechnicalCommittee: pallet_collective::::{Module, Call, Storage, Origin, Event, Config} = 16, ElectionsPhragmen: pallet_elections_phragmen::{Module, Call, Storage, Event, Config} = 17, TechnicalMembership: pallet_membership::::{Module, Call, Storage, Event, Config} = 18, - Treasury: pallet_treasury::{Module, Call, Storage, Event} = 19, + Treasury: pallet_treasury::{Module, Call, Storage, Config, Event} = 19, // Claims. Usable initially. Claims: claims::{Module, Call, Storage, Event, Config, ValidateUnsigned} = 24, @@ -986,6 +1004,13 @@ construct_runtime! { // Multisig dispatch. Late addition. Multisig: pallet_multisig::{Module, Call, Storage, Event} = 30, + + // Bounties module. + Bounties: pallet_bounties::{Module, Call, Storage, Event} = 34, + + // Tips module. + Tips: pallet_tips::{Module, Call, Storage, Event} = 35, + } } @@ -1301,6 +1326,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, claims, Claims); // Substrate add_benchmark!(params, batches, pallet_balances, Balances); + add_benchmark!(params, batches, pallet_bounties, Bounties); add_benchmark!(params, batches, pallet_collective, Council); add_benchmark!(params, batches, pallet_democracy, Democracy); add_benchmark!(params, batches, pallet_elections_phragmen, ElectionsPhragmen); @@ -1315,6 +1341,7 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, pallet_staking, Staking); add_benchmark!(params, batches, frame_system, SystemBench::); add_benchmark!(params, batches, pallet_timestamp, Timestamp); + add_benchmark!(params, batches, pallet_tips, Tips); add_benchmark!(params, batches, pallet_treasury, Treasury); add_benchmark!(params, batches, pallet_utility, Utility); add_benchmark!(params, batches, pallet_vesting, Vesting); diff --git a/polkadot/runtime/polkadot/src/weights/mod.rs b/polkadot/runtime/polkadot/src/weights/mod.rs index 19269d0261..0411000b1c 100644 --- a/polkadot/runtime/polkadot/src/weights/mod.rs +++ b/polkadot/runtime/polkadot/src/weights/mod.rs @@ -32,3 +32,5 @@ pub mod pallet_timestamp; pub mod pallet_treasury; pub mod pallet_utility; pub mod pallet_vesting; +pub mod pallet_bounties; +pub mod pallet_tips; diff --git a/polkadot/runtime/polkadot/src/weights/pallet_bounties.rs b/polkadot/runtime/polkadot/src/weights/pallet_bounties.rs new file mode 100644 index 0000000000..75756c905f --- /dev/null +++ b/polkadot/runtime/polkadot/src/weights/pallet_bounties.rs @@ -0,0 +1,109 @@ +// This file is part of Substrate. + +// Copyright (C) 2020 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for pallet_bounties +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 +//! DATE: 2020-11-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 + +// Executed Command: +// target/release/substrate +// benchmark +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_bounties +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./frame/bounties/src/weights.rs +// --template=./.maintain/frame-weight-template.hbs + + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weights for pallet_bounties using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); +impl pallet_bounties::WeightInfo for WeightInfo { + fn propose_bounty(d: u32, ) -> Weight { + (64_778_000 as Weight) + // Standard Error: 0 + .saturating_add((1_000 as Weight).saturating_mul(d as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn approve_bounty() -> Weight { + (18_293_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn propose_curator() -> Weight { + (14_248_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn unassign_curator() -> Weight { + (52_100_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn accept_curator() -> Weight { + (52_564_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn award_bounty() -> Weight { + (37_426_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn claim_bounty() -> Weight { + (176_077_000 as Weight) + .saturating_add(T::DbWeight::get().reads(4 as Weight)) + .saturating_add(T::DbWeight::get().writes(5 as Weight)) + } + fn close_bounty_proposed() -> Weight { + (51_162_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } + fn close_bounty_active() -> Weight { + (116_907_000 as Weight) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(4 as Weight)) + } + fn extend_bounty_expiry() -> Weight { + (36_419_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn spend_funds(b: u32, ) -> Weight { + (7_562_000 as Weight) + // Standard Error: 16_000 + .saturating_add((77_328_000 as Weight).saturating_mul(b as Weight)) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight))) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight))) + } +} diff --git a/polkadot/runtime/polkadot/src/weights/pallet_tips.rs b/polkadot/runtime/polkadot/src/weights/pallet_tips.rs new file mode 100644 index 0000000000..d9689abb05 --- /dev/null +++ b/polkadot/runtime/polkadot/src/weights/pallet_tips.rs @@ -0,0 +1,78 @@ +// This file is part of Substrate. + +// Copyright (C) 2020 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for pallet_tips +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 +//! DATE: 2020-11-20, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 + +// Executed Command: +// target/release/substrate +// benchmark +// --chain=dev +// --steps=50 +// --repeat=20 +// --pallet=pallet_tips +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=./frame/tips/src/weights.rs +// --template=./.maintain/frame-weight-template.hbs + + +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weights for pallet_tips using the Substrate node and recommended hardware. +pub struct WeightInfo(PhantomData); +impl pallet_tips::WeightInfo for WeightInfo { + fn report_awesome(r: u32, ) -> Weight { + (70_338_000 as Weight) + .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn retract_tip() -> Weight { + (59_051_000 as Weight) + .saturating_add(T::DbWeight::get().reads(1 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn tip_new(r: u32, t: u32, ) -> Weight { + (41_984_000 as Weight) + .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) + .saturating_add((180_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(2 as Weight)) + } + fn tip(t: u32, ) -> Weight { + (33_313_000 as Weight) + .saturating_add((700_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } + fn close_tip(t: u32, ) -> Weight { + (110_781_000 as Weight) + .saturating_add((364_000 as Weight).saturating_mul(t as Weight)) + .saturating_add(T::DbWeight::get().reads(3 as Weight)) + .saturating_add(T::DbWeight::get().writes(3 as Weight)) + } +} diff --git a/polkadot/runtime/polkadot/src/weights/pallet_treasury.rs b/polkadot/runtime/polkadot/src/weights/pallet_treasury.rs index 1075855224..6ab5b0e545 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_treasury.rs +++ b/polkadot/runtime/polkadot/src/weights/pallet_treasury.rs @@ -44,123 +44,26 @@ use sp_std::marker::PhantomData; pub struct WeightInfo(PhantomData); impl pallet_treasury::WeightInfo for WeightInfo { fn propose_spend() -> Weight { - (54_574_000 as Weight) + (55_957_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn reject_proposal() -> Weight { - (85_554_000 as Weight) + (45_616_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(2 as Weight)) } fn approve_proposal() -> Weight { - (11_791_000 as Weight) + (13_362_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } - fn report_awesome(r: u32, ) -> Weight { - (67_174_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn retract_tip() -> Weight { - (56_466_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn tip_new(r: u32, t: u32, ) -> Weight { - (42_193_000 as Weight) - // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(r as Weight)) - // Standard Error: 0 - .saturating_add((149_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn tip(t: u32, ) -> Weight { - (28_405_000 as Weight) - // Standard Error: 1_000 - .saturating_add((705_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn close_tip(t: u32, ) -> Weight { - (106_075_000 as Weight) - // Standard Error: 0 - .saturating_add((361_000 as Weight).saturating_mul(t as Weight)) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) - } - fn propose_bounty(d: u32, ) -> Weight { - (58_025_000 as Weight) - // Standard Error: 0 - .saturating_add((1_000 as Weight).saturating_mul(d as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn approve_bounty() -> Weight { - (15_338_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn propose_curator() -> Weight { - (12_080_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn unassign_curator() -> Weight { - (69_557_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn accept_curator() -> Weight { - (47_745_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } - fn award_bounty() -> Weight { - (33_468_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } - fn claim_bounty() -> Weight { - (161_390_000 as Weight) - .saturating_add(T::DbWeight::get().reads(4 as Weight)) - .saturating_add(T::DbWeight::get().writes(5 as Weight)) - } - fn close_bounty_proposed() -> Weight { - (68_016_000 as Weight) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().writes(3 as Weight)) - } - fn close_bounty_active() -> Weight { - (106_292_000 as Weight) - .saturating_add(T::DbWeight::get().reads(3 as Weight)) - .saturating_add(T::DbWeight::get().writes(4 as Weight)) - } - fn extend_bounty_expiry() -> Weight { - (32_515_000 as Weight) - .saturating_add(T::DbWeight::get().reads(1 as Weight)) - .saturating_add(T::DbWeight::get().writes(1 as Weight)) - } fn on_initialize_proposals(p: u32, ) -> Weight { - (72_159_000 as Weight) - // Standard Error: 26_000 - .saturating_add((72_167_000 as Weight).saturating_mul(p as Weight)) + (74_689_000 as Weight) + .saturating_add((71_943_000 as Weight).saturating_mul(p as Weight)) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(p as Weight))) .saturating_add(T::DbWeight::get().writes(2 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(p as Weight))) } - fn on_initialize_bounties(b: u32, ) -> Weight { - (66_526_000 as Weight) - // Standard Error: 18_000 - .saturating_add((71_398_000 as Weight).saturating_mul(b as Weight)) - .saturating_add(T::DbWeight::get().reads(2 as Weight)) - .saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight))) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(b as Weight))) - } }