Skip to content

Commit ad1b8eb

Browse files
nhussein110xLuccadawnkelly090xlukemeshaben
committed
Document "How to Connect to Asset Hub" (#365)
* fix: connect to asset hub page * fix: images routes * Update develop/smart-contracts/connect-to-asset-hub.md Co-authored-by: 0xLucca <[email protected]> * Update develop/smart-contracts/connect-to-asset-hub.md Co-authored-by: 0xLucca <[email protected]> * Update develop/smart-contracts/connect-to-asset-hub.md Co-authored-by: Dawn Kelly <[email protected]> * Update develop/smart-contracts/connect-to-asset-hub.md Co-authored-by: Dawn Kelly <[email protected]> * fix: clarification polkadot faucet * fix: wss endpoints changed to https endpoints * fix: adding metamask button * fix: metamask button position * Update js/connect-to-metamask.js Co-authored-by: Lucas Malizia <[email protected]> * Update js/connect-to-metamask.js Co-authored-by: Lucas Malizia <[email protected]> * fix: wording snippet * fix: wording snippet about AH * Apply suggestions from code review Co-authored-by: Erin Shaben <[email protected]> * Add "Deploy an ERC20" with remix tutorial (#344) * fix: adding tutorial to deploy erc20 and images * fix: moving smart contract code to snippet * Apply suggestions from code review Co-authored-by: 0xLucca <[email protected]> * fix: adding standard erc20 functions * fix: feedback * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * fix: erc-20 * fix: erc-20 instance * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * fix: sentence case applied * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * fix: bold list items * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * Update tutorials/smart-contracts/deploy-erc20.md Co-authored-by: Erin Shaben <[email protected]> * fix: action titles * fix: adding variables --------- Co-authored-by: 0xLucca <[email protected]> Co-authored-by: Erin Shaben <[email protected]> * Update AHSC with latest IA (#370) * [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]> * fix: smart contracts tutorials ia * fix: smart contracts develop ia * fix: polkadot protocol basics ia * fix: merge conflict * fix: broken link * fix: admonition * Update tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md Co-authored-by: Erin Shaben <[email protected]> * fix: moving code snippets from `basics` to `parachain-basics` * fix: moving images from `basic` to `parachain-basics` --------- 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]> * [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]> * fix: merge conflict --------- Co-authored-by: 0xLucca <[email protected]> Co-authored-by: Dawn Kelly <[email protected]> Co-authored-by: Lucas Malizia <[email protected]> Co-authored-by: Erin Shaben <[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]>
1 parent ec6c614 commit ad1b8eb

9 files changed

+249
-1
lines changed

develop/smart-contracts/.pages

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ title: Smart Contracts
22
nav:
33
- index.md
44
- 'Overview': overview.md
5-
- 'Connect Your Wallet': connect-your-wallet.md
5+
- 'Connect to Asset Hub': connect-to-asset-hub.md
66
# - 'Wasm (ink!)': wasm-ink.md
77
# - 'Native EVM Contracts': native-evm-contracts.md
88
# - 'Parachain Contracts': parachain-contracts.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
title: Connect to Asset Hub
3+
description: Explore how to connect to different Asset Hub networks, configure your wallet, and obtain test tokens for developing and testing smart contracts.
4+
---
5+
6+
# Connect to Asset Hub
7+
8+
<div class="button-wrapper">
9+
<a href="#" class="md-button connectMetaMask" value="westendAssetHub">Connect to Westend Asset Hub</a>
10+
</div>
11+
12+
## Networks
13+
14+
Developers can leverage Asset Hub across diverse networks, from TestNets to MainNet. This section outlines the network specifications and connection details for each environment.
15+
16+
### Specifications
17+
18+
=== "Westend Asset Hub"
19+
20+
Network name
21+
```
22+
Asset-Hub Westend TestNet
23+
```
24+
25+
---
26+
27+
Currency symbol
28+
```
29+
WND
30+
```
31+
32+
---
33+
34+
Chain ID
35+
```
36+
420420421
37+
```
38+
39+
---
40+
41+
RPC URL
42+
```
43+
https://westend-asset-hub-eth-rpc.polkadot.io
44+
```
45+
46+
---
47+
48+
Block explorer URL
49+
```
50+
https://assethub-westend.subscan.io
51+
```
52+
53+
### Endpoints
54+
55+
=== "Westend Asset Hub"
56+
Dwellir
57+
```
58+
https://westend-asset-hub-eth-rpc.polkadot.io
59+
```
60+
---
61+
Dwellir Tunisia
62+
```
63+
https://westmint-rpc.polkadot.io
64+
```
65+
---
66+
IBP1
67+
```
68+
https://rpc.ibp.network/asset-hub-westend
69+
```
70+
---
71+
IBP2
72+
```
73+
https://asset-hub-westend.dotters.network
74+
```
75+
---
76+
Parity
77+
```
78+
https://westend-asset-hub-rpc.polkadot.io
79+
```
80+
81+
## Connect your Wallet
82+
83+
### Metamask
84+
85+
[MetaMask](https://metamask.io/){target=\_blank} is a popular wallet for interacting with EVM-compatible chains. It allows users to connect to test networks that support Ethereum-based smart contracts. However, it's important to emphasize that MetaMask primarily facilitates interactions with smart contracts, giving users access to various chain functionalities.
86+
87+
To get started with MetaMask, you need to install the [MetaMask extension](https://metamask.io/download/){target=\_blank} and add it to the browser. Once you install MetaMask, you can set up a new wallet and securely store your seed phrase. This phrase is crucial for recovery in case you lose access.
88+
89+
For example, to connect to the Westend Asset Hub TestNet via MetaMask, you need to follow these steps:
90+
91+
1. Open the MetaMask extension and click on the network icon to switch to the Asset Hub Westend TestNet
92+
93+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-1.webp){: .browser-extension}
94+
95+
2. Click on the **Add a custom network** button
96+
97+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-2.webp){: .browser-extension}
98+
99+
3. Complete the necessary fields using the parameters in the [Specifications](#specifications) section, then click the **Save** button (refer to the [Networks](#networks) section for copy and paste parameters)
100+
101+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-3.webp){: .browser-extension}
102+
103+
4. Click on **Asset-Hub Westend TestNet** to switch the network
104+
105+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-4.webp){: .browser-extension}
106+
107+
The steps in the preceding section can be used to connect to any Asset Hub chain by modifying the network specification and endpoint parameters.
108+
109+
## Test Tokens
110+
111+
You will need testnet tokens to perform transactions and engage with smart contracts on any Asset Hub chain. Here's how to obtain Westend Asset Hub (WND) tokens for testing purposes:
112+
113+
1. Navigate to the [Polkadot Faucet](https://faucet.polkadot.io){target=\_blank}. If the desired network is not already selected, choose it from the Network drop-down
114+
115+
2. Copy your MetaMask address linked to Westend Asset Hub and paste it into the designated field
116+
117+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-5.webp)
118+
119+
3. Click the **Get Some WND** button to request free test WND tokens. These tokens will be sent to your MetaMask wallet shortly
120+
121+
![](/images/develop/smart-contracts/connect-to-asset-hub/connect-to-asset-hub-6.webp)

js/connect-to-metamask.js

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
const provider = window.ethereum;
2+
const supportedNetworks = {
3+
westendAssetHub: {
4+
name: 'Asset-Hub Westend Testnet',
5+
chainId: '0x190F1B45', //Hex value of "420420421"
6+
chainName: 'Asset-Hub Westend Testnet',
7+
rpcUrls: ['https://westend-asset-hub-eth-rpc.polkadot.io'],
8+
blockExplorerUrls: ['https://westend-asset-hub-eth-explorer.parity.io'],
9+
nativeCurrency: {
10+
name: 'Westend Token',
11+
symbol: 'WND',
12+
decimals: 18,
13+
},
14+
},
15+
};
16+
17+
/*
18+
Add or switch to the specified network, then request accounts
19+
NOTE: This calls "eth_requestAccounts" at the end, which prompts for wallet connection
20+
*/
21+
const connectNetwork = async (network) => {
22+
try {
23+
const targetNetwork = { ...supportedNetworks[network] };
24+
delete targetNetwork.name; // remove 'name' property if needed
25+
26+
await provider.request({
27+
method: 'wallet_addEthereumChain',
28+
params: [targetNetwork],
29+
});
30+
// This line requests user accounts, which triggers a "connect" prompt if not already connected:
31+
await provider.request({ method: 'eth_requestAccounts' });
32+
} catch (e) {
33+
// 4001: user rejected, -32002: request already pending
34+
if (e.code !== 4001 && e.code !== -32002) {
35+
handleError(e.message);
36+
}
37+
}
38+
};
39+
40+
// Get the network that the user is currently connected to
41+
const getConnectedNetwork = async () => {
42+
const chainId = await provider.request({ method: 'eth_chainId' });
43+
const connectedHubNetwork = Object.values(supportedNetworks).find(
44+
(network) => network.chainId === chainId
45+
);
46+
if (connectedNetwork) {
47+
const connectedNetworkButton = document.querySelector(
48+
`.connect-network[data-value="${connectedNetwork.name}"]`
49+
);
50+
return { connectedNetwork, connectedNetworkButton };
51+
} else {
52+
return {
53+
connectedNetwork: null,
54+
connectedNetworkButton: null,
55+
};
56+
}
57+
};
58+
59+
/* Updates the button to show the connected network. */
60+
const displayConnectedAccount = async (connectedNetwork, networkButton) => {
61+
const accounts = await provider.request({ method: 'eth_requestAccounts' });
62+
if (!accounts || accounts.length === 0) return;
63+
64+
const shortenedAccount = `${accounts[0].slice(0, 6)}...${accounts[0].slice(
65+
-4
66+
)}`;
67+
networkButton.innerHTML = `Connected to ${connectedNetwork.chainName}: ${shortenedAccount}`;
68+
networkButton.className += ' disabled-button';
69+
};
70+
71+
// Displays an error message to the user
72+
const handleError = (message) => {
73+
const errorModalContainer = document.querySelector('.error-modal-container');
74+
const errorMessage = document.querySelector('.error-message');
75+
errorModalContainer.style.display = 'block';
76+
errorMessage.innerHTML = message;
77+
};
78+
79+
/*
80+
Handles the logic for the buttons inside of content pages.
81+
Directly connect to the network specified in 'value'
82+
*/
83+
const connectMetaMaskBodyButtons =
84+
document.querySelectorAll('.connectMetaMask');
85+
connectMetaMaskBodyButtons.forEach((btn) => {
86+
btn.addEventListener('click', async (e) => {
87+
e.preventDefault();
88+
89+
if (!provider) {
90+
handleError(
91+
`No EVM-compatible wallet found. Please install MetaMask.`
92+
);
93+
return;
94+
}
95+
96+
const network = btn.getAttribute('value');
97+
if (!network || !supportedNetworks[network]) {
98+
handleError(`The network "${network}" is not supported or not defined.`);
99+
return;
100+
}
101+
102+
await connectNetwork(network);
103+
//Update the button to reflect the "connected" state
104+
btn.textContent = 'Connected to ' + supportedNetworks[network]['name'];
105+
btn.classList.add('disabled-button');
106+
});
107+
});
108+
109+
if (provider) {
110+
provider.on('chainChanged', () => {
111+
window.location.reload();
112+
});
113+
provider.on('accountsChanged', async (accounts) => {
114+
if (accounts.length > 0) {
115+
const { connectedNetwork, connectedNetworkButton } =
116+
await getConnectedNetwork();
117+
if (connectedNetwork) {
118+
await displayConnectedAccount(
119+
connectedNetwork,
120+
connectedNetworkButton
121+
);
122+
}
123+
} else {
124+
window.location.reload();
125+
}
126+
});
127+
}

0 commit comments

Comments
 (0)