forked from 0xsequence/erc-1155
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 3.24 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,
"license": "Apache-2.0",
"scripts": {
"build": "pnpm clean && pnpm compile && pnpm adapter",
"clean": "rimraf src/artifacts && rimraf src/adapter && rimraf src/cache",
"compile": "hardhat --max-memory 4096 compile",
"adapter": "pnpm adapter:gen && pnpm adapter:build",
"adapter:gen": "rimraf src/cache/typechain && typechain --target ethers-v5 --out-dir src/cache/typechain './src/artifacts/contracts/**/*[^dbg].json'",
"adapter:build": "rimraf src/adapter && tsc -p ./src/tsconfig.adapter.json",
"test": "pnpm build && hardhat test",
"test:quick": "hardhat test",
"precoverage": "pnpm build",
"coverage": "COVERAGE=true NET_ID=1 hardhat coverage --network coverage",
"benchmark": "BENCHMARK=true pnpm test",
"lint": "pnpm lint:ts && pnpm lint:sol",
"lint:fix": "pnpm lint:ts:fix && pnpm 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 --chain.chainId ${npm_package_config_ganacheChainID} --chain.networkId ${npm_package_config_ganacheChainID} --server.port ${npm_package_config_ganachePort} --miner.blockGasLimit ${npm_package_config_ganacheGasLimit} --miner.defaultGasPrice ${npm_package_config_ganacheGasPrice} --wallet.defaultBalance ${npm_package_config_etherBalance} --wallet.mnemonic \"${npm_package_config_mnemonic}\" ${npm_package_config_extra}",
"start:ganache:verbose": "pnpm run start:ganache --verbose",
"stop:ganache": "ps aux | grep ganache | grep -v grep | awk '{print $2}' | xargs kill -9",
"release": "pnpm build && pnpm publish src"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint"
}
},
"devDependencies": {
"@ethersproject/abi": "^5.7.0",
"@ethersproject/networks": "^5.7.1",
"@ethersproject/providers": "^5.7.2",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-truffle5": "^2.0.0",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@typechain/ethers-v5": "^10.1.1",
"@types/chai-as-promised": "^7.1.0",
"@types/chai-string": "^1.4.1",
"@types/mocha": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-bignumber": "^3.0.0",
"chai-string": "^1.5.0",
"concurrently": "^7.5.0",
"dotenv": "^16.0.3",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^4.2.1",
"ethers": "^5.7.2",
"ganache": "^7.5.0",
"hardhat": "2.12.2",
"hardhat-gas-reporter": "1.0.9",
"husky": "^8.0.1",
"rimraf": "^3.0.2",
"solhint": "^3.3.4",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.9.1",
"typechain": "^8.1.1",
"typescript": "^4.8.4"
},
"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": ""
}
}