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

refactor codes to be compatible with "use scroll l2 trace for super circuit testing in zkevm-circuits" feature #241

Closed
wants to merge 44 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4785f16
wip: refactor according to new CircuitBuilder
noel2004 Aug 17, 2023
49abf73
dump zkevm-circuits' version and pass compile
noel2004 Aug 18, 2023
718eca7
Merge remote-tracking branch 'origin/main' into develop_pre
noel2004 Aug 18, 2023
1d6417b
refactor mock prove testnet
lispc Aug 18, 2023
c51f411
re enable debug assert
lispc Aug 18, 2023
dc7f473
Merge remote-tracking branch 'origin/main' into develop_pre
noel2004 Aug 18, 2023
d3516ea
update lock
noel2004 Aug 18, 2023
46bda0c
Update mock.rs
lispc Aug 18, 2023
a28d96a
Merge remote-tracking branch 'origin/test/testnet' into develop_pre
noel2004 Aug 19, 2023
df7a376
add replay-testnet runner
noel2004 Aug 21, 2023
6f51790
wip: refactor builder
noel2004 Aug 21, 2023
0437f25
Merge branch 'develop_pre' of github.com:scroll-tech/scroll-prover in…
noel2004 Aug 21, 2023
3b1b395
add run-testnet crate
noel2004 Aug 21, 2023
2cae9c5
Merge remote-tracking branch 'origin/main' into develop_pre
noel2004 Aug 21, 2023
d23226e
bump version of zkevm-circuits
noel2004 Aug 21, 2023
d728f1e
wip: some tuning on run testnet
noel2004 Aug 22, 2023
50ca287
refactor circuit builder and ccc
noel2004 Aug 22, 2023
0dfc488
Merge remote-tracking branch 'origin/main' into develop_pre
noel2004 Aug 22, 2023
91f33d4
post merging fixes
noel2004 Aug 22, 2023
657e299
bump zkevm-circuits
noel2004 Aug 22, 2023
8d6a033
run-testnet: trivial fixes for coordinator
noel2004 Aug 23, 2023
9ba7a0f
bump circuit version
noel2004 Aug 23, 2023
9970977
clippy and fmt
noel2004 Aug 23, 2023
527956a
refinding testnet runner
noel2004 Aug 23, 2023
8b658d8
swap log output in debug
noel2004 Aug 23, 2023
2cef36d
Merge branch 'main' into develop
silathdiir Aug 23, 2023
1197c64
more grace runner
noel2004 Aug 23, 2023
e4da0b8
wip: slack notification
noel2004 Aug 23, 2023
94d546f
fix an typo
noel2004 Aug 24, 2023
c2dbe43
add notifier for coordinator
noel2004 Aug 24, 2023
b950f7f
Merge remote-tracking branch 'origin/main' into develop_work
noel2004 Aug 24, 2023
4f11ce7
bump zkevm
noel2004 Aug 24, 2023
ae19985
refine coordinator, add running script
noel2004 Aug 24, 2023
a4e1e8a
more refins on running script
noel2004 Aug 24, 2023
d6c1aa7
refines ...
noel2004 Aug 24, 2023
c93eadc
add docker file
noel2004 Aug 24, 2023
87a4b22
update readme
noel2004 Aug 24, 2023
e2feee6
add readme and refine test runner
noel2004 Aug 25, 2023
c51ea32
Merge remote-tracking branch 'origin/main' into develop_work
noel2004 Aug 25, 2023
cf8da8b
fix; batch index can be -1
noel2004 Aug 25, 2023
0b22c7e
run-testnet: fix issue in coordinator
noel2004 Aug 25, 2023
dd5164a
add issue handliing
noel2004 Aug 25, 2023
73612f5
develop branch uses zkevm-circuits/decelop (#248)
lispc Aug 28, 2023
9a6392f
refine coordinator
noel2004 Aug 28, 2023
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
101 changes: 86 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ members = [
"bin",
"prover",
"types",
"run-testnet",
]

[patch.crates-io]
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile.run_testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM scrolltech/go-rust-builder as builder

RUN mkdir -p /root/src
ADD . /root/src
RUN cd /root/src/run-testnet && cargo build --release --bin testnet-runner
RUN cd /root/src/target/release && find -name libzktrie.so | xargs -I {} cp {} /root/src/target/release

FROM builder

COPY --from=builder /root/src/target/release/testnet-runner /bin/
COPY --from=builder /root/src/run-testnet/run.sh /bin/testnet-runner.sh
COPY --from=builder /root/src/target/release/libzktrie.so /usr/local/lib
ENV LD_LIBRARY_PATH /usr/local/lib

CMD testnet-runner.sh
12 changes: 6 additions & 6 deletions prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ edition = "2021"
[dependencies]
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_02_02" }

aggregator = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5" }
bus-mapping = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5" }
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5" }
zkevm-circuits = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5", default-features = false, features = ["test","scroll","scroll-trace","shanghai"] }
mpt-zktrie = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5" }
mock = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.7.5" }
aggregator = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop" }
bus-mapping = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop" }
eth-types = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop" }
zkevm-circuits = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop", default-features = false, features = ["test","scroll","scroll-trace","shanghai"] }
mpt-zktrie = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop" }
mock = { git = "https://github.com/scroll-tech/zkevm-circuits.git", branch = "develop" }

snark-verifier = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2" }
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", tag = "v0.1.2" }
Expand Down
2 changes: 1 addition & 1 deletion prover/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use std::{
str::FromStr,
sync::Once,
};
use types::eth::{BlockTrace, BlockTraceJsonRpcResult};
use types::{eth::BlockTrace, BlockTraceJsonRpcResult};
use zkevm_circuits::evm_circuit::witness::Block;

pub static LOGGER: Once = Once::new();
Expand Down
Loading