Block format, account abstraction
Light client support
State transition function
VU VY
All baked into the Substrate framework
Substrate
Consensus
Custom
Block
Execution
Block Builder Logic
Host
Functions Custom
Runtime
Transaction API
Pool
Business
Logic
Custom
Abstractions
e.g. Account,
Balances,
Substrate
| ucla
Compiled
Block Builder
Runtime a D Neen
Branssction API Runtime
Custom
Abstractions
e.g. Account
Balances,
ete
Import
Queue
Database
suba
5 Polkadot
State Transition
Function (STF)
How does your blockchain transition state?
How your blockchain executes blocks.
This is defined in the Substrate runtime.
Some cool logic
Update Balances
Mint NFTs
Vote on a referendum
Stake an Asset
Substrate
Telemetry
| ret | Your Runtime
Consensus i
Some cool logic
JSON-RPC
Update Balances
Block Builder Mint NFTs
Vote on a referendum
Stake an Asset
Functions
Transaction
Pool
State Transition Function (STF)
Bob => 100 DOT
Sr
Alice => 0 DOT
ate
21 State
STF
AO >
Send 10
DOT to
Eve
from
Bob
Bob => 90 DOT
(minus fees)
Eve => 10 DOT
Alice => 0 DOT
State
N+1
Polkadot
It starts from outside the blockchain with an extrinsic
Outside world “external”
An extrinsic is Substrate
lockchain
Executes
ransfer(Bob, Eve, 10) the extrinsic.
Haw does vaur hlackchain transitian state?
Blockchain’s
state changes.
Eve now has 10
more.
75 Polkadot subQ
Extrinsics
How extrinsics work
Executed Executed
= Block Block
N N+1 s
State State
N-1 N
Node Substrate
Telemetry
Consensus
Block Builder
Host
Functions
Transaction
Pool
‘ibp2p
Runtime
API
Runtime
|
NAT
/
/
I
N 7772
FRAME
The framework within the framework.
E
a, en;
=. 8
E
[a
— —
= =
== +
Pa ==
= Sy
=
73 Polkadot
FRAME
Framework for Runtime Aggregation of Modularized Entities (FRAME)
The framework within Substrate for building runtimes
> Modules with business logic (which we call pallets)
> Includes support libraries to aid development
Make building runtimes faster.
Substrate
Pallets
Consensus
Arecutive
Block Builder
Host
Functions Runtime
API
Transaction Staking
Pool
construct_r
untime!
(on)
Preimage
| _— | Fe
ee ee MESA
Balances Elections Atomic Swap
Multisig Collective Bounties
ee ees
Vesting Membership
Your
Pallets :
Runtime
Las Democracy | sudo | pa
pean aes MERS
Atomic
Electi P:
essen’ ER
Collective PELLE
a Sa ES
Your chain, your way!
Telemetry
Consensus
Block Builder
Transaction
Pool
+
Host
Functions
Executive
Runtime
API Treasury || Balances
Assets Democracy
NFTs
Compiled
v
Wasm
Database
Runtime
> Polkadot subQ
Forkless Upgrades
Since the application logic of the chain is stored on-chain as a
Wasm blob, upgrading the chain's business logic is as simple as
updating a key's value
:code => wasm_ runtime blob
Polkadot
Forkless upgrade by updating value for : code key
: codé 0x229
Ox££961 => 0x028 STF RY oxrros1 => ox045
Oxfd859 => 0x472 Upgrade Oxfd859 => 0x472
the
Substrate
runtime
Key-Value Key-Value
Database Database
@ e
State State
> Polkadot subQ
Legacy Upgrades
legacy way of upgrading
O |
upgrade!
75 Polkadot
Legacy Upgrades
legacy way of upgrading
| o Po. o Po
upgrade!
«
4
4
> Polkadot 558 SS SS suba
Forkless Upgrades
the Substrate-way of upgrading
o . Po : Po - Po. . Po. x » 8
upgrade!
trs +
75 Polkadot suba
Governance
There is governance; beyond sudo
You could have something as simple as using pallet collectives with
pallet membership and have a body do the decision-making for your chain.
You could take that a step further and couple it with pallet democracy to
have a more sophisticated voting / proposal / referenda system for your chain.
N ce
Why BZ
Mag
F
|
Why Substrate?
f AT
Bit LE
[lys
wnt
> Polkadot
Why Substrate?
Founders and developers can be confident that
their blockchain is ready for whatever the future
brings.
Focus on crafting the business logic that makes
your chain unique and innovative.