Skip to content

Commit

Permalink
Document "Web3.js" for asset hub smart contracts (#358)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
13 people committed Feb 19, 2025
1 parent 32036d5 commit a6ba051
Show file tree
Hide file tree
Showing 7 changed files with 357 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract Storage {
// Public state variable to store a number
uint256 public storedNumber;

/**
* Updates the stored number.
*
* The `public` modifier allows anyone to call this function.
*
* @param _newNumber - The new value to store.
*/
function setNumber(uint256 _newNumber) public {
storedNumber = _newNumber;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
const { compile } = require('@parity/revive');
const { readFileSync, writeFileSync } = require('fs');
const { basename, join } = require('path');

const compileContract = async (solidityFilePath, outputDir) => {
try {
// Read the Solidity file
const source = readFileSync(solidityFilePath, 'utf8');

// Construct the input object for the compiler
const input = {
[basename(solidityFilePath)]: { content: source },
};

console.log(`Compiling contract: ${basename(solidityFilePath)}...`);

// Compile the contract
const out = await compile(input);

for (const contracts of Object.values(out.contracts)) {
for (const [name, contract] of Object.entries(contracts)) {
console.log(`Compiled contract: ${name}`);

// Write the ABI
const abiPath = join(outputDir, `${name}.json`);
writeFileSync(abiPath, JSON.stringify(contract.abi, null, 2));
console.log(`ABI saved to ${abiPath}`);

// Write the bytecode
const bytecodePath = join(outputDir, `${name}.polkavm`);
writeFileSync(
bytecodePath,
Buffer.from(contract.evm.bytecode.object, 'hex')
);
console.log(`Bytecode saved to ${bytecodePath}`);
}
}
} catch (error) {
console.error('Error compiling contracts:', error);
}
};

const solidityFilePath = './Storage.sol';
const outputDir = '.';

compileContract(solidityFilePath, outputDir);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { Web3 } = require('web3');

const createProvider = (rpcUrl) => {
const web3 = new Web3(rpcUrl);
return web3;
};

const PROVIDER_RPC = {
rpc: 'INSERT_RPC_URL',
chainId: 'INSERT_CHAIN_ID',
name: 'INSERT_CHAIN_NAME',
};

createProvider(PROVIDER_RPC.rpc);
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import { readFileSync } from 'fs';
import { Web3 } from 'web3';

const getAbi = (contractName) => {
try {
return JSON.parse(readFileSync(`${contractName}.json`), 'utf8');
} catch (error) {
console.error(
`❌ Could not find ABI for contract ${contractName}:`,
error.message
);
throw error;
}
};

const getByteCode = (contractName) => {
try {
return `0x${readFileSync(`${contractName}.polkavm`).toString('hex')}`;
} catch (error) {
console.error(
`❌ Could not find bytecode for contract ${contractName}:`,
error.message
);
throw error;
}
};

export const deploy = async (config) => {
try {
// Initialize Web3 with RPC URL
const web3 = new Web3(config.rpcUrl);

// Prepare account
const account = web3.eth.accounts.privateKeyToAccount(config.privateKey);
web3.eth.accounts.wallet.add(account);

// Load abi
const abi = getAbi('Storage');

// Create contract instance
const contract = new web3.eth.Contract(abi);

// Prepare deployment
const deployTransaction = contract.deploy({
data: getByteCode('Storage'),
arguments: [], // Add constructor arguments if needed
});

// Estimate gas
const gasEstimate = await deployTransaction.estimateGas({
from: account.address,
});

// Get current gas price
const gasPrice = await web3.eth.getGasPrice();

// Send deployment transaction
const deployedContract = await deployTransaction.send({
from: account.address,
gas: gasEstimate,
gasPrice: gasPrice,
});

// Log and return contract details
console.log(`Contract deployed at: ${deployedContract.options.address}`);
return deployedContract;
} catch (error) {
console.error('Deployment failed:', error);
throw error;
}
};

// Example usage
const deploymentConfig = {
rpcUrl: 'INSERT_RPC_URL',
privateKey: 'INSERT_PRIVATE_KEY',
contractName: 'INSERT_CONTRACT_NAME',
};

deploy(deploymentConfig)
.then((contract) => console.log('Deployment successful'))
.catch((error) => console.error('Deployment error'));
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const { Web3 } = require('web3');

const createProvider = (rpcUrl) => {
const web3 = new Web3(rpcUrl);
return web3;
};

const PROVIDER_RPC = {
rpc: 'https://westend-asset-hub-eth-rpc.polkadot.io',
chainId: 420420421,
name: 'westend-asset-hub',
};

const main = async () => {
try {
const web3 = createProvider(PROVIDER_RPC.rpc);
const latestBlock = await web3.eth.getBlockNumber();
console.log('Last block: ' + latestBlock);
} catch (error) {
console.error('Error connecting to Asset Hub: ' + error.message);
}
};

main();
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import { readFileSync } from 'fs';
import { Web3 } from 'web3';

const getAbi = (contractName) => {
try {
return JSON.parse(readFileSync(`${contractName}.json`), 'utf8');
} catch (error) {
console.error(
`❌ Could not find ABI for contract ${contractName}:`,
error.message
);
throw error;
}
};

const updateStorage = async (config) => {
try {
// Initialize Web3 with RPC URL
const web3 = new Web3(config.rpcUrl);

// Prepare account
const account = web3.eth.accounts.privateKeyToAccount(config.privateKey);
web3.eth.accounts.wallet.add(account);

// Load abi
const abi = getAbi('Storage');

// Create contract instance
const contract = new web3.eth.Contract(abi, config.contractAddress);

// Get initial value
const initialValue = await contract.methods.storedNumber().call();
console.log('Current stored value:', initialValue);

// Prepare transaction
const updateTransaction = contract.methods.setNumber(1);

// Estimate gas
const gasEstimate = await updateTransaction.estimateGas({
from: account.address,
});

// Get current gas price
const gasPrice = await web3.eth.getGasPrice();

// Send update transaction
const receipt = await updateTransaction.send({
from: account.address,
gas: gasEstimate,
gasPrice: gasPrice,
});

// Log transaction details
console.log(`Transaction hash: ${receipt.transactionHash}`);

// Get updated value
const newValue = await contract.methods.storedNumber().call();
console.log('New stored value:', newValue);

return receipt;
} catch (error) {
console.error('Update failed:', error);
throw error;
}
};

// Example usage
const config = {
rpcUrl: 'INSERT_RPC_URL',
privateKey: 'INSERT_PRIVATE_KEY',
contractAddress: 'INSERT_CONTRACT_ADDRESS',
};

updateStorage(config)
.then((receipt) => console.log('Update successful'))
.catch((error) => console.error('Update error'));
97 changes: 97 additions & 0 deletions develop/smart-contracts/libraries/web3-js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: Web3.js
description: Learn how to interact with the Asset Hub chain using Web3.js, deploying Solidity contracts, and interacting with deployed smart contracts.
---

# Web3.js

## Introduction

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.

## Set Up the Project

To start working with Web3.js, begin by initializing your project:

```bash
npm init -y
```

## Install Dependencies

Next, install the Web3.js library:

```bash
npm install web3
```

## Set Up the Web3 Provider

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:

```js
const PROVIDER_RPC = {
rpc: 'https://westend-asset-hub-eth-rpc.polkadot.io',
chainId: 420420421,
name: 'westend-asset-hub'
};
```

The provider connection script should look something like this:

```javascript title="connectToProvider.js"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/connectToProvider.js'
```
With the Web3 provider set up, you can start querying the blockchain.

For instance, to fetch the latest block number of the chain, you can use the following code snippet:

???+ code "Complete script"

```javascript title="fetchLastBlock.js"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/fetchLastBlock.js'
```

## Compile Contracts

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:

```bash
npm install --save-dev @parity/revive
```

Here's a simple storage contract that you can use to follow the process:

```solidity title="Storage.sol"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/Storage.sol'
```

With that, you can now create a `compile.js` snippet that transforms your solidity code into PolkaVM bytecode:

```javascript title="compile.js"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/compile.js'
```

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.

## Contract Deployment

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:

```javascript title="deploy.js"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/deploy.js'
```
## Interact with the Contract

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:

```javascript title="updateStorage.js"
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/updateStorage.js'
```

## Where to Go Next

Now that you’ve learned how to use Web3.js with Asset Hub, explore more advanced topics:

- 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
- 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 comments on commit a6ba051

Please sign in to comment.