Skip to content

Commit

Permalink
Add separate package.json for the ABIs
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Jul 18, 2023
1 parent dedcfbc commit c32dfe8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions contracts/abi.package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@origin/defi",
"license": "MIT",
"homepage": "https://github.com/originprotocol/origin-dollar",
"engines": {
"node": "16"
}
}
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"deploy:oeth": "(rm -rf deployments/hardhat && npx hardhat deploy --export '../dapp-oeth/network.json') && yarn run copy-interface-artifacts:oeth",
"deploy:oeth:mainnet": "(npx hardhat deploy --network mainnet --verbose --export '../dapp-oeth/network.mainnet.json') && yarn run copy-interface-artifacts",
"abi:generate": "(rm -rf deployments/hardhat && mkdir -p dist/abi && npx hardhat deploy --export '../dist/network.json')",
"abi:dist": "find ./artifacts/contracts -name \"*.json\" -type f -exec cp {} ./dist/abi \\; && rm -rf dist/abi/*.dbg.json dist/abi/Mock*.json && cp ../package.json dist",
"abi:dist": "find ./artifacts/contracts -name \"*.json\" -type f -exec cp {} ./dist/abi \\; && rm -rf dist/abi/*.dbg.json dist/abi/Mock*.json && cp ./abi.package.json dist/package.json",
"node": "yarn run node:fork",
"node:fork": "./node.sh fork",
"lint": "yarn run lint:js && yarn run lint:sol",
Expand Down

0 comments on commit c32dfe8

Please sign in to comment.