代码拉取完成,页面将自动刷新
require('@babel/register');
require('core-js');
require('regenerator-runtime/runtime');
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
plugins: [
'solidity-coverage',
'truffle-plugin-verify',
],
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
gas: 6000000,
gasPrice: 1100000000,
gasLimit: 10000000,
},
mainnet: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`, 0),
network_id: 1,
gas: 8000000,
gasPrice: 1100000000,
timeoutBlocks: 200,
skipDryRun: true,
},
kovan: {
provider: () => new HDWalletProvider(process.env.MNEMONIC, `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`, 0),
network_id: 42,
gas: 10000000,
gasPrice: 1100000000,
timeoutBlocks: 10,
skipDryRun: true,
},
},
compilers: {
solc: {
version: '0.6.5',
settings: {
optimizer: {
enabled: true,
runs: 10000,
},
},
},
},
api_keys: {
etherscan: `${process.env.ETHERSCAN_API_KEY}`,
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
gasPrice: 1,
},
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。