-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add pallet macro kitchensink example/template #14052
Conversation
} | ||
); | ||
|
||
/// Using a default config for [`frame_system`] in tests. See `default-config` example for more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it is worth bringing this in as a dependency for linking purposes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to add the default-config
example as a dependency in the kitchensink
example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are not documented AFAIK.
bot fmt |
@gupnik https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2938644 was started for your command Comment |
@gupnik Command |
} | ||
} | ||
|
||
#[pallet::composite_enum] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not everything is documented evenly in this crate.
I actually think this crate should not document all pallet macros, but should only provide a very high level intro, and instead make sure when you hover over each pallet macro, the documentation is excellent.
I have already started this for storage macros in #13987. You can follow the same path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some little details missing, but overall looks good 👍
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
…ate into kiz-pallet-kitchensink
bot fmt |
@gupnik https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2949499 was started for your command Comment |
@gupnik Command |
bot merge |
* add pallet macro kitchen-sink pallet * update * Adds benchmarking setup * Updates APIs * Fixes benchmark * Uses derive_impl for frame_system * Adds benchmarks * Minor update * Adds license * Adds examples crate * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/examples/kitchensink/src/tests.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/examples/kitchensink/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/examples/kitchensink/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Addresses review comments * Addresses review comments * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com> Co-authored-by: command-bot <> Co-authored-by: command-bot <ci@gitlab.parity.io>
* add pallet macro kitchen-sink pallet * update * Adds benchmarking setup * Updates APIs * Fixes benchmark * Uses derive_impl for frame_system * Adds benchmarks * Minor update * Adds license * Adds examples crate * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/examples/kitchensink/src/tests.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/examples/kitchensink/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/examples/kitchensink/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Addresses review comments * Addresses review comments * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com> Co-authored-by: command-bot <> Co-authored-by: command-bot <ci@gitlab.parity.io>
This PR adds a new pallet that is a kitchensink ie gallery of all
#[pallet::xxx]
macros and how to use them.It is part of paritytech/polkadot-sdk#186. paritytech/polkadot-sdk#176 was mostly produced using this pallet.
It goes hand in hand with #13987 which will try and make sure they are all documented as best as possible.