forked from JoinColony/colonyNetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.solcover.js
60 lines (54 loc) · 3.36 KB
/
.solcover.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
const { execSync } = require("child_process");
const log = console.log;
// Copies pre-built token artifacts to .coverage_artifacts/contracts
function provisionTokenContracts(config){
let output;
const provisionColonyToken = `BUILD_DIR="build-coverage" bash ./scripts/provision-token-contracts.sh`;
log('Provisioning ColonyToken contracts...')
output = execSync(provisionColonyToken);
log(output.toString())
const provisionSafeContracts = `BUILD_DIR="build-coverage" bash ./scripts/provision-safe-contracts.sh`;
log('Provisioning Safe contracts...')
output = execSync(provisionSafeContracts);
log(output.toString())
}
module.exports = {
skipFiles: [
'Migrations.sol',
'common/EtherRouter.sol',
'patriciaTree',
'testHelpers',
'ens',
'extensions/votingReputation/VotingReputationMisalignedRecovery.sol'
],
providerOptions: {
port: 8555,
network_id: 1999,
account_keys_path: "./ganache-accounts.json",
vmErrorsOnRPCResponse: false,
total_accounts: 18,
accounts: [
{secretKey:"0x0355596cdb5e5242ad082c4fe3f8bbe48c9dba843fe1f99dd8272f487e70efae","balance":"100000000000000000000"},
{secretKey:"0xe9aebe8791ad1ebd33211687e9c53f13fe8cca53b271a6529c7d7ba05eda5ce2","balance":"100000000000000000000"},
{secretKey:"0x6f36842c663f5afc0ef3ac986ec62af9d09caa1bbf59a50cdb7334c9cc880e65","balance":"100000000000000000000"},
{secretKey:"0xf184b7741073fc5983df87815e66425928fa5da317ef18ef23456241019bd9c7","balance":"100000000000000000000"},
{secretKey:"0x7770023bfebe3c8e832b98d6c0874f75580730baba76d7ec05f2780444cc7ed3","balance":"100000000000000000000"},
{secretKey:"0xa9442c0092fe38933fcf2319d5cf9fd58e3be5409a26e2045929f9d2a16fb090","balance":"100000000000000000000"},
{secretKey:"0x06af2c8000ab1b096f2ee31539b1e8f3783236eba5284808c2b17cfb49f0f538","balance":"100000000000000000000"},
{secretKey:"0x7edaec9e5f8088a10b74c1d86108ce879dccded88fa9d4a5e617353d2a88e629","balance":"100000000000000000000"},
{secretKey:"0xe31c452e0631f67a629e88790d3119ea9505fae758b54976d2bf12bd8300ef4a","balance":"100000000000000000000"},
{secretKey:"0x5e383d2f98ac821c555333e5bb6109ca41ae89d613cb84887a2bdb933623c4e3","balance":"100000000000000000000"},
{secretKey:"0x33d2f6f6cc410c1d46d58f17efdd2b53a71527b27eaa7f2edcade351feb87425","balance":"100000000000000000000"},
{secretKey:"0x32400a48ff16119c134eef44e2627502ce6e367bc4810be07642275a9db47bf7","balance":"100000000000000000000"},
{secretKey:"0x2a0f58ae46261b4ec4b635bde4bfabb680245c2a3abff7f54945ae44f7629b1d","balance":"100000000000000000000"},
{secretKey:"0x94fe165ae1db4f7d24fa5506ecbf083dcb934823600cb56e2a191722f0b40903","balance":"100000000000000000000"},
{secretKey:"0xc93aad16dd4aca2fa61316f83307362306ad6b2fc3e4a91801ce9010be7d9b63","balance":"100000000000000000000"},
{secretKey:"0x27f8f0be23a027196c7b8f4c98502b113e3fa1474fc10eda21ef3b5473c1b773","balance":"100000000000000000000"},
{secretKey:"0xb6245e0d2b64a92c0e6359500231087278f499de46fdfa351d4f1e09faf95a47","balance":"100000000000000000000"},
{secretKey:"0xfe6066af949ec3c2c88ac10f47907c6d4e200c37b28b5af49e7d0ffd5c301c5c","balance":"100000000000000000000"}
]
},
onCompileComplete: provisionTokenContracts,
istanbulFolder: "./coverage-contracts",
modifierWhitelist: ["always"],
}