mirror of
https://github.com/tornadocash/relayer-registry.git
synced 2024-11-25 02:51:24 +01:00
63 lines
1.8 KiB
JavaScript
63 lines
1.8 KiB
JavaScript
|
require('dotenv').config()
|
||
|
require('@nomiclabs/hardhat-waffle')
|
||
|
require('@nomiclabs/hardhat-etherscan')
|
||
|
require('poma/hardhat-etherscan-abi')
|
||
|
|
||
|
/**
|
||
|
* @type import('hardhat/config').HardhatUserConfig
|
||
|
*/
|
||
|
module.exports = {
|
||
|
solidity: '0.7.6',
|
||
|
settings: {
|
||
|
optimizer: {
|
||
|
enabled: true,
|
||
|
runs: 200,
|
||
|
},
|
||
|
},
|
||
|
networks: {
|
||
|
hardhat: {
|
||
|
blockGasLimit: 9500000,
|
||
|
gasPrice: 0,
|
||
|
chainId: 1,
|
||
|
forking: {
|
||
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
||
|
blockNumber: 12083246,
|
||
|
},
|
||
|
},
|
||
|
mainnet: {
|
||
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
||
|
accounts: process.env.PRIVATE_KEY
|
||
|
? [process.env.PRIVATE_KEY]
|
||
|
: { mnemonic: 'test test test test test test test test test test test junk' },
|
||
|
},
|
||
|
goerli: {
|
||
|
url: `https://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
||
|
accounts: process.env.PRIVATE_KEY
|
||
|
? [process.env.PRIVATE_KEY]
|
||
|
: { mnemonic: 'test test test test test test test test test test test junk' },
|
||
|
},
|
||
|
mainnetInfura: {
|
||
|
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
|
||
|
accounts: process.env.PRIVATE_KEY
|
||
|
? [process.env.PRIVATE_KEY]
|
||
|
: { mnemonic: 'test test test test test test test test test test test junk' },
|
||
|
},
|
||
|
goerliInfura: {
|
||
|
url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
|
||
|
accounts: process.env.PRIVATE_KEY
|
||
|
? [process.env.PRIVATE_KEY]
|
||
|
: { mnemonic: 'test test test test test test test test test test test junk' },
|
||
|
},
|
||
|
localhost: {
|
||
|
chainId: 1,
|
||
|
gasPrice: 0,
|
||
|
timeout: 999999999,
|
||
|
},
|
||
|
},
|
||
|
etherscan: {
|
||
|
// Your API key for Etherscan
|
||
|
// Obtain one at https://etherscan.io/
|
||
|
apiKey: process.env.ETHERSCAN_KEY,
|
||
|
},
|
||
|
}
|