Henri Profile picture
Jul 13 17 tweets 7 min read
"Hey, how do I get started building on StarkNet?"

I often get asked this question, so here is a thread full of links.

From total noob to on chain wizard 👇
First of all, if you are totally new in web3, you'll need some background knowledge.

My favorite picks are still "Mastering Bitcoin" and "Mastering Ethereum", by @aantonop .

Both lay the foundations you'll need in your dev journey

github.com/bitcoinbook/bi…
Then, if you are new to smart contract programming, I'd recommend this tutorial.

It showcases simple functionalities one by one, and will get you to read & interact with smart contracts on StarkNet in order to grasp how they work.
github.com/starknet-edu/s…
If you already know how to program smart contracts and want to get into Cairo specifically, I'd recommend following this same tutorial

BUT

by following exercice 14 directly. Write a contract that validates all the exercices in one shot. I dare you.
github.com/starknet-edu/s…
Another excellent entry point to Cairo and StarkNet is StarkLings by @OnlyDust_xyz .

It is interactive and very well maintained, and the team at Only Dust will make your journey in the StarkNet ecosystem a pleasure
github.com/onlydustxyz/st…
Then let's talk about smart contract primitives you might be looking for.

How do you deploy an ERC20 on StarkNet?

Well, there's a tutorial for that. Note that it is made for people NOT familiar with ERC20, it's quite easy to get started
github.com/starknet-edu/s…
Same for ERC721: This tutorial is an introduction to how ERC721 tokens are designed and work, and how to customize and deploy one on StarkNet.

github.com/starknet-edu/s…
So far, we've seen "Doing stuff that you can do on Ethereum, on StarkNet".

What about the rest? Where is the good stuff, for hungry web3 people?

What can you do with StarkNet that you can't do anywhere else?
Let's start with cross layer communication. Design your own L1 <-> L2 bridge with this tutorial.

Burn tokens on a layer, mint them on the other one.
Send instructions, data or whatever you fancy.
github.com/starknet-edu/s…
Then let's talk about account abstraction.

There is no such thing as an EOA on StarkNet. Every account is a smart contract.
Scratch everything you thought you knew about UX and security trade offs on the blockchain.

Check this tutorial
github.com/starknet-edu/s…
Leverage computational power in your smart contracts.

Most people think "Scalability = cheap txs". What about "scalability = more complex txs"?

Physics on chain, anyone?
Explore this game github.com/Matchbox-DAO/f… and peer into the unknown
By this point, you'll need proper tools to debug your contracts.
Check out how to add breakpoints into your smart contracts
github.com/starknet-edu/s…
Do you want more magic?
How about trustlessly importing state from another blockchain into StarkNet

This is not a tutorial per se, but check out Fossil
github.com/OilerNetwork/f…
Maybe you are now wondering "But how does this all work?"

Explore the maths behind StarkNet, and StarkNet's inner working, with Basecamp.

github.com/starknet-edu/b…
What about Cairo?
Cairo is NOT a smart contract programming language.
It's a general purpose programming language, which allow you to write provable programs. Amongst which, smart contracts.
Explore the doc cairo-lang.org/docs/hello_cai… and use the playground
cairo-lang.org/playground/
"But I want moar maths"

There you go. Anatomy of a Stark is a great ressource
aszepieniec.github.io/stark-anatomy/
"How does the prover work?"

Write your own prover with this tutorial, and find out
starkware.co/stark-101/

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Henri

Henri Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @henrlihenrli

Jun 28
ELI5: The data availability problem.

Ever heard "Zk rollups", "Validiums", "Volition", "DAC", "Data availability layer" but not sure what they are?

~15 tweets and you'll know 🧶 Image
By now maybe you know what a validity proof is:
Alice executes a program, then sends the output + a proof of execution to Bob.
Bob verifies the proof, and has certainty that the output is correct
And it is cool because
1) Bob does not have to run the program and
2) Verify the proof is much easier than running the program and
3) Ethereum smart contracts are able to verify such proofs.

Cool.

What is then the data availability problem?
Read 16 tweets
Apr 28
Des copains me disaient avoir un peu de mal à comprendre ce qu'est le "web3"; j'ai essayé d'expliquer en quelques lignes ce que c'est. A dérouler 🧶 (10)

D'abord la base: "web3" c'est un terme marketing pour dire "crypto/blockchain".
Le Web3 fait à l'échange de VALEUR ce qu'internet a fait à l'échange d'INFORMATION. Internet a permis d'aplanir les échanges d'info en passant par moins/pas d'intermédiaires, et à n'importe qui d'innover dans ce domaine
Aujourd'hui, l'échange de valeur (argent, actions, biens) est dans la même situation que l'échange d'information pré internet.

Il y a des tas d'intermédiaires
C'est opaque
C'est lent
C'est cher
C'est très contraint géographiquement.
Read 10 tweets
Apr 4
Hey, psst
Wana deploy some ERC20?
On StarkNet?
Check this out 👇🧶
github.com/starknet-edu/s…
This tutorial has been out for some time already, but we haven't introduced it formally yet. It is the second opus in our tutorial series, following Cairo 101 (read contracts, interact with them).
But this time, you get to code, my child
The tutorial (written by @trevis_dev ) is basically a set of instruction for you to deploy an ERC20 and customize it.
To check that your code works as expected, your code is be corrected by another smart contract.
github.com/starknet-edu/s…
Read 11 tweets
Feb 10
"StarkNet's team is happy" understatement if I ever saw one haha

A short thread on scalability, transaction prices, and what to expect for the futur of fees on StarkNet 👇
StarkNet has had some performance issue lately. APIs are slow to query data from the chain; transactions take a long time to process.

Why is that? TLDR: Devs having fun coding crazy thins + user zerg rush
We saw a crazy increase in the number of requests to StarkNet. Both in number of requests, as well as complexity of requests.
Consider @briqNFT . They designed a brand new, ambitious game, that leverages computational capacity that is simply unimaginable in the EVM world.
Read 14 tweets
Jan 31
Do you want to start understanding / writing Smart contracts on Ethereum?
Here is a thread with a bunch of Solidity tutorials I wrote for my students at @ESILVparis
#1: Solidity 101. No coding required; just read, interact and collect points
github.com/l-henri/solidi…
#2: Creating money
A gamified workshop on ERC20 token. Create your own ICO, deploy it, allowlist people, get paid in ether, collect points
github.com/l-henri/erc20-…
#3: Owning stuff
Deploy you own ERC721 token. Create an animal registry! Customize it to let the animals live, die, breed, fight...
github.com/l-henri/erc721…
Read 12 tweets
Dec 2, 2021
So, you heard that #StarkNet Alpha is on mainnet (Yes, Ethereum Mainnet) and you want to try it out. Without spending money, preferrably.
I got you 😉🧶
A first quick disclaimer. Don't expect any kind of reward from the following, except learning some things about StarkNet and trying out a cool new L2.
We don't have a token.
So what does it mean for StarkNet to be on Mainnet?
- All the logic executed on StarkNet is secured by Ethereum
- You can transfer arbitrary messages between both chains
- You can use these messages to build bridges (more below)
Read 25 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(