From 639e2c3a46ae2202a5b21b2a3223efd176df9086 Mon Sep 17 00:00:00 2001 From: shivani Date: Mon, 7 Jun 2021 15:18:26 +0530 Subject: [PATCH] =?UTF-8?q?=20=E2=9C=A8=20update=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/README.md b/README.md index d59473e7..b4c0e6e4 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,70 @@ docker-compose exec contracts-env bash npm run aave:kovan:full:migration ``` +### Kovan Aave Pro Deployment + +You can deploy aave-pro with default configuration on kovan. + +In `markets/aave-pro/commons.ts` make following changes: + +- Configure `ProviderRegistryOwner` + + Set owner to your deployer address with kovan funds. + + **Notet:** Script uses first address generated, from `MNEMONIC` provided in `.env` file, as the deployer. + + ``` + ProviderRegistryOwner: { + [eEthereumNetwork.kovan]: '0xyourDeployerAddress', + // Other network settings. You can leave them empty or same + }, + ``` + +- Configure to deploy new `ProviderRegistry` + + Set registry address to empty string to deploy new registry. + + ``` + ProviderRegistry: { + [eEthereumNetwork.kovan]: '', + // Other network settings. You can leave them empty or same + }, + ``` + +- Configure to deploy/initialize `PermissionedWethGateWay` + + Set gateway address to empty string to deploy new. + + ``` + WethGateway: { + [eEthereumNetwork.kovan]: '', + // Other network settings. You can leave them empty or same + }, + ``` + +**Note:** To configure aave pro market you can update `markets/aave-pro/` + +#### Deploy Market + +**Using Docker** + +``` +# In one terminal +docker-compose up + +# Open another tab or terminal +docker-compose exec contracts-env bash + +# A new Bash terminal is prompted, connected to the container +npm run pro:kovan:full:migration +``` + +**Without Docker** + +``` +npm run pro:kovan:full:migration +``` + ### Mainnet fork deployment You can deploy Aave Protocol v2 in a forked Mainnet chain using Hardhat built-in fork feature: