forked from Synthetixio/synthetix
-
Notifications
You must be signed in to change notification settings - Fork 4
/
truffle-config-ovm.js
41 lines (36 loc) · 1.31 KB
/
truffle-config-ovm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const HDWalletProvider = require("truffle-hdwallet-provider");
const ProviderWrapper = require("@eth-optimism/ovm-truffle-provider-wrapper");
const mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
// Set this to the desired Execution Manager Address -- required for the transpiler
process.env.EXECUTION_MANAGER_ADDRESS = process.env.EXECUTION_MANAGER_ADDRESS || "0xA193E42526F1FEA8C99AF609dcEabf30C1c29fAA";
const gasPrice = process.env.OVM_DEFAULT_GAS_PRICE || 0;
const gas = /*process.env.OVM_DEFAULT_GAS*/ 900000000;
module.exports = {
contracts_build_directory: './build/truffle',
/**
* Note: Using the `test` network will start a local node at 'http://127.0.0.1:8545/'
*
* To run tests:
* $ truffle test ./truffle-tests/test-erc20.js --config truffle-config-ovm.js
*/
networks: {
test: {
network_id: 108,
provider: function() {
return ProviderWrapper.wrapProviderAndStartLocalNode(new HDWalletProvider(mnemonic, "http://127.0.0.1:8545/", 0, 10));
},
gasPrice: gasPrice,
gas: gas,
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
timeout: 300000
},
compilers: {
solc: {
// Add path to the solc-transpiler
version: "node_modules/@eth-optimism/solc-transpiler",
}
}
}