Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code snippets and move to rust workspace #302

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

0xLucca
Copy link
Collaborator

@0xLucca 0xLucca commented Jan 8, 2025

This PR reorganizes the code snippets in the zero-to-hero tutorial to be part of the Rustr workspace

@0xLucca
Copy link
Collaborator Author

0xLucca commented Jan 8, 2025

@UtkarshBhardwaj007 I have migrated the existing code for the current tutorials. I'll wait until the benchmarking PR is merged so I can include that here

@UtkarshBhardwaj007
Copy link
Collaborator

@UtkarshBhardwaj007 I have migrated the existing code for the current tutorials. I'll wait until the benchmarking PR is merged so I can include that here

Thanks, this is great. I believe you mean this PR? It is merged now and you should be able to use it. I'll review once you do :)

@0xLucca 0xLucca marked this pull request as ready for review January 9, 2025 15:34
@0xLucca 0xLucca requested a review from a team as a code owner January 9, 2025 15:34
frame-system = { version = "38.0.0", default-features = false }
scale-info = { version = "2.11.1", default-features = false }
sp-runtime = { version = "39.0.5", default-features = false }
color-print = { version = "0.3.4" }
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, if you use the umbrella crate here, you will have a much easier time updating dependencies.

@@ -0,0 +1,193 @@
use crate::{
Copy link
Contributor

Choose a reason for hiding this comment

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

Double checking: are all of these files actually needed?

It seems like this step of the tutorial is about benchmarking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we want to compile the runtime without modifying the template src code we need it

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.

I see a LOT of code being pulled here, sometimes multiple copies of the same. We need to double check if this is the right pattern.

I mean, why do we need code related to XCM config, a full working runtime and so on here?

Let's establish a framework around how we should do this task that is sane, minimal but still achieves to goal.

Imagine you have the old school doc in front of you, with a hardcoded code in the markdown file.

The question you should be asking is this:

  • What is the "smallest working rust project" that I can add, that can contain this snippet and make sure it is correct?

And only create that.

The only bottleneck/exception to this is that you might want to reference snippets of code in the original parachain template that this tutorial is based on, in which case we can embed the correct version of this template that we are relying on as a git submodule to this repo. This will actually improve our flow, as it will be super clear: "this toturial is based on the parachain template commit XXX", and every time there is a new parachain template release, we can also update it here.

@kianenigma
Copy link
Contributor

Screenshot 2025-01-10 at 16 08 04

can we hide the extra lines in this with mkdocs preprocessors?

@UtkarshBhardwaj007
Copy link
Collaborator

UtkarshBhardwaj007 commented Jan 13, 2025

@0xLucca @nhussein11 Adding the points that we discussed here for your review @kianenigma @albertov19 :

  • We will ensure that every bit of code we write/migrate-to-workspace has tests and is buildable. The rendering would be identical to what the tutorials already have (except in case of bugs/issues). All GitHub workflows should succeed for a PR to be merged.
  • We will stick to the 1-crate-approach as much as possible. Meaning we will try to have all the code of a tutorial (and all its steps) in one crate and we’ll have separate crates for separate tutorials in the common workspace and use pre-processing to generate the code snippets on the tutorials website.
  • However, in some cases, pre-processing might not be enough as we might be editing some code we wrote in earlier steps for a tutorial. In these cases, we will create a new crate for a step in a tutorial on a need-basis trying to minimise code duplication.
  • We will try to have the minimum code needed to build and test. We will try to exclude template/boilerplate code as much as possible. However, if we end up needing to mock dependencies or having to implement elaborate work-arounds to just get rid of template files, we would rather include these files in the code to allow for successful builds and tests (similar to what is expected in an actual production environment) but hide these files from the tutorials using mkdocs pre-processing.
  • For licenses, we will have the MIT-0 license at the top of all the code files we create. We are unsure of what to do about the files that are pulled in from the templates (for example). I think we should add license headers to these as well? @kianenigma @albertov19
  • A "good-to-have" requirement is to use the umbrella crate for imports as it re-exports a lot of the commonly used pallets.

@0xLucca Feel free to add to this in case I missed something :)

@albertov19
Copy link
Collaborator

Everything makes sense IMO. I'll let Kian comment a bit more on the Substrate/Rust technical side of things.

  • For licenses, we will have the MIT-0 license at the top of all the code files we create. We are unsure of what to do about the files that are pulled in from the templates (for example). I think we should add license headers to these as well? @kianenigma @albertov19
  • A "good-to-have" requirement is to use the umbrella crate for imports as it re-exports a lot of the commonly used pallets.

@0xLucca Feel free to add to this in case I missed something :)

