Skip to content

subvisual/detris-contracts

Repository files navigation

Contracts template • tests lints GitHub GitHub package.json version

Foundry contracts templates

Getting Started

Click use this template on Github to create a new repository with this repo as the initial state.

Or, if your repo already exists, run:

forge init --template https://github.com/finiam/contracts-template
git submodule update --init --recursive
forge install

Install

You have 2 options , Nix or system dependencies with asdf.

We recomend you have direnv installed for both of them

Nix

We have a flake file.

Add experimental-features = nix-command flakes to your ~/.config/nix/nix.conf

And uncomment the use flake line on your .envrc

All the dependencies should be installed for you by nix

Sytem dependencies

If you need to install and read about forgery please go to

You need node 16 and yarn

You can use asdf and run asdf install

Deployment & Verification

Inside the bin/ directory there are a few scripts that can be used to deploy and verify contracts.These are simple wrappers for forge.

Interacting with contracts

Inside the bin/ directory there are a few scripts that can be used to send transactions and read contract state. These are simple wrappers for cast.

Writing Tests with Foundry

To learn about testing in Foundry see solmate

Configure Foundry

See the Foundry configuration documentation.

About

Contracts for the detris hackathon project - ETH Amsterdam 2022

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors