-
Notifications
You must be signed in to change notification settings - Fork 108
/
package.json
33 lines (33 loc) · 1.44 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
{
"name": "@1inch/1inch-token",
"version": "0.0.1",
"description": "",
"repository": {
"type": "git",
"url": "git@github.com:1inch/1inch-token.git"
},
"license": "MIT",
"dependencies": {
"@openzeppelin/contracts": "^3.3.0"
},
"devDependencies": {
"solc": "^0.6.12",
"truffle": "^5.1.58",
"truffle-flattener": "^1.5.0",
"@truffle/hdwallet-provider": "^1.2.0"
},
"scripts": {
"test": "truffle test --stacktrace",
"dist": "yarn dist:token && yarn optimize",
"dist:token": "truffle-flattener ./contracts/OneInch.sol | awk '/SPDX-License-Identifier/&&c++>0 {next} 1' | awk '/pragma experimental ABIEncoderV2;/&&c++>0 {next} 1' > ./OneInch.full.sol && solcjs --bin --abi --optimize ./OneInch.full.sol && mv ./__OneInch_full_sol_OneInch.bin ./OneInch.full.bin && mv ./__OneInch_full_sol_OneInch.abi ./OneInch.full.abi && rm ./*_sol_*",
"optimize": "node optimize.js",
"coverage": "truffle run coverage",
"coveralls": "truffle run coverage && cat coverage/lcov.info | coveralls",
"lint:js": "eslint .",
"lint:js:fix": "eslint . --fix",
"lint:sol": "solhint --max-warnings 0 \"contracts/**/*.sol\"",
"lint:sol:fix": "solhint --max-warnings 0 \"contracts/**/*.sol\" --fix",
"lint": "yarn run lint:js && yarn run lint:sol",
"lint:fix": "yarn run lint:js:fix && yarn run lint:sol:fix"
}
}