mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: fix RPC url for avalanche mainnet
This commit is contained in:
parent
984e19cdf3
commit
a7a54b51ae
|
@ -53,8 +53,8 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
|
|||
'https://polygon-mainnet.g.alchemy.com/v2/6NUmfWDZw6lC3RPAphj0p_2vm7ElOn2U',
|
||||
// [ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
|
||||
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
|
||||
[eAvalancheNetwork.avalanche]: 'https://cchain.explorer.avax.network/',
|
||||
[eAvalancheNetwork.fuji]: 'https://api.avax-test.network/ext/bc/C/rpc'
|
||||
[eAvalancheNetwork.avalanche]: 'https://api.avax.network/ext/bc/C/rpc',
|
||||
[eAvalancheNetwork.fuji]: 'https://api.avax-test.network/ext/bc/C/rpc',
|
||||
};
|
||||
|
||||
export const NETWORKS_DEFAULT_GAS: iParamsPerNetwork<number> = {
|
||||
|
@ -68,8 +68,8 @@ export const NETWORKS_DEFAULT_GAS: iParamsPerNetwork<number> = {
|
|||
[ePolygonNetwork.mumbai]: 1 * GWEI,
|
||||
[ePolygonNetwork.matic]: 1 * GWEI,
|
||||
[eXDaiNetwork.xdai]: 1 * GWEI,
|
||||
[eAvalancheNetwork.avalanche]: 255 * GWEI,
|
||||
[eAvalancheNetwork.fuji]: 255 * GWEI
|
||||
[eAvalancheNetwork.avalanche]: 85 * GWEI,
|
||||
[eAvalancheNetwork.fuji]: 85 * GWEI,
|
||||
};
|
||||
|
||||
export const BLOCK_TO_FORK: iParamsPerNetwork<number | undefined> = {
|
||||
|
@ -84,5 +84,5 @@ export const BLOCK_TO_FORK: iParamsPerNetwork<number | undefined> = {
|
|||
[ePolygonNetwork.matic]: undefined,
|
||||
[eXDaiNetwork.xdai]: undefined,
|
||||
[eAvalancheNetwork.avalanche]: undefined,
|
||||
[eAvalancheNetwork.fuji]: undefined
|
||||
[eAvalancheNetwork.fuji]: undefined,
|
||||
};
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"matic:matic:full:migration:add-registry": "npm run compile && npm run hardhat:matic sidechain:mainnet -- --pool Matic",
|
||||
"amm:kovan:full:migration:add-registry": "npm run compile && npm run hardhat:kovan -- amm:mainnet",
|
||||
"avalanche:fuji:full:migration:add-registry": "npm run compile && npm run hardhat:fuji avalanche:mainnet -- --pool Avalanche",
|
||||
"avalanche:mainnet:full:migration:add-registry": "npm run compile && npm run hardhat:avalanche avalanche:mainnet -- --pool Avalanche",
|
||||
"aave:docker:add-market-to-registry-from-config": "npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Aave",
|
||||
"aave:kovan:add-market-to-registry-from-config": "npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Aave",
|
||||
"matic:mumbai:add-market-to-registry-from-config": "npm run compile && npm run hardhat:mumbai add-market-to-registry --pool Matic",
|
||||
|
|
|
@ -11,11 +11,14 @@ task('full:deploy-address-provider-registry', 'Deploy address provider registry'
|
|||
.addFlag('verify', 'Verify contracts at Etherscan')
|
||||
.addParam('pool', `Pool name to retrieve configuration, supported: ${Object.values(ConfigNames)}`)
|
||||
.setAction(async ({ verify, pool }, DRE) => {
|
||||
console.log('prior dre');
|
||||
await DRE.run('set-DRE');
|
||||
const poolConfig = loadPoolConfig(pool);
|
||||
const network = <eNetwork>DRE.network.name;
|
||||
const signer = await getFirstSigner();
|
||||
|
||||
console.log('Deployer:', await signer.getAddress(), formatEther(await signer.getBalance()));
|
||||
|
||||
const providerRegistryAddress = getParamPerNetwork(poolConfig.ProviderRegistry, network);
|
||||
|
||||
console.log('Signer', await signer.getAddress());
|
||||
|
|
Loading…
Reference in New Issue
Block a user