UNPKG

4.52 kBJSONView Raw
1{
2 "name": "@mstable/protocol",
3 "version": "2.3.2",
4 "description": "mStable Contracts",
5 "author": "mStable <info@mstable.org>",
6 "license": "AGPL-3.0-or-later",
7 "directories": {
8 "test": "test"
9 },
10 "files": [
11 "/abis",
12 "/contracts/**/*.sol",
13 "!/contracts/z_mocks",
14 "/dist",
15 "!/dist/test",
16 "!/dist/test-fork"
17 ],
18 "main": "./dist/index.js",
19 "types": "./dist/index.d.ts",
20 "scripts": {
21 "lint": "yarn run lint-ts; yarn run lint-sol",
22 "lint:fix": "yarn pretty-quick --pattern '**/*.*(sol|json)' --staged --verbose && yarn pretty-quick --staged --write tasks/**/*.ts test/**/*.ts types/*.ts",
23 "lint-ts": "yarn eslint tasks/ test/ types/ --ext .ts --fix",
24 "lint-sol": "solhint 'contracts/**/*.sol'",
25 "compile-abis": "typechain --target=ethers-v5 --out-dir types/generated \"?(contracts|build)/!(build-info)/**/+([a-zA-Z0-9]).json\"",
26 "compile-ts": "npx tsc",
27 "compile": "yarn hardhat compile --force && yarn run compile-abis",
28 "flatten": "npx sol-merger \"./contracts/**/*.sol\" ./_flat",
29 "coverage": "yarn hardhat compile --force && node --max_old_space_size=6144 node_modules/.bin/hardhat coverage --temp 'build/contracts' --testfiles 'test/**/*.spec.ts' --show-stack-traces",
30 "convertTestFiles": "cd test-utils/validator-data; ts-node ./convertCsvTestFiles.ts",
31 "task": "yarn compile && yarn hardhat --config tasks.config.ts",
32 "task:fork": "yarn compile && yarn hardhat --config tasks-fork.config.ts",
33 "test": "yarn hardhat test",
34 "test:long": "LONG_TESTS=true yarn hardhat test",
35 "test:fork": "yarn hardhat --config hardhat-fork.config.ts test ./test-fork/**/*.spec.ts",
36 "test:file:fork": "yarn hardhat --config hardhat-fork.config.ts test",
37 "test:file": "yarn hardhat test",
38 "test:file:long": "LONG_TESTS=true yarn hardhat test",
39 "copy-types": "cp -R types/generated dist/types",
40 "prepublishOnly": "yarn compile && yarn copy-types"
41 },
42 "repository": {
43 "type": "git",
44 "url": "git+https://github.com/mstable/mstable-contracts.git"
45 },
46 "devDependencies": {
47 "@commitlint/cli": "^12.1.1",
48 "@commitlint/config-conventional": "^12.1.1",
49 "@nomiclabs/hardhat-etherscan": "^2.1.6",
50 "@types/lodash": "^4.14.138",
51 "@types/mocha": "^9.0.0",
52 "@types/node": "^16.6.0",
53 "@typescript-eslint/eslint-plugin": "^4.14.0",
54 "@typescript-eslint/eslint-plugin-tslint": "^4.14.0",
55 "@typescript-eslint/parser": "^4.14.0",
56 "axios": "^0.21.1",
57 "chalk": "^4.1.0",
58 "commitlint": "^12.1.1",
59 "eslint": "^7.18.0",
60 "eslint-config-airbnb-typescript": "^12.0.0",
61 "eslint-config-prettier": "^7.2.0",
62 "eslint-import-resolver-alias": "^1.1.2",
63 "eslint-plugin-import": "^2.20.1",
64 "eslint-plugin-jsx-a11y": "^6.2.3",
65 "eslint-plugin-react": "^7.18.3",
66 "ethereum-waffle": "^3.0.0",
67 "hardhat-abi-exporter": "^2.2.1",
68 "humanize-duration": "^3.21.0",
69 "husky": "^6.0.0",
70 "mocha": "^9.0.3",
71 "prettier": "^2.2.1",
72 "prettier-plugin-solidity": "^1.0.0-beta.10",
73 "pretty-quick": "^3.1.0",
74 "sol-merger": "^3.0.1",
75 "solc": "0.8.6",
76 "solhint": "^3.3.6",
77 "ts-generator": "^0.1.1",
78 "typescript": "^4.3.5"
79 },
80 "_moduleAliases": {
81 "@utils": "dist/test-utils"
82 },
83 "bugs": {
84 "url": "https://github.com/mstable/mstable-contracts/issues"
85 },
86 "homepage": "https://github.com/mstable/mstable-contracts#readme",
87 "dependencies": {
88 "@nomiclabs/hardhat-ethers": "^2.0.2",
89 "@nomiclabs/hardhat-waffle": "^2.0.1",
90 "@openzeppelin/contracts": "4.2.0",
91 "@openzeppelin/contracts-upgradeable": "4.2.0",
92 "@tenderly/hardhat-tenderly": "^1.0.12",
93 "@typechain/ethers-v5": "^7.0.1",
94 "@typechain/hardhat": "^2.3.0",
95 "chai": "^4.3.4",
96 "csv-parse": "^4.15.0",
97 "defender-relay-client": "^1.10.0",
98 "ethers": "^5.4.4",
99 "ethers-multicall": "^0.2.0",
100 "graphql": "^15.5.0",
101 "graphql-request": "^3.5.0",
102 "hardhat": "^2.6.4",
103 "hardhat-gas-reporter": "^1.0.1",
104 "solidity-coverage": "0.7.16",
105 "ts-node": "^10.2.0",
106 "tsconfig-paths": "^3.10.1",
107 "typechain": "^5.1.2"
108 }
109}