If templates are within our control, we should add licenses to it. If they are external (OpenZeppelin for example,) they inherit the license of the code being imported.

@0xLucca
Copy link
Collaborator Author

0xLucca commented Jan 13, 2025

I'll work today on leaving just one crate and adjusting all the .md files to use that.

Regarding licenses, there are some files that we pull from the parachain template that do not have licenses (example), some are licensed as unlicensed (example) and others as Apache 2.0 (example).

For now, I'll just add the MIT-0 license to the files we created from scratch

@eshaben eshaben added B0 - Needs Review Pull request is ready for review C1 - Medium Medium priority task labels Jan 13, 2025
@0xLucca
Copy link
Collaborator Author

0xLucca commented Jan 14, 2025

@kianenigma @UtkarshBhardwaj007 This is ready to review. I've moved all the code to a single crate and updated the md files

@0xLucca 0xLucca requested a review from nhussein11 January 15, 2025 13:13
@@ -0,0 +1,305 @@
// This is free and unencumbered software released into the public domain.
Copy link
Contributor

Choose a reason for hiding this comment

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

@0xLucca can you please do the exercise I proposed in #302 (review)?

What snippets of code do you want to add to the tutorial's markdown format? What is the smallest running code that can represent that?

I don't get why don't build a that is

  1. frame system
  2. pallet utility
  3. custom pallet
  4. the macros related to benchmarking

and that's it. Why should this simple tutorial have all of this runtime apis, xcm configs, weights files and so on?

Or anything else that you actually want to show?

These codes are all fairly independent of any template, and work on any of them.

If you have a good reason that any of this code actually depends on the full runtime, please tell me, but I am pretty sure there is none.

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.

I would like to ask one more time to reevaluate the approach here and not copy paste the template here

https://github.com/polkadot-developers/polkadot-docs/pull/302/files#r1917045718

@0xLucca
Copy link
Collaborator Author

0xLucca commented Jan 21, 2025

Remaining suggestions have been applied.

We still have some issues with clippy. Could you check this @UtkarshBhardwaj007?

When running cargo clippy --all-targets --all-features --locked --workspace --quiet the CI throws an error.

@UtkarshBhardwaj007
Copy link
Collaborator

Remaining suggestions have been applied.

We still have some issues with clippy. Could you check this @UtkarshBhardwaj007?

When running cargo clippy --all-targets --all-features --locked --workspace --quiet the CI throws an error.

Yes the template brings in a few features which cause these errors. This PR should solve it: #314 @0xLucca

