forked from ton-blockchain/bridge-solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
84 lines (83 loc) · 1.86 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
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
77
78
79
80
81
82
83
84
require("dotenv").config();
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
compilers: {
solc: {
version: '0.7.4',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: 6721975,
},
goerli: {
provider: () => {
return new HDWalletProvider(
`uphold wide shed another couch focus hidden soup lazy top salon salute`, //mnemonic
`https://goerli.infura.io/v3/<API_KEY>`, //endpoint
0, 20
);
},
network_id: "5",
gasPrice: 25e9,
gas: 6721975,
},
bsc_testnet: {
provider: () => {
return new HDWalletProvider(
`poet ladder wish retire glue ozone danger slow border stuff south wash`, //mnemonic
`https://data-seed-prebsc-1-s1.binance.org:8545`, //endpoint
0, 20
);
},
network_id: "97",
gasPrice: 25e9,
gas: 6721975,
},
eth_mainnet: {
provider: () => {
return new HDWalletProvider(
``, //mnemonic
`https://mainnet.infura.io/v3/<API_KEY>`, //endpoint
0, 20
);
},
network_id: "1",
gasPrice: 25e9,
gas: 6721975,
},
bsc_mainnet: {
provider: () => {
return new HDWalletProvider(
``, //mnemonic
`https://bsc-dataseed1.binance.org/`, //endpoint
0, 20
);
},
network_id: "56",
gasPrice: 25e9,
gas: 6721975,
}
},
mocha: {
enableTimeouts: false,
useColors: true,
reporter: "eth-gas-reporter",
reporterOptions: {
currency: "USD",
gasPrice: 10,
},
},
plugins: ["truffle-contract-size", 'truffle-plugin-verify'],
api_keys: {
}
};