Skip to content
/ solidity-template Public template

OZ submodule set to compatible with 0.8.19 and solc at 0.8.19 to work on rollups

License

Notifications You must be signed in to change notification settings

siobh9/solidity-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Development Template

The first thing you should do is get Foundry installed.

Do do this, follow the instructions here under the "Use Foundryup" section. Namely:

  1. Run curl -L https://foundry.paradigm.xyz | bash in your terminal.
  2. Run foundryup in your terminal.

Once that has successfully run, then run forge build in the top directory of this repository in your terminal to compile and link all of the code (with the libraries) up.

Once you do this, you are ready to start editing, compiling, testing, and deploying the code in this repository.

Below you can find documentation on how to use forge (the Soldity development framework being used in this repository) and other Foundry tools available to you after running foundryup.

Foundry Documentation

https://book.getfoundry.sh/

Foundry Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

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

About

OZ submodule set to compatible with 0.8.19 and solc at 0.8.19 to work on rollups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published