7d0252784d
Companion for Recovery Pallet benchmarking #11176 ( #5366 )
...
* benchmarking for `pallet_recovery`
* Added WeightInfo implementation for pallet_recovery
* Update Cargo.lock
* Update Cargo.toml
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2022-04-26 13:09:03 +00:00
8a9961b48e
Recovery Pallet benchmarking ( #11176 )
...
* Created benchmarks
* Added recovery benchmarks
* benchmark for `create_recovery`
* benchmark for `initiate_recovery`
* benchmark for `vouch_recovery`
* benchmark for `claim_recovery`
* benchmark for `close_recovery`
* benchmark for `remove_recovery`
* benchmark for `cancel_recovered`
* benchmark for `as_recovered`
* Some refactoring
* Some refactoring
* Fix create_recovery benchmark
* fix close_recovery benchmark test
* fixed issues with failing tests
* Update frame/recovery/src/benchmarking.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* removed repetitive code
* create weights file
* Used weights to annotate extrinsics
* Added WeightInfo implementation to mock
* Beauty fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/recovery/src/benchmarking.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/recovery/src/benchmarking.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Set vec to be mut
* set delay_period to use non-zero amount
* set delay default
* Add weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-04-26 11:57:55 +00:00
56fb1cfbb6
Used CountedStorageMap in pallet-staking ( #10233 )
...
* Removed counters and used CountedStorageMap instead.
* Little refactoring
* Update frame/staking/src/migrations.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Removed redundant code to update counter for validator & nominator.
* Removed redundant code to update counter for validator & nominator.
* Removed unreachable code to inject the hashed prefix for nominator & validator.
* Removed redundant check for nominator & validator count.
* Generated `fn prefix_hash` for `CountedStorageMap`.
* Applied changes from `cargo fmt`
* Possible correct implementation of migration code
* Implemented fn module_prefix, storage_prefix and prefix_hash.
* Removed counted_map.rs
* Renamed `fn storage_prefix` to `storage_counter_prefix`.
* Update frame/support/src/storage/types/counted_map.rs
* Update frame/bags-list/remote-tests/src/snapshot.rs
* Update frame/support/src/storage/types/counted_map.rs
* Fixed errors.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-12-07 09:21:27 +00:00
Ayevbeosa Iyamu and Alexander Theißen
8a5bb77e03
Add field names to pallet Event variants ( #10184 )
...
* Changed named fields to struct variants
* Fixed errors.
* Made adjustments as per `cargo +nightly fmt`.
* Update frame/uniques/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Removed redundant comments for structs.
* Moved frame-support to dev dependencies
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-11-15 19:16:03 +00:00