diff --git a/CommonDAO-DeedProtocol.code-workspace b/CommonDAO-DeedProtocol.code-workspace index bc999e9b..574f8d2b 100644 --- a/CommonDAO-DeedProtocol.code-workspace +++ b/CommonDAO-DeedProtocol.code-workspace @@ -1,20 +1,20 @@ { - "folders": [ - { - "name": "Frontend", - "path": "./packages/nextjs" - }, - { - "name": "Hardhat", - "path": "./packages/hardhat" - }, - { - "name": "Root", - "path": "." - }, - ], - "settings": { - "editor.tabSize": 2, - "prettier.tabWidth": 4 - } + "folders": [ + { + "name": "Frontend", + "path": "./packages/nextjs" + }, + { + "name": "Hardhat", + "path": "./packages/hardhat" + }, + { + "name": "Root", + "path": "." + }, + ], + "settings": { + "editor.tabSize": 2, + "prettier.tabWidth": 4 + } } \ No newline at end of file diff --git a/package.json b/package.json index f5bff3fe..647fca12 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,40 @@ { - "name": "deed-protocol", - "version": "0.0.1", - "private": true, - "workspaces": { - "packages": [ - "packages/hardhat", - "packages/nextjs" - ] - }, - "scripts": { - "account": "yarn workspace @deed-protocol/hardhat account", - "chain": "yarn workspace @deed-protocol/hardhat chain", - "fork": "yarn workspace @deed-protocol/hardhat fork", - "deploy": "yarn workspace @deed-protocol/hardhat deploy", - "verify": "yarn workspace @deed-protocol/hardhat verify", - "compile": "yarn workspace @deed-protocol/hardhat compile", - "generate": "yarn workspace @deed-protocol/hardhat generate", - "hardhat:lint": "yarn workspace @deed-protocol/hardhat lint", - "hardhat:lint-staged": "yarn workspace @deed-protocol/hardhat lint-staged", - "hardhat:test": "yarn workspace @deed-protocol/hardhat test", - "coverage": "yarn workspace @deed-protocol/hardhat coverage", - "start": "yarn workspace @deed-protocol/nextjs dev", - "next:lint": "yarn workspace @deed-protocol/nextjs lint", - "next:format": "yarn workspace @deed-protocol/nextjs format", - "next:check-types": "yarn workspace @deed-protocol/nextjs check-types", - "postinstall": "husky install", - "precommit": "lint-staged", - "vercel": "yarn workspace @deed-protocol/nextjs vercel", - "vercel:yolo": "yarn workspace @deed-protocol/nextjs vercel:yolo" - }, - "packageManager": "yarn@3.2.3", - "devDependencies": { - "husky": "^8.0.1", - "lint-staged": "^13.0.3" - }, - "resolutions": { - "usehooks-ts@^2.7.2": "patch:usehooks-ts@npm:^2.7.2#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch" - } -} + "name": "deed-protocol", + "version": "0.0.1", + "private": true, + "workspaces": { + "packages": [ + "packages/hardhat", + "packages/nextjs" + ] + }, + "scripts": { + "account": "yarn workspace @deed-protocol/hardhat account", + "chain": "yarn workspace @deed-protocol/hardhat chain", + "fork": "yarn workspace @deed-protocol/hardhat fork", + "deploy": "yarn workspace @deed-protocol/hardhat deploy", + "verify": "yarn workspace @deed-protocol/hardhat verify", + "compile": "yarn workspace @deed-protocol/hardhat compile", + "generate": "yarn workspace @deed-protocol/hardhat generate", + "hardhat:lint": "yarn workspace @deed-protocol/hardhat lint", + "hardhat:lint-staged": "yarn workspace @deed-protocol/hardhat lint-staged", + "hardhat:test": "yarn workspace @deed-protocol/hardhat test", + "coverage": "yarn workspace @deed-protocol/hardhat coverage", + "start": "yarn workspace @deed-protocol/nextjs dev", + "next:lint": "yarn workspace @deed-protocol/nextjs lint", + "next:format": "yarn workspace @deed-protocol/nextjs format", + "next:check-types": "yarn workspace @deed-protocol/nextjs check-types", + "postinstall": "husky install", + "precommit": "lint-staged", + "vercel": "yarn workspace @deed-protocol/nextjs vercel", + "vercel:yolo": "yarn workspace @deed-protocol/nextjs vercel:yolo" + }, + "packageManager": "yarn@3.2.3", + "devDependencies": { + "husky": "^8.0.1", + "lint-staged": "^13.0.3" + }, + "resolutions": { + "usehooks-ts@^2.7.2": "patch:usehooks-ts@npm:^2.7.2#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch" + } +} \ No newline at end of file diff --git a/packages/hardhat/.prettierrc.json b/packages/hardhat/.prettierrc.json index d11953dd..aa23ee81 100644 --- a/packages/hardhat/.prettierrc.json +++ b/packages/hardhat/.prettierrc.json @@ -1,5 +1,5 @@ { - "arrowParens": "avoid", - "printWidth": 120, - "trailingComma": "all" + "arrowParens": "avoid", + "printWidth": 120, + "trailingComma": "all" } \ No newline at end of file diff --git a/packages/hardhat/package.json b/packages/hardhat/package.json index de310abc..01dd9b7f 100644 --- a/packages/hardhat/package.json +++ b/packages/hardhat/package.json @@ -1,56 +1,56 @@ { - "name": "@deed-protocol/hardhat", - "version": "0.0.1", - "scripts": { - "account": "hardhat run scripts/listAccount.ts", - "chain": "hardhat node --network hardhat --no-deploy", - "compile": "hardhat compile", - "deploy": "hardhat deploy", - "coverage": "hardhat coverage --testfiles \"test/*.spec.ts\" --solcoverjs ./test/coverage.solcover.ts", - "fork": "MAINNET_FORKING_ENABLED=true hardhat node --network hardhat --no-deploy", - "generate": "hardhat run scripts/generateAccount.ts", - "lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts", - "lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore", - "test": "REPORT_GAS=true hardhat test --network hardhat", - "verify": "hardhat etherscan-verify" - }, - "devDependencies": { - "@eth-optimism/hardhat-ovm": "^0.2.4", - "@ethersproject/abi": "^5.7.0", - "@ethersproject/providers": "^5.7.1", - "@matterlabs/hardhat-zksync-solc": "^0.3.17", - "@matterlabs/hardhat-zksync-verify": "^0.1.8", - "@nomicfoundation/hardhat-chai-matchers": "^1.0.3", - "@nomicfoundation/hardhat-network-helpers": "^1.0.8", - "@nomicfoundation/hardhat-toolbox": "^2.0.0", - "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13", - "@nomiclabs/hardhat-etherscan": "^3.1.0", - "@typechain/ethers-v5": "^10.1.0", - "@typechain/hardhat": "^6.1.3", - "@types/eslint": "^8", - "@types/mocha": "^9.1.1", - "@types/prettier": "^2", - "@types/qrcode": "^1", - "@typescript-eslint/eslint-plugin": "latest", - "@typescript-eslint/parser": "latest", - "chai": "^4.3.6", - "eslint": "^8.26.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-prettier": "^4.2.1", - "ethers": "^5.7.1", - "hardhat": "^2.11.2", - "hardhat-deploy": "^0.11.26", - "hardhat-gas-reporter": "^1.0.9", - "prettier": "^2.8.4", - "solidity-coverage": "^0.8.4", - "ts-node": "^10.9.1", - "typechain": "^8.1.0", - "typescript": "^4.9.5" - }, - "dependencies": { - "@openzeppelin/contracts": "^4.8.1", - "dotenv": "^16.0.3", - "envfile": "^6.18.0", - "qrcode": "^1.5.1" - } -} + "name": "@deed-protocol/hardhat", + "version": "0.0.1", + "scripts": { + "account": "hardhat run scripts/listAccount.ts", + "chain": "hardhat node --network hardhat --no-deploy", + "compile": "hardhat compile", + "deploy": "hardhat deploy", + "coverage": "hardhat coverage --testfiles \"test/*.spec.ts\" --solcoverjs ./test/coverage.solcover.ts", + "fork": "MAINNET_FORKING_ENABLED=true hardhat node --network hardhat --no-deploy", + "generate": "hardhat run scripts/generateAccount.ts", + "lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts", + "lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore", + "test": "REPORT_GAS=true hardhat test --network hardhat", + "verify": "hardhat etherscan-verify" + }, + "devDependencies": { + "@eth-optimism/hardhat-ovm": "^0.2.4", + "@ethersproject/abi": "^5.7.0", + "@ethersproject/providers": "^5.7.1", + "@matterlabs/hardhat-zksync-solc": "^0.3.17", + "@matterlabs/hardhat-zksync-verify": "^0.1.8", + "@nomicfoundation/hardhat-chai-matchers": "^1.0.3", + "@nomicfoundation/hardhat-network-helpers": "^1.0.8", + "@nomicfoundation/hardhat-toolbox": "^2.0.0", + "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.13", + "@nomiclabs/hardhat-etherscan": "^3.1.0", + "@typechain/ethers-v5": "^10.1.0", + "@typechain/hardhat": "^6.1.3", + "@types/eslint": "^8", + "@types/mocha": "^9.1.1", + "@types/prettier": "^2", + "@types/qrcode": "^1", + "@typescript-eslint/eslint-plugin": "latest", + "@typescript-eslint/parser": "latest", + "chai": "^4.3.6", + "eslint": "^8.26.0", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "ethers": "^5.7.1", + "hardhat": "^2.11.2", + "hardhat-deploy": "^0.11.26", + "hardhat-gas-reporter": "^1.0.9", + "prettier": "^2.8.4", + "solidity-coverage": "^0.8.4", + "ts-node": "^10.9.1", + "typechain": "^8.1.0", + "typescript": "^4.9.5" + }, + "dependencies": { + "@openzeppelin/contracts": "^4.8.1", + "dotenv": "^16.0.3", + "envfile": "^6.18.0", + "qrcode": "^1.5.1" + } +} \ No newline at end of file diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 77a2a01b..5ad05c5f 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,55 +1,55 @@ { - "name": "@deed-protocol/nextjs", - "private": true, - "version": "0.1.0", - "scripts": { - "dev": "next dev", - "start": "next dev", - "build": "next build", - "serve": "next start", - "lint": "next lint", - "format": "prettier --write . '!(node_module|.next|contracts)/**/*'", - "check-types": "tsc --noEmit --incremental", - "vercel": "vercel", - "vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" - }, - "dependencies": { - "@ethersproject/networks": "^5.7.1", - "@ethersproject/web": "^5.7.1", - "@heroicons/react": "^2.0.11", - "@rainbow-me/rainbowkit": "^0.11.0", - "@uniswap/sdk": "^3.0.3", - "daisyui": "^2.31.0", - "ethers": "^5.0.0", - "next": "^13.1.6", - "nextjs-progressbar": "^0.0.16", - "react": "^18.2.0", - "react-blockies": "^1.4.1", - "react-copy-to-clipboard": "^5.1.0", - "react-dom": "^18.2.0", - "react-fast-marquee": "^1.3.5", - "react-hot-toast": "^2.4.0", - "use-debounce": "^8.0.4", - "usehooks-ts": "^2.7.2", - "wagmi": "^0.11.6", - "zustand": "^4.1.2" - }, - "devDependencies": { - "@trivago/prettier-plugin-sort-imports": "^4.1.1", - "@types/node": "^17.0.35", - "@types/react": "^18.0.9", - "@types/react-blockies": "^1.4.1", - "@types/react-copy-to-clipboard": "^5.0.4", - "@typescript-eslint/eslint-plugin": "^5.39.0", - "autoprefixer": "^10.4.12", - "eslint": "^8.15.0", - "eslint-config-next": "^13.1.6", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-prettier": "^4.2.1", - "postcss": "^8.4.16", - "prettier": "^2.8.4", - "tailwindcss": "^3.1.8", - "typescript": "^4.9.5", - "vercel": "^28.15.1" - } -} + "name": "@deed-protocol/nextjs", + "private": true, + "version": "0.1.0", + "scripts": { + "dev": "next dev", + "start": "next dev", + "build": "next build", + "serve": "next start", + "lint": "next lint", + "format": "prettier --write . '!(node_module|.next|contracts)/**/*'", + "check-types": "tsc --noEmit --incremental", + "vercel": "vercel", + "vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" + }, + "dependencies": { + "@ethersproject/networks": "^5.7.1", + "@ethersproject/web": "^5.7.1", + "@heroicons/react": "^2.0.11", + "@rainbow-me/rainbowkit": "^0.11.0", + "@uniswap/sdk": "^3.0.3", + "daisyui": "^2.31.0", + "ethers": "^5.0.0", + "next": "^13.1.6", + "nextjs-progressbar": "^0.0.16", + "react": "^18.2.0", + "react-blockies": "^1.4.1", + "react-copy-to-clipboard": "^5.1.0", + "react-dom": "^18.2.0", + "react-fast-marquee": "^1.3.5", + "react-hot-toast": "^2.4.0", + "use-debounce": "^8.0.4", + "usehooks-ts": "^2.7.2", + "wagmi": "^0.11.6", + "zustand": "^4.1.2" + }, + "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "^4.1.1", + "@types/node": "^17.0.35", + "@types/react": "^18.0.9", + "@types/react-blockies": "^1.4.1", + "@types/react-copy-to-clipboard": "^5.0.4", + "@typescript-eslint/eslint-plugin": "^5.39.0", + "autoprefixer": "^10.4.12", + "eslint": "^8.15.0", + "eslint-config-next": "^13.1.6", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "postcss": "^8.4.16", + "prettier": "^2.8.4", + "tailwindcss": "^3.1.8", + "typescript": "^4.9.5", + "vercel": "^28.15.1" + } +} \ No newline at end of file