This reposity contains the Doppler Protocol along with the Airlock contracts.
First, you will need to install Foundry if you don't already have it. Then, run the following commands:
# Clone the repository
$ git clone [email protected]:whetstoneresearch/doppler.git
# Install the dependencies
$ forge install
# Create a .env file for the configuration, don't forget to add an RPC endpoint for Mainnet
$ cp .env.example .env
# Then run the tests
$ forge test
Tests can be tweaked from the .env
file, this is a nice way to try different testing scenarios without recompiling the contracts:
IS_TOKEN_0=FALSE
USING_ETH=FALSE
FEE=30