Squirrel
bc2e5e1fe2
sp-std -> core ( #3199 )
...
First in a series of PRs that reduces our use of sp-std with a view to
deprecating it.
This is just looking at /substrate and moving some of the references
from `sp-std` to `core`.
These particular changes should be uncontroversial.
Where macros are used `::core` should be used to remove any ambiguity.
part of https://github.com/paritytech/polkadot-sdk/issues/2101
2024-02-06 13:01:29 +00:00
Vivek Pandya
bc53b9a03a
Remove years from copyright notes. ( #13415 )
...
* Change copyright year to 2023 from 2022
* Fix incorrect update of copyright year
* Remove years from copy right header
* Fix remaining files
* Fix typo in a header and remove update-copyright.sh
2023-02-21 18:46:41 +00:00
Anthony Alaribe
c04e68fd01
introduce log-target constant to more frame pallets ( #13116 )
...
* introduce log-target constant to more frame pallets
* cargo fmt
* make LOG_TARGET in session public
* Update frame/elections-phragmen/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/elections-phragmen/src/migrations/v3.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/elections-phragmen/src/migrations/v3.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/elections-phragmen/src/migrations/v3.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* move LOG_TARGET=runtime::session_historical to migrations module, where it's actually used
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-01-10 19:18:12 +00:00
Shawn Tabrizi
30951822ba
Weight v1.5: Opaque Struct ( #12138 )
...
* initial idea
* update frame_support
* update a bunch more
* add ord
* adjust RuntimeDbWeight
* frame_system builds
* re-export
* frame_support tests pass
* frame_executive compile
* frame_executive builds
* frame_system tests passing
* pallet-utility tests pass
* fix a bunch of pallets
* more
* phragmen
* state-trie-migration
* scheduler and referenda
* pallet-election-provider-multi-phase
* aura
* staking
* more
* babe
* balances
* bunch more
* sudo
* transaction-payment
* asset-tx-payment
* last pallets
* fix alliance merge
* fix node template runtime
* fix pallet-contracts cc @athei
* fix node runtime
* fix compile on runtime-benchmarks feature
* comment
* fix frame-support-test
* fix more tests
* weight regex
* frame system works
* fix a bunch
* more
* more
* more
* more
* more
* more fixes
* update templates
* fix contracts benchmarks
* Update lib.rs
* Update lib.rs
* fix ui
* make scalar saturating mul const
* more const functions
* scalar div
* refactor using constant functions
* move impl
* fix overhead template
* use compactas
* Update lib.rs
2022-08-31 11:26:13 +00:00
Kian Paimani
661d0ea5bb
Store validator self-vote in bags-list, and allow them to be trimmed for election ( #10821 )
...
* Implement the new validator-in-bags-list scenario + migration
* Apply suggestions from code review
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* some review comments
* guard the migration
* some review comments
* Fix tests 🤦♂️
* Fix build
* fix weight_of_fn
* reformat line width
* make const
* use weight of fn cached
* SortedListProvider -> VoterList
* Fix all build and docs
* check post migration
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-03-23 14:17:26 +00:00
Bastian Köcher
f3662b4bba
Happy new year 2022 ( #10573 )
2022-01-03 09:22:14 +01:00
Qinxuan Chen
0b224d1b60
pallet-session: Migrate the historical part to the new pallet macro ( #9878 )
...
* Migrate session-historical to the new pallet macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* pallet-session: Migrate the historical part to the new pallet macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix staking test runtime
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Update frame/session/src/historical/mod.rs
* Update frame/session/src/historical/mod.rs
* update migration doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* use hardcoded prefix for migration v1
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo +nightly-2021-11-08 fmt
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-11-17 16:16:28 +09:00