Skip to content

Hackathon-Dev-Collective/NFTMarketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foundry

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.

Documentation

https://book.getfoundry.sh/

Usage

env

$ source /Users/kylemao/.bashrc 

Install

$ forge install OpenZeppelin/openzeppelin-contracts@v4.8.0
$ forge install OpenZeppelin/openzeppelin-contracts-upgradeable@v4.8.0

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Deploy

$ forge script script/DeployNFTMarketplace.s.sol --rpc-url "https://linea-sepolia.infura.io/v3/${INFURA_PROJECT_ID}" --private-key "${PRIVATE_KEY}" --broadcast 

Verify

$ forge verify-contract --rpc-url https://rpc.sepolia.linea.build --verifier blockscout   --verifier-url 'https://api-explorer.sepolia.linea.build/api/' --compiler-version 0.8.27  <ConstactID>  ./src/NFTMarketplace.sol:NFTMarketplace

Other Usage

Gas Snapshots

$ forge snapshot
$ forge snapshot revert <snapshot_id>

Anvil

$ anvil

Cast

$ cast <subcommand>

Help

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors