Payment stream contract for pure.finance
Stack:
npm install
echo NODE_URL=YOUR_NODE_URL > .env # required for mainnet fork
npx hardhat compile
npx hardhat test
npx hardhat coverage
To 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 node
The forked JSON-RPC server will start, listen in http://127.0.0.1:8545 and have the contracts deployed.