Skip to content

intls/foundry-monad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry-Monad

Note

In this foundry template the default chain is monadDevnet, if you wish to change it change the network in foundry.toml

Foundry-Monad is a Foundry template with Monad configuration. So developers don't have to do the initial configuration in Foundry for Monad network.

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.

Foundry consists of:

  • Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
  • Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
  • Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
  • Chisel: Fast, utilitarian, and verbose solidity REPL.

Requirements

Before you begin, you need to install the following tools:

Quickstart

To get started, follow the steps below:

  1. You can either clone this repo using the below command:
git clone https://github.com/monad-developers/foundry-monad

or

You can do it manually using the below set of commands:

mkdir [project_name] && cd [project_name] && forge init --template monad-developers/foundry-monad

The foundry project is now ready to be used!

Examples

Compile

forge compile

Build

forge build

Test

forge test

Deploy

forge create --private-key <your_private_key> src/Counter.sol:Counter

Verify Contract

forge verify-contract <contract_address> src/Counter.sol:Counter

Format

forge fmt

Gas Snapshots

forge snapshot

Anvil

anvil

Cast

cast <subcommand>

Help

forge --help
anvil --help
cast --help

About

Monad Configured Foundry template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%