Skip to content

Commit

Permalink
Merge pull request #2 from bobanetwork/beta-v1.0.0
Browse files Browse the repository at this point in the history
Beta v1.0.0
  • Loading branch information
boyuan-chen authored Dec 12, 2024
2 parents 0bedb9c + 437a150 commit c6a5929
Show file tree
Hide file tree
Showing 117 changed files with 8,571 additions and 2,778 deletions.
40 changes: 0 additions & 40 deletions .env.example

This file was deleted.

2 changes: 0 additions & 2 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ runs:
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
~/.rustup/
key: rust-1.79.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.79.0-

Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/cost-estimator-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Cost Estimator (1000 blocks)

on:
workflow_dispatch:
inputs: {}
schedule:
- cron: '0 0 * * *' # Run the workflow every day at midnight UTC.

jobs:
daily-cost-estimator:
runs-on:
- runs-on
- cpu=32
- ram=128
- family=m7a+m7i-flex
- image=ubuntu22-full-x64
- run-id=${{ github.run_id }}
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: Run cost estimator
run: |
RUST_LOG=info cargo run --bin cost-estimator --release -- --batch-size 30 --default-range 1000
env:
L2_NODE_RPC: ${{ secrets.L2_NODE_RPC }}
L1_RPC: ${{ secrets.L1_RPC }}
L1_BEACON_RPC: ${{ secrets.L1_BEACON_RPC }}
L2_RPC: ${{ secrets.L2_RPC }}

- name: Upload execution reports
uses: actions/upload-artifact@v4
with:
name: execution-reports
path: execution-reports/
61 changes: 61 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Integration Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
integration-tests:
runs-on:
- runs-on
- cpu=16
- ram=64
- family=m7a+m7i-flex
- image=ubuntu22-full-x64
- run-id=${{ github.run_id }}
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: OP Sepolia cost estimator on recent block range
run: |
RUST_LOG=info cargo run --bin cost-estimator --release -- --rolling
env:
L2_NODE_RPC: ${{ secrets.L2_NODE_RPC }}
L1_RPC: ${{ secrets.L1_RPC }}
L1_BEACON_RPC: ${{ secrets.L1_BEACON_RPC }}
L2_RPC: ${{ secrets.L2_RPC }}

- name: Run multi script
run: |
cargo test --test "multi" --release
env:
L2_NODE_RPC: ${{ secrets.L2_NODE_RPC }}
L1_RPC: ${{ secrets.L1_RPC }}
L1_BEACON_RPC: ${{ secrets.L1_BEACON_RPC }}
L2_RPC: ${{ secrets.L2_RPC }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
POST_TO_GITHUB: ${{ github.event_name == 'pull_request' }}
6 changes: 4 additions & 2 deletions .github/workflows/op_proposer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
branches:
- main
paths:
- 'proposer/**', 'elf/**'
- 'proposer/**'
- 'elf/**'
push:
branches:
- main
paths:
- 'proposer/**', 'elf/**'
- 'proposer/**'
- 'elf/**'

jobs:
test_op_proposer_go:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "crates/**"
- "programs/**"
- "scripts/**"
- "utils/**"
- "proposer/succinct/**"
- "Cargo.toml"
merge_group:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
branches:
- main
- "**"
push:
branches:
- main
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ data

# Execution Report
execution-reports/
block-data/

# Rollup Config
**/rollup-config.json
Expand All @@ -36,3 +37,10 @@ stdins
**/bin/op-proposer

artifact_*

*.egg-info/

sp1-testing-suite-artifacts/

# Contracts
contracts/opsuccinctl2ooconfig.json
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[submodule "contracts/lib/optimism"]
path = contracts/lib/optimism
url = https://github.com/ethereum-optimism/optimism
[submodule "contracts/lib/sp1-contracts"]
path = contracts/lib/sp1-contracts
url = https://github.com/zobront/sp1-contracts
[submodule "contracts/lib/openzeppelin-contracts"]
path = contracts/lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "contracts/lib/sp1-contracts"]
path = contracts/lib/sp1-contracts
url = https://github.com/succinctlabs/sp1-contracts
Loading

0 comments on commit c6a5929

Please sign in to comment.