From 8c5c4316bc85884b2424a95da2e79a8c8e02e8e5 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Sat, 3 Aug 2024 22:11:39 -0400 Subject: [PATCH] add frame section --- steps/1/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/steps/1/README.md b/steps/1/README.md index 3e1ce591..a35ffcbe 100644 --- a/steps/1/README.md +++ b/steps/1/README.md @@ -46,13 +46,21 @@ To learn more about the runtime, and its role inside of the `polkadot-sdk`, chec -## Pallets +## FRAME The `polkadot-sdk` provides a developer framework called FRAME. FRAME is an opinionated framework on how one should quickly and easily build and maintain a blockchain's runtime. -> NOTE: It is important to clarify that FRAME is not the only way you can develop a runtime for the `polkadot-sdk`, but it is the one that the Polkadot Network uses, and as a result, is most supported by the ecosystem. +> NOTE: It is important to clarify that FRAME is not the only way you can develop a runtime for the `polkadot-sdk`, but it is the one that the Polkadot Network uses and is most supported by the ecosystem. + +You can see in our project, nearly all of our dependencies come from a single crate named [`frame`](https://docs.rs/polkadot-sdk-frame/0.6.0/polkadot_sdk_frame/index.html). + +This crate is really just a convenience wrapper around other smaller crates, all exposed through [`frame::deps`](https://docs.rs/polkadot-sdk-frame/0.6.0/polkadot_sdk_frame/deps/index.html). + +For our tutorial, most of the types and traits we need access to are automatically brought into scope through [`frame::prelude::*`](https://docs.rs/polkadot-sdk-frame/0.6.0/polkadot_sdk_frame/prelude/index.html), however once in a while, we will need to import something more specific from [`frame::primitives`](https://docs.rs/polkadot-sdk-frame/0.6.0/polkadot_sdk_frame/primitives/index.html) or [`frame::traits`](https://docs.rs/polkadot-sdk-frame/0.6.0/polkadot_sdk_frame/traits/index.html). + +## Pallets FRAME's key decision is to break apart the blockchain runtime into separate logical pieces that can choose to interact with one another.