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

Feat/v1 #5

Merged
merged 568 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
568 commits
Select commit Hold shift + click to select a range
1354949
chore(relayer): validation of send command and db fix
curryrasul Oct 18, 2023
eb3ddba
chore(relayer): add basic http-api axum server
curryrasul Oct 18, 2023
d520095
Expose Fr in utils.
SoraSuegami Oct 18, 2023
5396d6a
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 18, 2023
56056ef
chore(utils): add from method to AccountKey
curryrasul Oct 18, 2023
0e89100
chore(relayer): add small improvements
curryrasul Oct 18, 2023
e371294
Update DKIMRegistry and Add extensions.
SoraSuegami Oct 19, 2023
697715b
chore(relayer): implement input_gen function
curryrasul Oct 19, 2023
3dadd1b
Add dkimRegistry to createAccount arguments.
SoraSuegami Oct 19, 2023
a1605e1
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 19, 2023
04e0faa
chore(relayer): add generate_proof function
curryrasul Oct 19, 2023
b2d866d
Revert "Add dkimRegistry to createAccount arguments."
SoraSuegami Oct 19, 2023
908310f
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 19, 2023
5f9d19c
chore(relayer): almost implement transfers
curryrasul Oct 19, 2023
e50d626
Update ECDSAOwnedDKIMRegistry.
SoraSuegami Oct 21, 2023
066b0a0
Add dfinity-oracle case test to ECDSAOwner test.
SoraSuegami Oct 22, 2023
cc4680c
Add local prover.
SoraSuegami Oct 22, 2023
cd7e2c2
chore(relayer): add account-creation and fix bugs
curryrasul Oct 22, 2023
3b62da9
chore: add circuit comments
saleel Oct 22, 2023
781d95a
chore: add deploy scripts
saleel Oct 22, 2023
fca77e1
chore(relayer): add abstract implementation of account init
curryrasul Oct 22, 2023
49d6cc2
chore: move subject computation to a lib
saleel Oct 22, 2023
334a1dd
chore: move templates to commands; remove upgradeability
saleel Oct 22, 2023
139ab1b
chore: move tokenREgistry ETH handling
saleel Oct 22, 2023
18b20fe
chore: move relayer handler to separate file
saleel Oct 22, 2023
51f4ae7
chore: move acocunt code to another contract
saleel Oct 23, 2023
4781bc8
draft: move unclaimgs
saleel Oct 23, 2023
d67debb
chore: move extension code to extensions handler
saleel Oct 23, 2023
5569d64
chore: remove relayer functions from core
saleel Oct 23, 2023
a4a6adb
chore: minor cleanup
saleel Oct 23, 2023
99b8a61
chore: clean unclaimed funds handler
saleel Oct 23, 2023
7a588ff
chore(relayer): add input gens for all types
curryrasul Oct 23, 2023
de7a4dd
chore: add comments
saleel Oct 23, 2023
8148abf
chore: move account code to handler
saleel Oct 23, 2023
8243b6e
chore: rename test files
saleel Oct 23, 2023
0b02afb
chore: refactor subject utils
saleel Oct 23, 2023
56d73d0
chore: update deploy script
saleel Oct 23, 2023
e558651
chore: update deploy script
saleel Oct 23, 2023
85d234d
Merge branch 'size-2' into feat/v1
saleel Oct 23, 2023
abdc99a
Merge branch 'feat/v1' of github.com:zkemail/zk-email-wallet into fea…
saleel Oct 23, 2023
2f1ec55
chore: apply prettier
saleel Oct 23, 2023
8db947f
Add numRecipientEmailAddrBytes for zeroBytes
SoraSuegami Oct 23, 2023
04916ef
chore(relayer): finish packing EmailOp
curryrasul Oct 23, 2023
5e089e7
Transfer unclaimed fund fees from core to handler.
SoraSuegami Oct 23, 2023
11cbac8
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 23, 2023
424ffbb
chore: improve unclaims tests
saleel Oct 23, 2023
f9bbc85
chore: update transfereth
saleel Oct 23, 2023
3f7d42a
chore: prettier + minor refactor
saleel Oct 23, 2023
2bcc290
chore(relayer): finish account-init implementation
curryrasul Oct 23, 2023
5df771f
chore: move handler creation from outside core
saleel Oct 23, 2023
f518b56
chore: remove warnings from integration tests
saleel Oct 23, 2023
10644ad
Use call to send ETH to wallets.
SoraSuegami Oct 23, 2023
96dc3da
chore: improve project readme
saleel Oct 23, 2023
d4c8204
chore: improve contracts readme
saleel Oct 23, 2023
e4e0a5a
Merge branch 'feat/v1' of github.com:zkemail/zk-email-wallet into fea…
saleel Oct 23, 2023
7521930
chore: add spec link to readme
saleel Oct 23, 2023
45478fa
chore: add relayer readme (legacy)
saleel Oct 23, 2023
2889a63
Add testIntegration_Approve_NFT.
SoraSuegami Oct 23, 2023
6bf3f2d
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 23, 2023
90919c0
chore: add script to deploy ECDSAOwnedDKIMRegistry
saleel Oct 23, 2023
d9daf6e
chore(relayer): minor features and replies
curryrasul Oct 23, 2023
2cd4b0c
chore(prover): remove coordinator.py
curryrasul Oct 23, 2023
eadf900
chore: add test for email in between subject
saleel Oct 23, 2023
9df5869
Add README
SoraSuegami Oct 23, 2023
a8f4b58
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 23, 2023
9325d93
Update README.
SoraSuegami Oct 23, 2023
5ea3b96
Update README
SoraSuegami Oct 23, 2023
555f4bc
update README.md
SoraSuegami Oct 23, 2023
c42b1a6
Update readme
SoraSuegami Oct 23, 2023
a010f50
Update ci.
SoraSuegami Oct 24, 2023
3e64e21
Fix ci.
SoraSuegami Oct 24, 2023
6d15f67
chore: fix contract unit test in ci
saleel Oct 24, 2023
8dbc409
chore: update circuit ci tests flow
saleel Oct 24, 2023
e424bf9
Update ci.
SoraSuegami Oct 24, 2023
e710a4d
Update ci.
SoraSuegami Oct 24, 2023
01231ea
Update ci.
SoraSuegami Oct 24, 2023
9077167
Update ci.
SoraSuegami Oct 24, 2023
984b5bc
Impl chain interaction of the relayer.
SoraSuegami Oct 25, 2023
a30a48b
Impl account transport.
SoraSuegami Oct 25, 2023
c901b53
Impl claim processing.
SoraSuegami Oct 25, 2023
3a29305
run cargo fmt.
SoraSuegami Oct 26, 2023
9a84e49
Fix account handler bugs and update @zk-email
SoraSuegami Oct 27, 2023
a17e4b8
Update verifiers.
SoraSuegami Oct 28, 2023
ad3250f
Impl event listener and voider.
SoraSuegami Oct 28, 2023
20a3757
Fix env and add loger.
SoraSuegami Oct 28, 2023
68e8fd2
Derive the relayer randomness from private key
SoraSuegami Oct 29, 2023
c379b17
Update web_server.
SoraSuegami Oct 29, 2023
16d9cc0
chore(relayer): move to postgres
curryrasul Oct 30, 2023
c7241fa
chore(relayer): minor changes in database.rs
curryrasul Oct 30, 2023
6a45a3c
refactor(relayer): make fmt and clippy happy
curryrasul Oct 30, 2023
e56cbf6
Token deposit and transfer ok
SoraSuegami Oct 31, 2023
079fb2e
Merge branch 'feat/v1' of into feat/v1
SoraSuegami Oct 31, 2023
b99f95b
refactor(relayer): fix clippy warnings
curryrasul Oct 31, 2023
c231c43
refactor(relayer): fix fmt checking
curryrasul Oct 31, 2023
b2b3dd6
refactor(utils): make clippy happy
curryrasul Oct 31, 2023
6593dd8
chore(relayer): remove EML_PATH key from .env
curryrasul Oct 31, 2023
996c92c
chore(relayer): minor changes in imap client
curryrasul Oct 31, 2023
0d41ee6
Add frontend.
SoraSuegami Oct 31, 2023
4750ee6
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Oct 31, 2023
9fa1ef9
database insert does not work.
SoraSuegami Oct 31, 2023
02f6bbd
Fix database issue with the emails pool.
SoraSuegami Nov 1, 2023
aeae9f2
Fix claiming bug and update env.example.
SoraSuegami Nov 1, 2023
237e433
Merge branch 'audit-fix' into feat/v1
SoraSuegami Nov 1, 2023
5c4bb41
Update link to the params.zip.
SoraSuegami Nov 1, 2023
ed07e06
chore(relayer): add psi module
curryrasul Nov 1, 2023
aeaa215
Merge branch 'feat/v1' of github.com:zkemail/email-wallet into feat/v1
curryrasul Nov 1, 2023
cec2976
Add psi computation scripts.
SoraSuegami Nov 2, 2023
3ff0faf
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 2, 2023
c8c7d2a
chore(relayer): add initialize PSI method
curryrasul Nov 2, 2023
b3d2862
Add slippage protection for uniswap (#14)
wshino Nov 2, 2023
7a8aabf
chore(relayer): add more functions for PSI
curryrasul Nov 2, 2023
5012ea3
Add slippage protection for uniswap.
wshino Nov 2, 2023
5be1dd5
Add a new template with price limit.
wshino Nov 2, 2023
8db97b4
Update template sqrtPriceLimitX96 -> uint
wshino Nov 2, 2023
fbf61ba
chore: allow nft tokenId = 0
saleel Nov 2, 2023
05acf26
chore: ensure execute contract is address
saleel Nov 2, 2023
b93e466
chore: fix CEI for unclaims
saleel Nov 2, 2023
8888d81
chore: remove recipient template from index calc
saleel Nov 2, 2023
c67a427
chore: add reipcient emplate to disallwoed commands
saleel Nov 2, 2023
0082b91
Merge remote-tracking branch 'origin/audit-fix' into audit-fix-2
saleel Nov 2, 2023
7efff78
chore: gas optimization in getExtensionForCommand
saleel Nov 2, 2023
363f0a8
Feat/checksum address (#15)
saleel Nov 2, 2023
42902ca
chore: gas optimization in getDKIMPublicKeyHash
saleel Nov 2, 2023
7ccc55d
chore: add checksum addr method
saleel Nov 2, 2023
954db8f
chore: use checksum addr in core contract
saleel Nov 2, 2023
47a4465
chore: prettier fix
saleel Nov 2, 2023
9e34607
chore: fix tests/build
saleel Nov 2, 2023
94dd3f5
Fix type "addressTChecksumHexString"
SoraSuegami Nov 3, 2023
7a0c3dc
Update integration tests.
SoraSuegami Nov 3, 2023
40410d1
Merge branch 'audit-fix' into feat/v1.
SoraSuegami Nov 3, 2023
aa7892b
Fix the definition of isInternal.
SoraSuegami Nov 3, 2023
f9ac030
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 3, 2023
9d02a20
Add TokenCallbackHandler into Wallet.
wshino Nov 3, 2023
7693835
Use safeTransfer intead of transfer function.
wshino Nov 3, 2023
cdad691
Merge pull request #16 from zkemail/feat/implement-token-callback
wshino Nov 3, 2023
12f347b
Fix comment 3600 secs is 1 hour.
wshino Nov 3, 2023
e1d71b3
Fix the comment for slippageBasisPoints.
wshino Nov 3, 2023
b9fa9f8
Merge pull request #17 from zkemail/feat/use-safe-transfer
wshino Nov 3, 2023
6558090
Merge pull request #18 from zkemail/feat/fix-wrong-comments
wshino Nov 3, 2023
979abbf
chore(relayer): implement last step of PSI
curryrasul Nov 3, 2023
265554f
Fix audit comments (#19)
saleel Nov 4, 2023
c2c6e4b
Add TokenCallbackHandler into Wallet.
wshino Nov 3, 2023
7103654
Use safeTransfer intead of transfer function.
wshino Nov 3, 2023
69b8659
Fix comment 3600 secs is 1 hour.
wshino Nov 3, 2023
bf0eeab
Fix the comment for slippageBasisPoints.
wshino Nov 3, 2023
d06a145
chore: minor test warning fix
saleel Nov 4, 2023
088750c
Merge branch 'audit-fix' into feat/v1
saleel Nov 4, 2023
bf173cd
Add an unique id for each unclaimed fund/state. (#21)
SoraSuegami Nov 5, 2023
4fb93f3
Add dockerfile for the modal prover.
SoraSuegami Nov 5, 2023
3de9e27
Merge branch 'audit-fix' into feat/v1
SoraSuegami Nov 5, 2023
f465832
chore(relayer): start PSI integration
curryrasul Nov 5, 2023
0dc628f
Merge branch 'feat/v1' of github.com:zkemail/email-wallet into feat/v1
curryrasul Nov 5, 2023
3d3d0ae
Add EmailOpHandled event.
SoraSuegami Nov 5, 2023
bf3c21b
Merge branch 'audit-fix' of https://github.com/zkemail/email-wallet i…
SoraSuegami Nov 5, 2023
0a11226
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 5, 2023
066fe3e
chore(relayer): add eml templates
curryrasul Nov 5, 2023
8b1cfd6
chore(relayer): implement functions for templates
curryrasul Nov 5, 2023
83f3b9c
chore(relayer): build.rs abi generation
curryrasul Nov 5, 2023
3a89361
Update unclaims definition.
SoraSuegami Nov 5, 2023
9904f7a
Merge branch 'feat/v1' into feat/v1
SoraSuegami Nov 5, 2023
474335f
Add lastRegisteredUnclaimed(Fund|State)IdOfSender
SoraSuegami Nov 5, 2023
381ef4c
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 5, 2023
123d532
Fix web api to support an id of unclaims.
SoraSuegami Nov 5, 2023
4dcd30d
Revert "Add lastRegisteredUnclaimed(Fund|State)IdOfSender"
SoraSuegami Nov 5, 2023
07b9281
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 5, 2023
3430263
Update unclaims_handler.
SoraSuegami Nov 5, 2023
ac7c7a2
Update frontend.
SoraSuegami Nov 5, 2023
2e2bc57
Fix modal_server.py.
SoraSuegami Nov 5, 2023
87ad9ac
Update modal_server.
SoraSuegami Nov 5, 2023
173bfda
Update modal_server
SoraSuegami Nov 5, 2023
82e8369
Update modal_server
SoraSuegami Nov 5, 2023
81645e7
pin rust version to 1.73.0 via rust-toolchain
Divide-By-0 Nov 5, 2023
56bd65d
chore: add scripts pkg
saleel Nov 5, 2023
34ddcf3
chore: add bulk set to token registry
saleel Nov 5, 2023
a88b739
chore: fmt
saleel Nov 5, 2023
6615975
chore: fix in token reg populate script
saleel Nov 5, 2023
07eacfe
Modal prover ran.
SoraSuegami Nov 6, 2023
5e543b0
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 6, 2023
85cf187
Fix EmailOpHandled.
SoraSuegami Nov 6, 2023
5417111
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 6, 2023
5310a0d
Fix success variable in handleEmailOp.
SoraSuegami Nov 6, 2023
25364fa
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 6, 2023
5f2e0ff
chore(relayer): implement some templates
curryrasul Nov 6, 2023
41c41dd
chore: resolve merge conflict
curryrasul Nov 6, 2023
62415ff
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 6, 2023
7cbec58
Update abi rust files.
SoraSuegami Nov 6, 2023
976125a
chore(relayer): updated abis
curryrasul Nov 6, 2023
8ae807d
Fix remapping.txt.
SoraSuegami Nov 6, 2023
4f06da2
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 6, 2023
8a7c4b0
chore(relayer): add tx_hash to the users table
curryrasul Nov 6, 2023
f556ba4
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 6, 2023
1fbb9d3
Fix database and html bugs.
SoraSuegami Nov 6, 2023
79b9fcf
chore(relayer): implement eml templates send
curryrasul Nov 6, 2023
054b056
chore(relayer): resolve merge conflict
curryrasul Nov 6, 2023
72ff613
chore(relayer): make clippy happy
curryrasul Nov 6, 2023
27e084e
chore(scripts): minor fixes
curryrasul Nov 6, 2023
6c5f8a8
chore(relayer): minor changes & regenerate abis
curryrasul Nov 6, 2023
98ab30c
Add validate_email_op to relayer.
SoraSuegami Nov 6, 2023
b0f9012
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 6, 2023
f4a85e8
Update abis.
SoraSuegami Nov 6, 2023
46b9d52
chore(relayer): work on PSI & abis
curryrasul Nov 6, 2023
eb02cce
chore(relayer): implement is initialized by commitment function
curryrasul Nov 6, 2023
0868a4f
chore: update contracts package version
saleel Nov 6, 2023
921fbb1
Update NFT extension to use only safeTransfer (#22)
saleel Nov 6, 2023
6a0d318
Fix abi_encode and the uniswap extension worked!
SoraSuegami Nov 7, 2023
ed51473
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 7, 2023
17a5467
Update circuits to use the optimized zk-regex.
SoraSuegami Nov 7, 2023
a0da2bd
chore(relayer): change imap to get unseen messagess after init
curryrasul Nov 7, 2023
68556ca
chore(relayer): remove code dup in retrieve_new_emails function
curryrasul Nov 7, 2023
16e5319
chore(relayer): reimplement PSI module to support id
curryrasul Nov 8, 2023
dbb1a6a
chore(relayer): integrate PSI to API server
curryrasul Nov 8, 2023
320c02a
chore(relayer): remove artifacts from .gitignore
curryrasul Nov 8, 2023
50681b2
Merge branch 'audit-fix' into feat/v1
saleel Nov 8, 2023
c1be6f1
Merge branch 'feat/v1' of github.com:zkemail/email-wallet into feat/v1
saleel Nov 8, 2023
2c89ccc
feat: add onboarding api
saleel Nov 8, 2023
d11f3a4
chore: fix clone names
saleel Nov 8, 2023
dce6876
chore: change rust-toolchain file to fix CI
curryrasul Nov 8, 2023
c5592f1
chore(relayer): remove fmt
curryrasul Nov 8, 2023
2c32531
chore(relayer): minor updates & fixes to onboard PR
curryrasul Nov 8, 2023
8a3258c
Update verifier contracts.
SoraSuegami Nov 9, 2023
11fcbb8
Change the message of ECDSAOwnedDKIMRegistry.
SoraSuegami Nov 9, 2023
dbda307
Update test_Dfinity_Oracle_Response.
SoraSuegami Nov 9, 2023
9504cc6
chore(relayer): add token distribution limit check
curryrasul Nov 9, 2023
4c751a2
Merge branch 'audit-fix' of https://github.com/zkemail/zk-email-walle…
SoraSuegami Nov 9, 2023
721872f
Add scripts.
SoraSuegami Nov 9, 2023
3f7a46d
Merge branch 'audit-fix' into feat/v1
SoraSuegami Nov 9, 2023
9c9e328
chore: fix json input in onboard
saleel Nov 9, 2023
80bc9cc
Update the parameter links.
SoraSuegami Nov 9, 2023
c7826d0
Merge branch 'relayer/onboarding' of https://github.com/zkemail/zk-em…
SoraSuegami Nov 9, 2023
c392082
chore: add subgraph package with relayer hanler
saleel Nov 9, 2023
2c6b369
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 10, 2023
32befb2
Add AccountCreated event to subgraph.
SoraSuegami Nov 10, 2023
9a5fbc4
chore: add abis to subgraph
saleel Nov 10, 2023
f9a038b
chore: add PSI point to account transport event
saleel Nov 10, 2023
1d7cf27
chore: update artifacts
saleel Nov 10, 2023
189536e
chore: add account subgraphs
saleel Nov 10, 2023
7407336
chore: fix timestamp in relayer handler
saleel Nov 10, 2023
77580ca
Merge branch 'feat/v1' into relayer/onboarding
SoraSuegami Nov 10, 2023
15f7e78
chore: add subgraphs for unclaims
saleel Nov 10, 2023
d691b42
chore: add subgraph for emailop
saleel Nov 10, 2023
23f5d6d
chore: add extension subgraphs
saleel Nov 10, 2023
9cb2f01
chore: fix subgraph yaml
saleel Nov 10, 2023
df29a19
Merge branch 'feat/v1' into relayer/onboarding
SoraSuegami Nov 10, 2023
ea73beb
Merge branch 'feat/v1' of https://github.com/zkemail/zk-email-wallet …
SoraSuegami Nov 10, 2023
7a46021
chore: update relayer abis
saleel Nov 10, 2023
a6ba28d
Add get_relayers_by_wallet_addr.
SoraSuegami Nov 10, 2023
1651aeb
Add subgraph client.
SoraSuegami Nov 10, 2023
38f6271
Merge branch 'relayer/onboarding' into feat/v1
SoraSuegami Nov 10, 2023
23209ab
Add templates it includes slippage param for uniswap. (#23)
wshino Nov 11, 2023
34d25f9
chore: fix contract test command
saleel Nov 11, 2023
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
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/workflows/build-test-fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build-Test-Fmt

on:
[push]

jobs:
build-test-fmt:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- run: rustup show

- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build

- name: Test
run: cargo test
52 changes: 52 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: unit-tests

on:
[push]

jobs:
circuits:
name: circuits
runs-on: macos-latest]
steps:
- uses: actions/checkout@v3

- name: "Setup Rust"
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
components: clippy

- name: Install Circom
run: curl https://github.com/iden3/circom/releases/latest/download/circom-macos-amd64 -o /usr/local/bin/circom && chmod +x /usr/local/bin/circom

- name: Print Circom version
run: circom --help

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Run tests
working-directory: packages/circuits
run: yarn test

contracts:
name: contracts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 18
cache: 'yarn'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Run tests
working-directory: packages/contracts
run: forge test --no-match-test "testIntegration"
25 changes: 24 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,45 @@ typechain-types
packages/circuits/build
packages/circuits/inputs
packages/circuits/*.ptau
*.r1cs
*.sym
*.wasm
*.c

# Contracts
packages/contracts/broadcast
packages/contracts/cache
packages/contracts/out
packages/contracts/cache
packages/contracts/test/build_integration/*.json
packages/contracts/test/build_integration/*.zkey
packages/contracts/test/build_integration/*.wasm
packages/contracts/test/build_integration/*.txt

# Relayer
packages/relayer/sendgrid.env
target
packages/relayer/db/*
packages/relayer/*.db
packages/relayer/received_eml/*.eml
packages/relayer/received_eml/*.json
packages/relayer/proofs
sql_database.db
.sqlx

# Prover
packages/prover/build/*
packages/prover/params/*
packages/prover/__pycache__/*

#Mac
# Subgraphs
packages/subgraph/build

# Mac
.DS_Store

# mdbook
book

# Vs code settings
.vscode
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"tabWidth": 2,
"useTabs": false,
"printWidth": 120,
"plugins": ["prettier-plugin-solidity"],
"overrides": [
{
"files": "*.sol",
"options": {
"tabWidth": 4
}
}
]
}
Loading
Loading