Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

WIP: sync main to proof-chunk branch #1750

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
5022d5d
Fix circuit failure output (#1638)
ChihChengLiang Oct 4, 2023
ed866f0
Add precompile contracts' addresses to the access list (#1640)
ChihChengLiang Oct 5, 2023
9d93c0a
Feat/##1369 withdraw from beacon chain part 1 - pi circuit (#1634)
KimiWu123 Oct 11, 2023
ba4da23
feat: support prevrandao (#1648)
dyxushuai Oct 11, 2023
2176191
Fixing problems in MPT found by light client (#1610)
miha-stopar Oct 12, 2023
265f561
Nitpicks: is_some() refactor (#1642)
ChihChengLiang Oct 13, 2023
09651d4
[MPTWG] Reformat JSON files (#1643)
ChihChengLiang Oct 13, 2023
3a46772
fix soundness: block_table tag/index should be fixed column (#1662)
hero78119 Oct 20, 2023
eff327f
add error pruning on step_first/step_last to avoid use against lookup…
hero78119 Oct 23, 2023
41ab519
Fix typos (#1666)
xiaolou86 Oct 24, 2023
93791d1
fix many bugs of create op (#1657)
lispc Oct 25, 2023
1395ab9
fix return revert stack underflow (#1673)
lispc Oct 25, 2023
c1ec848
Light client PoC (#1644)
adria0 Oct 25, 2023
1d1066d
fix: get_create_init_code can be wrong (#1671)
lispc Oct 26, 2023
63beeee
feat: if rws reaches limit, stop early and return err (#1669)
lispc Oct 26, 2023
3bf9bc2
fix return/revert offset/len in handle_return for err cases (#1676)
lispc Oct 26, 2023
7617394
opt: dedup inputs for keccak circuit (#1672)
lispc Oct 26, 2023
e48d06f
Feat/#1513 buffer reader gadget unit test (#1621)
NOOMA-42 Nov 18, 2023
f07ca3d
Integration tests benchmarks (#1615)
AronisAt79 Nov 18, 2023
e39d55c
Fix circuits integration tests panic: "unwrap on None value" when EIP…
AronisAt79 Nov 27, 2023
5867b5f
Fix circuit benchmarks (#1686)
zemse Nov 29, 2023
3a853de
Pse keccak test vector (#1678)
ChihChengLiang Nov 29, 2023
e246d4d
[FIX]: solidity CI bug (#1698)
shikharvashistha Dec 1, 2023
8755e44
Add basic invalid tx support (#1677)
Brechtpd Dec 6, 2023
66788d7
fix: pull_request_template typo (#1702)
ddl-hust Dec 6, 2023
fe9beeb
Identity (dataCopy) precompile (#1628)
darth-cy Dec 12, 2023
ef14352
chore : typo fix (#1705)
sqltrigger Dec 14, 2023
734e430
Grammatical corrections in eth-types (#1708)
fakefraud Dec 18, 2023
da454e2
Modified extension gadget (#1685)
miha-stopar Dec 27, 2023
f05f6cb
fix soundness: share txid write lookup across step (#1719)
hero78119 Jan 2, 2024
e26176d
chores: add create/create2 in stats (#1721)
hero78119 Jan 2, 2024
4f448f6
Fix: typos (#1727)
GoodDaisy Jan 10, 2024
c56dca8
chore(integration-tests): change build.rs to pull submodules (#1723)
curryrasul Jan 10, 2024
e80c5af
fix/update dependencies versions (#1722)
KimiWu123 Jan 12, 2024
df265ae
fix typos in test_ctx2.rs (#1729)
cristiantroy Jan 12, 2024
4dc76eb
chore(mpt-witness-generator): bit of proofreading (#1730)
Ursulafe Jan 16, 2024
d5fe917
chore: set resolver v2 at the workspace level (#1731)
bishopcheckmate Jan 17, 2024
05b2b17
Add comment regarding RwTableTag (#1735)
zemse Jan 17, 2024
5388d17
perf(circuit-tools): preallocate memory and remove unnecessary clones…
bishopcheckmate Jan 17, 2024
141348b
WASM support for zkevm-circuits crate (#1734)
zemse Jan 22, 2024
a631c09
chore: fix typos (#1737)
Thabokani Jan 22, 2024
6c33c7f
refactor(evm_circuit): minor fix in end_tx (#1725) (#1739)
curryrasul Jan 23, 2024
d972588
Dependency cleaning round (#1741)
ChihChengLiang Jan 23, 2024
b303b28
MPT max nodes (#1745)
miha-stopar Jan 30, 2024
7f35654
Simplify Zero and One Words construction and Address compression (#1746)
ChihChengLiang Jan 31, 2024
fc4964c
Runtime config (#1728)
ChihChengLiang Jan 31, 2024
90eebff
upgrade halo2 ecosystem dependencies (#1749)
hero78119 Feb 1, 2024
879d1b6
Merge with main
hero78119 Feb 2, 2024
64154f7
use max_rws to identify fixed/dynamic circuit params
hero78119 Feb 2, 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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[target.'cfg(target_os="macos")']
rustflags = ["-C", "link-args=-framework CoreFoundation -framework Security"]

[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-Wl,--allow-multiple-definition"]
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The target readers could be future developers, reviewers, and auditors. By readi

MUST: Reference the issue to resolve

### Single responsability
### Single responsibility

Is RECOMMENDED to create single responsibility commits, but not mandatory.

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# Create a index.html outside of the subdirectories for requirement of GitHub pages
- name: Generate Docs
run: |
cargo doc --no-deps
cargo doc --no-deps --workspace --exclude integration-tests
echo "<meta http-equiv=\"refresh\" content=\"0; url=zkevm_circuits\">" > target/doc/index.html
# Archive the artifact with the correct permissions
# https://github.com/actions/deploy-pages/issues/188
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Update git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: Install openssl
run: sudo apt-get install -y pkg-config libssl-dev
# Run an initial build in a separate step to split the build time from execution time
- name: Build bins
run: cargo build --bin gen_blockchain_data
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ jobs:
target/
key: lint-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install solc
run: |
sudo wget -O /usr/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux
sudo chmod +x /usr/bin/solc
- name: Update ERC20 git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
- name: Check code format
uses: actions-rs/cargo@v1
with:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/main-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
runs-on: ["${{github.run_id}}", self-hosted, c5.9xlarge]

steps:
- name: Install OpenSSL lib
run: sudo apt-get -y install libssl-dev

- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -66,6 +69,12 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install solc
run: |
sudo wget -O /usr/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux
sudo chmod +x /usr/bin/solc
- name: Update ERC20 git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: Run light tests # light tests are run in parallel
uses: actions-rs/cargo@v1
with:
Expand All @@ -87,6 +96,9 @@ jobs:
runs-on: ["${{github.run_id}}", self-hosted, c5.9xlarge]

steps:
- name: Install OpenSSL lib
run: sudo apt-get -y install libssl-dev

- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -115,6 +127,12 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install solc
run: |
sudo wget -O /usr/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux
sudo chmod +x /usr/bin/solc
- name: Update ERC20 git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: Run heavy tests # heavy tests are run serially to avoid OOM
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -157,6 +175,12 @@ jobs:
~/.cargo/git/db/
target/
key: build-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install solc
run: |
sudo wget -O /usr/bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux
sudo chmod +x /usr/bin/solc
- name: Update ERC20 git submodule
run: git submodule update --init --recursive --checkout integration-tests/contracts/vendor/openzeppelin-contracts
- name: cargo build
uses: actions-rs/cargo@v1
with:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: WASM

on:
merge_group:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

## `actions-rs/toolchain@v1` overwrite set to false so that
## `rust-toolchain` is always used and the only source of truth.

jobs:
skip_check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
concurrent_skipping: 'same_content_newer'
paths_ignore: '["**/README.md"]'

build:
needs: [skip_check]
if: |
github.event.pull_request.draft == false &&
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')

name: Build
runs-on: ["${{github.run_id}}", self-hosted, c5.9xlarge]

steps:
- name: Install OpenSSL lib
run: sudo apt-get -y install libssl-dev

- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
override: false
components: rust-src
- name: Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build WASM
env:
RUSTFLAGS: '-C target-feature=+atomics,+bulk-memory'
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --release --package zkevm-circuits --no-default-features --target wasm32-unknown-unknown -Z build-std=panic_abort,std
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.png
.DS_Store
.vscode
.idea
.idea
*.log
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
update = none
path = integration-tests/contracts/vendor/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "light-client-poc/go-ethereum"]
path = light-client-poc/go-ethereum
url = https://github.com/adria0/go-ethereum
Loading
Loading