Skip to content

Latest commit

 

History

History
138 lines (92 loc) · 4.07 KB

README.md

File metadata and controls

138 lines (92 loc) · 4.07 KB

The Scroll Handbook

Welcome. This is EasyA's legendary handbook. If you want to learn Scroll like a legend, then you're in the right place.

Purpose

This handbook serves as a guide to the Scroll ecosystem, geared towards those just joining for the first time. It isn't just a beginners' handbook; it's a legendary handbook. Even if you've already immersed yourself in the ecosystem, you'll find tons of helpful tidbits around here!

The EasyA App

Of course, the best place to start is always the EasyA app! Download it here for the fastest and most fun way to learn about Scroll. Download it directly right here!

Table of Contents

Introduction

What is Scroll:

  • Scroll Website - The official website for Scroll, a Layer 2 scaling solution for Ethereum using zero-knowledge proofs.

Getting Started

The no-fluff starter:

Core Concepts

Explanation of fundamental concepts in the Scroll ecosystem:

Development Tools

Key tools and environments for Scroll:

  • Hardhat - Hardhat configs for deploying and testing contracts on Scroll.

Smart Contracts

How to write and deploy smart contracts on Scroll:

Scroll Network

Going into the network level:

Ecosystem Projects

Cool projects built on Scroll:

Resources

Extra stuff:

Handy Code Snippets

Get a taste of Scroll development with these code snippets:

Configuring Hardhat

...
//
// Select the network you want to deploy to here:
//
const defaultNetwork = "scrollSepolia";
...
module.exports = {
...
  networks: {
...
          scrollSepolia: {
            url: "https://sepolia-rpc.scroll.io/",
            accounts: {
              mnemonic: mnemonic(),
            },
          },
  }
...
}

Creating a simple fungible token

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract MyToken is ERC20 {
    constructor(uint256 initialSupply) ERC20("MyToken", "MTK") {
        _mint(msg.sender, initialSupply);
    }
}

These examples showcase:

  1. How to configure Hardhat.
  2. A simple ERC20 fungible token contract that can be deployed on Scroll.

Contributing

We welcome contributions to make this handbook even more legendary! Here's how you can contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/amazing-addition)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add some amazing feature')
  5. Push to the branch (git push origin feature/amazing-addition)
  6. Create a new Pull Request

Please ensure your contributions align with our code of conduct and contribution guidelines.

Credit/Inspiration

This handbook was inspired by the famous awesome lists by sindresorhus. We need awesome lists for Web3 ecosystems, with more of a hacker's guide to how they work. This is the answer to that need.