-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
52 lines (52 loc) · 4.32 KB
/
Copy pathpackage.json
File metadata and controls
52 lines (52 loc) · 4.32 KB
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
{
"name": "dharma-token",
"version": "1.1.0",
"description": "Implementation and testing for core Dharma Token (dToken) contracts, including Dharma Dai and Dharma USD Coin.",
"author": "Dharma Labs",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dharma-eng/dharma-token.git"
},
"dependencies": {
"@openzeppelin/contracts": "2.3.0",
"ethereumjs-util": "6.1.0",
"ethlint": "1.2.5",
"ganache-cli": "git://github.com/dharma-eng/ganache-cli",
"js-sha256": "0.9.0",
"solhint": "2.3.0",
"solidity-coverage": "0.7.1",
"truffle": "5.1.4",
"web3": "1.2.1"
},
"devDependencies": {
"husky": "^4.2.1",
"lint-staged": "^9.2.1",
"prettier": "1.16.4",
"pretty-quick": "^2.0.1"
},
"scripts": {
"all": "./node_modules/.bin/ganache-cli --hardfork istanbul --port 8545 --gasLimit 8000000 --fork https://mainnet.infura.io/v3/4c96c6bab18845dba07ad14cc0c18998 -e 10000 -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' -u '0x5dB0115f3B72d19cEa34dD697cf412Ff86dc7E1b' -u '0xf0d160DEC1749aFaF5A831668093B1431f7C8527' 2>&1 > ganache-output.log & echo 'fork chain started on port 8545.' && ./node_modules/.bin/truffle compile && node scripts/test/ci.js && ./node_modules/.bin/solhint 'contracts/**/*.sol' && ./node_modules/.bin/solium -d .; kill -9 \"$(ps -ax | grep -m1 '[n]ode ./node_modules/.bin/ganache-cli' | awk '{print $1;}')\" && echo 'fork chain stopped.'",
"build": "./node_modules/.bin/truffle compile",
"ci": "./node_modules/.bin/ganache-cli --hardfork istanbul --port 8545 --gasLimit 8000000 --fork https://mainnet.infura.io/v3/4c96c6bab18845dba07ad14cc0c18998 -e 10000 -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' -u '0x5dB0115f3B72d19cEa34dD697cf412Ff86dc7E1b' -u '0xf0d160DEC1749aFaF5A831668093B1431f7C8527' -q & echo 'fork chain started.' && ./node_modules/.bin/truffle compile && node scripts/test/ci.js && ./node_modules/.bin/solhint 'contracts/**/*.sol' && ./node_modules/.bin/solium -d .",
"coverage": "./node_modules/.bin/truffle run coverage --file=\"scripts/test/testCoverage.js\"",
"lint": "./node_modules/.bin/solhint 'contracts/**/*.sol' && ./node_modules/.bin/solium -d .",
"manticoreTest": "python3 scripts/mcore-tests/test_fromUnderlying.py",
"start": "./node_modules/.bin/ganache-cli --hardfork istanbul --port 8545 --gasLimit 8000000 --fork https://mainnet.infura.io/v3/4c96c6bab18845dba07ad14cc0c18998 -e 10000 -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' -u '0x5dB0115f3B72d19cEa34dD697cf412Ff86dc7E1b' -u '0xf0d160DEC1749aFaF5A831668093B1431f7C8527' 2>&1 > ganache-output.log & echo 'fork chain started on port 8545.'",
"stop": "kill -9 \"$(ps -ax | grep -m1 '[n]ode ./node_modules/.bin/ganache-cli' | awk '{print $1;}')\" && echo 'fork chain stopped.'",
"test": "./node_modules/.bin/truffle compile && node scripts/test/ci.js",
"prettier": "prettier --write"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,css,json,md}": [
"prettier --debug-check",
"prettier --write",
"git add"
]
}
}