-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
200 lines (185 loc) · 6.3 KB
/
hardhat.config.ts
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
import 'dotenv/config';
import {HardhatUserConfig} from 'hardhat/types';
import 'hardhat-deploy';
import '@nomiclabs/hardhat-ethers'; // aliased to hardhat-deploy-ethers
import 'hardhat-gas-reporter';
import '@openzeppelin/hardhat-upgrades';
import {node_url, accounts} from './utils/network';
const config: HardhatUserConfig = {
gasReporter: {
currency: 'USD',
gasPrice: 100,
enabled: process.env.REPORT_GAS ? true : false,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
maxMethodDiff: 10,
},
mocha: {
timeout: 0,
},
solidity: {
compilers: [
{
version: '0.7.5',
settings: {
optimizer: {
enabled: true,
runs: 2000,
},
},
},
{
version: '0.6.5',
settings: {
optimizer: {
enabled: true,
runs: 2000,
},
},
},
{
version: '0.5.9',
settings: {
optimizer: {
enabled: true,
runs: 2000,
},
},
},
],
},
namedAccounts: {
deployer: {
default: 1,
1: '0x18dd4e0eb8699eA4FeE238dE41ECfb95e32272f8',
rinkeby: '0x8A0e83DE499d7543CF486974a6196a35B5F573E7',
}, // deploy contracts and make sure they are set up correctly
sandAdmin: {
default: 2,
1: '0xeaa0993e1d21c2103e4f172a20d29371fbaf6d06',
rinkeby: '0xa4519D601F43D0b8f167842a367465681F652252',
}, // can add super operators and change admin
liquidityRewardProvider: {
default: 'sandBeneficiary',
1: '0x8FFA64FB50559c3Ff09a1022b84B2c5233ed8068',
},
liquidityRewardAdmin: 'sandAdmin',
kyberDepositor: {
default: 'sandBeneficiary',
1: '0x8FFA64FB50559c3Ff09a1022b84B2c5233ed8068',
},
sandExecutionAdmin: 'sandAdmin', // can add execution extension to SAND (used for Native metatx support)
mintingFeeCollector: 'sandAdmin', // will receiver the fee from Asset minting
sandBeneficiary: 'sandAdmin', // will be the owner of all initial SAND
assetAdmin: 'sandAdmin', // can add super operator and change admin to Asset
assetBouncerAdmin: 'sandAdmin', // setup the contract allowed to mint Assets
sandSaleAdmin: 'sandAdmin', // can pause the sandSale and withdraw SAND
genesisBouncerAdmin: 'sandAdmin', // can set who is allowed to mint
commonMinterAdmin: 'sandAdmin', // can change the fees
genesisMinter: 'deployer', // the first account allowed to mint genesis Assets
assetAuctionFeeCollector: 'sandSaleBeneficiary', // collect fees from asset auctions
assetAuctionAdmin: 'sandAdmin', // can change fee collector
sandSaleBeneficiary: {
default: 3,
1: '0x9695ed5020BB47880738Db356678fe8cBc8FF60b', // TODO use another wallet ?
rinkeby: '0x60927eB036621b801491B6c5e9A60A8d2dEeD75A',
},
Foundation: {
default: 5,
1: '', // TODO
},
StakingPool: {
default: 6,
1: '', // TODO
},
treasury: {
default: 'sandSaleBeneficiary',
rinkeby: 'sandSaleBeneficiary',
1: '0x4489590a116618B506F0EfE885432F6A8ED998E9',
},
landSaleBeneficiary: {
default: 'sandSaleBeneficiary',
rinkeby: 'sandSaleBeneficiary',
1: 'treasury',
}, // updated to company treasury wallet 9th September - collect funds from land sales
landSaleFeeRecipient: {
default: 3,
rinkeby: 5,
1: '0x0EB04462D69B1D267d269377E34f60b9De1c8510',
}, // collect 5% fee from land sales (prior to implementation of FeeDistributor)
landAdmin: {
default: 2,
1: '0xeaa0993e1d21c2103e4f172a20d29371fbaf6d06',
rinkeby: '0xa4519D601F43D0b8f167842a367465681F652252',
}, // can add super operators and change admin
landSaleAdmin: 'sandAdmin', // can enable currencies
estateAdmin: 'sandAdmin', // can add super operators and change admin
P2PERC721SaleAdmin: 'sandAdmin', // can set fees
backendReferralWallet: {
// default is computed from private key:
// "0x4242424242424242424242424242424242424242424242424242424242424242"
default: '0x17c5185167401eD00cF5F5b2fc97D9BBfDb7D025',
1: '0x3044719d139F866a44c988823513eCB93060bF1b',
rinkeby: '0xB7060D3FeCAC3AE1F0A0AA416E3e8E472257950e',
},
sandboxAccount: {
default: 4,
1: '0x7A9fe22691c811ea339D9B73150e6911a5343DcA',
rinkeby: '0x5BC3D5A39a50BE2348b9C529f81aE79f00945897', // Leon account on demo.sandbox
},
extraCatalystAndGemMinter: {
default: null,
1: null,
rinkeby: '0x5BC3D5A39a50BE2348b9C529f81aE79f00945897', // Leon account on demo.sandbox
},
catalystMinter: 'sandAdmin', // account that can mint catalysts
catalystAdmin: 'sandAdmin', // can set minter and admin for catatalyt, as well as super operators
gemAdmin: 'sandAdmin', // can set minter and admin for gems, as well as super operators
gemMinter: 'sandAdmin', // account that can mint gems
catalystRegistryAdmin: 'sandAdmin', // can change the minter
catalystMinterAdmin: 'sandAdmin', // control the fees and which catalyst are allowed
starterPackAdmin: 'sandAdmin', // can change price
starterPackSaleBeneficiary: 'treasury', // collect funds from starter pack sales
backendMessageSigner: 'backendReferralWallet', // account that sign message for the starter pack
kyberLiquidityProvider: 'sandBeneficiary', //TODO check what should be the value
},
networks: {
hardhat: {
accounts: accounts(process.env.HARDHAT_FORK),
forking: process.env.HARDHAT_FORK
? {
url: node_url(process.env.HARDHAT_FORK),
blockNumber: process.env.HARDHAT_FORK_NUMBER
? parseInt(process.env.HARDHAT_FORK_NUMBER)
: undefined,
}
: undefined,
},
localhost: {
url: 'http://localhost:8545',
accounts: accounts(),
},
rinkeby_test: {
url: node_url('rinkeby'),
accounts: accounts('rinkeby_test'),
},
rinkeby: {
url: node_url('rinkeby'),
accounts: accounts('rinkeby'),
},
mainnet: {
url: node_url('mainnet'),
accounts: accounts('mainnet'),
},
},
paths: {
sources: 'src',
},
external: process.env.HARDHAT_FORK
? {
deployments: {
hardhat: ['deployments/' + process.env.HARDHAT_FORK],
},
}
: undefined,
};
export default config;