UNPKG

@mstable/protocol

Version:
110 lines (109 loc) 4.52 kB
{ "name": "@mstable/protocol", "version": "2.3.2", "description": "mStable Contracts", "author": "mStable <info@mstable.org>", "license": "AGPL-3.0-or-later", "directories": { "test": "test" }, "files": [ "/abis", "/contracts/**/*.sol", "!/contracts/z_mocks", "/dist", "!/dist/test", "!/dist/test-fork" ], "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { "lint": "yarn run lint-ts; yarn run lint-sol", "lint:fix": "yarn pretty-quick --pattern '**/*.*(sol|json)' --staged --verbose && yarn pretty-quick --staged --write tasks/**/*.ts test/**/*.ts types/*.ts", "lint-ts": "yarn eslint tasks/ test/ types/ --ext .ts --fix", "lint-sol": "solhint 'contracts/**/*.sol'", "compile-abis": "typechain --target=ethers-v5 --out-dir types/generated \"?(contracts|build)/!(build-info)/**/+([a-zA-Z0-9]).json\"", "compile-ts": "npx tsc", "compile": "yarn hardhat compile --force && yarn run compile-abis", "flatten": "npx sol-merger \"./contracts/**/*.sol\" ./_flat", "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", "convertTestFiles": "cd test-utils/validator-data; ts-node ./convertCsvTestFiles.ts", "task": "yarn compile && yarn hardhat --config tasks.config.ts", "task:fork": "yarn compile && yarn hardhat --config tasks-fork.config.ts", "test": "yarn hardhat test", "test:long": "LONG_TESTS=true yarn hardhat test", "test:fork": "yarn hardhat --config hardhat-fork.config.ts test ./test-fork/**/*.spec.ts", "test:file:fork": "yarn hardhat --config hardhat-fork.config.ts test", "test:file": "yarn hardhat test", "test:file:long": "LONG_TESTS=true yarn hardhat test", "copy-types": "cp -R types/generated dist/types", "prepublishOnly": "yarn compile && yarn copy-types" }, "repository": { "type": "git", "url": "git+https://github.com/mstable/mstable-contracts.git" }, "devDependencies": { "@commitlint/cli": "^12.1.1", "@commitlint/config-conventional": "^12.1.1", "@nomiclabs/hardhat-etherscan": "^2.1.6", "@types/lodash": "^4.14.138", "@types/mocha": "^9.0.0", "@types/node": "^16.6.0", "@typescript-eslint/eslint-plugin": "^4.14.0", "@typescript-eslint/eslint-plugin-tslint": "^4.14.0", "@typescript-eslint/parser": "^4.14.0", "axios": "^0.21.1", "chalk": "^4.1.0", "commitlint": "^12.1.1", "eslint": "^7.18.0", "eslint-config-airbnb-typescript": "^12.0.0", "eslint-config-prettier": "^7.2.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.20.1", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.18.3", "ethereum-waffle": "^3.0.0", "hardhat-abi-exporter": "^2.2.1", "humanize-duration": "^3.21.0", "husky": "^6.0.0", "mocha": "^9.0.3", "prettier": "^2.2.1", "prettier-plugin-solidity": "^1.0.0-beta.10", "pretty-quick": "^3.1.0", "sol-merger": "^3.0.1", "solc": "0.8.6", "solhint": "^3.3.6", "ts-generator": "^0.1.1", "typescript": "^4.3.5" }, "_moduleAliases": { "@utils": "dist/test-utils" }, "bugs": { "url": "https://github.com/mstable/mstable-contracts/issues" }, "homepage": "https://github.com/mstable/mstable-contracts#readme", "dependencies": { "@nomiclabs/hardhat-ethers": "^2.0.2", "@nomiclabs/hardhat-waffle": "^2.0.1", "@openzeppelin/contracts": "4.2.0", "@openzeppelin/contracts-upgradeable": "4.2.0", "@tenderly/hardhat-tenderly": "^1.0.12", "@typechain/ethers-v5": "^7.0.1", "@typechain/hardhat": "^2.3.0", "chai": "^4.3.4", "csv-parse": "^4.15.0", "defender-relay-client": "^1.10.0", "ethers": "^5.4.4", "ethers-multicall": "^0.2.0", "graphql": "^15.5.0", "graphql-request": "^3.5.0", "hardhat": "^2.6.4", "hardhat-gas-reporter": "^1.0.1", "solidity-coverage": "0.7.16", "ts-node": "^10.2.0", "tsconfig-paths": "^3.10.1", "typechain": "^5.1.2" } }