Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Adds example for dev_mode and updates doc #13944

Merged
merged 5 commits into from
Apr 19, 2023
Merged

Conversation

gupnik
Copy link
Contributor

@gupnik gupnik commented Apr 18, 2023

As discussed in #13815.

@gupnik gupnik added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Apr 18, 2023
frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
Ok(())
}

#[pallet::call_index(1)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think making this optional is also a clear good next step for dev-mode 👍

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good start, although I hope we can also revise both this and example/ basic in a more fundamental manner -- I think a lot of the existing features that are put into these example pallets are somewhat nonsensical and could be improved.

I can imagine set of 4 example pallets:

  1. template: a shell pallet, it is your starting point.
  2. basic: one that has a small set of features, akin to a smart contract
  3. kitchensink: one that has ALL of the features.
  4. dev-mode: meant to demonstrate the difference between the latter and dev-mode.

I can actually work on this myself as a part of doc-revamp.

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start!

frame/examples/dev-mode/src/lib.rs Outdated Show resolved Hide resolved
@gupnik gupnik merged commit 54ce95e into master Apr 19, 2023
@gupnik gupnik deleted the gupnik/optional_hashers_doc branch April 19, 2023 10:54
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* Adds example for dev_mode and updates doc

* Addresses review comments

* Update frame/examples/dev-mode/src/lib.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Addresses review comment

---------

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants