Skip to content

Commit

Permalink
add frame section
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Aug 4, 2024
1 parent db300b5 commit 8c5c431
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions steps/1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,21 @@ To learn more about the runtime, and its role inside of the `polkadot-sdk`, chec

</details>

## 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.

Expand Down

0 comments on commit 8c5c431

Please sign in to comment.