-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
32 lines (30 loc) · 1.11 KB
/
truffle-config.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
require('dotenv').config()
const {endpoint, chainID} = require(__dirname + "/config")
const {ChainType} = require('@harmony-js/utils')
const {TruffleProvider} = require('@harmony-js/core')
module.exports = {
networks: {
network: {
network_id: "*",
// Relevant params are defined from env file & config
provider: new TruffleProvider(
endpoint,
// Harmony wallets/accounts are implicitly the 0-th account of the menmonic
// Harmony does NOT currently support n-th account from the menmonic
{menmonic: process.env.MNEMONIC, index: 0, addressCount: 1},
{shardID: parseInt(process.env.SHARD), chainId: chainID, chainType: ChainType.Harmony},
{gasLimit: process.env.GASLIMIT, gasPrice: process.env.GASPRICE}
)
}
},
// Configure your compilers
compilers: {
// Recommended to stay (strictly) below solidity version 0.6.0 for Harmony
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}