mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Set configs for matic. Minor changes to polygon utils and tasks.
This commit is contained in:
parent
fe4d5cee02
commit
de4aec2804
|
@ -1,14 +1,8 @@
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { Contract } from 'ethers/lib/ethers';
|
import { Contract } from 'ethers/lib/ethers';
|
||||||
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
||||||
import { source } from 'lowdb/adapters/FileSync';
|
|
||||||
import { file } from 'tmp-promise';
|
|
||||||
import { DRE } from './misc-utils';
|
import { DRE } from './misc-utils';
|
||||||
import { eEthereumNetwork, ePolygonNetwork, EthereumNetworkNames } from './types';
|
import { ePolygonNetwork, EthereumNetworkNames } from './types';
|
||||||
import curlirize from 'axios-curlirize';
|
|
||||||
|
|
||||||
// Initialize Curlizie to add curl logs
|
|
||||||
curlirize(axios);
|
|
||||||
|
|
||||||
const TASK_FLATTEN_GET_FLATTENED_SOURCE = 'flatten:get-flattened-sources';
|
const TASK_FLATTEN_GET_FLATTENED_SOURCE = 'flatten:get-flattened-sources';
|
||||||
const TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS = 'compile:solidity:get-source-paths';
|
const TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS = 'compile:solidity:get-source-paths';
|
||||||
|
|
|
@ -74,28 +74,28 @@ export const CommonsConfig: ICommonConfiguration = {
|
||||||
},
|
},
|
||||||
LendingPool: {
|
LendingPool: {
|
||||||
[ePolygonNetwork.mumbai]: '',
|
[ePolygonNetwork.mumbai]: '',
|
||||||
[ePolygonNetwork.matic]: '0xABdC61Cd16e5111f335f4135B7A0e65Cc7F86327',
|
[ePolygonNetwork.matic]: '',
|
||||||
},
|
},
|
||||||
LendingPoolConfigurator: {
|
LendingPoolConfigurator: {
|
||||||
[ePolygonNetwork.mumbai]: '',
|
[ePolygonNetwork.mumbai]: '',
|
||||||
[ePolygonNetwork.matic]: '0x17c4A170FFF882862F656597889016D3a6073534',
|
[ePolygonNetwork.matic]: '',
|
||||||
},
|
},
|
||||||
EmergencyAdminIndex: 0,
|
EmergencyAdminIndex: 0,
|
||||||
ProviderRegistry: {
|
ProviderRegistry: {
|
||||||
[ePolygonNetwork.mumbai]: '0x27453A916e91Fb922d309D92e637C0b6625846dF', // TEMP
|
[ePolygonNetwork.mumbai]: '0x27453A916e91Fb922d309D92e637C0b6625846dF', // TEMP
|
||||||
[ePolygonNetwork.matic]: '0x28334e4791860a0c1eCF89a62B973ba04a5d643F', // TEMP
|
[ePolygonNetwork.matic]: '0x5572463B58087f2849309E863C63b7beb10f812D',
|
||||||
},
|
},
|
||||||
ProviderRegistryOwner: {
|
ProviderRegistryOwner: {
|
||||||
[ePolygonNetwork.mumbai]: '0xa6842C2C7fece4Cdc6a4aaaD331eb1c7910e419A', // TEMP
|
[ePolygonNetwork.mumbai]: '0xa6842C2C7fece4Cdc6a4aaaD331eb1c7910e419A', // TEMP
|
||||||
[ePolygonNetwork.matic]: '0x85e4A467343c0dc4aDAB74Af84448D9c45D8ae6F', // TEMP
|
[ePolygonNetwork.matic]: '0x7606c4AEca065d373b3F0b048536174908FcA853',
|
||||||
},
|
},
|
||||||
LendingRateOracle: {
|
LendingRateOracle: {
|
||||||
[ePolygonNetwork.mumbai]: '',
|
[ePolygonNetwork.mumbai]: '',
|
||||||
[ePolygonNetwork.matic]: '',
|
[ePolygonNetwork.matic]: '0xAD41Cb02f7BFb6D00e99F47cde6669e44c7C1CC0',
|
||||||
},
|
},
|
||||||
LendingPoolCollateralManager: {
|
LendingPoolCollateralManager: {
|
||||||
[ePolygonNetwork.mumbai]: '',
|
[ePolygonNetwork.mumbai]: '',
|
||||||
[ePolygonNetwork.matic]: '0x9Af76e0575D139570D3B4c821567Fe935E8c25C5',
|
[ePolygonNetwork.matic]: '',
|
||||||
},
|
},
|
||||||
TokenDistributor: {
|
TokenDistributor: {
|
||||||
[ePolygonNetwork.mumbai]: '',
|
[ePolygonNetwork.mumbai]: '',
|
||||||
|
|
|
@ -25,5 +25,5 @@ task(`deploy-${eContractid.UiPoolDataProvider}`, `Deploys the UiPoolDataProvider
|
||||||
await verifyContract(eContractid.UiPoolDataProvider, uiPoolDataProvider, []);
|
await verifyContract(eContractid.UiPoolDataProvider, uiPoolDataProvider, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`\tFinished UiPoolDataProvider proxy and implementation deployment`);
|
console.log(`\tFinished UiPoolDataProvider deployment`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user