Solidity
Solidity is the most widely used language for writing smart contracts that run on the Ethereum Virtual Machine (EVM). With syntax inspired by JavaScript and C++, it lets you build decentralized applications (dApps), tokens and DeFi protocols. Young but key in the Web3 world.
- Creado por Gavin Wood (Ethereum)
- Año 2014
- Paradigma: Contract-oriented · compiled (EVM)
- Extensiones: .sol
Para qué se usa
- Smart contracts
- Decentralized apps
- Tokens and DeFi
A favor
- Ethereum standard
- Familiar syntax
- Key in Web3
En contra
- Very costly bugs
- Young and unstable
- Delicate security
Ecosistema
- Foundry
- Hardhat
- Remix
- OpenZeppelin
- ethers.js
- viem
Ejemplo
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Hola {
string public saludo = "¡Hola, mundo!";
}