mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
add hasher task
This commit is contained in:
parent
4539719da3
commit
0ecd02620d
@ -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: [
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user