Skip to content

Commit a7a54b5

Browse files
committed
fix: fix RPC url for avalanche mainnet
1 parent 984e19c commit a7a54b5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

helper-hardhat-config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
5353
'https://polygon-mainnet.g.alchemy.com/v2/6NUmfWDZw6lC3RPAphj0p_2vm7ElOn2U',
5454
// [ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
5555
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
56-
[eAvalancheNetwork.avalanche]: 'https://cchain.explorer.avax.network/',
57-
[eAvalancheNetwork.fuji]: 'https://api.avax-test.network/ext/bc/C/rpc'
56+
[eAvalancheNetwork.avalanche]: 'https://api.avax.network/ext/bc/C/rpc',
57+
[eAvalancheNetwork.fuji]: 'https://api.avax-test.network/ext/bc/C/rpc',
5858
};
5959

6060
export const NETWORKS_DEFAULT_GAS: iParamsPerNetwork<number> = {
@@ -68,8 +68,8 @@ export const NETWORKS_DEFAULT_GAS: iParamsPerNetwork<number> = {
6868
[ePolygonNetwork.mumbai]: 1 * GWEI,
6969
[ePolygonNetwork.matic]: 1 * GWEI,
7070
[eXDaiNetwork.xdai]: 1 * GWEI,
71-
[eAvalancheNetwork.avalanche]: 255 * GWEI,
72-
[eAvalancheNetwork.fuji]: 255 * GWEI
71+
[eAvalancheNetwork.avalanche]: 85 * GWEI,
72+
[eAvalancheNetwork.fuji]: 85 * GWEI,
7373
};
7474

7575
export const BLOCK_TO_FORK: iParamsPerNetwork<number | undefined> = {
@@ -84,5 +84,5 @@ export const BLOCK_TO_FORK: iParamsPerNetwork<number | undefined> = {
8484
[ePolygonNetwork.matic]: undefined,
8585
[eXDaiNetwork.xdai]: undefined,
8686
[eAvalancheNetwork.avalanche]: undefined,
87-
[eAvalancheNetwork.fuji]: undefined
87+
[eAvalancheNetwork.fuji]: undefined,
8888
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"matic:matic:full:migration:add-registry": "npm run compile && npm run hardhat:matic sidechain:mainnet -- --pool Matic",
4141
"amm:kovan:full:migration:add-registry": "npm run compile && npm run hardhat:kovan -- amm:mainnet",
4242
"avalanche:fuji:full:migration:add-registry": "npm run compile && npm run hardhat:fuji avalanche:mainnet -- --pool Avalanche",
43+
"avalanche:mainnet:full:migration:add-registry": "npm run compile && npm run hardhat:avalanche avalanche:mainnet -- --pool Avalanche",
4344
"aave:docker:add-market-to-registry-from-config": "npm run compile && npm run hardhat:docker -- add-market-to-registry --pool Aave",
4445
"aave:kovan:add-market-to-registry-from-config": "npm run compile && npm run hardhat:kovan -- add-market-to-registry --pool Aave",
4546
"matic:mumbai:add-market-to-registry-from-config": "npm run compile && npm run hardhat:mumbai add-market-to-registry --pool Matic",

tasks/full/0_address_provider_registry.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ task('full:deploy-address-provider-registry', 'Deploy address provider registry'
1111
.addFlag('verify', 'Verify contracts at Etherscan')
1212
.addParam('pool', `Pool name to retrieve configuration, supported: ${Object.values(ConfigNames)}`)
1313
.setAction(async ({ verify, pool }, DRE) => {
14+
console.log('prior dre');
1415
await DRE.run('set-DRE');
1516
const poolConfig = loadPoolConfig(pool);
1617
const network = <eNetwork>DRE.network.name;
1718
const signer = await getFirstSigner();
1819

20+
console.log('Deployer:', await signer.getAddress(), formatEther(await signer.getBalance()));
21+
1922
const providerRegistryAddress = getParamPerNetwork(poolConfig.ProviderRegistry, network);
2023

2124
console.log('Signer', await signer.getAddress());

0 commit comments

Comments
 (0)