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: Generic Relayer #69

Merged
merged 79 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from 78 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
1a5ebc8
chore: init generic relayer
Bisht13 Oct 8, 2024
cfa32e9
chore: Add generic email templates
wryonik Oct 9, 2024
8391efd
feat: add smtp and imap interaction
Bisht13 Oct 9, 2024
f08144a
fix: uuid capture
Bisht13 Oct 10, 2024
036a96d
feat: add icp, prover and on chain stuff
Bisht13 Oct 11, 2024
a32543a
fix: use tokio mutex
Bisht13 Oct 11, 2024
8d8e520
feat: add status api
Bisht13 Oct 11, 2024
0a458c8
fix: update schema
Bisht13 Oct 12, 2024
4acb91e
Merge branch 'feat/generic-relayer' of https://github.com/zkemail/eth…
SoraSuegami Oct 14, 2024
8e9fc0c
Fix circom test in github action
SoraSuegami Oct 14, 2024
0695423
Merge branch 'feat/body-parsing-with-audit-fix' of https://github.com…
SoraSuegami Oct 14, 2024
230951b
Add example contract
SoraSuegami Oct 14, 2024
faa36ed
Start scripts in example
SoraSuegami Oct 14, 2024
c31af55
Define some types in the script
SoraSuegami Oct 15, 2024
dc607f4
feat: finish e2e test
Bisht13 Oct 15, 2024
5f5f28e
feat: add simulation
Bisht13 Oct 16, 2024
83ce72e
chore: refactor
Bisht13 Oct 18, 2024
73dc0af
feat: add sqlx queries
Bisht13 Oct 18, 2024
5293be5
feat: add retry logic for simulation
Bisht13 Oct 19, 2024
bf4d7fe
chore: retry logic
Bisht13 Oct 19, 2024
f1926fe
chore: remove redundant log
Bisht13 Oct 19, 2024
b425ed5
chore: refactor
Bisht13 Oct 20, 2024
aafa77f
chore: Add explorer button in completion template
wryonik Oct 21, 2024
029ffe0
chore: add logs
Bisht13 Oct 21, 2024
0a25d10
feat: add tx hash in completion email
Bisht13 Oct 21, 2024
98a2cd3
fix: variable passing in email template
Bisht13 Oct 21, 2024
d8de755
fix: explorer url
Bisht13 Oct 21, 2024
bac8715
chore: update config.example.json
Bisht13 Oct 21, 2024
3aa3a00
chore: Update email templates header
wryonik Oct 21, 2024
c98501b
Support new dkim registry
SoraSuegami Nov 13, 2024
ff5eecd
Merge branch 'main' of https://github.com/zkemail/email-tx-builder in…
SoraSuegami Nov 13, 2024
462ad8c
feat: add reply needed in subject
Bisht13 Nov 14, 2024
91f2172
fix: replace qp encoding
Bisht13 Nov 14, 2024
85c6a44
Merge pull request #86 from zkemail/feat/fix-dkim-generic-relayer
Bisht13 Nov 19, 2024
a6c1184
chore: refactor
Bisht13 Nov 19, 2024
0dedda2
feat: created dkim oracle config
aalimsahin Nov 19, 2024
cdf1ee2
feat: integrated dkim oracle config
aalimsahin Nov 19, 2024
e0bf6b3
feat: merged dkim and relayer config
aalimsahin Nov 19, 2024
e8e6b52
test: remove test code related to AccountRecovery
wshino Nov 21, 2024
a7a11b0
Merge pull request #89 from aalimsahin/feat/config-refactor
SoraSuegami Nov 21, 2024
df8bc40
Fix clippy issue
SoraSuegami Nov 21, 2024
603758d
docs: note to build contracts first
zkfriendly Nov 25, 2024
54f81f5
Improve the error message when there is no command.
SoraSuegami Nov 25, 2024
75d32b8
Merge pull request #91 from zkemail/feat/improve_error_without_command
SoraSuegami Nov 25, 2024
01be44f
refactor: update config file default urls to match the default docker…
zkfriendly Nov 25, 2024
a3a45bd
chore: add smpt and imap in local docker compose
zkfriendly Nov 28, 2024
45dcaf9
docs: setup dev env and run migrations
zkfriendly Nov 28, 2024
51cd455
fix: api end points
zkfriendly Nov 28, 2024
d357bc5
feat: store EmailAuthMsg to db
zkfriendly Nov 28, 2024
c8963a6
feat: fetch proof once available
zkfriendly Nov 28, 2024
61257a2
feat: remove unused arguments from API interface
zkfriendly Nov 28, 2024
3201660
refactor: make response all camelCase
zkfriendly Nov 29, 2024
83fe578
refactor: serialize EmailAuthMsg directly
zkfriendly Nov 29, 2024
d410bfb
refactor: rename json response field EmailTxAuth -> body
zkfriendly Nov 29, 2024
d47a108
refactor: rename request_id -> id
zkfriendly Nov 29, 2024
de6ba5b
Merge remote-tracking branch 'forked/feat/builder' into feat/generic-…
SoraSuegami Nov 30, 2024
c4652fc
feat: remove yarn test:script because there are no test cases in scri…
wshino Nov 30, 2024
c9584c8
feat: account salt end point
zkfriendly Nov 30, 2024
743c008
refactor: to camelCase
zkfriendly Nov 30, 2024
eca4ffc
Merge branch 'feat/builder' of https://github.com/zkfriendly/ether-em…
SoraSuegami Dec 1, 2024
5d687cd
Merge branch 'feat/generic-relayer' of https://github.com/zkemail/ema…
SoraSuegami Dec 2, 2024
35ca3cd
Fix build-fmt
SoraSuegami Dec 2, 2024
ad40303
Fix clippy errors
SoraSuegami Dec 2, 2024
80fe712
Fix clippy errors 2
SoraSuegami Dec 2, 2024
c1889fb
Update the simple wallet address in the integration test
SoraSuegami Dec 3, 2024
10b4b91
Merge branch 'main' of https://github.com/zkemail/ether-email-auth
SoraSuegami Dec 3, 2024
3e70470
Just fix the block number without create2 in the integration test
SoraSuegami Dec 3, 2024
37507ee
refactor: relocate EmailAuthMsg implementations
zkfriendly Dec 3, 2024
67b4bd5
Merge pull request #93 from zkfriendly/feat/generic-relayer-new-api-1130
Bisht13 Dec 3, 2024
333c613
chore: update k8s manifests
Bisht13 Dec 3, 2024
125c4a4
chore: update .gitignore
Bisht13 Dec 4, 2024
53a1e02
Merge pull request #94 from zkemail/feat/generic-relayer-new-api-1130
Bisht13 Dec 4, 2024
f2bfa58
fix: don't send explorer link in completion email
zkfriendly Dec 4, 2024
f43f385
fix: don't send explorer link in completion email
zkfriendly Dec 4, 2024
cd43d4a
Remove explorer_url from config
SoraSuegami Dec 5, 2024
5c83302
Merge pull request #95 from zkemail/feat/generic-relayer-new-api-1130
SoraSuegami Dec 5, 2024
a4bae96
Merge branch 'feat/generic-relayer' of https://github.com/zkemail/ema…
SoraSuegami Dec 5, 2024
87dbd2a
Change package names.
SoraSuegami Dec 5, 2024
0567cfa
Change the modal name and remove unused files for contract tests.
SoraSuegami Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions .github/workflows/build-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,26 @@ jobs:

