Skip to content

whetstoneresearch/doppler

Repository files navigation

Doppler

Test

This reposity contains the Doppler Protocol along with the Airlock contracts.

Usage

Installation

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

Test

# 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

Deploy

First be sure to set the PROTOCOL_OWNER variable in your .env file. V1 contracts running on Uniswap V3 can be deployed using the following command:

# --rpc-url is the chain you want to deploy to
# --private-key is the deployer wallet (not the owner)
forge script ./script/V1DeploymentScript.s.sol --rpc-url https://... --private-key 0x... --broadcast