DEV Community

Ahmed Castro
Ahmed Castro

Posted on • Edited on

Smart Contracts en Scroll Alpha [ZK ESP Semana1]

Antes de comenzar

Asegurate de tener fondos en Scroll Alpha. Para obtenerlos te recomiendo esta guía a cargo de @Layer2es.

Lanza un contrato En Scroll Alpha

Lanza el siguiente smart contract en Remix.

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract SimpleToken is ERC20 {
    constructor(
        string memory name,
        string memory symbol,
        uint256 initialSupply
    ) ERC20(name, symbol) {
        _mint(msg.sender, initialSupply * 1 ether);
    }
}
Enter fullscreen mode Exit fullscreen mode

En el constructor coloca el nombre, el símbolo y el supply inicial en ether (como unidad de medida, o sea sin comas).

ERC20 Constructor Remix

Usa el Token

Agrega el address del contrato en tu metamask y podrás empezar a usar el token.

Agregar ERC20 a Metamask

Puedes probar agregar liquidez a uniswap en scroll como un primer experimento.

Para la siguiente semana

La siguiente semana lanzaremos un ZK Sudoku NFT en Goerli testnet. Será una introducción a circuitos ZK usando la librería Zokrates en combinación con contratos en Solidity.

Para la siguiente semana asegúrate de una wallet lista con fondos en Goerli Testnet. Adicionalmente necesitarás Node.js y un editor de texto, te recomiendo Visual Studio Code. A continuación te dejo los enlaces para la instalación:

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More