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

wip: l1 block hashes poc #1016

Draft
wants to merge 59 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3330663
wip: add apply l1 block hashes txs logic
lastminutedev Oct 25, 2023
2a6c74f
wip: add chunk trace and block context fixes
lastminutedev Oct 25, 2023
18b18e0
feat: add L1Blocks contract
lastminutedev Oct 27, 2023
e20e5ca
fix: add L1Blocks contract fix and unit tests
lastminutedev Nov 10, 2023
fd47940
fix: add fix
lastminutedev Nov 13, 2023
dc90862
test: fix database test
lastminutedev Nov 13, 2023
151631e
script: L1Blocks deployment
failfmi Nov 14, 2023
fe21b54
fix: add update chunk prover task
lastminutedev Nov 14, 2023
aa4005a
feat(contracts): implement and test `L1ViewOracle`
reo101 Nov 14, 2023
68eff41
test: fix tests
lastminutedev Nov 14, 2023
07e5fed
test: fix tests
lastminutedev Nov 15, 2023
708b748
test: fix tests
lastminutedev Nov 15, 2023
b135dbc
script: L1ViewOracle deployment
failfmi Nov 16, 2023
24f9020
wip: add get l1 block range hash directly from l1 client for chunk pr…
lastminutedev Nov 17, 2023
49ecf53
fix: fix issues after rebase
lastminutedev Nov 20, 2023
9037ce9
wip: add last applied l1 block to chunk data
lastminutedev Nov 21, 2023
0649057
wip: add update chunk info and batch header
lastminutedev Nov 22, 2023
b484a71
wip: add update chunk/batch prove/verify
lastminutedev Nov 23, 2023
aaa6eca
wip: add update chunk/batch prove/verify
lastminutedev Nov 27, 2023
a2f9474
compile(contracts): add temporary via-ir flag
failfmi Nov 28, 2023
450cf38
build(coordinator): explicit amd64 platform
failfmi Nov 28, 2023
d147e85
build(docker): coordinator and rollup image names
failfmi Nov 28, 2023
cfce8b2
fix: scroll l1 contract
lastminutedev Nov 28, 2023
e99e26f
compile(contracts): remove via-ir flag
failfmi Nov 30, 2023
6507e1d
refactor(contracts/ScrollChain): stack too deep; fix ChunkCode.lastAp…
failfmi Nov 30, 2023
74da939
inline-docs(contracts/ScrollChain): commitChunk return argument
failfmi Nov 30, 2023
0616d6c
docker: switch push org name
failfmi Dec 1, 2023
aa05f80
fix(rollup): batch l1 block range hash
failfmi Dec 6, 2023
02ed852
build(docker/rollup-relayer): explicit platform
failfmi Dec 6, 2023
16ff818
feat(rollup): use forked go-ethereum
failfmi Dec 6, 2023
a0d5912
fix(contracts/l1vieworacle): remove from check
failfmi Dec 6, 2023
dbeed30
feat(rollup): log chunk process block range
failfmi Dec 6, 2023
ce16012
fix(rollup/chunk-proposer): blockRangeHash parse result
failfmi Dec 7, 2023
7fafc28
feat(rollup)!: rebuild `ScrollChain` contract ABI
reo101 Dec 7, 2023
72fe2d2
test: fix test
lastminutedev Dec 12, 2023
2678c84
fix(types/chunk): encode
failfmi Dec 13, 2023
e9a7c86
fix(types/chunk): exclude l1 block hashes
failfmi Dec 13, 2023
d2eac6e
fix(types/batch): encode/decode
failfmi Dec 13, 2023
3dd1a5d
fix(contracts/ScrollChain): batch and chunk ptr loadings
failfmi Dec 19, 2023
f951b9b
fix(types/chunk): missing l1 block hashes info in Hash
failfmi Dec 19, 2023
ab0cba5
fix(contracts/ScrollChain): handle chunks, which have the same lastAp…
failfmi Dec 19, 2023
5459003
fix(rollup): incorrect chunk and wrapped block lastAppliedL1BlockNum …
failfmi Dec 21, 2023
aeccdb0
fix(common/types): chunk encoding to match; block txs to include l1 b…
failfmi Dec 23, 2023
83f5c84
fix(prover): add gen chunk fix
lastminutedev Jan 10, 2024
6d51b40
fix(prover): add fix prover gen chunk trace
lastminutedev Jan 10, 2024
82ef045
fix: try fix zktrie build issue on linux
lastminutedev Jan 10, 2024
b314ee3
fix(coordinator/orm/block): missing query last applied l1 block column
failfmi Jan 10, 2024
19ddb66
build(coordinator_cron): explicit amd64 platform
failfmi Jan 10, 2024
a7adb12
fix(libzkp): add fix chunk trace
lastminutedev Jan 11, 2024
6bf507b
Revert "fix: try fix zktrie build issue on linux"
lastminutedev Jan 11, 2024
2729a13
feat(contracts/l1blocks): switch appendBlockhashes msg.sender modifier
failfmi Jan 11, 2024
97f3c9d
chore: upgrade libzkp
lastminutedev Jan 16, 2024
4d99b58
fix: add update libzkp dep
lastminutedev Jan 16, 2024
23ef6a1
fix: add fix libzkp cargo deps
lastminutedev Jan 16, 2024
bdd3224
fix(rollup/l2_watcher): missing l1blockhashes sender
failfmi Jan 16, 2024
2395b26
feat(rollup-relayer): latest go-ethereum hash
failfmi Feb 1, 2024
0dd91b6
test(contracts/ScrollChain): examples with 1, 2 and 256 block hashes
failfmi Feb 13, 2024
837173d
test: add ScrollChain commitBatch with 10 chunks with L1BlockHashes
lastminutedev Feb 13, 2024
8088b2e
fix: add update ScrollChain test testCommitBatchWithManyL1BlockHashesTxs
lastminutedev Feb 15, 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
2 changes: 1 addition & 1 deletion build/dockerfiles/coordinator-api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY --from=zkp-builder /app/target/release/libzktrie.so ./coordinator/internal/
RUN cd ./coordinator && make coordinator_api_skip_libzkp && mv ./build/bin/coordinator_api /bin/coordinator_api && mv internal/logic/verifier/lib /bin/

# Pull coordinator into a second stage deploy alpine container
FROM ubuntu:20.04
FROM --platform=linux/amd64 ubuntu:20.04
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/src/coordinator/internal/logic/verifier/lib
# ENV CHAIN_ID=534353
RUN mkdir -p /src/coordinator/internal/logic/verifier/lib
Expand Down
2 changes: 1 addition & 1 deletion build/dockerfiles/coordinator-cron.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=target=. \
cd /src/coordinator/cmd/cron/ && go build -v -p 4 -o /bin/coordinator_cron

# Pull coordinator into a second stage deploy alpine container
FROM alpine:latest
FROM --platform=linux/amd64 alpine:latest
COPY --from=builder /bin/coordinator_cron /bin/

ENTRYPOINT ["coordinator_cron"]
2 changes: 1 addition & 1 deletion build/dockerfiles/rollup_relayer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN --mount=target=. \
cd /src/rollup/cmd/rollup_relayer/ && go build -v -p 4 -o /bin/rollup_relayer

# Pull rollup_relayer into a second stage deploy alpine container
FROM alpine:latest
FROM --platform=linux/amd64 alpine:latest

COPY --from=builder /bin/rollup_relayer /bin/

Expand Down
Loading