Skip to content
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

Semaphore V4 #480

Merged
merged 236 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
58cfdf7
feat(circuits): update semaphore circuits
cedoor Dec 5, 2023
875afb5
ci: add circuit tests to workflows
cedoor Dec 6, 2023
cdb319d
chore(circuits): update circom configuration
cedoor Dec 6, 2023
7e0ab11
feat(identity): update identity with eddsa
cedoor Dec 6, 2023
6606fe8
refactor(identity): add identity commitment attribute
cedoor Dec 6, 2023
b6a43db
feat(group): update group with lean-imt
cedoor Dec 12, 2023
2284ef4
refactor(identity): update commitment variable name
cedoor Dec 12, 2023
0594071
feat(proof): update proof package with new circuit
cedoor Dec 12, 2023
325d515
chore: update env variables
cedoor Dec 13, 2023
714cfd2
refactor(contracts): remove extension contracts
cedoor Dec 13, 2023
eb00f16
feat(contracts): update contracts with new imt
cedoor Dec 13, 2023
8874b22
refactor: update verifiers
cedoor Dec 14, 2023
458181e
chore(proof): update zk-kit groth16 pkg version
cedoor Dec 14, 2023
032e0ee
fix(contracts): reverse proof b points
cedoor Dec 14, 2023
4e46427
refactor: hash message and scope
cedoor Dec 15, 2023
16e5f27
refactor(contracts): move access logic to group contract
cedoor Dec 15, 2023
a41e405
refactor(heyauthn): update tests and doc
cedoor Dec 18, 2023
cb4ad7d
refactor(hardhat): update hardhat pkg tasks
cedoor Dec 18, 2023
5ea78cd
chore: move test files outside src
cedoor Dec 18, 2023
6f22d45
refactor(contracts): fix eslint warnings
cedoor Dec 18, 2023
fd50008
docs: update readme files
cedoor Dec 18, 2023
4ecf0d8
chore(proof): create env bundles
cedoor Dec 18, 2023
d833f83
refactor(circuits): update variable name
cedoor Dec 18, 2023
f77b20b
fix(proof): set correct var name
cedoor Jan 2, 2024
7c33fc7
refactor(circuits): update merkle proof variable names
cedoor Jan 5, 2024
103e1e2
Update packages/proof/README.md
cedoor Jan 8, 2024
ede1d17
fix: use merkleTreeSize instead of merkleTreeDepth to support groups …
0xjei Jan 9, 2024
1d4f38b
build: move github actions to V4 along with new NodeJS LTS version (20)
0xjei Jan 9, 2024
c8f6a9c
refactor: update npm types for node up to latest NodeJS LTS version (20)
0xjei Jan 9, 2024
2e0e139
chore: update copyright year
0xjei Jan 9, 2024
54c2fa4
fix: typo for ISemaphore contract interface custom error
0xjei Jan 9, 2024
464b791
docs: add missing external references for EdDSA and Poseidon
0xjei Jan 9, 2024
ebd3348
chore(contracts): update solidity and hardhat versions
cedoor Jan 8, 2024
5da6fcd
chore(contracts): removed unused snarkjs templates
cedoor Jan 8, 2024
0dae4c8
refactor(contracts): update script to verify contracts
cedoor Jan 8, 2024
0defd9d
chore(contracts): downgrade prettier & solhint packages
cedoor Jan 8, 2024
172fb02
test(proof): add longer timeout for generiting proofs
cedoor Jan 8, 2024
9bb72aa
chore(contracts): update solidity version
cedoor Jan 9, 2024
75d9542
chore(circuits): udpate zk-kit dependency
cedoor Jan 9, 2024
bc86539
feat(contracts): add new function to verify proofs without nullifiers
cedoor Jan 10, 2024
f985775
ci: remove unnecessary cache actions from workflows
cedoor Jan 11, 2024
f80b849
feat(contracts): add many members using new event
vplasencia Jan 15, 2024
5797e2c
chore(contracts): update zk-kit imt version
vplasencia Jan 15, 2024
d3fc247
chore(contracts): update imt version
vplasencia Jan 16, 2024
eff91ef
test(contracts): update add members test
vplasencia Jan 16, 2024
1da980e
refactor(contracts): optimize gas
vplasencia Jan 16, 2024
a8fc337
test(contracts): remove skip tests
vplasencia Jan 16, 2024
a041496
docs(contracts): add code docs for the members added event
vplasencia Jan 16, 2024
256dfff
refactor(circuits): rename privateKey with secret
cedoor Jan 16, 2024
1edda7e
refactor(contracts): add 1 verifier for each tree depth
cedoor Jan 16, 2024
540006b
refactor(contracts): update tests, tasks and scripts
cedoor Jan 16, 2024
2f471fb
chore(contracts): remove base contracts
cedoor Jan 16, 2024
d0843a9
refactor(proof): support multi tree depths (1-12)
cedoor Jan 16, 2024
5a7b313
style(contracts): format code with prettier
cedoor Jan 16, 2024
3d6bcc2
chore: remove goerli from supported networks
cedoor Jan 17, 2024
ee53aae
style(subgraph): format code with prettier
cedoor Jan 17, 2024
012650a
chore: improve scripts to clean repo
cedoor Jan 17, 2024
2aa3672
test(data): temporary comment tests for sepolia testnets
cedoor Jan 23, 2024
c371b39
style: format code with prettier
cedoor Jan 23, 2024
6ee1686
chore(contracts): add open-zeppelin deployer
cedoor Jan 17, 2024
c166f4f
chore: update env file
cedoor Jan 17, 2024
b55b383
perf(contracts): merge verifiers
cedoor Jan 18, 2024
79a6181
chore(contracts): deploy contracts on sepolia
cedoor Jan 18, 2024
8e3cbc1
style(contracts): format code with prettier
cedoor Jan 19, 2024
50bf86d
chore(subgraph): update subgraph with new contract events
cedoor Jan 18, 2024
72ab89f
style(subgraph): format code with prettier
cedoor Jan 19, 2024
3a5dc84
refactor(contracts): improve task to deploy
cedoor Jan 19, 2024
887c51f
chore(subgraph): update docker compose file
cedoor Jan 19, 2024
07ecafe
revert(contracts): re-add script to verify contracts
cedoor Jan 19, 2024
c506975
refactor(subgraph): set correct type for tree depth
cedoor Jan 19, 2024
1ce913c
chore: update cli and data packages
cedoor Jan 19, 2024
99efa63
refactor(subgraph): update merkle tree var name
cedoor Jan 22, 2024
a1e1955
fix: adjust cli and data packages
cedoor Jan 22, 2024
fa6de77
chore(cli): update contracts-hardhat template
cedoor Jan 22, 2024
8a6333e
chore(hardhat): update hardhat package dependencies
cedoor Jan 22, 2024
0668fd3
refactor(proof): include merkle depth in the proof
cedoor Jan 22, 2024
f6d7aef
chore(contracts): update proof pkg var names
cedoor Jan 22, 2024
c286153
refactor(identity): convert priv key buffer to bigint
cedoor Jan 22, 2024
dfe2fed
chore(cli): update cli monorepo templates
cedoor Jan 23, 2024
4713643
style(cli): update cli templates' contract artifacts
cedoor Jan 23, 2024
bc6d173
test(data): update ethers tests
cedoor Jan 23, 2024
c1b52ee
chore: v4.0.0-alpha
cedoor Jan 23, 2024
6537e7b
chore: remove stableVersion auto-generated field
cedoor Jan 23, 2024
da0d13b
chore: remove stableVersion auto-generated field
cedoor Jan 23, 2024
111bf43
refactor(contracts): create SemaphoreProof struct
cedoor Jan 23, 2024
4fcfe5c
refactor: rename proof with points
cedoor Jan 24, 2024
40549c5
style: format code with prettier
cedoor Jan 24, 2024
3b17acc
chore(contracts): create script to add mock data on testnets
cedoor Jan 24, 2024
aa954ec
refactor(proof): remove folder creation before downloading artifacts
cedoor Jan 24, 2024
fc06fd4
chore(proof): replace zk-kit groth16 with snarkjs
cedoor Jan 24, 2024
c62de79
refactor(proof): add merkle proof parameter
cedoor Jan 24, 2024
e0e3fdf
chore: v4.0.0-alpha.1
cedoor Jan 25, 2024
b44caa5
chore: remove stableVersion auto-generated field
cedoor Jan 25, 2024
a0cce4a
chore(cli): change `create` command message
swellander Jan 24, 2024
0fb4421
fix(cli): add check for groups with 1 member
cedoor Jan 25, 2024
2cc9b86
feat(contracts): add function to get group admin
cedoor Jan 25, 2024
12cc55c
build(identity): config rollup to handle browser bundle
cedoor Jan 25, 2024
dffd8a2
build: fix bundle paths
cedoor Jan 25, 2024
089bcde
docs: update shields license labels
cedoor Jan 25, 2024
5d8b27d
chore: v4.0.0-alpha.2
cedoor Jan 26, 2024
8185515
chore: remove stableVersion auto-generated field
cedoor Jan 26, 2024
e5825f1
build(identity): include poseidon code in bundle
cedoor Jan 26, 2024
2ba3b03
chore: v4.0.0-alpha.3
cedoor Jan 26, 2024
045e032
chore: remove stableVersion auto-generated field
cedoor Jan 26, 2024
af9657f
fix(data): update semaphore contract abi
cedoor Jan 26, 2024
2ba98ea
chore: v4.0.0-alpha.4
cedoor Jan 26, 2024
b7cbd9b
chore: remove stableVersion auto-generated field
cedoor Jan 26, 2024
65d7514
chore(circuits): add circuit scheme
cedoor Jan 30, 2024
8b0a69d
chore(circuits): update circuit scheme
cedoor Jan 30, 2024
2c83cec
chore(circuits): update circuit scheme
cedoor Jan 30, 2024
fcfc224
chore(cli): sync monorepo templates with boilerplate
cedoor Jan 31, 2024
237bfc3
chore(cli): replace localhost with 127.0.0.1
cedoor Feb 1, 2024
644c4e9
chore(cli): update cli monorepo template app descriptions
cedoor Feb 2, 2024
c244402
feat(core): create core package
cedoor Feb 5, 2024
588b835
chore(cli): use semaphore core package
cedoor Feb 6, 2024
7804dde
chore: update ts, rollup dependencies
cedoor Feb 6, 2024
52848e0
Update packages/identity/package.json
cedoor Feb 7, 2024
6d4b7bb
chore: remove all fullProof occurrences
cedoor Feb 2, 2024
a05d736
refactor(contracts): update scripts to save deployed contract addresses
cedoor Jan 31, 2024
53d062e
style(contracts): format code with prettier
cedoor Jan 31, 2024
ce801fb
build: fix default exports
cedoor Feb 7, 2024
72e168e
chore: v4.0.0-alpha.5
cedoor Feb 7, 2024
7689177
chore: remove stableVersion auto-generated field
cedoor Feb 7, 2024
1c56268
fix(core): add full import path in esm modules
cedoor Feb 7, 2024
cba7d37
chore: v4.0.0-alpha.6
cedoor Feb 7, 2024
88e0af1
chore: remove stableVersion auto-generated field
cedoor Feb 7, 2024
67d9459
refactor(group): empty group root return 0
cedoor Feb 8, 2024
2df3ff3
feat(proof): support message/scope as strings
cedoor Feb 8, 2024
cb0b3a0
docs(proof): update usage sections
cedoor Feb 8, 2024
f63f28a
refactor(proof): create function to convert to bigint
cedoor Feb 8, 2024
39d59ab
Update CONTRIBUTING.md
cedoor Feb 9, 2024
52d92fe
fix(data): update ethers dependency
cedoor Feb 12, 2024
1af0b40
feat(group): add export/import methods
cedoor Feb 12, 2024
c765f1f
Merge pull request #625 from semaphore-protocol/fix/sepolia-testnets
cedoor Feb 12, 2024
f44b0b1
Merge pull request #626 from semaphore-protocol/feat/export-group
cedoor Feb 12, 2024
d25b26b
chore: v4.0.0-alpha.7
cedoor Feb 12, 2024
4d1eb7d
chore: remove stableVersion auto-generated field
cedoor Feb 12, 2024
ffb464c
fix(data): update provider parameters
cedoor Feb 14, 2024
38a9bc1
chore: upgrade jest to v29
cedoor Feb 15, 2024
16c8dfe
chore(group): remove console.log
cedoor Feb 15, 2024
169445a
chore(data): move test file to tests folder
cedoor Feb 15, 2024
22d391d
refactor: use ethers conditional exports
cedoor Feb 15, 2024
1dfb6d6
refactor(proof): create 0-dependency download script
cedoor Feb 15, 2024
42fe7dc
chore(circuits): update imt dependency
cedoor Feb 15, 2024
ad65d58
Merge pull request #630 from semaphore-protocol/fix/ethers-providers
cedoor Feb 15, 2024
256d00b
Merge pull request #634 from semaphore-protocol/refactor/conditional-…
cedoor Feb 15, 2024
a8322fd
Merge pull request #636 from semaphore-protocol/refactor/download-art…
cedoor Feb 15, 2024
85d61e6
chore: v4.0.0-alpha.8
cedoor Feb 15, 2024
0dbf5f6
chore: remove stableVersion auto-generated field
cedoor Feb 15, 2024
785f955
feat(utils): create new utils package
cedoor Feb 19, 2024
85bed72
feat(utils): add functions to check object types
cedoor Feb 19, 2024
eb2fba2
feat(utils): add functions to check bigint types
cedoor Feb 19, 2024
3ef0553
refactor(proof): add functions to check types
cedoor Feb 19, 2024
4e03ae7
build(utils): set correct file extensions
cedoor Feb 19, 2024
7bc25c2
chore: update lockfile
cedoor Feb 19, 2024
6f1b279
Merge pull request #643 from semaphore-protocol/feat/utils-pkg
cedoor Feb 20, 2024
f31bfd9
docs(docs): update v4 alpha docs to v4 beta
cedoor Feb 23, 2024
19bb248
refactor(cli): update cli code and dependencies
vplasencia Feb 25, 2024
05c57f5
refactor(cli-template-contracts-hardhat): update cli contracts hardha…
vplasencia Feb 25, 2024
7860fcf
style(cli-template-contracts-hardhat): add spaces to the end of files
vplasencia Feb 25, 2024
f62b682
refactor(cli-template-monorepo-ethers): update cli monorepo ethers te…
vplasencia Feb 25, 2024
32acbea
style(cli-template-monorepo-ethers): format code with prettier
vplasencia Feb 25, 2024
fa1ebff
style(cli-template-monorepo-ethers): add a space to the end of files
vplasencia Feb 25, 2024
04fc12e
chore: update yarn lock file
vplasencia Feb 25, 2024
e39e57d
refactor(cli-template-monorepo-subgraph): update the cli monorepo sub…
vplasencia Feb 26, 2024
db438f9
style(cli-template-monorepo-subgraph): format code with prettier
vplasencia Feb 26, 2024
a9994c2
style(cli-template-monorepo-subgraph): add space to the end of files
vplasencia Feb 26, 2024
79248dd
docs(docs): update V3 github links
cedoor Feb 26, 2024
324219f
docs(docs): update V4-beta docs links
cedoor Feb 26, 2024
b6d6881
chore(docs): set V4-beta as default version
cedoor Feb 26, 2024
38f4b91
docs(docs): update boilerplate links
cedoor Feb 26, 2024
a2f3a6b
Merge pull request #650 from semaphore-protocol/ref/cli
cedoor Feb 26, 2024
d284486
refactor(proof): integrate pack unpack groth16 proof
vplasencia Feb 26, 2024
7af787a
Merge pull request #657 from semaphore-protocol/ref/pack-unpack-proof
cedoor Feb 26, 2024
8f73965
feat(data): add `getGroupMembers` to `SemaphoreSubgraph`
zkfriendly Feb 26, 2024
9f6c62f
feat(data): add `getGroupValidatedProofs` to `SemaphoreSubgraph`
zkfriendly Feb 26, 2024
d84c9ce
refactor(data): remove unnecessary `?? []`
zkfriendly Feb 27, 2024
5aae565
Merge pull request #660 from zkfriendly/feat/semaphore-v4
cedoor Feb 27, 2024
9016374
Merge pull request #655 from semaphore-protocol/docs/v4-beta
cedoor Feb 27, 2024
de12d47
docs(circuits): add documentation to circuits
cedoor Feb 27, 2024
fe43cb4
refactor(cli-template-contracts-hardhat): update configs
vplasencia Feb 27, 2024
70e465c
refactor(cli-templates-monorepo-ethers): update configs
vplasencia Feb 27, 2024
4307411
refactor(cli-template-monorepo-subgraph): update configs
vplasencia Feb 27, 2024
0bd8cf8
refactor(cli-template-monorepo-subgraph): remove unused env example file
vplasencia Feb 27, 2024
8527317
refactor(cli-template-monorepo-subgraph): update variable name
vplasencia Feb 27, 2024
d55f37f
refactor(cli-template-monorepo-ethers): update eslintignore
vplasencia Feb 27, 2024
f2653c9
refactor(cli-template-monorepo-ethers): update gitignore files
vplasencia Feb 28, 2024
29b2d76
refactor(cli-templates-monorepo-subgraph): update gitignore files
vplasencia Feb 28, 2024
f6f8c9b
refactor(cli-template-contracts-hardhat): update cli contracts hardha…
vplasencia Feb 25, 2024
9b982f7
style(cli-template-contracts-hardhat): add spaces to the end of files
vplasencia Feb 25, 2024
46c2e52
refactor(cli-template-contracts-hardhat): update configs
vplasencia Feb 27, 2024
76c80be
Merge branch 'ref/cli-template-contracts-hardhat' of https://github.c…
vplasencia Feb 28, 2024
a8ffd76
refactor: update yarn lock file
vplasencia Feb 28, 2024
5d47e99
refactor(cli-template-contracts-hardhat): update tsconfig file
vplasencia Feb 28, 2024
0eb16c2
Merge pull request #651 from semaphore-protocol/ref/cli-template-cont…
cedoor Feb 28, 2024
6640210
refactor(cli-template-monorepo-ethers): fix semaphore dependencies
vplasencia Feb 28, 2024
4461392
refactor(cli-template-monorepo-subgraph): fix semaphore version
vplasencia Feb 28, 2024
b3f20b6
refactor(cli-template-monorepo-ethers): fix semaphore version in tests
vplasencia Feb 28, 2024
e02a81e
refactor(cli-template-contracts-hardhat): update tsconfig in contracts
vplasencia Feb 28, 2024
129d505
refactor(cli-template-monorepo-subgraph): update tsconfig contracts
vplasencia Feb 28, 2024
8437547
refactor(cli-template-contracts-hardhat): fix semaphore version in tests
vplasencia Feb 28, 2024
f615032
Merge branch 'feat/semaphore-v4' into ref/cli-template-monorepo-ethers
vplasencia Feb 28, 2024
251bcca
Merge branch 'feat/semaphore-v4' into ref/cli-template-monorepo-subgraph
vplasencia Feb 28, 2024
3533876
Merge pull request #653 from semaphore-protocol/ref/cli-template-mono…
cedoor Feb 28, 2024
b914dce
chore: add npm script to test specific libs
cedoor Feb 28, 2024
b4c2887
docs(identity): add more documentation to code
cedoor Feb 28, 2024
f50e78b
Merge pull request #652 from semaphore-protocol/ref/cli-template-mono…
cedoor Feb 28, 2024
f3ee07c
docs(identity): add more documentation to code
cedoor Feb 28, 2024
2f95c20
chore: update lockfile
cedoor Feb 28, 2024
23476c3
docs(circuits): add more documentation to secret signal
cedoor Feb 28, 2024
0034f5f
docs(identity): add links to zk-kit types
cedoor Feb 28, 2024
b2f6db9
chore: update lockfile
cedoor Feb 28, 2024
cf65ec4
docs(circuits): add link to identity package
cedoor Feb 28, 2024
b5acd41
docs(circuits): revert order of hash pre-images on comments
cedoor Feb 28, 2024
143c628
Merge pull request #663 from semaphore-protocol/docs/identity
cedoor Feb 28, 2024
2e3b78a
docs(identity): fix jsdoc link syntax
cedoor Feb 28, 2024
7a61311
Update packages/proof/src/generate-proof.ts
cedoor Feb 28, 2024
bb29316
Update packages/circuits/semaphore.circom
cedoor Feb 28, 2024
c3389b6
docs(circuits): minor improvements on doc comments
cedoor Feb 28, 2024
308ffda
Merge pull request #661 from semaphore-protocol/docs/circuits
cedoor Feb 28, 2024
2c144fc
Merge pull request #664 from semaphore-protocol/docs/proof
cedoor Feb 28, 2024
cf2355f
docs(group): add more documentation to code
cedoor Feb 28, 2024
794a809
docs: fix typedoc links
cedoor Feb 28, 2024
09aa138
style(data): format code with prettier
cedoor Feb 28, 2024
74806d4
chore: upgrade yarn to v4
cedoor Feb 28, 2024
524e346
Merge pull request #667 from semaphore-protocol/chore/yarn-v4
cedoor Feb 28, 2024
ecd046c
docs(contracts): add code comments to contracts
vplasencia Feb 28, 2024
3db7dc4
style(contracts): style code with prettier
vplasencia Feb 28, 2024
b0dd7e0
docs(contracts): update code comments
vplasencia Feb 28, 2024
49cd453
fix(contracts): remove comment line that was causing an error when co…
vplasencia Feb 28, 2024
fe1cb7e
Merge pull request #669 from semaphore-protocol/docs/contracts
cedoor Feb 28, 2024
1a85ed1
Merge pull request #665 from semaphore-protocol/docs/group
cedoor Feb 28, 2024
7691d37
Merge pull request #666 from semaphore-protocol/docs/fix-typedoc-links
cedoor Feb 28, 2024
0568492
chore(contracts): update openzeppelin dev dependency version
cedoor Feb 28, 2024
4905b81
docs(contracts): remove code comment
vplasencia Feb 28, 2024
e0bda47
Merge pull request #668 from semaphore-protocol/chore/new-openzeppeli…
cedoor Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
DEFAULT_NETWORK=hardhat
TREE_DEPTH=20
ALL_SNARK_ARTIFACTS=true
TREE_DEPTH=10
REPORT_GAS=false
BACKEND_PRIVATE_KEY=
INFURA_API_KEY=
COINMARKETCAP_API_KEY=
ETHERSCAN_API_KEY=
DEFENDER_KEY=
DEFENDER_SECRET=
CREATE2_SALT=1234
20 changes: 4 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn
Expand Down
70 changes: 21 additions & 49 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,20 @@ on:
- main

