forked from UMAprotocol/protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle.js
More file actions
76 lines (74 loc) · 1.96 KB
/
truffle.js
File metadata and controls
76 lines (74 loc) · 1.96 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
const HDWalletProvider = require("truffle-hdwallet-provider");
const GckmsConfig = require("./gckms/GckmsConfig.js");
const ManagedSecretProvider = require("./gckms/ManagedSecretProvider.js");
require("dotenv").config();
// Fallback to a public mnemonic to prevent exceptions
const mnemonic = process.env.MNEMONIC
? process.env.MNEMONIC
: "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
const infuraApiKey = process.env.INFURA_API_KEY;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
ci: {
host: "127.0.0.1",
port: 8545,
network_id: 1234,
gas: 6720000
},
coverage: {
host: "127.0.0.1",
network_id: "*",
port: 8545,
gas: 0xfffffffffff,
gasPrice: 0x01
},
develop: {
host: "127.0.0.1",
port: 9545,
network_id: "*",
gas: 6720000
},
test: {
host: "127.0.0.1",
port: 9545,
network_id: "*",
gas: 6720000
},
ropsten_mnemonic: {
provider: new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraApiKey}`, 0, 2),
network_id: 3,
gas: 6720000,
gasPrice: 20000000000
},
ropsten: {
provider: new ManagedSecretProvider(
GckmsConfig,
`https://ropsten.infura.io/v3/${infuraApiKey}`,
0,
GckmsConfig.length
),
network_id: 3,
gas: 6720000,
gasPrice: 20000000000
},
mainnet_mnemonic: {
provider: new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${infuraApiKey}`, 0, 2),
network_id: 1,
gas: 6720000,
gasPrice: 20000000000
},
mainnet: {
provider: new ManagedSecretProvider(
GckmsConfig,
`https://mainnet.infura.io/v3/${infuraApiKey}`,
0,
GckmsConfig.length
),
network_id: 1,
gas: 6720000,
gasPrice: 20000000000
}
}
};