Kian Paimani
eaf1bc5633
Introduce Polkadot-Sdk developer_hub ( #2102 )
...
This PR introduces the new crate `developer_hub` into the polkadot-sdk
repo. The vision for the developer-hub crate is detailed in [this
document](https://docs.google.com/document/d/1XLLkFNE8v8HLvZpI2rzsa8N2IN1FcKntc8q-Sc4xBAk/edit?usp=sharing ).
<img width="1128" alt="Screenshot 2023-11-02 at 10 45 48"
src="https://github.com/paritytech/polkadot-sdk/assets/5588131/1e12b60f-fef5-42c4-8503-a3ba234077c3 ">
Other than adding the new crate, it also does the following:
* Remove the `substrate` crate, as there is now a unique umbrella crate
for multiple things in `developer_hub::polkadot_sdk`.
* (backport candidate) A minor change to `frame-support` macros that
allows `T::RuntimeOrigin` to also be acceptable as the origin type.
* (backport candidate) A minor change to `frame-system` that allows us
to deposit events at genesis because now the real genesis config is
generated via wasm, and we can safely assume `cfg!(feature = "std")`
means only testing. related to #62 .
* (backport candidate) Introduces a small `read_events_for_pallet` to
`frame_system` for easier event reading in tests.
* From https://github.com/paritytech/polkadot-sdk-docs/issues/31 , it
takes action on improving the `pallet::call` docs.
* From https://github.com/paritytech/polkadot-sdk-docs/issues/31 , it
takes action on improving the `UncheckedExtrinsic` docs.
## Way Forward
First, a version of this is deployed temporarily
[here](https://blog.kianenigma.nl/polkadot-sdk/developer_hub/index.html ).
I will keep it up to date on a daily basis.
### This Pull Request
I see two ways forward:
1. We acknowledge that everything in `developer-hub` is going to be WIP,
and merge this asap. We should not yet use links to this crate anywhere.
2. We make this be the feature branch, make PRs against this, and either
gradually backport it, or only merge to master once it is done.
I am personally in favor of option 1. If we stick to option 2, we need a
better way to deploy a staging version of this to gh-pages.
### Issue Tracking
The main issues related to the future of `developer_hub` are:
- https://github.com/paritytech/polkadot-sdk-docs/issues/31
- https://github.com/paritytech/polkadot-sdk-docs/issues/4
- https://github.com/paritytech/polkadot-sdk-docs/issues/26
- https://github.com/paritytech/polkadot-sdk-docs/issues/32
- https://github.com/paritytech/polkadot-sdk-docs/issues/36
### After This Pull Request
- [ ] create a redirect for
https://paritytech.github.io/polkadot-sdk/master/substrate/
- [x] analytics
- [ ] link checker
- [ ] the matter of publishing, and how all of these relative links for
when we do, that is still an open question. There is section on this in
the landing page.
- [ ] updated https://paritytech.github.io/
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: Juan Girini <juangirini@gmail.com >
Co-authored-by: bader y <ibnbassem@gmail.com >
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
Co-authored-by: James Wilson <james@jsdw.me >
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
2023-11-30 12:15:46 +01:00
Liam Aharon
ffbc395d84
Free standing elections-phragmen and tips Gov V1 unlock/unreserve migrations ( #14779 )
...
* standalone elections-phragmen migration
* standalone tips migration
* remove redundant comment
2023-08-16 15:58:05 +00:00
Liam Aharon
c628742506
migration(tips): unreserve deposits ( #14241 )
...
* unreserve all tip funds migration
* improve test
* fix comment
* implement weights
* saturating_accrue
* remove unnecessary collect
* prefer ensure
* use assert
* use saturating_add
* use saturating_accrue
* test pre_upgrade and post_upgrade
* remove pallet_treasury bound
* resolve pr comments
* rename migration
* kick ci
* kick ci
2023-06-05 09:15:15 +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
Bastian Köcher
f3662b4bba
Happy new year 2022 ( #10573 )
2022-01-03 09:22:14 +01:00
Qinxuan Chen
7deed34d64
Migrate pallet-tips to the new pallet attribute macro ( #9711 )
...
* Migrate pallet-tips to the new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-09-14 00:04:09 +00:00