Skip to content

Commit

Permalink
Update Substrate slides post lectures (Polkadot-Blockchain-Academy#935)
Browse files Browse the repository at this point in the history
* updates to intro to substrate post lecture

* fix post lecture
  • Loading branch information
kianenigma authored Jan 18, 2024
1 parent 76f7f2e commit 274052e
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 10 deletions.
1 change: 1 addition & 0 deletions assets/img/5-Substrate/dev-4-1-contracts-full.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/img/5-Substrate/dev-4-1-smoldot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions assets/img/5-Substrate/ethereum-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions assets/img/5-Substrate/substrate-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 54 additions & 3 deletions syllabus/5-Substrate/1-Intro-to-Substrate_Slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Substrate is a pure technological investment against chain maximalism, even outs
can create sovereign chains with substrate, or Polkadot Parachains, or more hybrid things. More on
this when you learn about Substrate's role in the Polkadot ecosystem.

Figure: https://www.youtube.com/watch?v=0IoUZdDi5Is

---

## Core Philosophies of Substrate 💭
Expand Down Expand Up @@ -220,8 +222,7 @@ https://www.nsa.gov/Press-Room/News-Highlights/Article/Article/3215760/nsa-relea

Notes:

this is not 100% accurate though, rust has a small runtime that is the panic handler etc. Rust for
Rustacean's chapter on `no_std` covers this very well.
this is not 100% accurate though, rust has a small runtime that is the panic handler etc. Rust for Rustacean's chapter on `no_std` covers this very well.

Also, this is a good time to talk about how we use "Runtime" in a different way.

Expand Down Expand Up @@ -370,7 +371,7 @@ This is very similar to treating your own runtime as a smart contract.
### 🏦 Governance + Upgradeability

- Meta-protocol?
- &shy;<!-- .element: class="fragment" --> "*State machine as stored WASM* " in the Substrate node.
- &shy;<!-- .element: class="fragment" -->"*Runtime as WASM* " in the Substrate node.
- <!-- .element: class="fragment" --> Inherently upgradeable protocol?
- <!-- .element: class="fragment" --> WASM Runtime

Expand Down Expand Up @@ -526,6 +527,10 @@ https://forum.polkadot.network/t/announcing-polkavm-a-new-risc-v-based-vm-for-sm

- Node that follows headers, therefore knows state roots and can ask for state-proofs to do more.

Note:

Establish that it is merely an alternative node implementation.

---v

### State of Light Clients
Expand All @@ -551,6 +556,12 @@ configured with GRANDPA.

<img style="width: 800px;" src="../../assets/img/5-Substrate/dev-4-1-smoldot-browser.svg" />

Note:

Similarly it is dead simple to embed smoldot in mobile etc.

Separate lecture on this later.

---

## Communication Paths
Expand Down Expand Up @@ -631,6 +642,46 @@ fn main() {

---v

### Substrate and Smart Contracts

<img style="width: 800px;" src="../../assets/img/5-Substrate/dev-4-1-contracts-full.svg" />

---v

### Substrate and Smart Contracts

<pba-cols>

<pba-col>
<img style="width: 600px;" src="../../assets/img/5-Substrate/peter-parker-glasses-off.png" />
</pba-col>

<pba-col>
<img src="../../assets/img/5-Substrate/ethereum-logo.svg" />
</pba-col>

</pba-cols>

---v

### Substrate and Smart Contracts

<pba-cols>

<pba-col>
<img style="width: 600px;" src="../../assets/img/5-Substrate/peter-parker-glasses-on.png" />
</pba-col>

<pba-col>
<img style="width: 400px; background: white; border-radius: 50%; padding: 30px;" src="../../assets/img/5-Substrate/substrate-logo.svg" />
<p style="font-size: 6rem;">😎</p>
</pba-col>

</pba-cols>

---v


### Substrate and Smart Contracts

> SMOLDOT is syncing a chain who's runtime is executing wasm contracts.
Expand Down
20 changes: 14 additions & 6 deletions syllabus/5-Substrate/2-Wasm-Meta-Protocol-Slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ duration: 60 minutes

## It All Began With a Runtime..

<img rounded style="width: 1200px;" src="../../assets/img/5-Substrate/dev-4-3-substrate-wasm.png" />

---v

### It All Began With a Runtime..

- Personal opinion:

> Substrate technology stack will put "Wasm stored onchain" on the map,<br/>
Expand Down Expand Up @@ -1348,6 +1342,10 @@ SomeExternalities.execute_with(|| {

### Post Lecture Notes

HK:

- The panic section is so important and it comes at the end, therefore hard to understand. Simplify it and deliver it sooner.

---

## Appendix
Expand Down Expand Up @@ -1472,3 +1470,13 @@ come first, we also keep our example aligned.

Should you wish to see the real version of this, check this crate:
https://paritytech.github.io/substrate/master/sc_basic_authorship/index.html

---

## Misc

<img rounded style="width: 1200px;" src="../../assets/img/5-Substrate/dev-4-3-substrate-wasm.png" />

---v


0 comments on commit 274052e

Please sign in to comment.