Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
e544961
update
kianenigma Jul 7, 2023
27391fe
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 7, 2023
e1288e9
improve 4.1 lecture
kianenigma Jul 9, 2023
5a48d39
address post lecture feedback
kianenigma Jul 9, 2023
ff42dbb
partial update ot 4.3 as well
kianenigma Jul 10, 2023
bfac2ba
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 11, 2023
555fa60
update storage lecture.
kianenigma Jul 11, 2023
54986fb
small update to diagrams
kianenigma Jul 11, 2023
00b5807
update wasm exec
kianenigma Jul 11, 2023
ed65279
basic frameless template now in order
kianenigma Jul 11, 2023
1f498cc
checkpoint for going all in on wasm?
kianenigma Jul 13, 2023
3b77131
wasm based tests work like a charm
kianenigma Jul 13, 2023
db23c62
wasm based tests work like a charm
kianenigma Jul 13, 2023
68ac25d
repot tests
kianenigma Jul 13, 2023
3d1e385
repot solution out
kianenigma Jul 13, 2023
b12fb72
all tests work, entirely separate solution
kianenigma Jul 13, 2023
db9f86e
all new system in place reading directly the wasm file
kianenigma Jul 13, 2023
a3ae0f9
Delete settings.json
nuke-web3 Jul 13, 2023
cabc908
finish frameless v3
kianenigma Jul 14, 2023
3268bda
Merge branch 'kiz-substrate-pba3' of github.com:Polkadot-Blockchain-A…
kianenigma Jul 14, 2023
8236fe2
update deps
kianenigma Jul 14, 2023
429b476
Update assets/styles/PBA-theme.css
kianenigma Jul 14, 2023
ea311ad
remove
kianenigma Jul 14, 2023
2aca65e
Merge branch 'main' of github.com:Polkadot-Blockchain-Academy/pba-con…
kianenigma Jul 14, 2023
5d0a91b
fmt and all
kianenigma Jul 14, 2023
6332a9c
push for nikos
kianenigma Jul 19, 2023
b7dc5cd
Add fade out
wirednkod Jul 19, 2023
fd114c0
fix up wasm lecture based on feedback, much better now
kianenigma Jul 19, 2023
d2f776a
fix up wasm lecture based on feedback, much better now
kianenigma Jul 19, 2023
5d557bd
update a few things
kianenigma Jul 19, 2023
2e63864
remove file
kianenigma Jul 19, 2023
a33c98b
undoe some unwanted changes
kianenigma Jul 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 42 additions & 10 deletions syllabus/4-Substrate/4.3-WASM-Meta-Protocol-Slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Recall that the boundary for this division is the **state transition**

note:


> It is only a matter of time until every blockchain is doing the same thing.

---v
Expand Down Expand Up @@ -224,11 +223,8 @@ https://paritytech.github.io/substrate/master/sp_runtime/generic/index.html

---v



<img style="width: 1200px;" src="../../assets/img/4-Substrate/dev-4-3-block-opaqueu.svg" />


---v

### Example #2: Block Import
Expand Down Expand Up @@ -259,9 +255,6 @@ struct RuntimeBlock {

</pba-cols>




---v

### Example #2: Block Import
Expand Down Expand Up @@ -299,7 +292,6 @@ implement in order to be called a "blockchain runtime".

- Previous slides used the term "transactions" in a simplified way. Let's correct it.


---v

### Detour: Extrinsic
Expand Down Expand Up @@ -436,18 +428,39 @@ database::store_state(block.header.hash, state)

## Example #3: Block Authoring

<<<<<<< HEAD

---v

### Example #3: Block Authoring


||||||| 6332a9c

=======
>>>>>>> b7dc5cd06fd96d376016fbb48ab91f4050969612
<img style="width: 1200px;" src="../../assets/img/4-Substrate/dev-4-3-author-pool.svg" />
<<<<<<< HEAD
<div class="fragment current-visible" style="border: 1px solid red; width: 200px; height: 100px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 75px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 50px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 25px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>

||||||| 6332a9c
<div class="fragment current-visible" style="border: 1px solid red; width: 200px; height: 100px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 75px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 50px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment" style="border: 1px solid red; width: 200px; height: 25px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>



=======
<div class="fragment fade-out" style="border: 1px solid red; width: 200px; height: 100px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment fade-out" style="border: 1px solid red; width: 200px; height: 75px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment fade-out" style="border: 1px solid red; width: 200px; height: 50px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>
<div class="fragment fade-out" style="border: 1px solid red; width: 200px; height: 25px; position: fixed; left: 470px; bottom: 200px; background: #140526"></div>

>>>>>>> b7dc5cd06fd96d376016fbb48ab91f4050969612
Notes:

The point being, eventually the pool builds a list of "ready transactions".
Expand Down Expand Up @@ -646,14 +659,33 @@ because it is dynamically typed, but if needed, it could.

$$STF = F(block_{N}, state_{N}) > state_{N+1}$$

*Anything that is part of the STF is opaque to the client, but it can change forklessly!*

_Anything that is part of the STF is opaque to the client, but it can change forklessly!_

<<<<<<< HEAD
- <!-- .element: class="fragment" --> The `F` itself (your Wasm blob)? It can change!
- <!-- .element: class="fragment" --> Extrinsic format? It can change!
- <!-- .element: class="fragment" --> State format? It can change!


||||||| 6332a9c
- The `F` itself (your Wasm blob)? It can change!
<!-- .element: class="fragment" -->
- Extrinsic format? It can change!
<!-- .element: class="fragment" -->
- State format? It can change!
<!-- .element: class="fragment" -->



=======
- The `F` itself (your Wasm blob)? It can change!
<!-- .element: class="fragment" -->
- Extrinsic format? It can change!
<!-- .element: class="fragment" -->
- State format? It can change!
<!-- .element: class="fragment" -->

>>>>>>> b7dc5cd06fd96d376016fbb48ab91f4050969612
Notes:

In essence, all components of the STF must be opaque to the client. `Vec<u8>`.
Expand Down