Skip to content

Commit

Permalink
Revert "feat: Body Parsing With Audit Fixes (#59)"
Browse files Browse the repository at this point in the history
This reverts commit fac4274.
  • Loading branch information
SoraSuegami committed Nov 5, 2024
1 parent e74b2af commit 7c6b1e8
Show file tree
Hide file tree
Showing 214 changed files with 15,090 additions and 22,328 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ packages/contracts/test/build_integration/*.json
packages/contracts/test/build_integration/*.zkey
packages/contracts/test/build_integration/*.wasm
packages/contracts/test/build_integration/*.txt
packages/contracts/test/EmailAccountRecoveryZkSync

# NFT Relayer
packages/nft_relayer/sendgrid.env
Expand Down
28 changes: 0 additions & 28 deletions .github/pull_request_template.md

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/build-fmt.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/build-img.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/build-test-fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

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

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

- name: Run tests
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
run: cargo build --release

- name: Test
run: cargo test --release
42 changes: 4 additions & 38 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: unit-tests

on: [push]

Expand All @@ -21,8 +21,8 @@ jobs:
override: true
components: rustfmt, clippy

- name: Download circom v2.1.9 (Linux)
run: wget https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64 -O /usr/local/bin/circom && chmod +x /usr/local/bin/circom
- name: Download circom (Linux)
run: git clone https://github.com/iden3/circom.git && cd circom && cargo build --release && cargo install --path circom

- name: Print circom version
run: circom --version
Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18

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

Expand All @@ -62,37 +62,3 @@ jobs:
- name: Run tests
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
steps:
- uses: actions/checkout@v3

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

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

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

- name: Install Foundry
uses: foundry-rs/[email protected]
with:
version: nightly-0079a1146b79a4aeda58b0258215bedb1f92700b

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

- name: Run tests
working-directory: packages/relayer
run: cargo test
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ packages/nft_relayer/logs
sql_database.db
.sqlx
.ic.pem
config.json

# Relayer
packages/relayer/sendgrid.env
Expand All @@ -58,10 +57,6 @@ sql_database.db
.sqlx
.ic.pem

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

# Prover
packages/prover/build/*
packages/prover/params/*.zkey
Expand All @@ -85,9 +80,6 @@ book
# Vs code settings
.vscode

# Editor settings
.idea

# For zksync
zkout
.cache
Loading

0 comments on commit 7c6b1e8

Please sign in to comment.