-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
50 lines (46 loc) · 1.12 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
const Web3 = require('web3')
const HDWalletProvider = require("truffle-hdwallet-provider");
const secrets = require('./secrets.json')
const config = {
oasis: {
mnemonic: secrets.mnemonics.oasis,
endpoint: 'https://web3.oasiscloud.io',
wsEndpoint: 'wss://web3.oasiscloud.io/ws'
},
development: {
mnemonic: secrets.mnemonics.development,
endpoint: 'http://localhost:8545',
wsEndpoint: 'ws://localhost:8546'
}
}
module.exports = {
config,
networks: {
// Oasis Devnet
oasis: {
provider: function () {
return new HDWalletProvider(config.oasis.mnemonic, config.oasis.endpoint, 0, 10);
},
gas: 16000000,
network_id: "42261"
},
// Contract Kit local chain
development: {
provider: function () {
return new HDWalletProvider(config.development.mnemonic, config.development.endpoint, 0, 10);
},
gas: 16000000,
gasPrice: 20,
network_id: "*"
},
},
compilers: {
external: {
command: "./node_modules/.bin/oasis-compile",
targets: [{
path: "./.oasis-build/*.json"
}]
}
},
bail: true
};