Benchmark Democracy Pallet (#5257)
* Add origin bounds to benchmark macro. * Add democracy benchmark. * Fix tests * Remove collective from frame/benchmarking, partially use EnsureOrigin. * Remove collective stuff. * Make previous benches compile again. * Remove comments. * Make prev bench to work again. * Add remove votes. * Add new proxy calls. * Add runtime-benchmarks guard to EnsureOrigin and implementations. * Refactor. * Add missing import. * Remove duplicated import * Fix features. * Add some missing features. * Update frame/collective/Cargo.toml Co-Authored-By:Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/democracy/src/benchmarking.rs Co-Authored-By:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/democracy/src/benchmarking.rs Co-Authored-By:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Add referendums to state. * populate vecs before call * Update weight docs * More fixes and weight docs * More updates Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by:
Shawn Tabrizi <shawntabrizi@gmail.com>
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/bin/node/runtime/Cargo.toml 5 additions, 1 deletionsubstrate/bin/node/runtime/Cargo.toml
- substrate/bin/node/runtime/src/lib.rs 7 additions, 0 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/collective/Cargo.toml 5 additions, 2 deletionssubstrate/frame/collective/Cargo.toml
- substrate/frame/collective/src/lib.rs 21 additions, 1 deletionsubstrate/frame/collective/src/lib.rs
- substrate/frame/democracy/Cargo.toml 7 additions, 0 deletionssubstrate/frame/democracy/Cargo.toml
- substrate/frame/democracy/src/benchmarking.rs 456 additions, 0 deletionssubstrate/frame/democracy/src/benchmarking.rs
- substrate/frame/democracy/src/lib.rs 13 additions, 5 deletionssubstrate/frame/democracy/src/lib.rs
- substrate/frame/society/Cargo.toml 4 additions, 0 deletionssubstrate/frame/society/Cargo.toml
- substrate/frame/society/src/lib.rs 6 additions, 0 deletionssubstrate/frame/society/src/lib.rs
- substrate/frame/staking/Cargo.toml 0 additions, 1 deletionsubstrate/frame/staking/Cargo.toml
- substrate/frame/support/Cargo.toml 1 addition, 1 deletionsubstrate/frame/support/Cargo.toml
- substrate/frame/system/Cargo.toml 1 addition, 1 deletionsubstrate/frame/system/Cargo.toml
- substrate/frame/system/src/lib.rs 29 additions, 2 deletionssubstrate/frame/system/src/lib.rs
- substrate/frame/vesting/Cargo.toml 1 addition, 1 deletionsubstrate/frame/vesting/Cargo.toml
- substrate/primitives/runtime/Cargo.toml 1 addition, 0 deletionssubstrate/primitives/runtime/Cargo.toml
- substrate/primitives/runtime/src/traits.rs 6 additions, 0 deletionssubstrate/primitives/runtime/src/traits.rs
Please register or sign in to comment