-
Notifications
You must be signed in to change notification settings - Fork 22
chore: new crisp folder structure #895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0f5a1fc
chore: move risc0 submodule to crisp-contracts
cedoor 0090eac
chore: new crisp folder structure
cedoor 50b4eac
chore: add missing dep
cedoor 02cb7ab
chore: add ERC20Votes.json to crisp-sdk
cedoor 4b1bde7
chore: add type module to package.json
cedoor b9f6301
chore: add commands to root package.json
cedoor cc2e5eb
chore: replace hardhat with built-in test runner
cedoor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule risc0-ethereum
deleted from
32aa0b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,75 +1,38 @@ | ||
| { | ||
| "name": "crisp", | ||
| "version": "0.0.0", | ||
| "description": "CRISP - Coercion-Resistant Impartial Selection Protocol", | ||
| "repository": "https://github.com/gnosisguild/enclave", | ||
| "private": true, | ||
| "type": "module", | ||
| "description": "CRISP - Coercion-Resistant Impartial Selection Protocol", | ||
| "author": { | ||
| "name": "gnosisguild", | ||
| "url": "https://github.com/gnosisguild" | ||
| }, | ||
| "scripts": { | ||
| "compile": "forge compile", | ||
| "ciphernode:add": "hardhat ciphernode:add", | ||
|
cedoor marked this conversation as resolved.
|
||
| "cli": "bash ./scripts/cli.sh", | ||
| "clean:deployments": "hardhat utils:clean-deployments", | ||
| "dev:setup": "bash ./scripts/setup.sh", | ||
| "dev:build": "bash ./scripts/build.sh", | ||
| "dev:up": "bash ./scripts/dev.sh", | ||
| "deploy:contracts": "pnpm hardhat run deploy/deploy.ts", | ||
| "deploy:contracts:full": "export DEPLOY_ENCLAVE=true && pnpm deploy:contracts", | ||
| "deploy:contracts:full:mock": "export DEPLOY_ENCLAVE=true && export USE_MOCK_VERIFIER=true && export USE_MOCK_INPUT_VALIDATOR=true && pnpm deploy:contracts", | ||
| "test:e2e": "bash ./scripts/test_e2e.sh", | ||
| "compile:contracts": "pnpm -C packages/crisp-contracts compile", | ||
| "ciphernode:add": "pnpm -C packages/crisp-contracts ciphernode:add", | ||
|
cedoor marked this conversation as resolved.
|
||
| "test": "pnpm test:e2e", | ||
| "test:contracts": "hardhat test tests/crisp.contracts.test.ts --network localhost", | ||
| "test:circuits:inputs": "hardhat test test/governanceCircuit.test.ts", | ||
| "test:circuits:inputs": "node --test test/governanceCircuit.test.ts", | ||
| "test:circuits": "cd circuits && nargo test", | ||
| "test:sdk": "cd sdk && pnpm test", | ||
| "release:sdk": "cd sdk && pnpm release", | ||
| "report": "playwright show-report", | ||
| "verify": "pnpm hardhat run deploy/verify.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@enclave-e3/contracts": "workspace:*", | ||
| "@excubiae/contracts": "^0.4.0", | ||
| "@zk-kit/lean-imt.sol": "2.0.0", | ||
| "poseidon-solidity": "^0.0.5", | ||
| "solady": "^0.1.13" | ||
| "report": "playwright show-report" | ||
| }, | ||
| "devDependencies": { | ||
| "@aztec/bb.js": "^0.82.2", | ||
| "@enclave-e3/config": "^0.1.5", | ||
| "@noir-lang/noir_js": "1.0.0-beta.3", | ||
| "@nomicfoundation/hardhat-ethers": "4", | ||
| "@nomicfoundation/hardhat-ethers-chai-matchers": "^3.0.0", | ||
| "@nomicfoundation/hardhat-network-helpers": "3", | ||
| "@nomicfoundation/hardhat-toolbox": "^5.0.0", | ||
| "@nomicfoundation/hardhat-toolbox-mocha-ethers": "3.0.0", | ||
| "@nomicfoundation/hardhat-typechain": "3", | ||
| "@nomicfoundation/hardhat-verify": "^3.0.1", | ||
| "@openzeppelin/contracts": "^5.0.2", | ||
| "@playwright/test": "1.52.0", | ||
| "@synthetixio/synpress": "^4.1.0", | ||
| "@synthetixio/synpress-cache": "^0.0.12", | ||
| "@typechain/ethers-v6": "^0.5.0", | ||
| "@typechain/hardhat": "^9.0.0", | ||
| "@types/chai": "^4.2.0", | ||
| "@types/mocha": ">=9.1.0", | ||
| "@types/node": "^22.18.0", | ||
| "concurrently": "^9.1.2", | ||
| "dotenv": "^16.4.5", | ||
| "ethers": "^6.15.0", | ||
| "forge-std": "github:foundry-rs/forge-std#v1.9.4", | ||
| "hardhat": "^3.0.1", | ||
| "hardhat-deploy": "^0.12.4", | ||
| "hardhat-gas-reporter": "^1.0.8", | ||
| "concurrently": "^9.1.2", | ||
| "playwright": "1.52.0", | ||
| "solidity-coverage": "^0.8.1", | ||
| "ts-node": "^10.9.2", | ||
| "typechain": "^8.3.0", | ||
| "typescript": "5.8.3", | ||
| "viem": "2.30.6", | ||
| "wait-on": "^8.0.3" | ||
| "wait-on": "^8.0.3", | ||
| "ethers": "^6.15.0" | ||
| }, | ||
| "packageManager": "pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808" | ||
| } | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,4 +82,4 @@ | |
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
File renamed without changes.
File renamed without changes.
Submodule risc0-ethereum
added at
d04a05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "name": "@enclave/crisp-contracts", | ||
| "version": "0.0.1", | ||
| "type": "module", | ||
| "files": [ | ||
| "contracts/**/*.sol" | ||
| ], | ||
| "author": { | ||
| "name": "gnosisguild", | ||
| "url": "https://github.com/gnosisguild" | ||
| }, | ||
| "scripts": { | ||
| "compile": "hardhat compile", | ||
| "ciphernode:add": "hardhat ciphernode:add", | ||
| "clean:deployments": "hardhat utils:clean-deployments", | ||
| "deploy:contracts": "hardhat run deploy/deploy.ts", | ||
| "deploy:contracts:full": "export DEPLOY_ENCLAVE=true && pnpm deploy:contracts", | ||
| "deploy:contracts:full:mock": "export DEPLOY_ENCLAVE=true && export USE_MOCK_VERIFIER=true && export USE_MOCK_INPUT_VALIDATOR=true && pnpm deploy:contracts", | ||
| "test": "hardhat test tests/crisp.contracts.test.ts --network localhost", | ||
| "verify": "hardhat run deploy/verify.ts" | ||
| }, | ||
| "dependencies": { | ||
| "@enclave-e3/contracts": "workspace:*", | ||
| "@excubiae/contracts": "^0.4.0", | ||
| "@zk-kit/lean-imt.sol": "2.0.0", | ||
| "poseidon-solidity": "^0.0.5", | ||
| "solady": "^0.1.13" | ||
| }, | ||
| "devDependencies": { | ||
| "@nomicfoundation/hardhat-ethers": "4", | ||
| "@nomicfoundation/hardhat-ethers-chai-matchers": "^3.0.0", | ||
| "@nomicfoundation/hardhat-network-helpers": "3", | ||
| "@nomicfoundation/hardhat-toolbox": "^5.0.0", | ||
| "@nomicfoundation/hardhat-toolbox-mocha-ethers": "3.0.0", | ||
| "@nomicfoundation/hardhat-typechain": "3", | ||
| "@nomicfoundation/hardhat-verify": "^3.0.1", | ||
| "@openzeppelin/contracts": "^5.0.2", | ||
| "@typechain/ethers-v6": "^0.5.0", | ||
| "@typechain/hardhat": "^9.0.0", | ||
| "@types/chai": "^4.2.0", | ||
| "@types/mocha": ">=9.1.0", | ||
| "@types/node": "^22.18.0", | ||
| "dotenv": "^16.4.5", | ||
| "ethers": "^6.15.0", | ||
| "forge-std": "github:foundry-rs/forge-std#v1.9.4", | ||
| "hardhat": "^3.0.1", | ||
| "hardhat-deploy": "^0.12.4", | ||
| "hardhat-gas-reporter": "^1.0.8", | ||
| "solidity-coverage": "^0.8.1", | ||
| "ts-node": "^10.9.2", | ||
| "typechain": "^8.3.0", | ||
| "typescript": "5.8.3", | ||
| "viem": "2.30.6" | ||
| }, | ||
| "packageManager": "pnpm@10.7.1+sha512.2d92c86b7928dc8284f53494fb4201f983da65f0fb4f0d40baafa5cf628fa31dae3e5968f12466f17df7e97310e30f343a648baea1b9b350685dafafffdf5808" | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.