env:
TREE_DEPTH: 20
ALL_SNARK_ARTIFACTS: false
TREE_DEPTH: 10

jobs:
style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn
Expand All @@ -56,25 +43,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn
Expand All @@ -90,40 +65,37 @@ jobs:
strategy:
matrix:
type:
- circuits
- libraries
- contracts

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20
cache: yarn

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
# https://github.com/iden3/circuits/blob/8fffb6609ecad0b7bcda19bb908bdb544bdb3cf7/.github/workflows/main.yml#L18-L22
- name: Setup Circom deps
run: sudo apt-get update && sudo apt-get install -y wget nlohmann-json3-dev libgmp-dev nasm g++ build-essential

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Circom
run: wget https://github.com/iden3/circom/releases/latest/download/circom-linux-amd64 && sudo mv ./circom-linux-amd64 /usr/bin/circom && sudo chmod +x /usr/bin/circom

- name: Install dependencies
run: yarn

- name: Build libraries
run: yarn build:libraries

- name: Test contracts and libraries
- name: Test libraries, contracts and circuits
run: yarn test:${{ matrix.type }}

- name: Coveralls
if: matrix.type != 'circuits'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
48 changes: 15 additions & 33 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,20 @@ on:
pull_request:

env:
TREE_DEPTH: 20
ALL_SNARK_ARTIFACTS: false
TREE_DEPTH: 10

