forked from 0xsequence/erc-1155
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 3.25 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "root",
"private": true,
"workspaces": ["src"],
"license": "Apache-2.0",
"scripts": {
"build": "yarn clean && yarn compile && yarn adapter",
"clean": "rimraf src/artifacts && rimraf src/gen && rimraf cache",
"compile": "hardhat --max-memory 4096 compile",
"adapter": "yarn adapter:gen && yarn adapter:build",
"adapter:gen": "rimraf src/gen/typechain && typechain --target ethers-v5 --outDir src/gen/typechain './src/artifacts/!(build-info)/**/*[^dbg].json'",
"adapter:build": "rimraf src/gen/adapter && tsc ./src/gen/typechain/index.ts --outDir ./src/gen/adapter",
"test": "yarn build && yarn concurrently -k --success first 'yarn start:ganache' 'yarn test:ganache'",
"test:hardhat": "hardhat test",
"test:ganache": "hardhat --network ganache test",
"coverage": "hardhat coverage",
"test:gas-report": "REPORT_GAS=true yarn test",
"lint": "yarn lint:ts && yarn lint:sol",
"lint:fix": "yarn lint:ts:fix && yarn lint:sol:fix",
"lint:sol": "solhint './src/contracts/**/*.sol'",
"lint:sol:fix": "solhint './src/contracts/**/*.sol' --fix",
"lint:ts": "eslint -c .eslintrc.js './**/*.ts'",
"lint:ts:fix": "eslint -c .eslintrc.js --fix './**/*.ts'",
"format": "prettier --write ./**/*.ts",
"start:ganache": "ganache-cli --chainId ${npm_package_config_ganacheChainID} --networkId ${npm_package_config_ganacheChainID} --port ${npm_package_config_ganachePort} --gasLimit ${npm_package_config_ganacheGasLimit} --gasPrice ${npm_package_config_ganacheGasPrice} --defaultBalanceEther ${npm_package_config_etherBalance} --deterministic --mnemonic \"${npm_package_config_mnemonic}\" ${npm_package_config_extra}",
"start:ganache:verbose": "yarn run start:ganache --verbose",
"stop:start:ganache": "ps aux | grep ganache-cli | grep -v grep | awk '{print $2}' | xargs kill -9",
"release": "yarn publish src"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint"
}
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@typechain/ethers-v5": "^6.0.0",
"@types/chai": "^4.2.15",
"@types/chai-as-promised": "^7.1.3",
"@types/chai-string": "^1.4.2",
"@types/mocha": "^8.2.1",
"@types/node": "^14.14.35",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-bignumber": "^3.0.0",
"chai-string": "^1.5.0",
"concurrently": "^6.0.0",
"dotenv": "^8.2.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.3.1",
"ethers": "^5.0.32",
"ganache-cli": "6.12.2",
"hardhat": "2.1.1",
"hardhat-gas-reporter": "1.0.4",
"husky": "^4.3.8",
"rimraf": "^3.0.2",
"solhint": "^3.3.2",
"solidity-coverage": "^0.7.16",
"ts-node": "^9.1.1",
"typechain": "^4.0.1",
"typescript": "^4.1.3"
},
"config": {
"mnemonic": "test test test test test test test test test test test junk",
"ganacheChainID": 127001,
"ganachePort": 8545,
"ganacheGasLimit": "0xfffffffffff",
"ganacheGasPrice": "20000000000",
"etherBalance": "100000",
"extra": ""
}
}