Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

New Add a Pallet Tutorial with Nicks Pallet #627

Merged
merged 11 commits into from
Aug 21, 2020
Merged

Conversation

danforbes
Copy link
Contributor

  • Updates and refactors to Start a Chain and Build a dApp tutorials.
  • New Add a Pallet tutorial that uses Nicks pallet.
  • Rename existing Add a Pallet tutorial to Add the Contracts Pallet

@danforbes
Copy link
Contributor Author

I'm not sure why CI is reporting that the links are broken...

@danforbes danforbes marked this pull request as draft August 20, 2020 22:25
@danforbes danforbes force-pushed the df-tuts-rework branch 3 times, most recently from 6e78ea7 to 64e696d Compare August 21, 2020 03:04
Copy link
Contributor

@wheresaddie wheresaddie left a comment

Choose a reason for hiding this comment

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

thanks d!

If we look at the Nicks pallet in detail, we know it has:

- Module **Storage**: Because it uses the `decl_storage!` macro.
- Module **Event**s: Because it uses the `decl_event!` macro.
Copy link
Contributor

Choose a reason for hiding this comment

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

Worth mentioning that the Events have type parameters based on the configuration trait so we will use Event<T>?

If you don't like eplaining that level of detail this early on, maybe at least acknowledge it and say learners will understand it later?

The <T> on the end of Event<T> has to do with generic type parameters. That's beyond the scope of this tutorial, but just know it needs to be there for now.

@danforbes danforbes requested a review from JoshOrndorff August 21, 2020 17:02
@danforbes
Copy link
Contributor Author

@JoshOrndorff thanks for the great review. Please pay special attention to the following commits:

  • 7ee4ff1 Rework Terminology Around Traits/Interfaces
  • ec2cc8c Explain Parameterized Events
  • 199a64d Tutorials Should Use Temporary Chains
  • 1ec6aeb Add Back Information About Rust Language

@JoshOrndorff
Copy link
Contributor

Nice updates. Now double approved.

@JoshOrndorff
Copy link
Contributor

Oh, I see its still a draft.

@danforbes danforbes marked this pull request as ready for review August 21, 2020 18:20
@danforbes
Copy link
Contributor Author

My bad...just took it out of draft. That was just a leftover.

@danforbes danforbes merged commit 23da1c3 into source Aug 21, 2020
@danforbes danforbes deleted the df-tuts-rework branch August 21, 2020 18:21
@danforbes
Copy link
Contributor Author

This addressed polkadot-developers/tutorials#17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants