Society v2 (#11324)
* New Society * More logic drafting * More work * Building * Some tests * Fixes * Improvements to the voting process * More tests * Test number 20 * Tests * 30 tests * Another test] * All tests enabled * Minor stuff * generate_storage_alias: Rewrite as proc macro attribute This rewrites the `generate_storage_alias!` declarative macro as proc-macro attribute. While doing this the name is changed to `storage_alias`. The prefix can now also be the name of a pallet. This makes storage aliases work in migrations for all kind of chains and not just for the ones that use predefined prefixes. * Maintenance operations don't pay fee * Fix compilation and FMT * Moare fixes * Migrations * Fix tests and add migration testing * Introduce lazy-cleanup and avoid unbounded prefix removal * Fixes * Fixes * [WIP][Society] Adding benchmarking to the v2. (#11776) * [Society] Adding benchmarking to the v2. * [Society] Code review. * [Society] Better code. * Using clear() + clear_prefix() and adding more tests. * Benchmarking again... * Fix Cargo * Fixes * Fixes * Spelling * Fix benchmarks * Another fix * Remove println --------- Co-authored-by:Bastian Köcher <info@kchr.de> Co-authored-by:
Artur Gontijo <arturgontijo@users.noreply.github.com>
Showing
- substrate/Cargo.lock 6 additions, 2 deletionssubstrate/Cargo.lock
- substrate/bin/node/cli/src/chain_spec.rs 1 addition, 9 deletionssubstrate/bin/node/cli/src/chain_spec.rs
- substrate/bin/node/runtime/src/lib.rs 12 additions, 12 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/bin/node/testing/src/genesis.rs 1 addition, 1 deletionsubstrate/bin/node/testing/src/genesis.rs
- substrate/frame/asset-conversion/src/benchmarking.rs 1 addition, 1 deletionsubstrate/frame/asset-conversion/src/benchmarking.rs
- substrate/frame/core-fellowship/src/benchmarking.rs 1 addition, 1 deletionsubstrate/frame/core-fellowship/src/benchmarking.rs
- substrate/frame/democracy/src/vote.rs 1 addition, 1 deletionsubstrate/frame/democracy/src/vote.rs
- substrate/frame/nft-fractionalization/src/benchmarking.rs 1 addition, 1 deletionsubstrate/frame/nft-fractionalization/src/benchmarking.rs
- substrate/frame/salary/src/benchmarking.rs 1 addition, 1 deletionsubstrate/frame/salary/src/benchmarking.rs
- substrate/frame/society/Cargo.toml 16 additions, 4 deletionssubstrate/frame/society/Cargo.toml
- substrate/frame/society/src/benchmarking.rs 376 additions, 0 deletionssubstrate/frame/society/src/benchmarking.rs
- substrate/frame/society/src/lib.rs 1142 additions, 840 deletionssubstrate/frame/society/src/lib.rs
- substrate/frame/society/src/migrations.rs 329 additions, 0 deletionssubstrate/frame/society/src/migrations.rs
- substrate/frame/society/src/mock.rs 144 additions, 47 deletionssubstrate/frame/society/src/mock.rs
- substrate/frame/society/src/tests.rs 840 additions, 486 deletionssubstrate/frame/society/src/tests.rs
- substrate/frame/society/src/weights.rs 375 additions, 0 deletionssubstrate/frame/society/src/weights.rs
- substrate/frame/support/src/storage/mod.rs 12 additions, 0 deletionssubstrate/frame/support/src/storage/mod.rs
- substrate/frame/support/src/storage/types/map.rs 28 additions, 0 deletionssubstrate/frame/support/src/storage/types/map.rs
- substrate/frame/support/src/traits/storage.rs 6 additions, 0 deletionssubstrate/frame/support/src/traits/storage.rs
- substrate/primitives/core/Cargo.toml 1 addition, 1 deletionsubstrate/primitives/core/Cargo.toml
Please register or sign in to comment