dgf-prototype/ethereum/hardhat.config.js

33 lines
829 B
JavaScript
Raw Normal View History

2024-03-05 21:21:27 -06:00
require('@nomicfoundation/hardhat-toolbox');
2024-03-16 13:53:07 -05:00
require('@nomicfoundation/hardhat-verify');
2024-03-10 11:55:59 -05:00
require('dotenv').config();
2024-03-04 19:33:06 -06:00
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
2024-03-05 21:21:27 -06:00
solidity: '0.8.24',
2024-03-10 11:55:59 -05:00
networks: {
hardhat: {
2024-04-18 14:05:54 -05:00
accounts: process.env.SEED_PHRASE
? { mnemonic: process.env.SEED_PHRASE }
: [process.env.LOCAL_PRIVATE_KEY],
2024-03-10 11:55:59 -05:00
chainId: 1337,
},
2024-03-10 19:39:15 -05:00
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
2024-04-16 16:50:09 -05:00
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.MAINNET_PRIVATE_KEY],
},
2024-03-10 11:55:59 -05:00
},
2024-03-16 13:53:07 -05:00
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API_KEY,
},
},
sourcify: {
enabled: false,
},
2024-03-04 19:33:06 -06:00
};