package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 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:mainnet": "npx truffle migrate --network mainnet",
  21. "eslint": "npx eslint --ignore-path .gitignore .",
  22. "flat": "truffle-flattener contracts/ETHMixer.sol > ETHMixer_flat.sol contracts/ERC20Mixer.sol > ERC20Mixer_flat.sol"
  23. },
  24. "keywords": [],
  25. "author": "",
  26. "license": "ISC",
  27. "dependencies": {
  28. "@openzeppelin/contracts": "^2.3.0",
  29. "bn-chai": "^1.0.1",
  30. "browserify": "^16.3.0",
  31. "chai": "^4.2.0",
  32. "chai-as-promised": "^7.1.1",
  33. "circom": "0.0.34",
  34. "circomlib": "^0.0.18",
  35. "dotenv": "^8.0.0",
  36. "eslint": "^6.2.2",
  37. "ganache-cli": "^6.4.5",
  38. "snarkjs": "git+https://github.com/peppersec/snarkjs.git#0e2f8ab28092ee6d922dc4d3ac7afc8ef5a25154",
  39. "truffle": "^5.0.27",
  40. "truffle-artifactor": "^4.0.23",
  41. "truffle-contract": "^4.0.24",
  42. "truffle-hdwallet-provider": "^1.0.14",
  43. "web3": "^1.0.0-beta.55",
  44. "web3-utils": "^1.0.0-beta.55",
  45. "websnark": "git+https://github.com/peppersec/websnark.git#966eafc47df639195c98374d3c366c32acd6f231"
  46. },
  47. "devDependencies": {
  48. "truffle-flattener": "^1.4.0"
  49. }
  50. }