jobs:
style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn
Expand All @@ -54,25 +41,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20
cache: yarn

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
# https://github.com/iden3/circuits/blob/8fffb6609ecad0b7bcda19bb908bdb544bdb3cf7/.github/workflows/main.yml#L18-L22
- name: Setup Circom deps
run: sudo apt-get update && sudo apt-get install -y wget nlohmann-json3-dev libgmp-dev nasm g++ build-essential

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup Circom
run: wget https://github.com/iden3/circom/releases/latest/download/circom-linux-amd64 && sudo mv ./circom-linux-amd64 /usr/bin/circom && sudo chmod +x /usr/bin/circom

- name: Install dependencies
run: yarn
Expand All @@ -83,5 +65,5 @@ jobs:
- name: Build subgraph
run: yarn build:subgraph

- name: Test contracts, libraries and subgraph
- name: Test contracts, libraries, circuits and subgraph
run: yarn test
20 changes: 4 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- name: Restore yarn cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ dist
artifacts
cache
typechain-types
packages/contracts/deployed-contracts/undefined.json
packages/contracts/deployed-contracts/hardhat.json
packages/contracts/deployed-contracts/localhost.json

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
Expand Down
9 changes: 0 additions & 9 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ coverage.json
artifacts
cache
typechain-types
packages/contracts/deployed-contracts/undefined.json
packages/contracts/deployed-contracts/hardhat.json
packages/contracts/deployed-contracts/localhost.json

# circuits
circuits

# contracts
Verifier*.sol

# production
dist
Expand Down
550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

Loading
Loading