Initial build for QIE Mainnet Hackathon 3.0 (DeFi & Financial Infrastructure track). Includes: - packages/contracts: constant-product AMM (factory/pair/router), over-collateralized lending vault, and an oracle adapter wrapping QIE's real deployed price-feed contracts. 25/25 Foundry tests pass locally. Clean-room: no existing DEX/lending protocol source was read or copied. - packages/core: TypeScript SDK (viem-based) for QIE's chain, the real (corrected) oracle ABI, a fail-closed QUSDC helper, a Blockscout explorer client, and QIE Wallet connection constants. Live-verified against real testnet (chain 1983) and mainnet (chain 1990) RPCs and the real oracle contracts. - packages/cli: a small CLI built on @qie-forge/core. Real findings from building this, documented in README.md and docs/STATUS.md: the previously-documented testnet RPC URL is dead (replacement found and verified live); QIE's own oracle docs describe a getPrice(string) function that reverts on the real deployed contracts, which actually implement a Chainlink AggregatorV3-style interface (verified live via raw eth_call); the oracle is deployed on Mainnet only, not Testnet. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
118 lines
4.2 KiB
JSON
118 lines
4.2 KiB
JSON
{
|
|
"name": "openzeppelin-solidity",
|
|
"description": "Secure Smart Contract library for Solidity",
|
|
"version": "5.7.0",
|
|
"private": true,
|
|
"files": [
|
|
"/contracts/**/*.sol",
|
|
"!/contracts/mocks/**/*"
|
|
],
|
|
"scripts": {
|
|
"compile": "hardhat build",
|
|
"compile:harnesses": "env SRC=./fv/harnesses hardhat build --noExpose",
|
|
"docs": "npm run prepare-docs && oz-docs",
|
|
"docs:watch": "oz-docs watch contracts docs/templates docs/config.mjs",
|
|
"prepare": "husky",
|
|
"prepare-docs": "scripts/prepare-docs.sh",
|
|
"lint": "npm run lint:js && npm run lint:sol",
|
|
"lint:fix": "npm run lint:js:fix && npm run lint:sol:fix",
|
|
"lint:js": "npm run prettier -- '**/*.{js,ts}' --check && eslint .",
|
|
"lint:js:fix": "npm run prettier -- '**/*.{js,ts}' --write && eslint . --fix",
|
|
"lint:sol": "npm run prettier -- '{contracts,test}/**/*.sol' --check && npm run solhint -- '{contracts,test}/**/*.sol'",
|
|
"lint:sol:fix": "npm run prettier -- '{contracts,test}/**/*.sol' --write && npm run solhint -- '{contracts,test}/**/*.sol' --fix",
|
|
"prettier": "prettier --log-level warn --ignore-path .gitignore",
|
|
"solhint": "solhint --config solhint.config.cjs --noPoster --noPrompt --disc",
|
|
"clean": "hardhat clean && rimraf build contracts/build",
|
|
"prepack": "scripts/prepack.sh",
|
|
"generate": "scripts/generate/run.js",
|
|
"pragma": "hardhat build --noExpose && scripts/minimize-pragma.js artifacts/build-info/*",
|
|
"version": "scripts/release/version.sh",
|
|
"test": "hardhat test",
|
|
"test:generation": "scripts/checks/generation.sh",
|
|
"test:inheritance": "hardhat build --noExpose && scripts/checks/inheritance-ordering.js artifacts/build-info/*.output.json",
|
|
"test:pragma": "hardhat build --noExpose && scripts/checks/pragma-validity.js artifacts/build-info/*.output.json",
|
|
"coverage": "hardhat test --coverage",
|
|
"gas-report": "hardhat test --gas-stats",
|
|
"slither": "npm run clean && slither ."
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/OpenZeppelin/openzeppelin-contracts.git"
|
|
},
|
|
"keywords": [
|
|
"solidity",
|
|
"ethereum",
|
|
"smart",
|
|
"contracts",
|
|
"security",
|
|
"zeppelin"
|
|
],
|
|
"author": "OpenZeppelin Community <maintainers@openzeppelin.org>",
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/OpenZeppelin/openzeppelin-contracts/issues"
|
|
},
|
|
"homepage": "https://openzeppelin.com/contracts/",
|
|
"engines": {
|
|
"node": "^22.12 || ^24 || >=26"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/changelog-github": "^1.0.0",
|
|
"@changesets/cli": "^3.0.0",
|
|
"@changesets/pre": "^3.0.0",
|
|
"@changesets/read": "^1.0.0",
|
|
"@eslint/compat": "^1.2.1",
|
|
"@ethereumjs/mpt": "^10.1.0",
|
|
"@noble/curves": "^2.0.1",
|
|
"@nomicfoundation/hardhat-ethers": "^4.0.14",
|
|
"@nomicfoundation/hardhat-ethers-chai-matchers": "^3.0.11",
|
|
"@nomicfoundation/hardhat-mocha": "^4.0.0",
|
|
"@nomicfoundation/hardhat-network-helpers": "^3.0.11",
|
|
"@openzeppelin/docs-utils": "^0.1.6",
|
|
"@openzeppelin/merkle-tree": "^1.0.7",
|
|
"@openzeppelin/upgrade-safe-transpiler": "^0.4.2",
|
|
"@openzeppelin/upgrades-core": "^1.20.6",
|
|
"@types/node": "^25.9.4",
|
|
"@types/yargs": "^17.0.35",
|
|
"chai": "^5.3.3",
|
|
"eslint": "^9.0.0",
|
|
"eslint-config-prettier": "^10.0.0",
|
|
"eslint-plugin-mocha": "^11.3.0",
|
|
"eta": "^4.6.0",
|
|
"ethers": "^6.16.0",
|
|
"glob": "^13.0.0",
|
|
"globals": "^17.0.0",
|
|
"graphlib": "^2.1.8",
|
|
"handlebars": "^4.7.9",
|
|
"hardhat": "^3.9.1",
|
|
"hardhat-ignore-warnings": "^0.3.0",
|
|
"hardhat-predeploy": "^1.0.1",
|
|
"husky": "^9.1.7",
|
|
"interoperable-addresses": "^0.1.3",
|
|
"lint-staged": "^17.0.0",
|
|
"lodash.startcase": "^4.4.0",
|
|
"micromatch": "^4.0.2",
|
|
"p-limit": "^7.0.0",
|
|
"prettier": "^3.0.0",
|
|
"prettier-plugin-solidity": "^2.0.0",
|
|
"rimraf": "^6.0.0",
|
|
"semver": "^7.3.5",
|
|
"solhint": "^6.2.3",
|
|
"solhint-plugin-openzeppelin": "file:scripts/solhint-custom",
|
|
"solidity-ast": "^0.4.61",
|
|
"undici": "^8.2.0",
|
|
"yargs": "^18.0.0"
|
|
},
|
|
"lint-staged": {
|
|
"**/*.{js,ts}": [
|
|
"npm run prettier -- --check",
|
|
"eslint"
|
|
],
|
|
"{contracts,test}/**/*.sol": [
|
|
"npm run prettier -- --check",
|
|
"npm run solhint --"
|
|
]
|
|
},
|
|
"type": "module"
|
|
}
|