Network for development environment

To develop smart contracts on Titan L2, it is necessary to create an L2 development environment. While setting the development environment for L1 (Ethereum) is relatively simple, using tools such as Ganache or hardhat-node, L2 development environment requires additional resources. This section explains how to create a Thanos L2 development environment in a Linux-based environment.

Thanos supports L2 network deployment through simple command execution. This allows users to easily manage the network without complicated setup tasks. In addition, Thanos is highly scalable and flexible, allowing developers to adjust the network according to business requirements. These benefits will go a long way in helping developers build the IT infrastructure they need.

Prerequisite

  • CPU - 16 Core

  • Memory - 32GB

Git

Make

  • Debian/Ubuntu – apt install make

  • Fedora/RHEL – yum install make

  • Arch/Manjaro – pacman -S make

Build-essential

  • Debian/Ubuntu – apt install build-essential

  • Fedora/RHEL – yum groupinstall ‘Development Tools’

  • Arch/Manjaro – pacman -S base-devel

Go (v1.22.6)

Node.js (v20.16.0)

pnpm

Cargo (v1.78.0)

rustup install 1.78.0
rustup default 1.78.0

Docker engine

Run

git clone https://github.com/tokamak-network/tokamak-thanos.git
cd tokamak-thanos

pnpm install:foundry

make devnet-up

Stop

# down the network
make devnet-down

# down the network and remove generated files
make devnet-clean

Last updated

#106: Create Thanos Guide_Steven

Change request updated