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.
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
0x8cc0381cE460650bECd4285fB96F5dA16cD5FFa1
0xf80a32a835f79d7787e8a8ee5721d0feafd78108
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
0xD81e1388a956f5E305885fEE8861A523B7e9Ee97
Thanks to David for the flashloan.sol template https://github.com/mrdavey/ez-flashloan