https://github.com/aave/ethlondon-flash
Flashy workshop
https://github.com/aave/ethlondon-flash
Last synced: 2 months ago
JSON representation
Flashy workshop
- Host: GitHub
- URL: https://github.com/aave/ethlondon-flash
- Owner: aave
- License: mit
- Created: 2020-02-28T17:48:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T01:30:13.000Z (over 2 years ago)
- Last Synced: 2025-04-12T10:04:15.631Z (2 months ago)
- Language: JavaScript
- Size: 474 KB
- Stars: 37
- Watchers: 4
- Forks: 16
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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