-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
129 lines (120 loc) · 5.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
require('babel-register');
require('babel-polyfill');
const HDWalletProvider = require('@truffle/hdwallet-provider');
require("dotenv").config();
const infuraKey = process.env.INFURA_KEY;
const mnemonic = process.env.HD_MNEMONIC;
const privKey = process.env.PRIVKEY;
module.exports = {
networks: {
"pln-chain": { // "sandbox" network for dev/tests (note `scripts/start-pln-chain.sh`)
host: "127.0.0.1",
port: 8555,
network_id: "2020",
gas: 5500000,
contracts: { // expected addresses (for migration/test scripts)
proxyAdmin: "0xD4972b38764069257C0c5bD2832C15cE8Db7a601",
proxies: {
Pollen: "0xaE3f84D4111c7A456f267BbF2d304f24E8fb0435",
PollenDAO: "0xB308a174c87B83f03763106C4d6cF4D37FA70D34",
RateQuoter: "0x98A9Ccb26096728a2a0161C6AF54ce4B2Ea1c5F4",
},
implementations: {
Pollen: "0x00D9ddc02A52C5FbFb2fb9615CD4C4Cd8940E5Ad",
PollenDAO: "0xE36f5cF652a91048F903E4F074afeAedBd8287f4",
RateQuoter: "0x4fc3D94c0B52723610864Fd21AE121403975E8A5",
}
},
},
"local-node": { // arbitrary Ethereum RPC-node
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
contracts: { } // May need to be defined, depending on the chain connected
},
development: { // for use with 'truffle develop --log'
host: "127.0.0.1",
port: 9545,
network_id: "*",
contracts: { } // Left empty: don't expect addresses remain unchanged on restarts
},
ropsten: {
provider: () => new HDWalletProvider(privKey || mnemonic, `https://ropsten.infura.io/v3/${infuraKey}`),
network_id: 3, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
contracts: { // addresses of deployed contracts
proxyAdmin: "0xd4A171fe0B39d0120BeEc0ea81b3c06896735Bc4",
proxies: {
Pollen: "0xe88B849FD0109e5d9A943A42EED98c5507c32E01",
PollenDAO: "0x58cdDaaCae33f2df3DE8ffe20B07C67ed310aAc6",
RateQuoter: "0xE7cc4E3Ea9AB8A82ff8b8c132034456A2A058E02",
MockPriceOracle: {
"r:ethUsd": "0x71271d853A665758b8E81bE8cd54B9a54877321e",
"r:batEth": "0x06a3dD64A3dF8FF45a29cE17BAC8ddD5B74b834c",
"r:compUsd": "0xC9e417fbF07019b7cCDA6f83D0bc6073F5B4819E",
"r:daiEth": "0x6f4a9e4057A99De37537acC02968B2B2c8e575B4",
"r:lendEth": "0xeE44558Ef55f4f7890ED66cd89d4367051e0cF9d",
"r:linkEth": "0xc78A1B93Fa50A58f89f2be2f2160FDA51a4141F4",
"r:mkrEth": "0x75064F1347FB6196EF8f6B53120630281ba6cb35",
"r:snxEth": "0x87199Ffc02BD459331E1422bbaC1A171262e5744",
"r:plnEth": "0x382975824786BF53e5Ad4726b51F89959218d0Ec",
},
MockAssetToken: {
"bat": "0x0c681619c589c0beaa01f693d018c817e11C5426",
"comp": "0xA147fEE90e1A2D8C8C3Cd7F14Dd399E0f67A084e",
"dai": "0xBAdE0A1a1eF3a2B5F0EEdc61aB68DF820be91E04",
"lend": "0x7F8896f4CccC705fe68926DbCf6b41258E0b37EA",
"link": "0x701FBb83C0cb7de531E86F04B6D1A4c03793fFc6",
"mkr": "",
"snx": "0x867a63140EE5Ce0958016130ecF4aD1e096fb1cc",
},
},
implementations: {
Pollen: "0xbef545Ec09386B1aB34e84C48e7CD431678190Dd",
PollenDAO: "0x42244Dc2de066Fe68cbc4dddE419fC6742021c62",
RateQuoter: "0xf14Be41Db357f7a60FeDd6e06200342a2b8bD1C3",
MockPriceOracle: "0xF95E66Dd3eEc8f545090C16398b78ceD0C0004af",
MockAssetToken: "0x4C675e60fC345bAe480BDD2bfA276D9fF1bC05AB",
}
},
},
mainnet: {
provider: () => new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${infuraKey}`),
network_id: 1, // Live's id
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
// TODO:as soon as contract deployed on the mainnet, define expected addresses
contracts: { // addresses of the contracts on the mainnet
proxyAdmin: "",
proxies: {
Pollen: "",
PollenDAO: "",
},
implementations: {
Pollen: "",
PollenDAO: "",
}
},
},
},
mocha: {
timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "^0.6.2", // Fetch latest 6.x.x version
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "istanbul"
}
}
},
contracts_build_directory: "artifacts/contracts"
}