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

afae216 upstream merge #4

Merged
merged 54 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
dc97c3c
fix(proposer): `SplitRangeBasedOnSafeHeads` fallback (#274)
ratankaliani Dec 13, 2024
b203bb4
chore: cfg flag `zkvm` (#270)
ratankaliani Dec 13, 2024
ba42426
chore: misc fixes (#275)
ratankaliani Dec 13, 2024
75e82e9
feat: proposer server error handling + docs (#278)
ratankaliani Dec 13, 2024
f486cae
fix(proposer): submission interval (#279)
ratankaliani Dec 13, 2024
ad870d8
chore: error handling (#280)
ratankaliani Dec 14, 2024
a931117
docs: reproducible binaries (#284)
ratankaliani Dec 16, 2024
ea89646
feat: dummy range program (#283)
ratankaliani Dec 16, 2024
9a93175
chore: turn off native execution logging (#285)
ratankaliani Dec 16, 2024
a61a798
chore: simplify dockerfile
ratankaliani Dec 16, 2024
1b516bb
feat(dummy-range): Add `dummy-range` to `vkey` script (#286)
ratankaliani Dec 17, 2024
6cfd0fc
feat: use execution status to split proofs (#289)
ratankaliani Dec 17, 2024
33f62c0
feat: add support for new allocator (#287)
ratankaliani Dec 17, 2024
f28db3c
feat: bump sdk, rc version (#290)
ratankaliani Dec 17, 2024
4afd2cd
feat(contracts): optimistic mode (#293)
ratankaliani Dec 17, 2024
787b9f2
feat: remove dummy range (#296)
ratankaliani Dec 18, 2024
e795254
fix: sp1 lib import (#297)
ratankaliani Dec 19, 2024
0155667
docs: optimistic mode permissionless proving warning
ratankaliani Dec 19, 2024
3c35e9b
feat: audits (#298)
ratankaliani Dec 20, 2024
fbc15cf
chore: Spearbit audit
ratankaliani Dec 20, 2024
d05ac29
feat(proposer): clear stdin (#301)
ratankaliani Dec 21, 2024
01c7040
feat(proposer): more configurability for witness gen (#303)
emilianobonassi Dec 23, 2024
c6ac8e5
fix(proposer): pass new flag
ratankaliani Dec 24, 2024
3e3a2ff
chore(proposer): add sqlite3 to docker image for ops (#304)
emilianobonassi Dec 26, 2024
4569d35
fix: split midblock block number (#305)
ctian1 Dec 30, 2024
61594ae
fix: error logging (#307)
ratankaliani Dec 31, 2024
519e7c8
feat(ci): ghcr docker images (#311)
ratankaliani Jan 4, 2025
c4eef1a
feat(proposer): Check if blockhash is checkpointed (#314)
ratankaliani Jan 7, 2025
b5ec09a
feat: v4 (#300)
ratankaliani Jan 9, 2025
d234c4f
feat: mock proof from pv (#318)
ratankaliani Jan 9, 2025
8fa1e0d
docs: rpc
ratankaliani Jan 10, 2025
3e3ea65
chore: update binaries
ratankaliani Jan 10, 2025
3cdd4f5
fix: don't disable logs on the server (#320)
leruaa Jan 10, 2025
270af2c
feat: rc10 bump + fix mock mode (#323)
ratankaliani Jan 13, 2025
1095e9c
feat(utils/client): add secp256r1 cycle tracking (#324)
fakedev9999 Jan 14, 2025
5dfc439
chore(proposer): add jq and nc to docker image (#322)
emilianobonassi Jan 14, 2025
5a813c5
feat(programs): Use allocator (#319)
ratankaliani Jan 15, 2025
56e7369
docs: add troubleshooting.md (#325)
fakedev9999 Jan 15, 2025
aa9a4a1
chore: add ci for elf check (#326)
fakedev9999 Jan 15, 2025
d2f0d4f
feat: migrate OPSuccinctL2OutputOracle to OptimismPortalV2 (#277)
leruaa Jan 15, 2025
9792d8f
chore: fix broken links (#328)
fakedev9999 Jan 16, 2025
f3d70e3
feat: Bump SP1 to `4.0.0` (#330)
ratankaliani Jan 16, 2025
2b7f572
feat(proposer): Environment variables for configuring request strateg…
ratankaliani Jan 16, 2025
497e061
feat(programs): rkyv serialization (#332)
ratankaliani Jan 16, 2025
3c99769
chore(proposer): logs
ratankaliani Jan 16, 2025
20244f2
chore(proposer): fn name
ratankaliani Jan 16, 2025
d34bcb9
chore(contracts): version
ratankaliani Jan 16, 2025
87b4800
chore(utils): update block data range (#334)
ratankaliani Jan 17, 2025
3cef809
fix: get proof status (#335)
ratankaliani Jan 17, 2025
3abe31d
fix: enable command to run cost estimator default (#336)
fakedev9999 Jan 17, 2025
5ecb9db
chore(contracts): nits
ratankaliani Jan 17, 2025
2817295
feat(contracts): update OP_SUCCINCT game type (#338)
leruaa Jan 17, 2025
dc6bbb5
feat(contracts): various deployment improvements (#321)
emilianobonassi Jan 17, 2025
afae216
docs: improve op-succinct book (#337)
fakedev9999 Jan 21, 2025
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
8 changes: 5 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ runs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: rust-1.79.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.79.0-
key: rust-nightly-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-nightly-

- name: Setup toolchain
id: rustc-toolchain
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79.0 -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly -y
source "$HOME/.cargo/env"
rustup default nightly
28 changes: 2 additions & 26 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compile the fault proof program
run: cargo build --profile release-client-lto
working-directory: programs/fault-proof
- name: Setup CI
uses: ./.github/actions/setup
- name: Compile the range program
run: cargo build --profile release-client-lto
working-directory: programs/range
build_zkvm_programs:
runs-on:
- runs-on
- runner=64cpu-linux-arm64
- run-id=${{ github.run_id }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
source ~/.bashrc
- name: Compile the fault proof program
run: ~/.sp1/bin/cargo-prove prove build --binary fault-proof
working-directory: programs/fault-proof
- name: Compile the range program
run: ~/.sp1/bin/cargo-prove prove build --binary range
working-directory: programs/range
- name: Compile the aggregation program
run: ~/.sp1/bin/cargo-prove prove build --binary aggregation
working-directory: programs/aggregation
19 changes: 2 additions & 17 deletions .github/workflows/cost-estimator-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: rust-cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
restore-keys: rust-1.81.0-
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Setup CI
uses: ./.github/actions/setup

- name: Run cost estimator
run: |
Expand Down
96 changes: 96 additions & 0 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Docker Build

on:
workflow_dispatch:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

jobs:
build:
name: Build Docker Images
runs-on:
- runs-on
- cpu=16
- ram=64
- family=m7a+m7i-flex
- image=ubuntu22-full-x64
- run-id=${{ github.run_id }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta for op-proposer
id: meta-op-proposer
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/op-proposer
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha

- name: Docker meta for succinct-proposer
id: meta-succinct
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}/succinct-proposer
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pre-build debug
run: |
echo "Meta tags: ${{ steps.meta-op-proposer.outputs.tags }}"
echo "Push condition: ${{ github.event_name != 'pull_request' }}"
echo "Event name: ${{ github.event_name }}"

- name: Build and push op-proposer
uses: docker/build-push-action@v6
with:
context: .
file: proposer/op/Dockerfile.op_proposer
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-op-proposer.outputs.tags }}
labels: ${{ steps.meta-op-proposer.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Post-build debug
run: |
docker images
echo "Checking authentication:"
docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} 2>&1 || true

- name: Build and push succinct-proposer
uses: docker/build-push-action@v6
with:
context: .
file: proposer/succinct/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta-succinct.outputs.tags }}
labels: ${{ steps.meta-succinct.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ jobs:
- ram=64
- family=m7a+m7i-flex
- image=ubuntu22-full-x64
- disk=large
- run-id=${{ github.run_id }}
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Compose
uses: docker/setup-buildx-action@v1
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/elf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: ELF

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
elf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version
source ~/.bashrc
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Verify the OP Succinct binaries
run: |
# Build the binaries
cd programs/range
~/.sp1/bin/cargo-prove prove build --elf-name range-elf --docker --tag v4.0.0-rc.10 --output-directory ../../elf
cd ../aggregation
~/.sp1/bin/cargo-prove prove build --elf-name aggregation-elf --docker --tag v4.0.0-rc.10 --output-directory ../../elf
cd ../../

# Check for any changes in the elf directory
if [ -n "$(git status --porcelain elf/)" ]; then
echo "❌ ELF files changed during build!"
git diff elf/
exit 1
else
echo "✅ ELF files remained unchanged"
fi
19 changes: 2 additions & 17 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: rust-cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
restore-keys: rust-1.81.0-
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Setup CI
uses: ./.github/actions/setup

- name: OP Sepolia cost estimator on recent block range
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
components: rustfmt

- name: Run rustfmt
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "contracts/lib/sp1-contracts"]
path = contracts/lib/sp1-contracts
url = https://github.com/succinctlabs/sp1-contracts
[submodule "contracts/lib/solady"]
path = contracts/lib/solady
url = https://github.com/vectorized/solady
Loading
Loading