Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate typechain #183

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,5 @@ If you have suggestions or comments on how we can better collaborate on this cod
2. Install dependencies with `yarn` & `forge update`
3. Compile the contracts with `yarn build`
4. Run tests with `yarn test`

Want [Typechain](https://github.com/dethcrypto/TypeChain) types for Zora's v3 contracts? Install typechain (`yarn add -D typechain @typechain/ethers-v5`) and then add the following step to your project's build process: `yarn typechain --target=ethers-v5 './node_modules/@zoralabs/v3/dist/artifacts/*/*.json' --out-dir zora-v3-types`
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/v3",
"version": "1.0.12",
"version": "1.0.13",
"private": false,
"homepage": "https://github.com/ourzora/v3",
"repository": {
Expand All @@ -17,25 +17,21 @@
"@rari-capital/solmate": "^6.2.0"
},
"devDependencies": {
"@typechain/ethers-v5": "^10.0.0",
"husky": "^7.0.0",
"lint-staged": "^12.3.7",
"prettier": "^2.6.1",
"prettier-plugin-solidity": "^1.0.0-beta.19",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5",
"typechain": "^8.0.0",
"typescript": "^4.6.3"
"solhint-plugin-prettier": "^0.0.5"
},
"lint-staged": {
"*.{ts,js,css,md,sol}": "prettier --write",
"*.sol": "solhint"
},
"scripts": {
"build": "forge build && yarn typechain",
"build": "forge build",
"clean": "forge clean && rm -rf ./dist",
"prepublishOnly": "rm -rf ./dist && forge clean && forge build && yarn typechain && cp -R contracts dist && cp -R addresses dist",
"test": "forge test",
"typechain": "typechain --target=ethers-v5 'dist/artifacts/*/*.json' --out-dir dist/typechain"
"prepublishOnly": "rm -rf ./dist && forge clean && forge build && cp -R contracts dist && cp -R addresses dist",
"test": "forge test"
}
}
Loading