Skip to content

Commit 485bf4c

Browse files
nhussein110xLuccadawnkelly09eshabenkianenigma
committed
Document "Web3.js" for asset hub smart contracts (#358)
* fix: adding web3js page and snippets * Update develop/smart-contracts/evm-toolkit/libraries/web3-js.md Co-authored-by: 0xLucca <[email protected]> * fix: adding link to polka vm (even though it's not yet in this architecture) * fix: explaining .json and .polkavm files * fix: clarification for deployment script * Apply suggestions from code review Co-authored-by: Dawn Kelly <[email protected]> * Update develop/smart-contracts/evm-toolkit/libraries/web3-js.md Co-authored-by: Dawn Kelly <[email protected]> * fix: feedback * fix: wording * Add "Deploy a NFT" with remix tutorial (#340) * fix: boiler plate added * add: wip * fix: complete tutorial finished + images * fix: adding link to OZ * fix: moving smart contract to code snippet * fix: wording * fix: adding tip to mention oz contracts wizards * fix: wording * Apply suggestions from code review Co-authored-by: 0xLucca <[email protected]> * fix: feedback * Apply suggestions from code review Co-authored-by: 0xLucca <[email protected]> * fix: wording * Apply suggestions from code review Co-authored-by: Erin Shaben <[email protected]> * Update tutorials/smart-contracts/deploy-nft.md Co-authored-by: Erin Shaben <[email protected]> * fix: bold list items * fix: wording * fix: wording --------- Co-authored-by: 0xLucca <[email protected]> Co-authored-by: Erin Shaben <[email protected]> * Create "JSON-RPC APIs (Eth Compatibility)" page (#349) * fix: json rpc apis page * fix: feedback * Update develop/smart-contracts/json-rpc-apis.md Co-authored-by: Erin Shaben <[email protected]> * Update develop/smart-contracts/json-rpc-apis.md Co-authored-by: Erin Shaben <[email protected]> * Update develop/smart-contracts/json-rpc-apis.md Co-authored-by: Erin Shaben <[email protected]> * fix: json spaces * Update develop/smart-contracts/json-rpc-apis.md Co-authored-by: Erin Shaben <[email protected]> * fix: `code` type admonition --------- 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: web3js page * fix: old merge conflict * Update develop/smart-contracts/libraries/web3-js.md Co-authored-by: Lucas Malizia <[email protected]> * Update develop/smart-contracts/libraries/web3-js.md Co-authored-by: Lucas Malizia <[email protected]> --------- Co-authored-by: 0xLucca <[email protected]> Co-authored-by: Dawn Kelly <[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]> Co-authored-by: Lucas Malizia <[email protected]>
1 parent b4e825b commit 485bf4c

File tree

7 files changed

+357
-0
lines changed

7 files changed

+357
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.9;
3+
4+
contract Storage {
5+
// Public state variable to store a number
6+
uint256 public storedNumber;
7+
8+
/**
9+
* Updates the stored number.
10+
*
11+
* The `public` modifier allows anyone to call this function.
12+
*
13+
* @param _newNumber - The new value to store.
14+
*/
15+
function setNumber(uint256 _newNumber) public {
16+
storedNumber = _newNumber;
17+
}
18+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const { compile } = require('@parity/revive');
2+
const { readFileSync, writeFileSync } = require('fs');
3+
const { basename, join } = require('path');
4+
5+
const compileContract = async (solidityFilePath, outputDir) => {
6+
try {
7+
// Read the Solidity file
8+
const source = readFileSync(solidityFilePath, 'utf8');
9+
10+
// Construct the input object for the compiler
11+
const input = {
12+
[basename(solidityFilePath)]: { content: source },
13+
};
14+
15+
console.log(`Compiling contract: ${basename(solidityFilePath)}...`);
16+
17+
// Compile the contract
18+
const out = await compile(input);
19+
20+
for (const contracts of Object.values(out.contracts)) {
21+
for (const [name, contract] of Object.entries(contracts)) {
22+
console.log(`Compiled contract: ${name}`);
23+
24+
// Write the ABI
25+
const abiPath = join(outputDir, `${name}.json`);
26+
writeFileSync(abiPath, JSON.stringify(contract.abi, null, 2));
27+
console.log(`ABI saved to ${abiPath}`);
28+
29+
// Write the bytecode
30+
const bytecodePath = join(outputDir, `${name}.polkavm`);
31+
writeFileSync(
32+
bytecodePath,
33+
Buffer.from(contract.evm.bytecode.object, 'hex')
34+
);
35+
console.log(`Bytecode saved to ${bytecodePath}`);
36+
}
37+
}
38+
} catch (error) {
39+
console.error('Error compiling contracts:', error);
40+
}
41+
};
42+
43+
const solidityFilePath = './Storage.sol';
44+
const outputDir = '.';
45+
46+
compileContract(solidityFilePath, outputDir);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const { Web3 } = require('web3');
2+
3+
const createProvider = (rpcUrl) => {
4+
const web3 = new Web3(rpcUrl);
5+
return web3;
6+
};
7+
8+
const PROVIDER_RPC = {
9+
rpc: 'INSERT_RPC_URL',
10+
chainId: 'INSERT_CHAIN_ID',
11+
name: 'INSERT_CHAIN_NAME',
12+
};
13+
14+
createProvider(PROVIDER_RPC.rpc);
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import { readFileSync } from 'fs';
2+
import { Web3 } from 'web3';
3+
4+
const getAbi = (contractName) => {
5+
try {
6+
return JSON.parse(readFileSync(`${contractName}.json`), 'utf8');
7+
} catch (error) {
8+
console.error(
9+
`❌ Could not find ABI for contract ${contractName}:`,
10+
error.message
11+
);
12+
throw error;
13+
}
14+
};
15+
16+
const getByteCode = (contractName) => {
17+
try {
18+
return `0x${readFileSync(`${contractName}.polkavm`).toString('hex')}`;
19+
} catch (error) {
20+
console.error(
21+
`❌ Could not find bytecode for contract ${contractName}:`,
22+
error.message
23+
);
24+
throw error;
25+
}
26+
};
27+
28+
export const deploy = async (config) => {
29+
try {
30+
// Initialize Web3 with RPC URL
31+
const web3 = new Web3(config.rpcUrl);
32+
33+
// Prepare account
34+
const account = web3.eth.accounts.privateKeyToAccount(config.privateKey);
35+
web3.eth.accounts.wallet.add(account);
36+
37+
// Load abi
38+
const abi = getAbi('Storage');
39+
40+
// Create contract instance
41+
const contract = new web3.eth.Contract(abi);
42+
43+
// Prepare deployment
44+
const deployTransaction = contract.deploy({
45+
data: getByteCode('Storage'),
46+
arguments: [], // Add constructor arguments if needed
47+
});
48+
49+
// Estimate gas
50+
const gasEstimate = await deployTransaction.estimateGas({
51+
from: account.address,
52+
});
53+
54+
// Get current gas price
55+
const gasPrice = await web3.eth.getGasPrice();
56+
57+
// Send deployment transaction
58+
const deployedContract = await deployTransaction.send({
59+
from: account.address,
60+
gas: gasEstimate,
61+
gasPrice: gasPrice,
62+
});
63+
64+
// Log and return contract details
65+
console.log(`Contract deployed at: ${deployedContract.options.address}`);
66+
return deployedContract;
67+
} catch (error) {
68+
console.error('Deployment failed:', error);
69+
throw error;
70+
}
71+
};
72+
73+
// Example usage
74+
const deploymentConfig = {
75+
rpcUrl: 'INSERT_RPC_URL',
76+
privateKey: 'INSERT_PRIVATE_KEY',
77+
contractName: 'INSERT_CONTRACT_NAME',
78+
};
79+
80+
deploy(deploymentConfig)
81+
.then((contract) => console.log('Deployment successful'))
82+
.catch((error) => console.error('Deployment error'));
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const { Web3 } = require('web3');
2+
3+
const createProvider = (rpcUrl) => {
4+
const web3 = new Web3(rpcUrl);
5+
return web3;
6+
};
7+
8+
const PROVIDER_RPC = {
9+
rpc: 'https://westend-asset-hub-eth-rpc.polkadot.io',
10+
chainId: 420420421,
11+
name: 'westend-asset-hub',
12+
};
13+
14+
const main = async () => {
15+
try {
16+
const web3 = createProvider(PROVIDER_RPC.rpc);
17+
const latestBlock = await web3.eth.getBlockNumber();
18+
console.log('Last block: ' + latestBlock);
19+
} catch (error) {
20+
console.error('Error connecting to Asset Hub: ' + error.message);
21+
}
22+
};
23+
24+
main();
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
import { readFileSync } from 'fs';
2+
import { Web3 } from 'web3';
3+
4+
const getAbi = (contractName) => {
5+
try {
6+
return JSON.parse(readFileSync(`${contractName}.json`), 'utf8');
7+
} catch (error) {
8+
console.error(
9+
`❌ Could not find ABI for contract ${contractName}:`,
10+
error.message
11+
);
12+
throw error;
13+
}
14+
};
15+
16+
const updateStorage = async (config) => {
17+
try {
18+
// Initialize Web3 with RPC URL
19+
const web3 = new Web3(config.rpcUrl);
20+
21+
// Prepare account
22+
const account = web3.eth.accounts.privateKeyToAccount(config.privateKey);
23+
web3.eth.accounts.wallet.add(account);
24+
25+
// Load abi
26+
const abi = getAbi('Storage');
27+
28+
// Create contract instance
29+
const contract = new web3.eth.Contract(abi, config.contractAddress);
30+
31+
// Get initial value
32+
const initialValue = await contract.methods.storedNumber().call();
33+
console.log('Current stored value:', initialValue);
34+
35+
// Prepare transaction
36+
const updateTransaction = contract.methods.setNumber(1);
37+
38+
// Estimate gas
39+
const gasEstimate = await updateTransaction.estimateGas({
40+
from: account.address,
41+
});
42+
43+
// Get current gas price
44+
const gasPrice = await web3.eth.getGasPrice();
45+
46+
// Send update transaction
47+
const receipt = await updateTransaction.send({
48+
from: account.address,
49+
gas: gasEstimate,
50+
gasPrice: gasPrice,
51+
});
52+
53+
// Log transaction details
54+
console.log(`Transaction hash: ${receipt.transactionHash}`);
55+
56+
// Get updated value
57+
const newValue = await contract.methods.storedNumber().call();
58+
console.log('New stored value:', newValue);
59+
60+
return receipt;
61+
} catch (error) {
62+
console.error('Update failed:', error);
63+
throw error;
64+
}
65+
};
66+
67+
// Example usage
68+
const config = {
69+
rpcUrl: 'INSERT_RPC_URL',
70+
privateKey: 'INSERT_PRIVATE_KEY',
71+
contractAddress: 'INSERT_CONTRACT_ADDRESS',
72+
};
73+
74+
updateStorage(config)
75+
.then((receipt) => console.log('Update successful'))
76+
.catch((error) => console.error('Update error'));
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Web3.js
3+
description: Learn how to interact with the Asset Hub chain using Web3.js, deploying Solidity contracts, and interacting with deployed smart contracts.
4+
---
5+
6+
# Web3.js
7+
8+
## Introduction
9+
10+
Interacting with blockchains typically requires an interface between your application and the network. [Web3.js](https://web3js.readthedocs.io/){target=\_blank} offers this interface through a comprehensive collection of libraries, facilitating seamless interaction with the nodes using HTTP or WebSocket protocols. This guide illustrates how to utilize Web3.js specifically for interactions with the Asset Hub chain.
11+
12+
## Set Up the Project
13+
14+
To start working with Web3.js, begin by initializing your project:
15+
16+
```bash
17+
npm init -y
18+
```
19+
20+
## Install Dependencies
21+
22+
Next, install the Web3.js library:
23+
24+
```bash
25+
npm install web3
26+
```
27+
28+
## Set Up the Web3 Provider
29+
30+
The provider configuration is the foundation of any Web3.js application. The following example establishes a connection to the Asset Hub network. To use the example script, replace `INSERT_RPC_URL`, `INSERT_CHAIN_ID`, and `INSERT_CHAIN_NAME` with the appropriate values. For example, for the Westend Asset Hub testnet, use these specific connection parameters:
31+
32+
```js
33+
const PROVIDER_RPC = {
34+
rpc: 'https://westend-asset-hub-eth-rpc.polkadot.io',
35+
chainId: 420420421,
36+
name: 'westend-asset-hub'
37+
};
38+
```
39+
40+
The provider connection script should look something like this:
41+
42+
```javascript title="connectToProvider.js"
43+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/connectToProvider.js'
44+
```
45+
With the Web3 provider set up, you can start querying the blockchain.
46+
47+
For instance, to fetch the latest block number of the chain, you can use the following code snippet:
48+
49+
???+ code "Complete script"
50+
51+
```javascript title="fetchLastBlock.js"
52+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/fetchLastBlock.js'
53+
```
54+
55+
## Compile Contracts
56+
57+
Asset Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contracts-basics/polkavm-design){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive){target=\_blank} compiler. Install the [`@parity/revive`](https://github.com/paritytech/js-revive){target=\_blank} library as a development dependency:
58+
59+
```bash
60+
npm install --save-dev @parity/revive
61+
```
62+
63+
Here's a simple storage contract that you can use to follow the process:
64+
65+
```solidity title="Storage.sol"
66+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/Storage.sol'
67+
```
68+
69+
With that, you can now create a `compile.js` snippet that transforms your solidity code into PolkaVM bytecode:
70+
71+
```javascript title="compile.js"
72+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/compile.js'
73+
```
74+
75+
After compilation, you'll have two key files: an ABI (`.json`) file, which provides a JSON interface describing the contract's functions and how to interact with it, and a bytecode (`.polkavm`) file, which contains the low-level machine code executable on PolkaVM that represents the compiled smart contract ready for blockchain deployment.
76+
77+
## Contract Deployment
78+
79+
To deploy your compiled contract to Asset Hub using Web3.js, you'll need an account with a private key to sign the deployment transaction. The deployment process is exactly the same as for any EVM-compatible chain, involving creating a contract instance, estimating gas, and sending a deployment transaction. Here's how to deploy the contract, ensure replacing the `INSERT_RPC_URL`, `INSERT_PRIVATE_KEY`, and `INSERT_CONTRACT_NAME` with the appropriate values:
80+
81+
```javascript title="deploy.js"
82+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/deploy.js'
83+
```
84+
## Interact with the Contract
85+
86+
Once deployed, you can interact with your contract using Web3.js methods. Here's how to set a number and read it back, ensure replacing `INSERT_RPC_URL`, `INSERT_PRIVATE_KEY`, and `INSERT_CONTRACT_ADDRESS` with the appropriate values:
87+
88+
```javascript title="updateStorage.js"
89+
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/updateStorage.js'
90+
```
91+
92+
## Where to Go Next
93+
94+
Now that you’ve learned how to use Web3.js with Asset Hub, explore more advanced topics:
95+
96+
- Utilize Web3.js utilities – learn about additional [Web3.js](https://docs.web3js.org/){target=\_blank} features such as signing transactions, managing wallets, and subscribing to events
97+
- Build full-stack dApps – [integrate Web3.js](https://docs.web3js.org/guides/dapps/intermediate-dapp){target=\_blank} with different libraries and frameworks to build decentralized web applications

0 commit comments

Comments
 (0)