peteris erins Profile Banner
peteris erins Profile
peteris erins

@p_e

5,146
Followers
639
Following
877
Media
12,669
Statuses

On a mission to discover the product playbook for early stage crypto. Protocol lead @aerafinance . Clients raised $450M+.

Protocol Breakdowns ๐Ÿ’ฟ โ†’
Joined November 2009
Don't wanna be here? Send us removal request.
Pinned Tweet
@p_e
peteris erins
5 months
Work on Aera and help shape the future of treasury management As we recently announced, @auditless has been tasked with supporting the @aerafinance Foundation in developing future versions of the protocol. To than end, we are hiring several protocol engineers at different
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
8
30
@p_e
peteris erins
11 months
Uniswap V3's license has now expired. Anyone can fork the protocol. But it's notoriously tricky to understand. Took me two days to fully *get* it. Here's my take on why it was hard and the one insight that unlocked everything.
13
34
203
@p_e
peteris erins
5 months
The Google search bar doesn't lie. @Starknet heating up...
Tweet media one
6
24
136
@p_e
peteris erins
10 months
ERC6551 is misunderstood. It doesn't just make NFTs better. It creates a new asset class โ€“ tradable collections of accounts. Remember what happens when a new asset class is created in crypto?
Tweet media one
17
23
147
@p_e
peteris erins
1 year
Cairo 1.0, the most advanced smart contract language to date, is coming; here's a master thread on everything you need to know. ๐Ÿ‘‡
2
32
134
@p_e
peteris erins
3 years
Time to get rigorous with Uniswap V3. How much more impermanent loss are LPs taking on with concentrated positions? - In the range [1/2 P, 2 P] where P is the current price, impermanent loss is nearly 4x higher - 10x+ higher for very narrow price ranges
11
27
127
@p_e
peteris erins
3 months
AggLayer is honestly one of the most impressive strategic counter-attacks I've seen in crypto. It negates switching cost effects of competitors + threatens to create a strong network effect. But at its core it's a counter-positioning strategy. It redefines the market.
7
18
129
@p_e
peteris erins
8 months
ERC4626 is my favorite standard. I've used it for over 5 vaults in 2 different smart contract languages. But one wonders โ€“ where is it going next? What does it enable? Here's the breakdown โ†“
Tweet media one
8
22
129
@p_e
peteris erins
6 years
@gordonbrander My favorites books about learning: @tferriss 4-hour Chef @RayDalio Principles @elonmusk biography @ID_AA_Carmack Masters of Doom An Actor Prepares Way of the Turtle The @McKinsey Way One L I've found practical examples of someone becoming the best at X most instructive.
4
13
118
@p_e
peteris erins
1 year
Rust in Cairo compiler Rust (wasm) in Cairo hints Rust in cairo-rs VM Rust in Protostar/cairo-foundry Rust in starknet-rs Huge implications for StarkNet developer ecosystem growth, individual as well as group productivity.
2
15
100
@p_e
peteris erins
1 year
Spearbit security audits are ruthless. Yet Arbor Finance passed with 0 Crits and 0 Highs. How? They followed the "Pre-Audit Checklist". Use it to ace your next audit. (Compatible with all blue chip auditors.) 1. Follow (so I can DM you) 2. Comment "Audit" I'll DM you.
Tweet media one
132
4
98
@p_e
peteris erins
1 year
Pleased to announce my latest AI-assisted project. Community Documentation for Sierra, Starknet/Cairo's intermediate language.
Tweet media one
5
20
91
@p_e
peteris erins
1 year
Starknet critics used to call it centralized, slow and difficult to learn. In less than a year, the end-to-end stack is being aggressively re-architected for performance and ergonomics. Moreover, the work is largely community-led. Secret sauce? Rust. ๐Ÿงต
2
14
86
@p_e
peteris erins
7 months
Happy to share that I'm a proud dad of this 3-week year old boy. No playbook for this yet, just trying to enjoy it. Many cliches I could say about the last 3 weeks... Instead, 3 things I'm grateful for: โ€“ Moms (sheesh!) โ€“ Flexibility and the fulfilling work I get to do (now I
Tweet media one
28
0
90
@p_e
peteris erins
10 months
Uniswap V4's most fun feature. Hooks. ๐Ÿช Why? Developers are using them to build next-generation AMMs. Want a preview? Here are all the hooks designs we've seen in the wild โ†“
Tweet media one
4
11
89
@p_e
peteris erins
1 year
Cairo 1.0 introduced a stable intermediate language called Sierra. This is an intro to reading Sierra for advanced developers, aspiring Cairo auditors and fellow compiler nerds. Welcome to the bleeding edge of code-to-STARK compilation: Summary below ๐Ÿ‘‡
4
56
86
@p_e
peteris erins
1 year
@BanklessHQ Easy - @Starknet Tech thatโ€™s not from 2013. No drama. Nicest community.
20
12
82
@p_e
peteris erins
6 months
Retroactive public goods funding is a powerful mechanism with fascinating implications. Which is why I'm excited that @Starknet is announcing the "Early Community Member Program". They are assembling a dominant collective of contributors. Apply by November 23. Link below โ†“
Tweet media one
6
16
78
@p_e
peteris erins
1 year
Starknet Early Adopter Grants Decisions are announced today. First big step towards sustainable community incentives.
2
16
78
@p_e
peteris erins
1 year
Never seen anything like this. ๐Ÿคฏ @cronfinance did a full stack simulation of their protocol. โ€ฃ Private Ethereum node โ€ฃ Simulates agents running arbitrage w/ real price information โ€ฃ Front-end where testers can act
Tweet media one
7
10
80
@p_e
peteris erins
1 year
OpenZeppelin created a beautiful new account contract for Cairo 1. Co-authored by @martriay @amxx @ericng39 @_andrew_fleming .
Tweet media one
4
14
74
@p_e
peteris erins
3 months
I donโ€™t think thereโ€™s an ecosystem that spots talent earlier than @Starknet and a lot of it was @GuthL who has an uncanny sense and a big heart for the rough diamonds.
@DCbuild3r
dcbuilder.eth โšช๏ธ
3 months
Thank you @StarkWareLtd @Starknet , appreciate you for all the support you have given me when I was just getting started on my journey as a research engineer with a grant for @devpillme to create a Starknet section and now for being a user of Starknet. โค๏ธ
Tweet media one
73
15
182
13
5
72
@p_e
peteris erins
2 years
Huge news ๐Ÿคฏ. StarkWare is catapulting Cairo from one of the lowest level smart contract programming languages to perhaps the only usable and performant high level smart contract language. Read up ๐Ÿ‘‡
@StarkWareLtd
StarkWare
2 years
Time to announce: Cairo 1.0 ๐Ÿฆ… This is Cairo's biggest advancement to date. Cairo 1.0 will enhance usability, safety, and convenience. It will support StarkNet's permissionless network requirements, and will simplify and secure the protocol
Tweet media one
46
203
604
3
15
73
@p_e
peteris erins
9 months
Account abstraction, intents, signatures, multisig wallets... These focus on interfaces from the user perspective. But offer very little composability... @safe {Core} solves this. Here's why you should read the whitepaper โ†“
Tweet media one
1
10
72
@p_e
peteris erins
6 months
Before we get too excited, Solana token transfers vs. @Starknet token transfers.
Tweet media one
Tweet media two
11
13
74
@p_e
peteris erins
8 months
zkVMs and coprocessors are the 2 killer use cases of zk in smart contracts. One concept helps understand how they are used by apps. Synchronicity.
Tweet media one
2
9
68
@p_e
peteris erins
5 years
@virgilabloh @OffWht @risd The @Harvard lecture is even crazier, students started throwing sneakers at Virgil to get them a limited edition @OffWht signature. Peak University times.
Tweet media one
2
8
68
@p_e
peteris erins
6 months
Back in 2021, @tarunchitra mentioned an idea he had for a decentralized treasury management protocol. @gauntlet_xyz had figured out a way to use a network of parameter submitters to collectively satisfy arbitrary treasury management objectives. Challenge This was one of the
Tweet media one
6
3
69
@p_e
peteris erins
10 months
There is one way to build a $1M NFT collection. "The Infinite Game" And @jackbutcher plays it it perfectly. His piece 008 was a masterclass hidden in a single picture. ๐Ÿงต
Tweet media one
3
13
70
@p_e
peteris erins
2 months
Starknet uses native multicall so this is still an overestimate. The thing that Optimistic roll ups had going for them was tx costs. Now their final defence will be to spend more on BD, community, incentives. @apolynya โ€™s thesis playing right out.
@GabinMarignier
Gabin
2 months
Most L2s are now using blobsโ€ฆ and Starknet is now the cheapest one ๐Ÿ˜ฑ
Tweet media one
9
12
82
12
15
64
@p_e
peteris erins
10 months
Parallel @parallelTCG are pioneering an interesting strategy in web3 gaming. They are both: โ€“ Building a "web3 native" autonomous worlds game (Colony) โ€“ Building a "web2 + NFTs" style trading card game (Parallel TCG) [IN PARALLEL.]
2
9
62
@p_e
peteris erins
1 year
Be lean with your MVP. Yagi: โ€“ got hundreds depositing in testnet vaults โ€“ helped automate several popular projects โ€“ just received an Early Adopter Grant from Starknet Running tech costs? $27/mo. Here's the breakdown ๊œœ
Tweet media one
1
8
58
@p_e
peteris erins
9 months
Thanks to many friends in the @Starknet community for providing me with ideas and vulnerabilities. Was fun to try & curate a small snapshot of things that can go wrong when building smart contracts with Cairo.
@SpearbitDAO
Spearbit
9 months
Curious about Cairo Security? Look no further. @SpearbitDAO has just released our seminar with @p_e on the new types of vulnerabilities and ideas that security researchers should keep in mind while reviewing Cairo code. 1-hour long of pure Cairo alpha ๐Ÿซก Link below ๐Ÿ‘‡
Tweet media one
2
18
58
1
11
58
@p_e
peteris erins
1 year
I'm releasing a minimal Cairo 1.0 template so you can try the language or start migrating your project right now.
4
10
60
@p_e
peteris erins
4 months
Cairo is provable Rust.
1
7
55
@p_e
peteris erins
1 year
Started compiling a set of resources about Cairo 1.0. The language is evolving quickly so one of the best ways to learn it is to study the corelib and projects like Quaireaux, Kakarot and Dojo. All that and more featured below: (PRs welcome)
3
19
58
@p_e
peteris erins
1 year
Earlier this year I started to tweet regularly. Thought I would hear: โ€“ Why are you wasting time โ€“ Isn't this too much work โ€“ Cringe Instead: โ€“ "Loving the content" โ€“ "Seeing a clear 0 to 1" โ€“ "How do I do this" Get friends that motivate you to keep going. โค๏ธ my crew.
6
2
59
@p_e
peteris erins
1 year
Want the secret to building a career in crypto? Stop chasing how people made money last year. Instead: โ€ฃ Follow your passion with consistency โ€ฃ Think about what the space needs next โ€ฃ Don't assume others will create demand โ€ฃ Go to ecosystems where you're wanted
2
15
25
@p_e
peteris erins
1 year
It's so over. While your favorite smart contract language is hoping to be more like Rust, Cairo is already a step beyond and incorporates a truly linear type system while maintaining the elegance of Rust-like syntax. TLDR; Cairo1 = best parts of Move + Rust + Linear Haskell
11
8
57
@p_e
peteris erins
10 months
Very promising that Open Zeppelin are migrating to Scarb. Cairo now has a universal package manager that is becoming accepted in the community, something that Solidity still doesn't have. .
0
8
50
@p_e
peteris erins
1 year
In Cairo, boolean operations are implemented as arithmetic operations over felt252 types. a & b = ab a | b = a + b - ab a ^ b = (a-b)^2 !a = 1 - a From the docs:
Tweet media one
1
6
46
@p_e
peteris erins
1 year
. @eniwhere_ added a memory data structure to the @KakarotZkEvm project. Memory is one of the hardest things to implement in an EVM, but the Cairo trait system allows the solution to resemble Rust/C++ implementations.
Tweet media one
2
11
44
@p_e
peteris erins
1 year
You wanted a GPT-4 prompt to convert Cairo 0 code to Cairo 1? Built by tensojka from @CarmineOptions . Sneak preview:
Tweet media one
5
12
48
@p_e
peteris erins
6 months
The smart contract dev stack is too complex. And it'll only get larger with coprocessors and client-side proving. @vercel solved this for UI development, incorporating client/server side computation in one platform. Want something similar on Ethereum? Just use Cairo. โ†“
Tweet media one
5
7
47
@p_e
peteris erins
1 year
Hosting a Starknet breakfast with @tarrenceva in NYC next Tuesday. Casual chat about Starknet and related topics: ZK, autonomous worlds. DM me for RSVP.
Tweet media one
0
4
45
@p_e
peteris erins
1 year
2023 is a great time to build a crypto company. The industry is 15 years old. Smart contracts have only been around for 8 years. Yesterday, 200+ people learned why AI has given crypto its biggest challenge to date. Miss the issue? Check it out now: .
1
20
23
@p_e
peteris erins
1 year
Surely Cairo 1 experimentation would slow down at some point? Not yet. 4 more Cairo snippets that foretell the Rusty future of L2 development.
Tweet media one
3
8
47
@p_e
peteris erins
1 year
I can't ignore it any longer. LLMs ( #GPT4 ) threaten to permanently disrupt the gradient of human productivity. We all need to step back, reflect and re-adjust. Over the next 2-weeks, l'll push hard to evolve my workflow, build tools and share the learnings. ๐Ÿ‘‡
1
5
45
@p_e
peteris erins
1 year
@Starknet Cairo 1 doesnโ€™t just look like Rust, itโ€™s incredibly fast. As a Solidity developer, I spent inordinate amounts of time writing and running tests. With Cairo 1, thereโ€™s no trade off between safety and productivity anymore. Stop overthinking gas optimisations and start building.
3
6
46
@p_e
peteris erins
10 months
Cairo is the language for game logic. @aloothero shows us why in this gem:
Tweet media one
4
5
42
@p_e
peteris erins
1 year
I'm launching a Substack. You can subscribe for free here: . I plan on sharing field notes about building great crypto products, mechanism design, engineering, strategy. If you like my Tweets, please subscribe and enjoy
4
4
43
@p_e
peteris erins
10 months
I know 10x TPS is exciting and all, But have you seen Cairo 2? A novel state machine composability pattern that breaks through the Solidity / Vyper trade off between extensibility and auditability. ๐Ÿคฏ
5
4
43
@p_e
peteris erins
9 months
. @worldcoin is misunderstood. It's neither eyeball harvesting nor "onboarding the masses" to crypto @worldcoin is a PLATFORM. It makes developing new financial primitives in emerging countries 10x easier. Let's dive in โ†“
Tweet media one
3
7
41
@p_e
peteris erins
6 years
Every week I share what I've learned in my journey to make good long-term decisions: tech, crypto, sci-fi, performance, longevity, investing, etc. ๐Ÿ“ฌ Because the best time to plan for the future is today.
Tweet media one
2
2
43
@p_e
peteris erins
1 year
A number of the early Cairo 1.0 repositories are focused on tooling to help w/ general computation (e.g., data structures) and games. So I'm releasing `suna`, a DeFi/financial use case focused Cairo library built for @yagi_fi . ๐Ÿงต below
2
8
42
@p_e
peteris erins
10 months
Learned that crypto Founders are still relatively unaware of @attio . It's quietly become the Linear of CRMs. Have been joyfully using for months, can't see going back to Hubspot.
Tweet media one
5
5
44
@p_e
peteris erins
1 year
They've done it again. @tarrenceva @dojostarknet created the ultimate integer type for DeFi. โ€“ Storage capacity of a felt โ€“ Future portability โ€“ Half the footprint of `u256`
Tweet media one
3
3
38
@p_e
peteris erins
1 year
StarkWare wrote a default ERC20 implementation in Cairo 1.0 that illustrates future conventions: - `felt` for addresses (for now) - u256 for amounts - u8 for name/symbol - underscore naming to break w/ EVM conventions
1
2
41
@p_e
peteris erins
1 year
How to migrate your protocol from Cairo 0 to Cairo 1. The ๐Ÿ”‘ is to play each stage correctly.
2
11
36
@p_e
peteris erins
8 months
Researchers who were interested in account abstraction once it arrived on EVM chains learned a lot from @Starknet 's early experience with it. In the same way, people who want to get deep on coprocessors should start by studying @HerodotusDev :
2
9
37
@p_e
peteris erins
5 months
Sequencing is at the intersection of L2 scaling & MEV, two of the most important topics in crypto right now. You don't just have to be an appchain developer to care. How far along is sequencing research? What are the crucial components? Here's the breakdown โ†“
Tweet media one
3
8
42
@p_e
peteris erins
9 months
10. Life is short Your attention is scarce. You should invest it by working with good people. Not by tearing others down. The market will take care of that.
1
8
39
@p_e
peteris erins
4 years
2
0
40
@p_e
peteris erins
1 year
Cairo is the most elegant and powerful smart contract language. โ€“ Helps you ship faster โ€“ Easier to build secure deep abstractions โ€“ A pathway to scaling/privacy with ZK More people will get to try it, and they won't go back. Let's track the journey of flipping Solidity.
Tweet media one
3
8
39
@p_e
peteris erins
9 days
The World Chain launch is misunderstood. Sure, it maintains a great user experience for $WLD grantees. But it also builds on @worldcoin 's counter-positioning advantage when others won't. Nobody else wants to deliver sybil-resistant blockspace. Their mistake. โ†“
Tweet media one
4
7
41
@p_e
peteris erins
2 years
The lasting innovation in AMMs is not the liquidity, itโ€™s the LP share. ๐Ÿ‘‡
2
2
38
@p_e
peteris erins
2 years
In other words - Galois Connections...
@ProgrammerSmart
๐ŸธSmart๐ŸธContract๐ŸธProgrammer๐Ÿธ
2 years
Math for vault. How much shares to mint? How much amount to withdraw?
Tweet media one
13
126
725
4
0
39
@p_e
peteris erins
1 year
Three bold new ways developers were using Cairo 1 last week. A thread ๐Ÿงต:
1
11
39
@p_e
peteris erins
1 year
Broke: Hard code zkEVM in your platform spending years. Woke: Build zkEVM as an app on your general purpose zk platform which anyone can tweak and evolve for their needs. In a month.
2
3
39
@p_e
peteris erins
7 months
Why does ERC4626 need an extension? @hieronx @ilinzweilin @vikramarun @joeysantoro recently proposed EIP7540 titled "Asynchronous ERC-4626 Tokenized Vaults". It adds: โ€ฃ two new actions users can take: requestDeposit, requestRedeem โ€ฃ two related view functions:
Tweet media one
4
6
40
@p_e
peteris erins
1 year
Every NFT contract needs an uri (shout out @ukolodny ) by @milancermak .
Tweet media one
2
5
36
@p_e
peteris erins
1 year
Still twiddling bits in Solidity-land? Meanwhile @raphael_dkhn implemented matrix multiplication in Cairo ๐Ÿคฏ
Tweet media one
3
5
37
@p_e
peteris erins
13 days
It's easy to assume Uniswap V4 is a platform for order flow. Instead, it's a "don't burn your hands" implementation of concentrated liquidity. One of the most complex things to build in crypto. Here's why โ†“
Tweet media one
3
9
40
@p_e
peteris erins
11 months
The one thing that Rust has but smart contract languages didn't. Macros. Yet @tarrenceva is using them in Cairo. @dojostarknet once again on the bleeding edge.
Tweet media one
7
6
37
@p_e
peteris erins
9 months
. @BuildOnBase got to $200M bridged in record time. Most importantly โ€“ unlike other L2s, it featured very little yield farming. So I wanted to replay what happened. Here's the crazy story of a flawless L2 launch. โ†“
Tweet media one
2
7
36
@p_e
peteris erins
1 year
Three Cairo 1.0 snippets from last week that are making Solidity developers jealous ๐Ÿ‘‡
1
8
37
@p_e
peteris erins
1 year
All the lights in the windows are the French Cairo devs building.
@RaminNasibov
Ramin Nasibov
1 year
by Evgeny Lushpin
Tweet media one
4
82
484
2
2
35
@p_e
peteris erins
9 months
I'm seeing some difficult conversations in my favorite communities recently. Politics. Decided to try & avoid it as much as possible a while ago. Here's how I stayed sane when navigating political minefields in S&P 500 companies. โ†“
4
6
36
@p_e
peteris erins
1 year
It's Monday. 4 Cairo snippets from last week that will make Solidity developers jealous.
Tweet media one
6
6
35
@p_e
peteris erins
5 months
Five years ago (in December 2018), I left my job at @McKinsey to start @auditless and build crypto developer tools focused on security. I kept exploring various product ideas while consulting crypto companies, building developer tools and smart contracts. It was easily the
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
2
36
@p_e
peteris erins
1 year
Cairo 1 is the first smart contract language that feels like a regular programming language out of the box.
@ametel01
ametel01.stark
1 year
After writing Cairo 1.0 for a few days I have to say that the improvements in dev experience are impressive! Still Iโ€™m proud to be one of the few thousands devs part of the Cairo 0 era.
5
4
52
2
2
35
@p_e
peteris erins
10 months
Onchain games often require a form of low-stakes pseudorandomness. Here's an interesting approach to generate random numbers for special names assignments by @aloothero for Survivor:
Tweet media one
3
4
32
@p_e
peteris erins
6 months
Great post on why instead of writing Solidity for your smart contracts and custom DSLs to invoke coprocessors, you should just write Cairo for all of it. You need a language that facilitates validity proof aggregation from ZKRs, coprocessors, client side proving, etc.
@0xmattegoat
Matteo ๐Ÿงฉ๐Ÿฆ‡๐Ÿ”Š
6 months
Feeling cute, might delete later:
3
16
76
3
6
32
@p_e
peteris erins
6 days
If you haven't started to rethink the utility of your Solidity events yet, you should. @shadowxyz introduces 1000x savings compared to letting users pay for events. But the roll-out won't be straightforward as other indexers respond. Here's how I expect this to play out. โ†“
Tweet media one
3
4
33
@p_e
peteris erins
2 years
Tweet media one
4
7
31
@p_e
peteris erins
1 year
โšก๏ธ Fresh look for @yagi_fi .
Tweet media one
4
3
32
@p_e
peteris erins
1 year
Getting feedback that Graph isn't free anymore and the new pricing is confusing. What options are people exploring? Who is building indexing 2.0? Who is picking up the public goods mantle?
Tweet media one
41
4
31
@p_e
peteris erins
11 months
@PaulRBerg @bryan_johnson Long-term there could be a flywheel. 1) Make the subscription available 2) Get NBA players on it and talking about how they swear by it 3) Youth start emulating 4) Keep introducing flavor variations & technologies 5) Make "cool" Blueprint restaurants Society can be reprogrammed
3
3
29
@p_e
peteris erins
1 year
It's Sunday morning and the two Cairo neural network projects are at it. @franalgaba_ @raphael_dkhn Are you still sleeping on Starknet?
Tweet media one
0
5
30
@p_e
peteris erins
1 year
@tarunchitra I'm betting $1M that in 6 months the S&P 500 will consist only of zkEVMs.
2
4
30
@p_e
peteris erins
4 months
Uniswap V4 introduced a new protocol aggregator pattern for DEXes. It's inevitable that the other major DeFi use case follows suit (lending). Enter @AstariaXYZ Starport. I wanted to figure out whether it goes beyond simple modularity into true aggregation โ†“
Tweet media one
5
7
30
@p_e
peteris erins
10 months
ERC6551 introduces "Token Bound Accounts" @BennyGiang โ†’ @futureprimitive โ†’ @erc6551 Each NFT now manages a dedicated set of wallets. Each wallet is managed by the current NFT owner only.
Tweet media one
1
4
29
@p_e
peteris erins
1 year
You can now initialize autonomous worlds in Cairo. @fntupas built an initializer for @dojostarknet Great to see Starknet leading the aw trend.
Tweet media one
3
4
27
@p_e
peteris erins
1 year
Prediction: Starknet / Cairo will become a world class prototyping environment for Solidity devs wanting to build innovative protocols. Then it will take over.
1
2
29
@p_e
peteris erins
7 months
I'm back
7
0
27
@p_e
peteris erins
10 months
I spot a new Starknet game developed in the open. Tsubasa. All good things start with a single felt252 slot. Written by @lucas_lvy (always fun to see Cairo code from @StarkWareLtd )
Tweet media one
2
3
28