Discover and read the best of Twitter Threads about #solidity

Most recents (24)

🚀 The biggest #AMM on #Optimism with only $20M MC but holding $250M TVL

Just add $Velo @VelodromeFi to my portfolio!

MC: $20M; Price: $0.08

The OP eco will heat up again and all things've been done for the next big boom of $Velo

A thread on $Velo 🚪 why you shouldn't fade it Image
1️⃣ OP's bedrock upgrade

▪️ Bedrock is a huge upcoming upgrade for the Optimism chain that allows for reduced fees and transfer times up to 4x faster.

▪️ To catch details about Bedrock and the current state of Optimism, read this thread 👇🏻
2️⃣ A quick introduction to Velodrome.

▪️ Velodrome is an #AMM and a liquidity marketplace built on #Optimism, Velodrome is a fork of #Solidity.

▪️ Velodrome aims to provide the deepest liquidity, lowest slippage, and the best rates on the market for its users.
Read 14 tweets
Have you ever wondered what sets CREATE apart from CREATE2? Let's find out..

In Solidity, `create` and `create2` are important opcodes for smart contract creation. `create` deploys a new contract, while `create2` creates a contract at a deterministic address based on input.
Here's an example of how `create` works:

This deploys a new instance of `NewContract` and returns the address of the new contract. The formula for determining the contract address is `keccak256(sender, nonce).`

#solidity Image
create2 is more complex. It calculates a deterministic contract address using four inputs: sender address, salt, bytecode, and constructor arguments. The formula is keccak256(0xFF, sender, salt, keccak256(bytecode)).
Read 6 tweets
🚀Hey, Twitter fam! Are you a #Web3 enthusiast or a developer looking to level up your #Ethereum skills? You're in luck- here’s a new #Solidity guide for you!📚💙

Tracking some Bored Apes: The Ethereum event logs tutorial

docs.chainstack.com/docs/tracking-…

1/5 More on this below ↓ 🧵 Image
2/5 🗂️ Just like in meetings, logs are essential in programming to record important events & activities. In Solidity, the workaround for logging is through events stored in Ethereum Virtual Machine (EVM) logs. 🌐
3/5 🌟 EVM logs help developers gain deeper insights into activities on the Ethereum network. With events in Solidity, smart contracts can communicate with the outside world & record vital info on the network. But how do we access these logs? 🤔
Read 5 tweets
0/ @SuiNetwork is valued at USD 2 BILLION & is close to launching a mainnet able of processing >100'000 TPS 🚀

NO AIRDROP but the $SUI TSUNAMI is still coming and YOU should get ready to surf it in 2023 🌊🏄‍♂️

so time to DYOR 📚🔍

ALPHA-packed GIGA research 🧵 on #Sui (0/47) 💧 Image
1/ contents:

