2021-03-15 12:26:22 +00:00
|
|
|
require("@nomiclabs/hardhat-ethers");
|
2021-01-30 12:53:12 +00:00
|
|
|
require("@tenderly/hardhat-tenderly");
|
2021-03-13 14:19:26 +00:00
|
|
|
require("@nomiclabs/hardhat-etherscan");
|
2021-01-30 12:53:12 +00:00
|
|
|
require('dotenv').config();
|
|
|
|
|
2021-03-15 12:26:22 +00:00
|
|
|
const PRIVATE_KEY = process.env.PRIVATE_KEY;
|
|
|
|
const ALCHEMY_ID = process.env.ALCHEMY_ID;
|
|
|
|
|
2021-01-30 12:53:12 +00:00
|
|
|
/**
|
|
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
solidity: {
|
|
|
|
compilers: [
|
|
|
|
{
|
|
|
|
version: "0.7.6"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.6.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.6.2"
|
2021-02-05 18:33:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.6.5"
|
2021-01-30 12:53:12 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2021-02-04 18:09:05 +00:00
|
|
|
networks: {
|
2021-02-05 17:07:07 +00:00
|
|
|
mainnet: {
|
|
|
|
url: process.env.ETH_NODE_URL,
|
|
|
|
chainId: 1,
|
|
|
|
timeout: 500000,
|
2021-03-15 12:26:22 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`]
|
|
|
|
},
|
|
|
|
kovan: {
|
|
|
|
url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`,
|
|
|
|
accounts: [`0x${PRIVATE_KEY}`]
|
2021-02-05 17:07:07 +00:00
|
|
|
},
|
2021-02-04 18:09:05 +00:00
|
|
|
tenderlyMainnet: {
|
|
|
|
url: 'https://mainnet.tenderly.co',
|
2021-03-15 12:26:22 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
2021-02-04 18:09:05 +00:00
|
|
|
chainId: 1,
|
|
|
|
gasPrice: 25120000000,
|
|
|
|
timeout: 500000
|
|
|
|
},
|
|
|
|
tenderlyKovan: {
|
|
|
|
url: 'https://kovan.tenderly.co',
|
2021-03-15 12:26:22 +00:00
|
|
|
accounts: [`0x${PRIVATE_KEY}`],
|
2021-02-04 18:09:05 +00:00
|
|
|
chainId: 42,
|
|
|
|
gasPrice: 40000000000,
|
|
|
|
timeout: 50000
|
|
|
|
}
|
|
|
|
},
|
2021-01-30 12:53:12 +00:00
|
|
|
etherscan: {
|
|
|
|
apiKey: process.env.ETHERSCAN_API_KEY
|
2021-02-04 18:09:05 +00:00
|
|
|
},
|
|
|
|
tenderly: {
|
|
|
|
project: process.env.TENDERLY_PROJECT,
|
|
|
|
username: process.env.TENDERLY_USERNAME,
|
2021-01-30 12:53:12 +00:00
|
|
|
}
|
|
|
|
};
|