- uses: Swatinem/rust-cache@v2

- name: Setup Node.js
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install yarn
run: npm install -g yarn

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

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: foundry-rs/foundry-toolchain@v1.2.0
with:
version: nightly-0079a1146b79a4aeda58b0258215bedb1f92700b

- name: Build contracts
working-directory: packages/contracts
run: yarn build

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true

- name: Build and check for warnings
env:
RUSTFLAGS: "-D warnings"
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ jobs:
working-directory: packages/contracts
run: yarn test

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

relayer:
name: relayer
runs-on: ubuntu-latest
Expand Down
38 changes: 15 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,15 @@ packages/contracts/test/build_integration/*.txt
packages/contracts/test/test-proofs
packages/contracts/deployments

# NFT Relayer
packages/nft_relayer/sendgrid.env
target
packages/nft_relayer/db/*
packages/nft_relayer/*.db
packages/nft_relayer/received_eml/*.eml
packages/nft_relayer/received_eml/*.json
packages/nft_relayer/proofs
packages/nft_relayer/logs
sql_database.db
.sqlx
.ic.pem
config.json

# 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
packages/relayer/logs
sql_database.db
.sqlx
packages/relayer/config.json
.ic.pem

# ABIs
packages/relayer/src/abis/*
!packages/realyer/src/abis/mod.rs
!packages/relayer/src/abis/mod.rs

# Prover
packages/prover/build/*
Expand All @@ -76,6 +55,9 @@ packages/subgraph/build
# Subgraphs
packages/subgraph/build

# Kubernetes
secrets.yml

# Mac
.DS_Store

Expand All @@ -88,6 +70,16 @@ book
# Editor settings
.idea

# Kubernetes
secrets.yml

# For zksync
zkout
.cache

# Example
example/contracts/artifacts
example/contracts/cache
example/contracts/node_modules
example/scripts/dist
example/contracts/broadcast
Loading
Loading