Payment stream contract for pure.finance
Stack:
npm install
echo NODE_URL=YOUR_NODE_URL > .env # required for mainnet forknpx hardhat compilenpx hardhat testnpx hardhat coverageTo spin up a local fork and deploy the contracts, create a .env file with the following variables:
MNEMONIC: The 12-word mnemonic phrase to derive the dev/test accounts.NODE_URL: URL of the JSON-RPC node to fork from.
Then run:
npx hardhat nodeThe forked JSON-RPC server will start, listen in http://127.0.0.1:8545 and have the contracts deployed.