UtkarshBhardwaj007 and others added 2 commits January 21, 2025 15:45
* [FIX] - Adding `npm install` to contributing.md (#256)

* fix: adding npm i to contributing guide

* [FIX] - Refactoring testing section (#248)

* fix: testing refactor

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* fix: references and snippets

* fix: adding cards

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* Tutorials > Interoperability > XCM Transfers (#221)

* fix: add wip

* fix: adding last sections

* fix: wording

* fix: structure

* Apply suggestions from code review

Co-authored-by: 0xLucca <[email protected]>

* fix: adding links

* fix: images structure

* fix: paraphrasing

* fix: paraphrasing

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: table

* fix: adding papi tutorial

* fix: paraphrasing

* fix: moving code to snippet

* fix: snippet

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* fix: feedback

* fix: snippet

* fix: link

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* [FIX] - Adding references to tutorials (#230)

* fix: adding reference to tutorials on asset hub page

* Add xcm channels

* Add runtime upgrades

* Add chain spec

* Add custom parachains

* fix: adding chopsticks

* fix: zombienet

* Update develop/parachains/get-started/build-custom-parachains.md

Co-authored-by: Nicolás Hussein <[email protected]>

* fix: xcm channels references

* fix: generate chain specs references

* fix: generate chain specs 'where to go next'

* fix: build custom parachains references

* fix: runtime upgrades references

* fix: chopsticks get started references

* fix: zombienet get started references

* fix: asset hub references

* fix: add existing pallets references

* fix: add smart contract funcionality references

* fix: make custom pallet references

* fix: pallet testing references

* fix: generate chain specs references

* fix: adding comment in build custom parachains

* fix: deploy parachain to polkadot references

* fix: setup references

* fix: consensus get started references removed

* fix: architecture parachains references

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>

* Tutorials > Polkadot SDK > Parachains > Build Custom Pallet > Build the Pallet (#232)

* wip: build-pallet

* Page ready

* Improvements

* Extract code snippets

* Description and grammarly

* fix: typo

* Add suggestions

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/build-pallet.md

Co-authored-by: Nicolás Hussein <[email protected]>

* Add root origin reference

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply fmt

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* Apply fixes

---------

Co-authored-by: nhussein11 <[email protected]>
Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* fix: hidding polkaVM instances and adding informational banner (#251)

* Restructure Get Started section (#246)

* Remove get-started section

* Remove build and deploy pages

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

---------

Co-authored-by: Erin Shaben <[email protected]>

* Tutorials > Polkadot SDK > Parachains > Build Custom Pallet > Pallet Unit Testing (#233)

* fix: wip

* fix: adding snippets

* fix: typo

* Apply suggestions from code review

Co-authored-by: 0xLucca <[email protected]>

* fix: updating mock runtime\

* fix: snippets comments

* fix: typo

* fix: closing expandable elements

* fix: overflow

* fix: overflow

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/pallet-unit-testing.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: feedback

* fix: clean up the add tutorial branch

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/pallet-unit-testing.md

Co-authored-by: Erin Shaben <[email protected]>

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* fix: feedback applied on mock runtime desc

* fix: adding further resources

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Kian Paimani <[email protected]>

* fix: glossary runtime reference

* fix: paraphrasing according to feedback

* fix: paraphrasing

* corrects "benchmark testing" to "benchmarking" throughout the page

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/benchmarking.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* fix: adding reference to polkadot sdk guide

* fix: curly aphostrophes

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* fix: feedback

* fix: feedback

---------

Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>

* fix: typo (#258)

* Obtain Coretime Tutorial (#250)

* Coretime tutorial (most things)

* grammarly

* change to webp

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* paseo imgs

* ondemand updates

* update

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: note

* fix: removing note

* fix: removing fake reference

---------

Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: nhussein11 <[email protected]>

* add pages for legal policies and info (#255)

* add pages for legal policies and info

* pull in legal docs from mkdocs

* Apply suggestions from code review

Co-authored-by: albertov19 <[email protected]>

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: albertov19 <[email protected]>

* fix: replace old links (#260)

* add script to fix created dates (#259)

* Merge dev-pathways into develop/index (#249)

* removes "crosschain" as a dev pathway from develop/index.md

* save point before adding grid elements

* merges dev-pathways content into dev index page, updates incorrect link to Nova wallet, removes dev-pathways and updates nav

* updates Pathway name to use Application Developers consistently on this page

* adds some info to parachains/index

* update card format on develop/index, adds tip re: smart contracts are in active dev to develop/smart-contracts/index

* update language describing dev paths on develop/toolkit/index for consistency with rest of section

* typo fix

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

---------

Co-authored-by: Erin Shaben <[email protected]>

* Zero to Hero Tutorial (#254)

* Init structure

* wip: set-up-a-template

* Finish set up a template

* [FIX] - Adding references to tutorials (#230)

* fix: adding reference to tutorials on asset hub page

* Add xcm channels

* Add runtime upgrades

* Add chain spec

* Add custom parachains

* fix: adding chopsticks

* fix: zombienet

* Update develop/parachains/get-started/build-custom-parachains.md

Co-authored-by: Nicolás Hussein <[email protected]>

* fix: xcm channels references

* fix: generate chain specs references

* fix: generate chain specs 'where to go next'

* fix: build custom parachains references

* fix: runtime upgrades references

* fix: chopsticks get started references

* fix: zombienet get started references

* fix: asset hub references

* fix: add existing pallets references

* fix: add smart contract funcionality references

* fix: make custom pallet references

* fix: pallet testing references

* fix: generate chain specs references

* fix: adding comment in build custom parachains

* fix: deploy parachain to polkadot references

* fix: setup references

* fix: consensus get started references removed

* fix: architecture parachains references

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>

* Tutorials > Polkadot SDK > Parachains > Build Custom Pallet > Build the Pallet (#232)

* wip: build-pallet

* Page ready

* Improvements

* Extract code snippets

* Description and grammarly

* fix: typo

* Add suggestions

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/build-pallet.md

Co-authored-by: Nicolás Hussein <[email protected]>

* Add root origin reference

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply fmt

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* Apply fixes

---------

Co-authored-by: nhussein11 <[email protected]>
Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* fix: index zero to hero

* fix: clean up .pages

* fix: set up template where to go next

* fix: adding build a custom pallet content and moving code snippets

* Fix build pallet page

* wip: Add pallets to the runtime

* fix: wip

* fix: clean up pallet unit testing

* fix: pre-commit whitelisted files

* Finish add pallet to runtime

* Improve story telling

* wip: Execute Runtime Upgrades

* wip: deploy to testnet

* Deploy to Testnet ready

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/maintenance/runtime-upgrades.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* fix: adding tip to zero to hero index page

* [FIX] - Refactoring testing section (#248)

* fix: testing refactor

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* fix: references and snippets

* fix: adding cards

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* Tutorials > Interoperability > XCM Transfers (#221)

* fix: add wip

* fix: adding last sections

* fix: wording

* fix: structure

* Apply suggestions from code review

Co-authored-by: 0xLucca <[email protected]>

* fix: adding links

* fix: images structure

* fix: paraphrasing

* fix: paraphrasing

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: table

* fix: adding papi tutorial

* fix: paraphrasing

* fix: moving code to snippet

* fix: snippet

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* Update tutorials/interoperability/xcm-transfers/from-relaychain-to-parachain.md

Co-authored-by: 0xLucca <[email protected]>

* fix: feedback

* fix: snippet

* fix: link

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* [FIX] - Adding references to tutorials (#230)

* fix: adding reference to tutorials on asset hub page

* Add xcm channels

* Add runtime upgrades

* Add chain spec

* Add custom parachains

* fix: adding chopsticks

* fix: zombienet

* Update develop/parachains/get-started/build-custom-parachains.md

Co-authored-by: Nicolás Hussein <[email protected]>

* fix: xcm channels references

* fix: generate chain specs references

* fix: generate chain specs 'where to go next'

* fix: build custom parachains references

* fix: runtime upgrades references

* fix: chopsticks get started references

* fix: zombienet get started references

* fix: asset hub references

* fix: add existing pallets references

* fix: add smart contract funcionality references

* fix: make custom pallet references

* fix: pallet testing references

* fix: generate chain specs references

* fix: adding comment in build custom parachains

* fix: deploy parachain to polkadot references

* fix: setup references

* fix: consensus get started references removed

* fix: architecture parachains references

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>

* Tutorials > Polkadot SDK > Parachains > Build Custom Pallet > Build the Pallet (#232)

* wip: build-pallet

* Page ready

* Improvements

* Extract code snippets

* Description and grammarly

* fix: typo

* Add suggestions

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/build-pallet.md

Co-authored-by: Nicolás Hussein <[email protected]>

* Add root origin reference

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply fmt

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* Apply fixes

---------

Co-authored-by: nhussein11 <[email protected]>
Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* fix: hidding polkaVM instances and adding informational banner (#251)

* Restructure Get Started section (#246)

* Remove get-started section

* Remove build and deploy pages

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

---------

Co-authored-by: Erin Shaben <[email protected]>

* Tutorials > Polkadot SDK > Parachains > Build Custom Pallet > Pallet Unit Testing (#233)

* fix: wip

* fix: adding snippets

* fix: typo

* Apply suggestions from code review

Co-authored-by: 0xLucca <[email protected]>

* fix: updating mock runtime\

* fix: snippets comments

* fix: typo

* fix: closing expandable elements

* fix: overflow

* fix: overflow

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/pallet-unit-testing.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: feedback

* fix: clean up the add tutorial branch

* Update tutorials/polkadot-sdk/parachains/build-custom-pallet/pallet-unit-testing.md

Co-authored-by: Erin Shaben <[email protected]>

---------

Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>

* fix: feedback applied on mock runtime desc

* fix: adding further resources

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Kian Paimani <[email protected]>

* fix: glossary runtime reference

* fix: paraphrasing according to feedback

* fix: paraphrasing

* corrects "benchmark testing" to "benchmarking" throughout the page

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/benchmarking.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/pallet-testing.md

Co-authored-by: Dawn Kelly <[email protected]>

* fix: adding reference to polkadot sdk guide

* fix: curly aphostrophes

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* Update develop/parachains/testing/mock-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

* fix: feedback

* fix: feedback

---------

Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>

* fix: typo (#258)

* Obtain Coretime Tutorial (#250)

* Coretime tutorial (most things)

* grammarly

* change to webp

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* paseo imgs

* ondemand updates

* update

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* Update tutorials/polkadot-sdk/parachains/obtain-coretime.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: note

* fix: removing note

* fix: removing fake reference

---------

Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: nhussein11 <[email protected]>

* fix: updating coretime page, images and snippet according to the zero-to-hero structure

* fix: coretime desc

* fix: todos

* fix: where to go next

* updates to some index pages

* fix: where to go next (2)

* Remove old content

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Remove execute-runtime-upgrade tutorial

* fix: adding links to prev tutorials

* fix: adding reference to utility pallet

* Update index file

* fix: adding link to zero to hero index

* Update build pallet name

* fix: polkadot sdk tutorials index

* Comment where to go next section in develop

* Update develop/parachains/maintenance/runtime-upgrades.md

Co-authored-by: Erin Shaben <[email protected]>

* fix: CTAs

* fix: CTAs titles to generic "Get Started"

* Update tutorials section index file

* fix: card style

* removes coming soon content, adds Where to Go Next to Install Polkadot SDK page to link to Zero to Hero section

* few updates to links

* update prereq copy on set up a template

* updates link

* update link text

---------

Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: nhussein11 <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>
Co-authored-by: bader y <[email protected]>

* fix: broken link (#261)

* fix: typo (#262)

* update broken links (#263)

* trigger build (#264)

* update layout of develop index page (#265)

* update layout

* switch to lists

* Tutorials > On-Chain Governance > How to Fast Track a Governance Proposal (#223)

* wip: fast track prop

* Add snippets and improve structure

* Apply suggestions from code review

Co-authored-by: Radha <[email protected]>

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* Add improvements

* Add description

* Add comments

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

* Apply suggestions from code review

Co-authored-by: Erin Shaben <[email protected]>

* Apply suggestions

* Fix preimage explanation

* Remove bold

* Improve main function

* Refactor connectToFork

* Refactor

* Apply suggestions from code review

Co-authored-by: Dawn Kelly <[email protected]>

* Improve generateProposal section

* Refactor forceProposalExecution

* Improve grammar

* Update tutorials/onchain-governance/fast-track-gov-proposal.md

* quick update to index page

* Update polkadot-protocol/glossary.md

Co-authored-by: Nicolás Hussein <[email protected]>

---------

Co-authored-by: Radha <[email protected]>
Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>

* Add link to best practices (#266)

* fix double slashes (#279)

* Create mermaid diagram for Substrate Node (#267)

* adds mermaid diagram for Substrate Node

* apply feedback from review

* fix: mermaid styles :)

---------

Co-authored-by: nhussein11 <[email protected]>

* fix a step in set-up-a-template (#285)

* fix a step in set-up-a-template

* Update tutorials/polkadot-sdk/parachains/zero-to-hero/set-up-a-template.md

Co-authored-by: bader y <[email protected]>

---------

Co-authored-by: bader y <[email protected]>

* create a rust workspace for code snippets and migrate 'build-a-custom-pallet' to it (#287)

* create a rust workspace for code snippets and migrate 'build-a-custom-pallet' to it

* Update homepage information in Cargo workspace.

Co-authored-by: Kian Paimani <[email protected]>

* add W3F and papermoon as authors

* minor formatting

Co-authored-by: Kian Paimani <[email protected]>

* update comment

Co-authored-by: Kian Paimani <[email protected]>

---------

Co-authored-by: Kian Paimani <[email protected]>

* Minor fix: Moved to inline from being copyable (#283)

Problem: Websocket address was presented like it should be copied (which implied it needs to be pasted, which leads down a rabbit hole...). Instead moved it to inline, so that the instruction is clearly to open Polkadot app

* update all index to show feedback (#294)

* Create mermaid diagram for Coretime (#268)

* adds mermaid diagram to describe coretime

* Apply suggestions from code review

Co-authored-by: Nicolás Hussein <[email protected]>

---------

Co-authored-by: Nicolás Hussein <[email protected]>

* fix: wording

* fix: prettier

---------

Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>
Co-authored-by: bader y <[email protected]>
Co-authored-by: albertov19 <[email protected]>
Co-authored-by: Radha <[email protected]>
Co-authored-by: Utkarsh Bhardwaj <[email protected]>
Co-authored-by: Jan-Jan <[email protected]>
Co-authored-by: Lucas Malizia <[email protected]>

* Add note about prefunded accounts (#289)

* add note about prefunded accounts

* Update tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md

Co-authored-by: Nicolás Hussein <[email protected]>

* Update tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md

Co-authored-by: Dawn Kelly <[email protected]>

---------

Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>

* remove clippy check for all features

---------

Co-authored-by: Nicolás Hussein <[email protected]>
Co-authored-by: Erin Shaben <[email protected]>
Co-authored-by: Dawn Kelly <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: 0xLucca <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: DAWN KELLY <[email protected]>
Co-authored-by: bader y <[email protected]>
Co-authored-by: albertov19 <[email protected]>
Co-authored-by: Radha <[email protected]>
Co-authored-by: Jan-Jan <[email protected]>
Co-authored-by: Lucas Malizia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A1 - Maintenance Major Pull request contains major updates to an existing page (i.e., adding a new section, reorgs, etc.) B0 - Needs Review Pull request is ready for review C1 - Medium Medium priority task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants