dbeal-eth / crescendo

Easy batching wrapper for major defi projects which reduces cost and improves user experience

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crescendo Optimizing Proxy

Crescendo is a gas optimizing proxy for popular defi protocols, such as Uniswap or stablecoins like Tether.

Spin up Local Development

To test crescendo in a local testnet, follow the following instructions:

  1. 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

  1. Compile typechain definitions: npx hardhat typechain
  2. (optional) run the tests: npx hardhat test
  3. 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/
  4. Open your browser to http://localhost:8080

About

Easy batching wrapper for major defi projects which reduces cost and improves user experience


Languages

Language:Solidity 50.2%Language:TypeScript 45.9%Language:JavaScript 1.8%Language:Shell 1.8%Language:HTML 0.2%