-
Notifications
You must be signed in to change notification settings - Fork 39
/
package.json
50 lines (50 loc) · 5.92 KB
/
package.json
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
{
"name": "dharma-smart-wallet",
"version": "1.5.0",
"description": "An upgradeable, meta-transaction-enabled smart wallet for earning interest on stablecoins while retaining custody of funds, with an added security backstop provided by Dharma Labs.",
"author": "Dharma Labs",
"license": "MIT",
"dependencies": {
"@openzeppelin/contracts": "2.3.0",
"ethereumjs-util": "6.1.0",
"ethlint": "1.2.5",
"ganache-cli": "6.7.0",
"ganache-cli-coverage": "https://github.com/frangio/ganache-cli/releases/download/v6.4.1-coverage/ganache-cli-coverage-6.4.1.tgz",
"js-sha256": "0.9.0",
"solhint": "2.3.0",
"solidity-coverage": "0.6.7",
"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": "export TESTING_CONTEXT=development ; ./node_modules/.bin/ganache-cli --gasLimit 8000000 -i 1234 -e 10000 -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' 2>&1 > ganache-output.log & echo 'local chain started.' && ./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 'local chain stopped.'",
"build": "./node_modules/.bin/truffle compile",
"ci": "./node_modules/.bin/ganache-cli --gasLimit 8000000 -i 1234 -q & echo 'local chain started.' && ./node_modules/.bin/truffle compile && node scripts/test/ci.js && ./node_modules/.bin/solhint 'contracts/**/*.sol' && ./node_modules/.bin/solium -d .",
"coverage": "export TESTING_CONTEXT=coverage ; ./node_modules/.bin/ganache-cli-coverage --emitFreeLogs true --allowUnlimitedContractSize true --gasLimit 0xfffffffffff --port 8555 -e 10000 -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' 2>&1 > ganache-coverage-output.log & echo 'coverage chain started.' && node --max-old-space-size=8192 ./node_modules/.bin/solidity-coverage; kill -9 \"$(ps -ax | grep -m1 '[n]ode ./node_modules/.bin/ganache-cli' | awk '{print $1;}')\" && echo 'coverage chain stopped.'",
"forkCoverage": "./node_modules/.bin/ganache-cli-coverage --emitFreeLogs true --allowUnlimitedContractSize true --gasLimit 0xfffffffffff --port 8555 --fork https://mainnet.infura.io/v3/e7faf3dd07254d76859ec8c7c3259d9d@8396520 -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-coverage-output.log & echo 'fork coverage chain started on port 8555.' && node --max-old-space-size=8192 ./node_modules/.bin/solidity-coverage; kill -9 \"$(ps -ax | grep -m1 '[n]ode ./node_modules/.bin/ganache-cli' | awk '{print $1;}')\" && echo 'coverage chain stopped.'",
"lint": "./node_modules/.bin/solhint 'contracts/**/*.sol' && ./node_modules/.bin/solium -d .",
"start": "./node_modules/.bin/ganache-cli --gasLimit 8000000 -i 1234 -e 10000 -u 0xb5b06a16621616875A6C2637948bF98eA57c58fa -u 0x8134d518e0CeF5388136c0De43d7E12278701Ac5 -u 0x552F355CCb9b91C8FB47D9c011AbAD5B72EC30e9 -u 0xddb108893104de4e1c6d0e47c42237db4e617acc -u 0x95Ba4cF87D6723ad9C0Db21737D862bE80e93911 -u 0xA7ff0d561cd15eD525e31bbe0aF3fE34ac2059F6 -u '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe' -u '0x76B03EB651153a81fA1f212f2f59329B4180A46F' -u '0x035e742A7E62253C606b9028eeB65178B44F1e7E' 2>&1 > ganache-output.log & echo 'local chain started.'",
"forkStart": "./node_modules/.bin/ganache-cli --port 8545 --gasLimit 8000000 --fork https://mainnet.infura.io/v3/e7faf3dd07254d76859ec8c7c3259d9d@8396520 -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 'local chain stopped.'",
"test": "export TESTING_CONTEXT=development ; ./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"
]
}
}