add hasher task

This commit is contained in:
Alexey 2021-10-19 12:16:38 +03:00
parent 4539719da3
commit 0ecd02620d
No known key found for this signature in database
GPG Key ID: C77958099D784E76
2 changed files with 7 additions and 2 deletions

View File

@ -1,9 +1,13 @@
/* eslint-disable indent */
/* eslint-disable indent, no-undef */
require('@typechain/hardhat')
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-waffle')
require('dotenv').config()
task('hasher', 'Compile Poseidon hasher', () => {
require('./scripts/compileHasher')
})
const config = {
solidity: {
compilers: [

View File

@ -10,7 +10,8 @@
"circuit": "./scripts/buildCircuit.sh 2 && ./scripts/buildCircuit.sh 16",
"circuit_prod": "rm -rf ./artifacts/circuits && yarn changeTreeHeight 23 && ./scripts/buildCircuit_prod.sh 2 && ./scripts/buildCircuit_prod.sh 16 && tar -czvf artifacts/circuits.tar.gz artifacts/circuits",
"changeTreeHeight": "./scripts/changeTreeHeight.sh",
"compile": "npx hardhat compile",
"compile:hasher": "npx hardhat hasher",
"compile": "npx hardhat compile && yarn compile:hasher",
"build": "npm run circuit && npm run compile",
"deploy": "npx hardhat run scripts/deploy.js --network optimism",
"download": "curl -L https://github.com/tornadocash/tornado-pool/releases/download/tmp/ptau15 --create-dirs -o artifacts/circuits/ptau15",