mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-08-08 06:42:15 -04:00
lint
This commit is contained in:
parent
c6b442713a
commit
346ffcee3c
35 changed files with 852 additions and 8943 deletions
|
@ -1,6 +1,6 @@
|
|||
require("dotenv").config();
|
||||
const HDWalletProvider = require("@truffle/hdwallet-provider");
|
||||
const utils = require("web3-utils");
|
||||
require('dotenv').config()
|
||||
const HDWalletProvider = require('@truffle/hdwallet-provider')
|
||||
const utils = require('web3-utils')
|
||||
// const infuraKey = "fj4jll3k.....";
|
||||
//
|
||||
// const fs = require('fs');
|
||||
|
@ -25,9 +25,9 @@ module.exports = {
|
|||
// options below to some value.
|
||||
|
||||
development: {
|
||||
host: "127.0.0.1", // Localhost (default: none)
|
||||
host: '127.0.0.1', // Localhost (default: none)
|
||||
port: 8545, // Standard Ethereum port (default: none)
|
||||
network_id: "*", // Any network (default: none)
|
||||
network_id: '*', // Any network (default: none)
|
||||
},
|
||||
|
||||
// Another network with more advanced options...
|
||||
|
@ -46,11 +46,11 @@ module.exports = {
|
|||
provider: () =>
|
||||
new HDWalletProvider(
|
||||
process.env.PRIVATE_KEY,
|
||||
"https://kovan.infura.io/v3/97c8bf358b9942a9853fab1ba93dc5b3"
|
||||
'https://kovan.infura.io/v3/97c8bf358b9942a9853fab1ba93dc5b3',
|
||||
),
|
||||
network_id: 42,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei("1", "gwei"),
|
||||
gasPrice: utils.toWei('1', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
|
@ -59,11 +59,11 @@ module.exports = {
|
|||
provider: () =>
|
||||
new HDWalletProvider(
|
||||
process.env.PRIVATE_KEY,
|
||||
"https://goerli.infura.io/v3/d34c08f2cb7c4111b645d06ac7e35ba8"
|
||||
'https://goerli.infura.io/v3/d34c08f2cb7c4111b645d06ac7e35ba8',
|
||||
),
|
||||
network_id: 5,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei("1", "gwei"),
|
||||
gasPrice: utils.toWei('1', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
|
@ -72,24 +72,20 @@ module.exports = {
|
|||
provider: () =>
|
||||
new HDWalletProvider(
|
||||
process.env.PRIVATE_KEY,
|
||||
"https://rinkeby.infura.io/v3/97c8bf358b9942a9853fab1ba93dc5b3"
|
||||
'https://rinkeby.infura.io/v3/97c8bf358b9942a9853fab1ba93dc5b3',
|
||||
),
|
||||
network_id: 4,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei("1", "gwei"),
|
||||
gasPrice: utils.toWei('1', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
},
|
||||
mainnet: {
|
||||
provider: () =>
|
||||
new HDWalletProvider(
|
||||
process.env.PRIVATE_KEY,
|
||||
"http://ethereum-rpc.trustwalletapp.com"
|
||||
),
|
||||
provider: () => new HDWalletProvider(process.env.PRIVATE_KEY, 'http://ethereum-rpc.trustwalletapp.com'),
|
||||
network_id: 1,
|
||||
gas: 6000000,
|
||||
gasPrice: utils.toWei("2", "gwei"),
|
||||
gasPrice: utils.toWei('2', 'gwei'),
|
||||
// confirmations: 0,
|
||||
// timeoutBlocks: 200,
|
||||
skipDryRun: true,
|
||||
|
@ -111,7 +107,7 @@ module.exports = {
|
|||
// Configure your compilers
|
||||
compilers: {
|
||||
solc: {
|
||||
version: "0.6.12", // Fetch exact version from solc-bin (default: truffle's version)
|
||||
version: '0.6.12', // Fetch exact version from solc-bin (default: truffle's version)
|
||||
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
|
||||
settings: {
|
||||
// See the solidity docs for advice about optimization and evmVersion
|
||||
|
@ -123,12 +119,12 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
external: {
|
||||
command: "node ./compileHasher.js",
|
||||
command: 'node ./compileHasher.js',
|
||||
targets: [
|
||||
{
|
||||
path: "./build/Hasher.json",
|
||||
path: './build/Hasher.json',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue