Skip to content

Commit

Permalink
Challenger new architecture + migration to alloy-rs lib.
Browse files Browse the repository at this point in the history
feat: Improve architecture, logging and challenge validation

- Major architectural improvements including alloy-rs draft
- Implemented challenge period with initialization logs
- Refactored anvil and scribe creation into separate modules
- Added successful stability test with 100 scribe instances
- Enhanced logging system and eliminated unsafe unwraps
- Set up Anvil installation in GitHub Actions pipeline
- Fixed Prometheus metrics and optimized challenge validation logic

Test Coverage:
- Verified stable operation with 100 concurrent scribe instances
- Validated challenge period functionality
- Confirmed Prometheus metrics accuracy

Co-authored-by: Max Wickham <[email protected]>
  • Loading branch information
konstantinzolotarev and max-wickham authored Nov 23, 2024
1 parent 2de8136 commit 0b2ca38
Show file tree
Hide file tree
Showing 18 changed files with 8,051 additions and 3,422 deletions.
101 changes: 59 additions & 42 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,68 @@
name: test

on:
push:
branches:
- main
- master
pull_request:
push:
branches:
- main
- master
pull_request:

env:
CARGO_TERM_COLOR: always
CARGO_TERM_COLOR: always

jobs:
test:
name: tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo test --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings
test:
name: tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: curl -L https://foundry.paradigm.xyz | bash
- run: /home/runner/.config/.foundry/bin/foundryup
- run: ls -l /home/runner/.config/.foundry/bin
# - run: /home/runner/.config/.foundry/bin/anvil --help
- run: /home/runner/.config/.foundry/bin/anvil --help
- run: cargo test --workspace --all-targets --all-features
env:
ANVIL_BIN: /home/runner/.config/.foundry/bin/anvil
RUSTFLAGS: -Dwarnings

clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
env:
RUSTFLAGS: -Dwarnings

fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check

typos-check:
name: TyposCheck
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
with:
config: ./typos.toml
isolated: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
.DS_Store
.vscode
.idea
.idea
LOCAL.md
Loading

0 comments on commit 0b2ca38

Please sign in to comment.