forked from The-Poolz/Poolz-Back
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config-moon.js
46 lines (44 loc) · 1.52 KB
/
truffle-config-moon.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
const PrivateKeyProvider = require('./private-provider');
// Standalone Development Node Private Key
const privateKeyDev =
'99B3C12287537E38C90A9219D4CB074A89A16E9CDB20BF85728EBD97C343E342';
// Moonbase Alpha Private Key --> Please change this to your own Private Key with funds
const privateKeyMoonbase = 'e58e3edc4810de1fff2839884cb23e9604504a5849bb1686467e689547474dbe';
module.exports = {
networks: {
dev: {
provider: () => {
if (!privateKeyDev.trim()) {
throw new Error('Please enter a private key with funds, you can use the default one');
}
return new PrivateKeyProvider(privateKeyDev, 'http://localhost:9933/', 43)
},
network_id: 43,
},
moonbase: {
networkCheckTimeout: 30000,
provider: () => {
if (!privateKeyMoonbase.trim()) {
throw new Error('Please enter a private key with funds to send transactions to TestNet');
}
if (privateKeyDev == privateKeyMoonbase) {
throw new Error('Please change the private key used for Moonbase to your own with funds');
}
return new PrivateKeyProvider(privateKeyMoonbase, 'https://rpc.testnet.moonbeam.network', 1287)
},
network_id: 1287,
gas: 5100000
},
},
plugins: ['moonbeam-truffle-plugin'],
compilers: {
solc: {
settings: {
evmVersion: "byzantium"
},
version: "^0.4.26",
docker: false,
parser: "solcjs",
}
}
};