package.json 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "name": "circuits",
  3. "version": "1.0.0",
  4. "description": "",
  5. "main": "index.js",
  6. "scripts": {
  7. "build:circuit:compile": "npx circom circuits/withdraw.circom -o build/circuits/withdraw.json && npx snarkjs info -c build/circuits/withdraw.json",
  8. "build:circuit:setup": "npx snarkjs setup --protocol groth -c build/circuits/withdraw.json --pk build/circuits/withdraw_proving_key.json --vk build/circuits/withdraw_verification_key.json",
  9. "build:circuit:bin": "node node_modules/websnark/tools/buildpkey.js -i build/circuits/withdraw_proving_key.json -o build/circuits/withdraw_proving_key.bin",
  10. "build:circuit:contract": "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json",
  11. "build:circuit": "mkdir -p build/circuits && npm run build:circuit:compile && npm run build:circuit:setup && npm run build:circuit:bin && npm run build:circuit:contract",
  12. "build:contract": "npx truffle compile",
  13. "build:browserify": "npx browserify src/cli.js -o index.js --exclude worker_threads",
  14. "build": "npm run build:circuit && npm run build:contract && npm run build:browserify",
  15. "browserify": "npm run build:browserify",
  16. "test": "npx truffle test",
  17. "migrate": "npm run migrate:kovan",
  18. "migrate:dev": "npx truffle migrate --network development --reset",
  19. "migrate:kovan": "npx truffle migrate --network kovan --reset",
  20. "migrate:rinkeby": "npx truffle migrate --network rinkeby --reset",
  21. "migrate:mainnet": "npx truffle migrate --network mainnet",
  22. "eslint": "eslint --ext .js --ignore-path .gitignore .",
  23. "prettier:check": "prettier --check . --config .prettierrc",
  24. "prettier:fix": "prettier --write . --config .prettierrc",
  25. "lint": "yarn eslint && yarn prettier:check",
  26. "flat": "npx truffle-flattener contracts/ETHTornado.sol > ETHTornado_flat.sol && npx truffle-flattener contracts/ERC20Tornado.sol > ERC20Tornado_flat.sol",
  27. "download": "node scripts/downloadKeys.js",
  28. "coverage": "yarn truffle run coverage"
  29. },
  30. "keywords": [],
  31. "author": "",
  32. "license": "ISC",
  33. "dependencies": {
  34. "@openzeppelin/contracts": "^3.4.1",
  35. "@truffle/contract": "^4.0.39",
  36. "@truffle/hdwallet-provider": "^1.0.24",
  37. "axios": "^0.19.0",
  38. "babel-eslint": "^10.1.0",
  39. "bn-chai": "^1.0.1",
  40. "browserify": "^16.5.0",
  41. "chai": "^4.2.0",
  42. "chai-as-promised": "^7.1.1",
  43. "circom": "^0.0.35",
  44. "circomlib": "git+https://github.com/tornadocash/circomlib.git#c372f14d324d57339c88451834bf2824e73bbdbc",
  45. "commander": "^4.1.1",
  46. "dotenv": "^8.2.0",
  47. "eslint": "^7.19.0",
  48. "eslint-config-prettier": "^7.2.0",
  49. "eslint-plugin-prettier": "^3.3.1",
  50. "eth-json-rpc-filters": "^4.1.1",
  51. "fixed-merkle-tree": "^0.6.0",
  52. "ganache-cli": "^6.7.0",
  53. "prettier": "^2.2.1",
  54. "prettier-plugin-solidity": "^1.0.0-beta.3",
  55. "snarkjs": "git+https://github.com/tornadocash/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5",
  56. "solhint-plugin-prettier": "^0.0.5",
  57. "truffle": "^5.1.67",
  58. "truffle-flattener": "^1.4.2",
  59. "web3": "^1.3.4",
  60. "web3-utils": "^1.3.4",
  61. "websnark": "git+https://github.com/tornadocash/websnark.git#4c0af6a8b65aabea3c09f377f63c44e7a58afa6d",
  62. "solidity-coverage": "^0.7.20"
  63. }
  64. }