mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
feat: added configs for deployment of avalanche and arbitrum for ui pool data provider contract
This commit is contained in:
parent
025a988a13
commit
8f12ee7881
|
@ -3,7 +3,14 @@ import fs from 'fs';
|
||||||
import { HardhatUserConfig } from 'hardhat/types';
|
import { HardhatUserConfig } from 'hardhat/types';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { accounts } from './test-wallets.js';
|
import { accounts } from './test-wallets.js';
|
||||||
import { eEthereumNetwork, eNetwork, ePolygonNetwork, eXDaiNetwork } from './helpers/types';
|
import {
|
||||||
|
eArbitrumNetwork,
|
||||||
|
eAvalancheNetwork,
|
||||||
|
eEthereumNetwork,
|
||||||
|
eNetwork,
|
||||||
|
ePolygonNetwork,
|
||||||
|
eXDaiNetwork,
|
||||||
|
} from './helpers/types';
|
||||||
import { BUIDLEREVM_CHAINID, COVERAGE_CHAINID } from './helpers/buidler-constants';
|
import { BUIDLEREVM_CHAINID, COVERAGE_CHAINID } from './helpers/buidler-constants';
|
||||||
import {
|
import {
|
||||||
NETWORKS_RPC_URL,
|
NETWORKS_RPC_URL,
|
||||||
|
@ -98,6 +105,8 @@ const buidlerConfig: HardhatUserConfig = {
|
||||||
tenderlyMain: getCommonNetworkConfig(eEthereumNetwork.tenderlyMain, 3030),
|
tenderlyMain: getCommonNetworkConfig(eEthereumNetwork.tenderlyMain, 3030),
|
||||||
matic: getCommonNetworkConfig(ePolygonNetwork.matic, 137),
|
matic: getCommonNetworkConfig(ePolygonNetwork.matic, 137),
|
||||||
mumbai: getCommonNetworkConfig(ePolygonNetwork.mumbai, 80001),
|
mumbai: getCommonNetworkConfig(ePolygonNetwork.mumbai, 80001),
|
||||||
|
fuji: getCommonNetworkConfig(eAvalancheNetwork.fuji, 43113),
|
||||||
|
arbitrum_rinkeby: getCommonNetworkConfig(eArbitrumNetwork.arbitrum_rinkeby, 421611),
|
||||||
xdai: getCommonNetworkConfig(eXDaiNetwork.xdai, 100),
|
xdai: getCommonNetworkConfig(eXDaiNetwork.xdai, 100),
|
||||||
hardhat: {
|
hardhat: {
|
||||||
hardfork: 'berlin',
|
hardfork: 'berlin',
|
||||||
|
|
|
@ -4,7 +4,12 @@ export interface SymbolMap<T> {
|
||||||
[symbol: string]: T;
|
[symbol: string]: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type eNetwork = eEthereumNetwork | ePolygonNetwork | eXDaiNetwork;
|
export type eNetwork =
|
||||||
|
| eEthereumNetwork
|
||||||
|
| ePolygonNetwork
|
||||||
|
| eXDaiNetwork
|
||||||
|
| eAvalancheNetwork
|
||||||
|
| eArbitrumNetwork;
|
||||||
|
|
||||||
export enum eEthereumNetwork {
|
export enum eEthereumNetwork {
|
||||||
buidlerevm = 'buidlerevm',
|
buidlerevm = 'buidlerevm',
|
||||||
|
@ -21,6 +26,14 @@ export enum ePolygonNetwork {
|
||||||
mumbai = 'mumbai',
|
mumbai = 'mumbai',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum eAvalancheNetwork {
|
||||||
|
fuji = 'fuji',
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum eArbitrumNetwork {
|
||||||
|
arbitrum_rinkeby = 'arbitrum_rinkeby',
|
||||||
|
}
|
||||||
|
|
||||||
export enum eXDaiNetwork {
|
export enum eXDaiNetwork {
|
||||||
xdai = 'xdai',
|
xdai = 'xdai',
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,6 +70,8 @@
|
||||||
"main:deployUIProvider": "hardhat --network main deploy-UiPoolDataProvider --verify",
|
"main:deployUIProvider": "hardhat --network main deploy-UiPoolDataProvider --verify",
|
||||||
"matic:deployUIProvider": "hardhat --network matic deploy-UiPoolDataProvider",
|
"matic:deployUIProvider": "hardhat --network matic deploy-UiPoolDataProvider",
|
||||||
"mumbai:deployUIProvider": "hardhat --network mumbai deploy-UiPoolDataProvider",
|
"mumbai:deployUIProvider": "hardhat --network mumbai deploy-UiPoolDataProvider",
|
||||||
|
"fuji:deployUIProvider": "hardhat --network fuji deploy-UiPoolDataProvider",
|
||||||
|
"arbitrum_rinkeby:deployUIProvider": "hardhat --network arbitrum_rinkeby deploy-UiPoolDataProvider",
|
||||||
"dev:deployUniswapRepayAdapter": "hardhat --network kovan deploy-UniswapRepayAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c",
|
"dev:deployUniswapRepayAdapter": "hardhat --network kovan deploy-UniswapRepayAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c",
|
||||||
"dev:UniswapLiquiditySwapAdapter": "hardhat --network kovan deploy-UniswapLiquiditySwapAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c",
|
"dev:UniswapLiquiditySwapAdapter": "hardhat --network kovan deploy-UniswapLiquiditySwapAdapter --provider 0x88757f2f99175387aB4C6a4b3067c77A695b0349 --router 0xfcd87315f0e4067070ade8682fcdbc3006631441 --weth 0xd0a1e359811322d97991e03f863a0c30c2cf029c",
|
||||||
"main:deployUniswapRepayAdapter": "hardhat --network main deploy-UniswapRepayAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
"main:deployUniswapRepayAdapter": "hardhat --network main deploy-UniswapRepayAdapter --provider 0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5 --router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D --weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
import { task } from 'hardhat/config';
|
import { task } from 'hardhat/config';
|
||||||
import { eContractid, eEthereumNetwork, eNetwork, ePolygonNetwork } from '../../helpers/types';
|
import {
|
||||||
|
eArbitrumNetwork,
|
||||||
|
eAvalancheNetwork,
|
||||||
|
eContractid,
|
||||||
|
eEthereumNetwork,
|
||||||
|
eNetwork,
|
||||||
|
ePolygonNetwork,
|
||||||
|
} from '../../helpers/types';
|
||||||
import { deployUiPoolDataProvider } from '../../helpers/contracts-deployments';
|
import { deployUiPoolDataProvider } from '../../helpers/contracts-deployments';
|
||||||
import { exit } from 'process';
|
import { exit } from 'process';
|
||||||
|
|
||||||
|
@ -31,6 +38,14 @@ task(`deploy-${eContractid.UiPoolDataProvider}`, `Deploys the UiPoolDataProvider
|
||||||
incentivesController: '0xd41aE58e803Edf4304334acCE4DC4Ec34a63C644',
|
incentivesController: '0xd41aE58e803Edf4304334acCE4DC4Ec34a63C644',
|
||||||
aaveOracle: '0xC365C653f7229894F93994CD0b30947Ab69Ff1D5',
|
aaveOracle: '0xC365C653f7229894F93994CD0b30947Ab69Ff1D5',
|
||||||
},
|
},
|
||||||
|
[eArbitrumNetwork.arbitrum_rinkeby]: {
|
||||||
|
incentivesController: '0x0000000000000000000000000000000000000000',
|
||||||
|
aaveOracle: '0xbdf16840DDA7DadB502D5008943202F747a1136F',
|
||||||
|
},
|
||||||
|
[eAvalancheNetwork.fuji]: {
|
||||||
|
incentivesController: '0x0000000000000000000000000000000000000000',
|
||||||
|
aaveOracle: '0x3faD854C91b533427dA49424e4679461FD0D066A',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const supportedNetworks = Object.keys(addressesByNetwork);
|
const supportedNetworks = Object.keys(addressesByNetwork);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user