Skip to content

Commit

Permalink
fix: removed comment and added/improved yarn-scripts.
Browse files Browse the repository at this point in the history
* also removed console.logs
  • Loading branch information
FilipHarald committed Jun 30, 2023
1 parent 4ccd7f0 commit 198a892
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"account": "yarn workspace @se-2/hardhat account",
"chain": "yarn workspace @se-2/hardhat chain",
"fork": "yarn workspace @se-2/hardhat fork",
"deploy": "yarn workspace @se-2/hardhat deploy",
"deploy": "yarn noir:export && yarn workspace @se-2/hardhat deploy",
"verify": "yarn workspace @se-2/hardhat verify",
"compile": "yarn workspace @se-2/hardhat compile",
"generate": "yarn workspace @se-2/hardhat generate",
Expand All @@ -24,6 +24,9 @@
"next:lint": "yarn workspace @se-2/nextjs lint",
"next:format": "yarn workspace @se-2/nextjs format",
"next:check-types": "yarn workspace @se-2/nextjs check-types",
"noir:export": "yarn noir:export-json && yarn noir:export-solidity",
"noir:export-json": "yarn workspace @se-2/noir export-json",
"noir:export-solidity": "yarn workspace @se-2/noir export-solidity",
"noir:lint": "yarn workspace @se-2/noir lint",
"noir:lint-staged": "yarn workspace @se-2/noir lint-staged",
"postinstall": "husky install",
Expand Down
2 changes: 0 additions & 2 deletions packages/nextjs/components/noir/Circuit/utilsCircuit.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Circuit, CircuitName } from "~~/utils/noir/circuit";

console.log("utilsCircuit.tsx");
const getCircuitParams = (abi: Circuit<CircuitName>["abi"] | null): { params: (JSX.Element | null)[] } => {
if (!abi) return { params: [] };
const params = abi.parameters
Expand All @@ -20,6 +19,5 @@ const getCircuitParams = (abi: Circuit<CircuitName>["abi"] | null): { params: (J
return { params };
};

console.log(getCircuitParams);
// TODO: return-values
export { getCircuitParams };
3 changes: 1 addition & 2 deletions packages/nextjs/hooks/noir/useCircuitAbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { useEffect, useState } from "react";
import { useIsMounted } from "usehooks-ts";
import { Circuit, CircuitCodeStatus, CircuitName, circuits } from "~~/utils/noir/circuit";

// TODO: yarn run noir:deploy
/**
* Gets the matching circuit info from the circuits file generated by `yarn run noir:deploy`
* Gets the matching circuit info from the circuits file generated by `yarn deploy`
* @param circuitName - name of deployed circuit
*/
export const useCircuitAbi = <TCircuitName extends CircuitName>(circuitName: TCircuitName) => {
Expand Down
1 change: 1 addition & 0 deletions packages/noir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"circuit-new": "nargo new circuits/$@",
"circuit-test": "cd $@; nargo test",
"circuit-generate-solidity-verifier": "cd $@; nargo codegen-verifier",
"export-solidity": "echo TODO: should generate sol and then move to hardhat",
"export-json": "ts-node scripts/export_circuits_src.ts",
"test": "mocha --require ts-node/register --require dotenv/config --timeout 10000 --exit --recursive ./test/**/*.ts",
"lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./src/**/*.ts ./test/**/*.ts",
Expand Down

0 comments on commit 198a892

Please sign in to comment.