1 Star 0 Fork 0

KKDP/defi-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
truffle.js 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
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,
},
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jjhoc/defi-sdk.git
git@gitee.com:jjhoc/defi-sdk.git
jjhoc
defi-sdk
defi-sdk
master

搜索帮助