From 4dd141a398978abc6f3d67bad0173652152413fe Mon Sep 17 00:00:00 2001 From: poma Date: Tue, 15 Dec 2020 21:53:16 +0300 Subject: [PATCH] tidy --- package.json | 1 - truffle.js | 23 ----------------------- yarn.lock | 5 ----- 3 files changed, 29 deletions(-) diff --git a/package.json b/package.json index a75ace6..6f52cd5 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "bn-chai": "^1.0.1", "chai": "^4.2.0", "chai-as-promised": "^7.1.1", - "dotenv": "^8.2.0", "eslint": "^7.5.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", diff --git a/truffle.js b/truffle.js index 07911c1..ba91b85 100644 --- a/truffle.js +++ b/truffle.js @@ -1,8 +1,3 @@ -require('dotenv').config() -const HDWalletProvider = require('truffle-hdwallet-provider') -const utils = require('web3-utils') -const { PRIVATE_KEY, INFURA_TOKEN } = process.env - module.exports = { // Uncommenting the defaults below // provides for an easier quick-start with Ganache. @@ -21,24 +16,6 @@ module.exports = { // port: 7545, // network_id: "*" // } - mainnet: { - provider: () => new HDWalletProvider(PRIVATE_KEY, `https://mainnet.infura.io/v3/${INFURA_TOKEN}`), - network_id: 1, - gas: 6000000, - gasPrice: utils.toWei('100', 'gwei'), - // confirmations: 0, - // timeoutBlocks: 200, - skipDryRun: true, - }, - kovan: { - provider: () => new HDWalletProvider(PRIVATE_KEY, `https://kovan.infura.io/v3/${INFURA_TOKEN}`), - network_id: 42, - gas: 6000000, - gasPrice: utils.toWei('1', 'gwei'), - // confirmations: 0, - // timeoutBlocks: 200, - skipDryRun: true, - }, coverage: { host: 'localhost', network_id: '*', diff --git a/yarn.lock b/yarn.lock index ffc269d..9aae61c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1280,11 +1280,6 @@ dom-walk@^0.1.0: resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84" integrity sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w== -dotenv@^8.2.0: - version "8.2.0" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" - integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== - duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"