This repo uses foundry as the main tool for compiling and testing smart contracts. You can install foundry via:
curl -L https://foundry.paradigm.xyz | bash
For alternative installation options & more details see the foundry repo.
git submodule update --init --recursive
nvm use
npm install
npm run install
forge build
To run unit tests:
forge test
To deploy this onto a testnet / mainnet, run:
forge script script/setup_scaffold.s.sol --target-contract SetupScaffold
--rpc-url "http://127.0.0.1:8545" --broadcast -vvv
Are you interested in helping us build the future of Reservoir? Contribute in these ways:
-
For SECURITY related or sensitive bugs, please get in touch with the team at security@reservoir.fi or on discord instead of opening an issue on github.
-
If you find bugs or code errors, you can open a new issue ticket here.
-
If you find an issue and would like to submit a fix for said issue, follow these steps:
- Start by forking the amm-periphery repository to your local environment.
- Make the changes you find necessary to your local repository.
- Submit your pull request.
- Start by forking the amm-periphery repository to your local environment.
-
Have questions, or want to interact with the team and the community? Join our discord!