Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: testnet configs #397

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
ALCHEMY_KEY=YOUR_KEY
FORK=hardhat
FORK=hardhat
RPC_URL='YOUR_RPC'
MNEMONIC='YOUR_MNEMONIC'
ETHERSCAN_API_KEY='YOUR_ETHERSCAN_KEY'
30 changes: 29 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getCommonNetworkConfig, hardhatNetworkSettings } from './helpers/hardhat-config';
import { config } from 'dotenv';
import { HardhatUserConfig } from 'hardhat/types';
import { DEFAULT_NAMED_ACCOUNTS, eEthereumNetwork } from '@aave/deploy-v3';
import { DEFAULT_NAMED_ACCOUNTS, eEthereumNetwork, eAvalancheNetwork } from '@aave/deploy-v3';
import '@nomicfoundation/hardhat-toolbox';
import '@nomicfoundation/hardhat-foundry';
import 'hardhat-deploy';
Expand All @@ -23,6 +23,9 @@ const hardhatConfig: HardhatUserConfig = {
hardhat: hardhatNetworkSettings,
goerli: getCommonNetworkConfig(eEthereumNetwork.goerli, 5),
sepolia: getCommonNetworkConfig('sepolia', 11155111),
baseSepolia: getCommonNetworkConfig('baseSepolia', 84532),
fuji: getCommonNetworkConfig(eAvalancheNetwork.fuji, 43113),

localhost: {
url: 'http://127.0.0.1:8545',
...hardhatNetworkSettings,
Expand Down Expand Up @@ -95,6 +98,31 @@ const hardhatConfig: HardhatUserConfig = {
tracer: {
nameTags: {},
},
etherscan: {
apiKey: {
baseSepolia: process.env.ETHERSCAN_API_KEY || '',
fuji: 'snowtrace', // NOT REQUIRED
},
customChains: [
{
network: 'baseSepolia',
chainId: 84532,
urls: {
apiURL: 'https://api-sepolia.basescan.org/api',
browserURL: 'https://sepolia.basescan.org/',
},
},

{
network: 'fuji',
chainId: 43113,
urls: {
apiURL: 'https://api.routescan.io/v2/network/testnet/evm/43113/etherscan',
browserURL: 'https://testnet.snowtrace.io',
},
},
],
},
};

export default hardhatConfig;
2 changes: 2 additions & 0 deletions helpers/hardhat-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const NETWORKS_RPC_URL: Record<string, string> = {
eEthereumNetwork.goerli
)}`,
sepolia: 'https://rpc.sepolia.ethpandaops.io',
baseSepolia: 'https://sepolia.base.org',
fuji: 'https://ava-testnet.public.blastapi.io/ext/bc/C/rpc',
};

const GAS_PRICE_PER_NET: Record<string, number> = {};
Expand Down
65 changes: 14 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading