Smart contracts for the Besu permissioning system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
permissioning-smart-contracts/truffle-config.js

64 lines
1.3 KiB

6 years ago
const HDWalletProvider = require('truffle-hdwallet-provider');
const path = require("path");
const dotenv = require('dotenv');
dotenv.config();
6 years ago
/* The adress used when sending transactions to the node */
var address = process.env.PANTHEON_NODE_PERM_ACCOUNT;
6 years ago
/* The private key associated with the address above */
var privateKey = process.env.PANTHEON_NODE_PERM_KEY;
/* The endpoint of the Ethereum node */
var endpoint = process.env.PANTHEON_NODE_PERM_ENDPOINT;
if (endpoint === undefined) {
endpoint = "http://127.0.0.1:8545";
}
6 years ago
6 years ago
module.exports = {
6 years ago
networks: {
development: {
provider: () => new HDWalletProvider(privateKey, endpoint),
6 years ago
host: "127.0.0.1",
port: 8545,
network_id: "*",
from: address
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*',
},
coverage: {
host: "localhost",
network_id: "*",
port: 8545,
gas: 0xfffffffffff,
gasPrice: 0x01
}
6 years ago
},
contracts_build_directory: path.join(__dirname, "app/src/contracts"),
6 years ago
compilers: {
solc: {
version: "0.5.7",
6 years ago
settings: {
optimizer: {
enabled: false,
runs: 200
},
}
}
},
mocha: {
useColors: true,
reporter: 'mocha-multi-reporters',
reporterOptions: {
configFile: './mocha-reporter-config.json',
},
6 years ago
}
6 years ago
};