Sergej Sakac
df87bae1a9
BREAKING - Try-runtime: Use proper error types ( #13993 )
...
* Try-state: DispatchResult as return type
* try_state for the rest of the pallets
* pre_upgrade
* post_upgrade
* try_runtime_upgrade
* fixes
* bags-list fix
* fix
* update test
* warning fix
* ...
* final fixes 🤞
* warning..
* frame-support
* warnings
* Update frame/staking/src/migrations.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* fix
* fix warning
* nit fix
* merge fixes
* small fix
* should be good now
* missed these ones
* introduce TryRuntimeError and TryRuntimeResult
* fixes
* fix
* removed TryRuntimeResult & made some fixes
* fix testsg
* tests passing
* unnecessary imports
* Update frame/assets/src/migration.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-05-23 06:56:10 +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
NingLin-P
f7ac2cd20f
support upgrade hooks to directly pass data ( #12185 )
...
* update interfaces of OnRuntimeUpgrade & Hooks
Signed-off-by: linning <linningde25@gmail.com >
* remove try-runtime for PreStateDigest
Signed-off-by: linning <linningde25@gmail.com >
* remove the Default bound of PreStateDigest
Signed-off-by: linning <linningde25@gmail.com >
* remove try-runtime for PreStateDigest & pre_upgrade
Signed-off-by: linning <linningde25@gmail.com >
* remove tmp storage between upgrade hooks
Signed-off-by: linning <linningde25@gmail.com >
* ensure hooks are storage noop
Signed-off-by: linning <linningde25@gmail.com >
* remove OnRuntimeUpgradeHelpersExt
Signed-off-by: linning <linningde25@gmail.com >
* cargo check & fmt
Signed-off-by: linning <linningde25@gmail.com >
* rename PreStateDigest to PreUpgradeState
Signed-off-by: linning <linningde25@gmail.com >
* replace associate type with codec & vec
Signed-off-by: linning <linningde25@gmail.com >
* add helper strcut to help encode/decode tuple
Signed-off-by: linning <linningde25@gmail.com >
* update comment
Signed-off-by: linning <linningde25@gmail.com >
* fix
Signed-off-by: linning <linningde25@gmail.com >
* add test
Signed-off-by: linning <linningde25@gmail.com >
* address comment
Signed-off-by: linning <linningde25@gmail.com >
* fix doc
Signed-off-by: linning <linningde25@gmail.com >
* fix ci
Signed-off-by: linning <linningde25@gmail.com >
* address comment
Signed-off-by: linning <linningde25@gmail.com >
* add more test cases
Signed-off-by: linning <linningde25@gmail.com >
* make clippy happy
Signed-off-by: linning <linningde25@gmail.com >
* fmt
Signed-off-by: linning <linningde25@gmail.com >
* update comment
Signed-off-by: linning <linningde25@gmail.com >
* fmt
Signed-off-by: linning <linningde25@gmail.com >
Signed-off-by: linning <linningde25@gmail.com >
2022-09-19 10:52:55 +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
Shawn Tabrizi
927019a734
Add Score to Bags List ( #11357 )
...
* Add Score to Bags List
* fix ordering
* make compile
* in progress migration
* make migration compile
* remove old check
* remove runtime specific migration
* fix warning
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improve migration
* fix
* fix merge
* fmt
* Update migrations.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-05-19 16:40:31 +00:00
Bastian Köcher
74428fa8ac
generate_storage_alias: Rewrite as proc macro attribute ( #11387 )
...
* 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.
* Fix compilation and FMT
* Moare fixes
* 🤦
* ......
* Rework the syntax and support instancing
* FMT
* Prefix variants with `Storage`
* Make it compile
* Fix where clause on rust stable
2022-05-17 18:45:56 -04:00
Bastian Köcher
f3662b4bba
Happy new year 2022 ( #10573 )
2022-01-03 09:22:14 +01:00
Kian Paimani
60a50dabed
use CountedMap in pallet-bags-list ( #10179 )
...
* use CountedMap in pallet-bags-list
* Fix build
* Update frame/bags-list/src/list/mod.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* add a check as well
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-11-10 09:33:14 +00:00