Files
pezkuwi-subxt/prdoc/pr_3460.prdoc
T
Kian Paimani 4c810609d6 Repot all templates into a single directory (#3460)
The first step towards
https://github.com/paritytech/polkadot-sdk/issues/3155

Brings all templates under the following structure

```
templates
|   parachain
|   |   polkadot-launch
|   |   runtime              --> parachain-template-runtime
|   |   pallets              --> pallet-parachain-template
|   |   node                 --> parachain-template-node
|   minimal
|   |   runtime              --> minimal-template-runtime
|   |   pallets              --> pallet-minimal-template
|   |   node                 --> minimal-template-node
|   solochain
|   |   runtime              --> solochain-template-runtime
|   |   pallets              --> pallet-template (the naming is not consistent here)
|   |   node                 --> solochain-template-node
```

The only note-worthy changes in this PR are: 

- More `Cargo.toml` fields are forwarded to use the one from the
workspace.
- parachain template now has weights and benchmarks
- adds a shell pallet to the minimal template
- remove a few unused deps 


A list of possible follow-ups: 

- [ ] Unify READMEs, create a parent README for all
- [ ] remove references to `docs.substrate.io` in templates
- [ ] make all templates use `#[derive_impl]`
- [ ] update and unify all licenses
- [ ] Remove polkadot launch, use
https://github.com/paritytech/polkadot-sdk/blob/35349df993ea2e7c4769914ef5d199e787b23d4c/cumulus/zombienet/examples/small_network.toml
instead.
2024-03-05 11:40:37 +00:00

27 lines
1.4 KiB
Plaintext

# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Repot all templates
doc:
- audience: Runtime Dev
description: |
This PR moves all templates into a single folder in the polkadot-sdk repo (`/templates`) and
unifies their crate names as well. Most notably, the crate name for what was formerly known
as `node-template` is no `solochain-template-node`. The other two crates in the template are
consequently called: `solochain-runtime-template` and `pallet-solochain-template`.
The other two template crate names follow a similar patter, just replacing `solochain` with
`parachain` or `minimal`.
This PR is part of a bigger step toward automating the template repositories, see the
following: https://github.com/paritytech/polkadot-sdk/issues/3155
# the following crates are removed and renamed, although none are released.
crates:
- name: minimal-template-runtime # formerly called minimal-runtime
- name: minimal-template-node # formerly called minimal-node
- name: solochain-template-node # formerly called node-template
- name: solochain-template-runtime # formerly called node-template-runtime
- name: parachain-template-runtime # formerly called parachain-runtime
- name: parachain-template-runtime # formerly called parachain-node