Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Jan 29, 2024
0 parents commit 345b3fb
Show file tree
Hide file tree
Showing 18 changed files with 113 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

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

jobs:
clippy and fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run clippy for native
run: cargo clippy --all --all-targets -- -D warnings
- name: Run fmt
run: cargo fmt -- --check

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run tests
run: cargo test --all --all-targets -- --nocapture
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
27 changes: 27 additions & 0 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[workspace]
resolver = "2"
members = ["crates/decoder", "crates/evaluator", "crates/event-watcher", "crates/fetcher", "crates/task-generator", "crates/types"]

[workspace.dependencies]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Herodotus Data Processor (HDP)

## Main Workflow in `main.rs`

- **`EventWatcher`**: Scrapes events from `HreExecutionStore.sol`.
- **`Decoder`**: Decodes events into `Datalake` and `Task` .
- **`Task Generator`**: Inputs a datalake and task, outputs multiple tasks and proof requests.
- **`Fetcher`**: Retrieves proofs for the generated tasks.
- **`Evaluator`**: Processes tasks with their proofs and evaluates results.
- **Post-Processing**: Sends the evaluation root to Cairo HDP.
6 changes: 6 additions & 0 deletions crates/decoder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "decoder"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/decoder/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions crates/evaluator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "evaluator"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/evaluator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions crates/event-watcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "event-watcher"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/event-watcher/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions crates/fetcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "fetcher"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/fetcher/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions crates/task-generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "task-generator"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/task-generator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 6 additions & 0 deletions crates/types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "types"
version = "0.1.0"
edition = "2021"

[dependencies]
1 change: 1 addition & 0 deletions crates/types/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, hdp!");
}

0 comments on commit 345b3fb

Please sign in to comment.