Add documentation around pallet coupling (#3542)

substrate.io deprecation companion:
https://github.com/substrate-developer-hub/substrate-docs/pull/2139
pba-content companion:
https://github.com/Polkadot-Blockchain-Academy/pba-content/pull/978

partially inspired by:
https://github.com/paritytech/polkadot-sdk/issues/3535

---------

Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
This commit is contained in:
Kian Paimani
2024-03-07 11:40:30 +00:00
committed by GitHub
parent 30c32e3d84
commit 50cc1c2f7e
6 changed files with 378 additions and 81 deletions
+2 -3
View File
@@ -1531,9 +1531,8 @@ pub mod pallet_macros {
/// The attribute currently only supports enum definitions, and identifiers that are named
/// `FreezeReason`, `HoldReason`, `LockId` or `SlashReason`. Arbitrary identifiers for the
/// enum are not supported. The aggregate enum generated by
/// [`frame_support::construct_runtime`](frame_support::construct_runtime) will have the
/// name of `RuntimeFreezeReason`, `RuntimeHoldReason`, `RuntimeLockId` and
/// `RuntimeSlashReason` respectively.
/// [`frame_support::construct_runtime`] will have the name of `RuntimeFreezeReason`,
/// `RuntimeHoldReason`, `RuntimeLockId` and `RuntimeSlashReason` respectively.
///
/// NOTE: The aggregate enum generated by `construct_runtime` generates a conversion
/// function from the pallet enum to the aggregate enum, and automatically derives the