🖥️ Move Language (2-8)
🤝 Consensus Mechanism (9-16)
⛓ Parallel Execution (17-20
💾 Data Storage Fund (21-23)
⛽️ Gas Pricing Mechanism (24-26)
🪙 Tokenomics (27-32)
⚖️ Governance (33)
💼 Team & Funding (34-38)
🌐 Ecosystem (39-44)
🔍 Conclusion (45-47)
2/ 🖥️ Move Language

#Move is a programming language developed by #Sui that provides comprehensive security for smart contracts at several levels:

🛡 Language design
🛡 Virtual machine
🛡 Contract invocation
🛡 Contract execution Image
Read 52 tweets
🧑‍💻 Creating a Smart Contract: A Beginner's Guide

Explore the essential steps in the thread below ⬇️

🧵... Image
⏲️ First of all, we need to prepare for creating the smart contract

We need to clarify what is transaction on a code level, that is #solidity, IDE & External Tools
⛓️ Transaction

An #Ethereum transaction is a message between accounts, including info about Ether/assets being transferred, recipient address & more

Transactions can also contain smart contract function calls, enabling interaction with #dApps
Read 8 tweets
I'll show you how a friend foolishly lost several $BNB by getting scammed

AND

How it could have been easily avoided !

SECURITY THREAD 🧵🧵🧵
Let's call this victim Paul!

Paul came across this Youtube video and followed the recommendations of this video.



DON'T DO IT !!!! IT IS A SCAM !!
It's just to show how you can avoid it
This video provides a so-called Arbitrage contract that it is possible to relaunch on Solidity to earn several $BNB per day from a single investment BNB.

Yes of course … we believe in it 🤬
Read 22 tweets
[#THREAD]

👋

Aujourd'hui, je vais vous montrer comment créer un contrat de NFT qui autorise le paiement en #stablecoin à la place de l'ether pour éviter la volatilité (👀).

Suivez ce thread pour apprendre comment mettre en place cette solution technique simplement.

🧵👇
Mise en situation :

Vous lancez une collection de NFT sur la blockchain #Ethereum... mais vous avez besoin d'un montant très précis, 100$ par NFT, pas plus, pas moins.

Et la se pose un problème, un mint en ether induit forcément la variation du cours...
Heureusement, il existe une solution à votre problème...

Les #stablecoins !

Des tokens indexés au cours de l'USD qui (en théorie) ne varient pas.

Mais est-ce possible de mint des NFTs en échange de stablecoins ?
Read 16 tweets
Solidity Data Storage Location Comparison:

storage vs memory vs calldata.

A 🧵 to help you better understand solidity and write gas-efficient smart contracts
In Solidity, variables can be stored in three different locations: storage, memory, and calldata.

Each of these locations has its own unique characteristics, and it is important for Solidity developers to understand how each of them works.

Let's break them one by one:
Storage

Storage is a permanent storage location that is written to the blockchain.

Variables stored in storage are persistent and can be accessed by any function within the contract. However, accessing variables in storage is more expensive than accessing variables in memory. Image
Read 9 tweets
1/ Solidity is indispensable for developers building #decentralized applications‼️ This article will discuss how the delegatecall in #Solidity can introduce vulnerabilities in #smartcontracts and highlight measures for preventing issues associated with using it in your code.💡
2/ 𝗪𝗵𝗮𝘁 𝗜𝘀 𝗗𝗲𝗹𝗲𝗴𝗮𝘁𝗲𝗰𝗮𝗹𝗹?
In #Solidity, call and delegatecall are low-level interfaces for interacting with contracts. Triggering the call function in a contract causes the code at that address to execute in the context of the target contract.
3/ #delegatecall works differently because execution occurs in the context (programming environment) of the caller contract. For example, a delegatecall from contract A to contract B would modify contract B’s storage using functions in contract A. #smartcontracts
Read 5 tweets
1/15 Recently, I came across a r/cc thread that stated "97.7% of tokens launched on Uniswap were rugpulls according to a finding." The situation on BSC (pancakeswap) is even worse.
Another educational 🧵
#Radix #EVM #rugpulls #liquiditylocks #smartcontracts #cryptoinvesting $xrd
2/15 This particular sentence has caught my eye:


"More precisely, we show that 90% of tokens using locking contracts tend to become a #rugpull or a malicious token eventually."
3/15 Sometimes liquidity locks on #EVM chains are only a few minutes long to trick the bots. Other times, they are legitimate-looking 1+ year locks.
Read 15 tweets
During my experience with DamnVulnerableDefi v3, I discovered the usage of several Solmate contracts.

Since I've compiled extensive study notes on some of these contracts, I'm sharing them to help you in your endeavors.

Today, we'll begin with Soulmate's ERC20 👇
First, if you are interested in my previously published content - you can find it easily here.

bytes032.xyz

DISCLAIMER: Everything provided in this thread is subject to my own interpretation of how things work.
Solmate's ERC20 implementation touts itself as a modern, gas-efficient ERC20 with integrated support for EIP-2612. Today, I will only touch the "stuff that caught my interest", so I don't bloat the thread.

github.com/transmissions1…
Read 25 tweets
Ya sabes que #Web3 es un ecosistema incipiente pero con gran futuro del #SectorIT. ¿Quieres aprender sobre el futuro de la #web con 4⃣ recursos 🔝🔝 GRATIS y 1⃣ de pago? En este HILO 🧵lo tienes TODO ⬇️⬇️⬇️ #blockchain #programacion #software #it
Como introducción, en sólo 2⃣h, @midudev con @gndx nos ofrecen esta tremenda introducción a #web3 con #javascript 💛 #programacion #blockchain #informatica #tecnologia
Si estás un poco perdido con el tema de #Web3, este vídeo de @CaveCoder es ORO puro. Un roadmap con todo lo que necesitas para adentrarte en este ecosistema. MUY 🔝🔝 #informatica #blockchain #bitcoin #programacion #tecnologia
Read 9 tweets
You may have heard about "Modular" blockchains...
What are they?

"The future is modular." - @fuellabs_

🧵 Thread Image
In this thread, I will go through:
🗣
1️⃣ Modular VS Monolithic.
2️⃣ What Fuellabs is.
3️⃣ The FuelVM.
4️⃣ Parallel transaction Execution.
5️⃣ Sway Language.
6️⃣ The Modularity.
7️⃣ Fuel as a L1.
8️⃣ Fuel as L2.
1️⃣ First: What do "modular" and "monolithic" mean?

🧩 Modular: A flexible arrangement composed of software or hardware modules that can be altered or replaced without affecting the remainder of the system.

🗼Monolithic: Characterized by massiveness, rigidity, or inflexibility.
Read 19 tweets
👩🏽‍🚀 #StarkNetEco 👨🏽‍🚀

距离 @matchbox_dao 「泰坦之战」Twitch 直播淘汰赛倒计时 3 周 🏎️

用户可在 Twitch 平台上收看 0xMonaco 最佳 web3 公司编码游戏比赛 🤖 @Battle0xTitans

📅 1 月 29 日星期日
🎙️ 讲解员有前职业电竞选手,《堡垒之夜》全球前 13 和一名 StarkWare 开发人员
本期 0xMonaco web3 技术团队的封闭式联赛有三个赛段:

🚀 入围赛(1 月 22 日)
🚀 小组赛
🚀 淘汰赛/决赛(1 月 29 日)
以及在示范版本中新添道具和前端优化 🎲

🎲 向后发射炮弹
🎲 超级炮弹,范围是使用者前面所有车
🎲 放置香蕉,阻挡第一辆经过车辆
🎲 盾牌,保护自己不被炮弹影响
Read 4 tweets
#Solidity is the most adopted smart contract language for web3 devs. Going web2 ➡️ web3 requires a paradigm mindshift 🤯

Here's how one can master solidity to the point of mastery 🧙‍♂️ Specially from a security perspective 👀🧵
Solidity's syntax is very similar to that of JavaScript/Java, though typed.

Knowing CS fundamentals or at least prior knowledge of another programming language like Python or JS is quite helpful. It's good that you already went through the programming mind-blowing rabbithole 🐇
The best way of getting acquainted with the Solidity syntax is to go through playful tutorials like the CryptoZombies one. But this is just a soft jump 👀

To actually go full chad mode you should eventually go to comprehensive tutorials like the ones by @PatrickAlphaC 💪
Read 8 tweets
[#CALENDRIER DE L'AVENT 25/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 25 / 25 : Récap de l'aventure, et thread de mes 24 threads ! ❤️

Retweet et like ça t'a plu ! 💪

🧵
Avant tout, je tiens à re-remercier énormément @CryptoLidl pour les 25 vidéos illustratives du calendrier !

Il est disponible pour vous assister dans la création de contenu (support visuel, montage, etc.).

Si vous êtes intéressé, n'hésitez pas à le contacter via Twitter.
Je sais que le format Twitter n'est pas l'idéal pour beaucoup, ne vous inquiétez pas, je travaille à passer tout ceci en format article pour que cela soit bien plus simple à suivre/réaliser !
Read 31 tweets
[#CALENDRIER DE L'AVENT 24/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 24 / 25 :

Déploiement de tous nos contrats, nous allons pouvoir déployer l'ensemble de notre travail sur la blockchain ! 🎊

🧵
Avant de commencer, vous pouvez récupérer l'ensemble des trois contrats dans le répertoire "solutions" ainsi que le script de déploiement.

Si vous ne les avez pas dans votre projet : git pull.
Read 24 tweets
[#CALENDRIER DE L'AVENT 23/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 23 / 25 :

Staking : Comment récupérer la liste des tokens stakés par un utilisateur ? C'est ce que nous allons mettre en place aujourd'hui 💪

🧵
Avant de commencer, vous pouvez repartir du code développé hier.

Il est présent dans le répertoire "Jour23/Staking_Jour23.sol".

N’oubliez pas de modifier les noms et les imports.

Si vous n'avez pas ce répertoire : git pull.
Read 18 tweets
⚡️ #StarkNetDev 🤖

Solidity ➡️ Cairo 的转译器 Warp 团队给出了 3 个技巧

让你的 Warp 使用更轻松!

1. #Cairo 块进行输出式调试
2. 用原生 Cairo 合约进行编排
3. 记住这些微小的差别

h/t: @swp0x0
Warp 中的 Cairo 块可以让你在写 #Solidity 代码的同时写 Cairo 代码!!

利用 Cairo 块来做输出式的调试

把你的调试输出放在 Cairo 提示中,并除掉中间值,这只在使用本地 StarkNet devnet 的情况下有效
查看相关文档 ⬇️
nethermindeth.github.io/warp/docs/feat…

用 Warp 来移植 SNARK 验证器
Read 7 tweets
[#CALENDRIER DE L'AVENT 22/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 22 / 25 :

Staking : Nous savons staker, récupérer les récompenses, il est temps de pouvoir récupérer les NFTs stakés ! 🖼️

🧵
Avant de commencer, vous pouvez repartir du code développé hier.

Il est présent dans le répertoire "Jour22/Staking_Jour22.sol".

N’oubliez pas de modifier les noms et les imports.

Si vous n'avez pas ce répertoire : git pull.
Read 17 tweets
[#CALENDRIER DE L'AVENT 21/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 21 / 25 :

Staking : Aujourd'hui nous allons gérer les récompenses du staking, ainsi que le claim de ces récompenses ! 💸

🧵
Avant de commencer, vous pouvez repartir du code développé hier.

Il est présent dans le répertoire "Jour21/Staking_Jour21.sol".

N’oubliez pas de modifier les noms et les imports.

Si vous n'avez pas ce répertoire : git pull.
Read 20 tweets
[#CALENDRIER DE L'AVENT 20/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 20 / 25 :

Staking : Le staking des NFTs ! Comment faire pour que le contrat permette de staker un NFT ? C'est ce que nous allons développer aujourd'hui. 🔥

🧵
Avant de commencer, vous pouvez repartir du code développé hier.

Il est présent dans le répertoire "Jour20/Staking_Jour20.sol".

N’oubliez pas de modifier les noms et les imports.

Si vous n'avez pas ce répertoire : git pull.
Read 19 tweets
[#CALENDRIER DE L'AVENT 19/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 19 / 25 :

Staking : Nous allons entamer notre contrat de staking ! Parlons imports, initialisations et variables.

🧵
Vous savez comment va fonctionner globalement notre contrat de staking, il est temps de le développer !

Allons-y 🔥
Read 12 tweets
[#CALENDRIER DE L'AVENT 18/25]

25 jours pour apprendre à développer des Smart Contracts en #Solidity 🔥

Jour 18 / 25 :

Staking : Comment ça fonctionne ? Qu'est-ce que c'est ? C'est ce que nous allons voir aujourd'hui ! 🔥

🧵
Hier nous avons déployé notre premier contrat ERC20.

Aujourd'hui, nous allons parler staking ! Mais avant tout, nous allons refaire un point sur la globalité de notre projet !

En route 🔥
Read 17 tweets

Related hashtags

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.00/month or $30.00/year) and get exclusive features!

Become Premium

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

Donate via Paypal Become our Patreon

Thank you for your support!