mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
✨ update readme
This commit is contained in:
parent
7c93870ac4
commit
639e2c3a46
64
README.md
64
README.md
|
@ -138,6 +138,70 @@ docker-compose exec contracts-env bash
|
||||||
npm run aave:kovan:full:migration
|
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
|
### Mainnet fork deployment
|
||||||
|
|
||||||
You can deploy Aave Protocol v2 in a forked Mainnet chain using Hardhat built-in fork feature:
|
You can deploy Aave Protocol v2 in a forked Mainnet chain using Hardhat built-in fork feature:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user