2019-07-09 16:05:30 +03:00
{
"name" : "circuits" ,
"version" : "1.0.0" ,
"description" : "" ,
"main" : "index.js" ,
"scripts" : {
2019-07-13 00:56:17 +03:00
"build:circuit:compile" : "npx circom circuits/withdraw.circom -o build/circuits/withdraw.json && npx snarkjs info -c build/circuits/withdraw.json" ,
"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" ,
2019-07-12 19:58:02 +03:00
"build:circuit:bin" : "node node_modules/websnark/tools/buildpkey.js -i build/circuits/withdraw_proving_key.json -o build/circuits/withdraw_proving_key.bin" ,
2019-07-13 00:56:17 +03:00
"build:circuit:contract" : "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json" ,
2019-07-12 19:58:02 +03:00
"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" ,
"build:contract" : "npx truffle compile" ,
2019-09-17 16:31:48 +03:00
"build:browserify" : "npx browserify cli.js -o index.js --exclude worker_threads" ,
2019-10-04 16:01:42 +03:00
"build" : "npm run build:circuit && npm run build:contract && npm run build:browserify" ,
2019-09-17 16:31:48 +03:00
"browserify" : "npm run build:browserify" ,
2019-07-12 19:58:02 +03:00
"test" : "npx truffle test" ,
2019-09-17 16:31:48 +03:00
"migrate" : "npm run migrate:kovan" ,
2019-07-15 21:33:37 +03:00
"migrate:dev" : "npx truffle migrate --network development --reset" ,
2019-09-17 16:31:48 +03:00
"migrate:kovan" : "npx truffle migrate --network kovan --reset" ,
2019-10-25 14:13:29 +03:00
"migrate:rinkeby" : "npx truffle migrate --network rinkeby --reset" ,
2019-09-17 16:31:48 +03:00
"migrate:mainnet" : "npx truffle migrate --network mainnet" ,
2021-02-11 09:23:18 +03:00
"eslint" : "eslint --ext .js --ignore-path .gitignore ." ,
"prettier:check" : "prettier --check . --config .prettierrc" ,
"prettier:fix" : "prettier --write . --config .prettierrc" ,
"lint" : "yarn eslint && yarn prettier:check" ,
2020-02-27 16:32:10 +03:00
"flat" : "npx truffle-flattener contracts/ETHTornado.sol > ETHTornado_flat.sol && npx truffle-flattener contracts/ERC20Tornado.sol > ERC20Tornado_flat.sol" ,
"download" : "node downloadKeys.js"
2019-07-09 16:05:30 +03:00
} ,
"keywords" : [ ] ,
"author" : "" ,
"license" : "ISC" ,
"dependencies" : {
2021-02-10 21:37:18 -08:00
"@openzeppelin/contracts" : "^3.4.0" ,
2019-11-08 03:28:29 +03:00
"@truffle/contract" : "^4.0.39" ,
"@truffle/hdwallet-provider" : "^1.0.24" ,
2019-11-10 03:48:09 +03:00
"axios" : "^0.19.0" ,
2021-02-11 09:23:18 +03:00
"babel-eslint" : "^10.1.0" ,
2019-07-12 12:53:44 +03:00
"bn-chai" : "^1.0.1" ,
2019-11-08 03:28:29 +03:00
"browserify" : "^16.5.0" ,
2019-07-12 12:53:44 +03:00
"chai" : "^4.2.0" ,
"chai-as-promised" : "^7.1.1" ,
2020-04-06 13:11:42 +03:00
"circom" : "^0.0.35" ,
"circomlib" : "git+https://github.com/tornadocash/circomlib.git#c372f14d324d57339c88451834bf2824e73bbdbc" ,
2020-02-26 16:57:53 +03:00
"commander" : "^4.1.1" ,
2019-11-08 03:28:29 +03:00
"dotenv" : "^8.2.0" ,
2021-02-11 09:23:18 +03:00
"eslint" : "^7.19.0" ,
"eslint-config-prettier" : "^7.2.0" ,
"eslint-plugin-prettier" : "^3.3.1" ,
2020-07-31 19:54:24 +03:00
"eth-json-rpc-filters" : "^4.1.1" ,
2019-11-08 03:28:29 +03:00
"ganache-cli" : "^6.7.0" ,
2021-02-11 09:23:18 +03:00
"prettier" : "^2.2.1" ,
"prettier-plugin-solidity" : "^1.0.0-beta.3" ,
2020-04-06 13:20:58 +03:00
"snarkjs" : "git+https://github.com/tornadocash/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5" ,
2021-02-11 09:23:18 +03:00
"solhint-plugin-prettier" : "^0.0.5" ,
2021-02-11 10:00:53 +03:00
"truffle" : "^5.1.65" ,
2019-11-08 03:28:29 +03:00
"truffle-flattener" : "^1.4.2" ,
2021-02-11 10:00:53 +03:00
"web3" : "^1.3.4" ,
"web3-utils" : "^1.3.4" ,
"websnark" : "git+https://github.com/tornadocash/websnark.git#4c0af6a8b65aabea3c09f377f63c44e7a58afa6d"
2019-07-09 16:05:30 +03:00
}
}