dgf-prototype/ethereum/hardhat.config.js

37 lines
955 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,
},
...process.env.SEPOLIA_PRIVATE_KEY ? {
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.SEPOLIA_PRIVATE_KEY],
},
} : {},
...process.env.MAINNET_PRIVATE_KEY ? {
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
};