-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Conversation
@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 :) |
...utorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet/tests/integration_tests.rs
Show resolved
Hide resolved
.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/pallet-unit-testing/src/lib.rs
Outdated
Show resolved
Hide resolved
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" } |
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.
FYI, if you use the umbrella crate here, you will have a much easier time updating dependencies.
...polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime/pallets/custom-pallet/src/lib.rs
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,193 @@ | |||
use crate::{ |
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.
Double checking: are all of these files actually needed?
It seems like this step of the tutorial is about benchmarking.
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.
If we want to compile the runtime without modifying the template src code we need it
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.
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.
@0xLucca @nhussein11 Adding the points that we discussed here for your review @kianenigma @albertov19 :
@0xLucca Feel free to add to this in case I missed something :) |
Everything makes sense IMO. I'll let Kian comment a bit more on the Substrate/Rust technical side of things.
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. |
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 |
@kianenigma @UtkarshBhardwaj007 This is ready to review. I've moved all the code to a single crate and updated the md files |
.snippets/code/tutorials/polkadot-sdk/parachains/zero-to-hero/pallets/template/Cargo.toml
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Nicolás Hussein <[email protected]>
tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet.md
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet.md
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet.md
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,305 @@ | |||
// This is free and unencumbered software released into the public domain. |
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.
@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
- frame system
- pallet utility
- custom pallet
- 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.
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.
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
tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet.md
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/build-custom-pallet.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Utkarsh Bhardwaj <[email protected]>
Remaining suggestions have been applied. We still have some issues with clippy. Could you check this @UtkarshBhardwaj007? When running |
tutorials/polkadot-sdk/parachains/zero-to-hero/pallet-unit-testing.md
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md
Outdated
Show resolved
Hide resolved
tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md
Outdated
Show resolved
Hide resolved
Yes the template brings in a few features which cause these errors. This PR should solve it: #314 @0xLucca |
* [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]>
This PR reorganizes the code snippets in the zero-to-hero tutorial to be part of the Rustr workspace