mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +00:00
Rename PAINT to PALETTE (#4161)
* /paint to /palette * rename paint to palette * rename the modules in palette to be pallets * update Structure.adoc * bump impl * fix CI directory * Update docs/Structure.adoc Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org>
This commit is contained in:
committed by
Benjamin Kampmann
parent
512c86a72f
commit
2783b44207
@@ -40,22 +40,22 @@
|
||||
/primitives/rpc/ @tomusdrw
|
||||
|
||||
# GRANDPA, BABE, consensus stuff
|
||||
/paint/babe/ @andresilva @DemiMarie-parity
|
||||
/paint/grandpa/ @andresilva @DemiMarie-parity
|
||||
/palette/babe/ @andresilva @DemiMarie-parity
|
||||
/palette/grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/finality-grandpa/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/babe/ @andresilva @DemiMarie-parity
|
||||
/client/consensus/slots/ @andresilva @DemiMarie-parity
|
||||
|
||||
# Contracts
|
||||
/paint/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/paint/contracts/src/wasm/runtime.rs @Robbepop
|
||||
/palette/contracts/ @pepyakin @thiolliere @jimpo
|
||||
/palette/contracts/src/wasm/runtime.rs @Robbepop
|
||||
|
||||
# Inflation points
|
||||
/paint/staking/src/inflation.rs @thiolliere
|
||||
/palette/staking/src/inflation.rs @thiolliere
|
||||
|
||||
# NPoS and Governance
|
||||
/paint/staking/ @kianenigma
|
||||
/paint/election/ @kianenigma
|
||||
/palette/staking/ @kianenigma
|
||||
/palette/election/ @kianenigma
|
||||
|
||||
# End to end testing of substrate node
|
||||
/bin/node/executor/ @kianenigma
|
||||
@@ -64,4 +64,4 @@
|
||||
/primitives/sr-primitives/src/weights.rs @kianenigma
|
||||
|
||||
# Support crates
|
||||
/paint/support/ @thiolliere @kianenigma
|
||||
/palette/support/ @thiolliere @kianenigma
|
||||
|
||||
@@ -272,7 +272,7 @@ You can run all the tests if you like:
|
||||
[source, shell]
|
||||
cargo test --all
|
||||
|
||||
Or just run the tests of a specific package (i.e. `cargo test -p paint-assets`)
|
||||
Or just run the tests of a specific package (i.e. `cargo test -p pallet-assets`)
|
||||
|
||||
You can start a development chain with:
|
||||
|
||||
@@ -446,9 +446,9 @@ substrate-trie
|
||||
sr-api, sr-io, sr-primitives, sr-sandbox, sr-std, sr-version
|
||||
* Substrate Runtime Module Library (SRML)
|
||||
[source, shell]
|
||||
paint-assets, paint-balances, paint-consensus, paint-contracts, paint-council, paint-democracy, paint-example,
|
||||
paint-executive, paint-metadata, paint-session, paint-staking, paint-support, paint-system, paint-timestamp,
|
||||
paint-treasury
|
||||
pallet-assets, pallet-balances, palette-consensus, pallet-contracts, palette-council, pallet-democracy, pallet-example,
|
||||
palette-executive, palette-metadata, pallet-session, pallet-staking, palette-support, palette-system, pallet-timestamp,
|
||||
pallet-treasury
|
||||
* Node
|
||||
[source, shell]
|
||||
node-cli, node-consensus, node-executor, node-network, node-primitives, node-runtime
|
||||
|
||||
@@ -11,7 +11,7 @@ Substrate is split into multiple levels with increasing opinion and decreasing f
|
||||
|
||||
* primitives
|
||||
* client
|
||||
* PAINT (formerly `srml`)
|
||||
* PALETTE (formerly `srml`)
|
||||
|
||||
Putting all these components together we have:
|
||||
|
||||
@@ -35,21 +35,31 @@ In the lowest level, Substrate defines primitives, interfaces and traits to impl
|
||||
* _found in_: `/client`
|
||||
* _crates prefix_: `substrate-`
|
||||
* _constraints_:
|
||||
** crates may not (dev-)depend on any `paint-`-crates
|
||||
** crates may not (dev-)depend on any `palette-`-crates
|
||||
|
||||
In the client you can find a set of crates to construct the outer substrate-node, implementing outer runtime interfaces, thus it depends on `runtime`. It provides the outer building blocks like transaction queue, networking layer, database backend, full* and light-client support.
|
||||
|
||||
=== PAINT (formerly `srml`)
|
||||
=== PALETTE (formerly `srml`)
|
||||
|
||||
* _found in_: `/paint`
|
||||
* _crates prefix_: `paint-`
|
||||
* _found in_: `/palette`
|
||||
* _crates prefix_: `palette-` and `pallet-`
|
||||
* _constraints_:
|
||||
** all crates that go on chain, must be `[no_std]`
|
||||
** all crates that go on chain must be `[no_std]`
|
||||
** must not (dev-)depend on anything in `/client`
|
||||
|
||||
PAINT, the Parity Application Interface for Network-wide Transitions, is a set of modules implementing specific transition functions and features one (might) want to have in their runtime.
|
||||
PALETTE is a set of modules that implement specific transition functions and features one might want to have in their runtime.
|
||||
|
||||
=== integration tests
|
||||
_Pallets_ are individual modules within _Palette._ These are containers that host domain-specific logic. They have the `pallet-` prefix. For example, `pallet-staking` contains logic for staking tokens.
|
||||
|
||||
There are a few crates with the `palette-` prefix. These do not contain domain-specific logic. Rather, they are the main Palette support infrastructure. These are:
|
||||
|
||||
- Executive
|
||||
- Metadata
|
||||
- Support
|
||||
- System
|
||||
- Utility
|
||||
|
||||
=== Integration Tests
|
||||
|
||||
* _found in_: `/test`
|
||||
* _crates prefix_: `substrate-test`
|
||||
@@ -69,7 +79,7 @@ We also provide some binaries pulling from the components creating full applicat
|
||||
|
||||
* _found in_: `/bin/node`
|
||||
|
||||
The default (testing) application pulling together our recommended setup of substrate-client with a wasm-contracts-supporting paint-runtime. The node pulls it all together, constructs the (upgradable) runtime, and wires up the client around it. You can find an example client, which includes a full wasm-contracts chain in `node`. This is also what is being built and run if you do `cargo run`.
|
||||
The default (testing) application pulling together our recommended setup of substrate-client with a wasm-contracts-supporting palette-runtime. The node pulls it all together, constructs the (upgradable) runtime, and wires up the client around it. You can find an example client, which includes a full wasm-contracts chain in `node`. This is also what is being built and run if you do `cargo run`.
|
||||
|
||||
==== Node Template
|
||||
|
||||
@@ -89,7 +99,7 @@ Subkey is a client library to generate keys and sign transactions to send to a s
|
||||
....
|
||||
+---------------+ +----------------+
|
||||
| | | |
|
||||
| runtime +<------+ paint |
|
||||
| runtime +<------+ palette |
|
||||
| | | |
|
||||
+------+-----+--+ +-------------+--+
|
||||
^ ^ ^
|
||||
|
||||
Reference in New Issue
Block a user