Crescendo is a gas optimizing proxy for popular defi protocols, such as Uniswap or stablecoins like Tether.
To test crescendo in a local testnet, follow the following instructions:
- Install npm dependencies:
npm install
npm--save-dev hardhat ts-node typescript @types/node @types/mocha ethers @nomiclabs/hardhat-waffle ethereum-waffle hardhat-typechain typechain ts-generator @typechain/ethers-v5 @nomiclabs/hardhat-ethers chai @nomiclabs/hardhat-etherscan
- Compile typechain definitions:
npx hardhat typechain
- (optional) run the tests:
npx hardhat test
- Start up the local testnet:
- Start hardhat test network:
npx hardhat node
- Start opengsn relay and contracts:
npx gsn start
- Deploy crescendo ecosystem and contracts:
./deploy-local-env.sh
- Start web UI:
npx webpack && npx http-server build/
- Start hardhat test network:
- Open your browser to http://localhost:8080