diff --git a/hardhat.config.ts b/hardhat.config.ts index 10b4402b..ab1e7c89 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -3,7 +3,14 @@ import fs from 'fs'; import { HardhatUserConfig } from 'hardhat/types'; // @ts-ignore 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 { NETWORKS_RPC_URL, @@ -98,6 +105,8 @@ const buidlerConfig: HardhatUserConfig = { tenderlyMain: getCommonNetworkConfig(eEthereumNetwork.tenderlyMain, 3030), matic: getCommonNetworkConfig(ePolygonNetwork.matic, 137), mumbai: getCommonNetworkConfig(ePolygonNetwork.mumbai, 80001), + fuji: getCommonNetworkConfig(eAvalancheNetwork.fuji, 43113), + arbitrum_rinkeby: getCommonNetworkConfig(eArbitrumNetwork.arbitrum_rinkeby, 421611), xdai: getCommonNetworkConfig(eXDaiNetwork.xdai, 100), hardhat: { hardfork: 'berlin', diff --git a/helpers/types.ts b/helpers/types.ts index 267b5abb..d98bf8b6 100644 --- a/helpers/types.ts +++ b/helpers/types.ts @@ -4,7 +4,12 @@ export interface SymbolMap { [symbol: string]: T; } -export type eNetwork = eEthereumNetwork | ePolygonNetwork | eXDaiNetwork; +export type eNetwork = + | eEthereumNetwork + | ePolygonNetwork + | eXDaiNetwork + | eAvalancheNetwork + | eArbitrumNetwork; export enum eEthereumNetwork { buidlerevm = 'buidlerevm', @@ -21,6 +26,14 @@ export enum ePolygonNetwork { mumbai = 'mumbai', } +export enum eAvalancheNetwork { + fuji = 'fuji', +} + +export enum eArbitrumNetwork { + arbitrum_rinkeby = 'arbitrum_rinkeby', +} + export enum eXDaiNetwork { xdai = 'xdai', } diff --git a/package.json b/package.json index b9debafc..7fe358b8 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,8 @@ "main:deployUIProvider": "hardhat --network main deploy-UiPoolDataProvider --verify", "matic:deployUIProvider": "hardhat --network matic 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: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", diff --git a/tasks/deployments/deploy-UiPoolDataProvider.ts b/tasks/deployments/deploy-UiPoolDataProvider.ts index 9e360db3..75bea7a1 100644 --- a/tasks/deployments/deploy-UiPoolDataProvider.ts +++ b/tasks/deployments/deploy-UiPoolDataProvider.ts @@ -1,5 +1,12 @@ 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 { exit } from 'process'; @@ -31,6 +38,14 @@ task(`deploy-${eContractid.UiPoolDataProvider}`, `Deploys the UiPoolDataProvider incentivesController: '0xd41aE58e803Edf4304334acCE4DC4Ec34a63C644', aaveOracle: '0xC365C653f7229894F93994CD0b30947Ab69Ff1D5', }, + [eArbitrumNetwork.arbitrum_rinkeby]: { + incentivesController: '0x0000000000000000000000000000000000000000', + aaveOracle: '0xbdf16840DDA7DadB502D5008943202F747a1136F', + }, + [eAvalancheNetwork.fuji]: { + incentivesController: '0x0000000000000000000000000000000000000000', + aaveOracle: '0x3faD854C91b533427dA49424e4679461FD0D066A', + }, }; const supportedNetworks = Object.keys(addressesByNetwork);