Shaun Wang
2e5522444a
Replace 'Module' with 'Pallet' in construct_runtime macro ( #8372 )
...
* Use 'Pallet' struct in construct_runtime.
* Fix genesis and metadata macro.
* Fix 'Pallet' type alias.
* Replace 'Module' with 'Pallet' for all construct_runtime use cases.
* Replace more deprecated 'Module' struct.
* Bring back AllModules and AllPalletsWithSystem type, but deprecate them.
* Replace deprecated 'Module' struct from merge master.
* Minor fix.
* Fix UI tests.
* Revert UI override in derive_no_bound.
* Fix more deprecated 'Module' use from master branch.
* Fix more deprecated 'Module' use from master branch.
2021-03-18 08:50:08 +00:00
Shaun Wang and Shawn Tabrizi
c7d32ba9a6
Migrate pallet-babe to pallet attribute macro. ( #8310 )
...
* Migrate pallet-babe to pallet attribute macro.
* Remove unnecessary bound in pallet storage.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-03-17 20:47:39 +00:00
Shaun Wang and Bastian Köcher
844e25522c
Support pallet::storage conditional compilation ( #8324 )
...
* Support pallet::storage conditional compilation.
* Add docs for cfg attributes.
* Keep strong types for get cfg attrs return.
* Update frame/support/procedural/src/pallet/parse/helper.rs
* Update frame/support/procedural/src/pallet/parse/storage.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-03-16 08:51:51 +00:00
Shaun Wang
3fbe22f552
Migrate pallet-timestamp to pallet attribute macro. ( #8078 )
...
* Migrate pallet-timestamp to pallet attribute macro.
* Migrate inherent.
* Unify private visbility.
* Update benchmarking.
* Update storage usages.
2021-02-10 14:00:41 +00:00
Shaun Wang
445cf86762
Pallet attribute macro migrate guidelines minor fixes ( #8094 )
...
* Fix pallet attribute macro guidelines.
* Typo fixes.
2021-02-10 12:22:39 +01:00
Shaopeng Wang
06b432caba
frame-system: Index type 'MaybeSerializeDeserialize' bound. ( #8035 )
2021-02-03 11:45:52 +01:00
Shaopeng Wang
a531c5b762
Implement 'transactional' annotation for runtime functions. ( #6763 )
...
* Implement 'transactional' annotation for runtime functions.
* Allow function attributes for dispatchable calls in decl_module.
* decl_module docs: add transactional function example.
* decl_module docs: add function attributes notes.
* Fix license header.
2020-08-12 09:21:36 +00:00
Shaopeng Wang
3a853d4dde
Add mutate_exists to StorageDoubleMap. ( #6704 )
2020-08-04 10:02:24 +02:00
Shaopeng Wang
c0179cb6e7
Add try_mutate_exists to StorageDoubleMap. ( #6694 )
2020-07-21 10:50:37 +02:00
Shaopeng Wang
a6702b7121
decl_module! macro: use 'frame_system' instead of system as default ident ( #6500 )
...
* Use frame_system as default ident.
* Remove unused 'frame_system' to 'system' renaming.
* Fix construct_runtime_ui tests.
* Rename system to frame_system in sudo/utility pallet test.
* Bump runtime impl_version.
* Update formatting.
2020-07-07 23:06:21 +00:00
Shaopeng Wang
1813ba215e
Update stale docstring with 'EnsureOneOf' introduced. ( #6501 )
...
* Update stale docstring with 'EnsureOneOf' introduced.
* Apply review suggestions.
2020-06-25 11:33:47 +02:00
Shaopeng Wang
a43a755a91
FixedPointNumber: zero is not positive. ( #6385 )
2020-06-18 09:35:49 +02:00
Shaopeng Wang
ccdac645c8
"OR gate" for EnsureOrigin ( #6237 )
...
* 'OR gate' for EnsureOrigin.
* Formatting.
* More formatting.
* Add docstring; Update 'Success' type.
* Bump runtime impl_version.
* Fix successful_origin.
* Add either into std feature list.
* Update docs.
2020-06-10 11:11:26 +02:00
Shaopeng Wang
c2e6b91794
Perthings: derive PartialOrd and Ord under no_std. ( #4309 )
2019-12-06 09:52:42 +01:00