package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "name": "openzeppelin-solidity",
  3. "description": "Secure Smart Contract library for Solidity",
  4. "version": "5.4.0",
  5. "private": true,
  6. "files": [
  7. "/contracts/**/*.sol",
  8. "!/contracts/mocks/**/*"
  9. ],
  10. "scripts": {
  11. "compile": "hardhat compile",
  12. "compile:harnesses": "env SRC=./certora/harnesses hardhat compile",
  13. "coverage": "scripts/checks/coverage.sh",
  14. "docs": "npm run prepare-docs && oz-docs",
  15. "docs:watch": "oz-docs watch contracts docs/templates docs/config.js",
  16. "prepare": "husky",
  17. "prepare-docs": "scripts/prepare-docs.sh",
  18. "lint": "npm run lint:js && npm run lint:sol",
  19. "lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",
  20. "lint:js": "prettier --log-level warn --ignore-path .gitignore '**/*.{js,ts}' --check && eslint .",
  21. "lint:js:fix": "prettier --log-level warn --ignore-path .gitignore '**/*.{js,ts}' --write && eslint . --fix",
  22. "lint:sol": "prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --check && solhint --config solhint.config.js --noPoster '{contracts,test}/**/*.sol'",
  23. "lint:sol:fix": "prettier --log-level warn --ignore-path .gitignore '{contracts,test}/**/*.sol' --write",
  24. "clean": "hardhat clean && rimraf build contracts/build",
  25. "prepack": "scripts/prepack.sh",
  26. "generate": "scripts/generate/run.js",
  27. "pragma": "npm run compile && scripts/minimize-pragma.js artifacts/build-info/*",
  28. "version": "scripts/release/version.sh",
  29. "test": ". scripts/set-max-old-space-size.sh && hardhat test",
  30. "test:generation": "scripts/checks/generation.sh",
  31. "test:inheritance": "npm run compile && scripts/checks/inheritance-ordering.js artifacts/build-info/*",
  32. "test:pragma": "npm run compile && scripts/checks/pragma-validity.js artifacts/build-info/*",
  33. "gas-report": "env ENABLE_GAS_REPORT=true npm run test",
  34. "slither": "npm run clean && slither ."
  35. },
  36. "repository": {
  37. "type": "git",
  38. "url": "https://github.com/OpenZeppelin/openzeppelin-contracts.git"
  39. },
  40. "keywords": [
  41. "solidity",
  42. "ethereum",
  43. "smart",
  44. "contracts",
  45. "security",
  46. "zeppelin"
  47. ],
  48. "author": "OpenZeppelin Community <maintainers@openzeppelin.org>",
  49. "license": "MIT",
  50. "bugs": {
  51. "url": "https://github.com/OpenZeppelin/openzeppelin-contracts/issues"
  52. },
  53. "homepage": "https://openzeppelin.com/contracts/",
  54. "devDependencies": {
  55. "@changesets/changelog-github": "^0.5.0",
  56. "@changesets/cli": "^2.26.0",
  57. "@changesets/pre": "^2.0.0",
  58. "@changesets/read": "^0.6.0",
  59. "@eslint/compat": "^1.2.1",
  60. "@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
  61. "@nomicfoundation/hardhat-ethers": "^3.0.9",
  62. "@nomicfoundation/hardhat-network-helpers": "^1.0.13",
  63. "@openzeppelin/docs-utils": "^0.1.5",
  64. "@openzeppelin/merkle-tree": "^1.0.7",
  65. "@openzeppelin/upgrade-safe-transpiler": "^0.3.32",
  66. "@openzeppelin/upgrades-core": "^1.20.6",
  67. "chai": "^4.2.0",
  68. "eslint": "^9.0.0",
  69. "eslint-config-prettier": "^10.0.0",
  70. "ethers": "^6.14.0",
  71. "glob": "^11.0.0",
  72. "globals": "^16.0.0",
  73. "graphlib": "^2.1.8",
  74. "hardhat": "^2.24.3",
  75. "hardhat-exposed": "^0.3.15",
  76. "hardhat-gas-reporter": "^2.1.0",
  77. "hardhat-ignore-warnings": "^0.2.11",
  78. "hardhat-predeploy": "^0.2.0",
  79. "husky": "^9.1.7",
  80. "interoperable-addresses": "^0.1.3",
  81. "lint-staged": "^16.0.0",
  82. "lodash.startcase": "^4.4.0",
  83. "micromatch": "^4.0.2",
  84. "p-limit": "^6.0.0",
  85. "prettier": "^3.0.0",
  86. "prettier-plugin-solidity": "^2.0.0",
  87. "rimraf": "^6.0.0",
  88. "semver": "^7.3.5",
  89. "solhint": "^6.0.0",
  90. "solhint-plugin-openzeppelin": "file:scripts/solhint-custom",
  91. "solidity-ast": "^0.4.50",
  92. "solidity-coverage": "^0.8.14",
  93. "solidity-docgen": "^0.6.0-beta.29",
  94. "undici": "^7.4.0",
  95. "yargs": "^18.0.0"
  96. },
  97. "lint-staged": {
  98. "*.{js,ts}": [
  99. "prettier --log-level warn --ignore-path .gitignore --check",
  100. "eslint"
  101. ],
  102. "*.sol": [
  103. "prettier --log-level warn --ignore-path .gitignore --check",
  104. "solhint --config solhint.config.js --noPoster"
  105. ]
  106. }
  107. }