aave / ethlondon-flash

Flashy workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETHLondon Aave Flash Loans workshop

Setup

  • docker-compose up will start the docker container development environment and the ganache container.
  • In a different console, docker-compose exec contracts-env bash to connect to the running container.
  • Inside the container, all the interaction with the smart contracts should be done through the following npm scripts, wrapping truffle framework's features.

Available npm scripts

The smart contracts' related npm scripts on package.json are prefixed with a network id: dev: for Ganache network and ropsten: for Ropsten network.

The main available scripts (using the dev: prefix as example) are:

  • npm run compile: Compiles the Solidity contracts.
  • npm run dev:migrate: Executes the migrations for the corresponding network.
  • npm run dev:cleanDeploy: removes the build/ folder of the compiled contracts, compiles them again and executes npm run dev:migrate

Addresses

FlashExchange (Ropsten)

0x8cc0381cE460650bECd4285fB96F5dA16cD5FFa1

DAI (Ropsten)

0xf80a32a835f79d7787e8a8ee5721d0feafd78108

ETH Address (Ropsten, Mainnet)

0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE

FlashExchange (Mainnet)

0xD81e1388a956f5E305885fEE8861A523B7e9Ee97

Credits

Thanks to David for the flashloan.sol template https://github.com/mrdavey/ez-flashloan

About

Flashy workshop

License:MIT License


Languages

Language:JavaScript 100.0%