-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce skeletons for new components
Introduce the following new components: * fhevm-listener (renamed from listener) * gw-listener * zkproof-worker This commit only specifies their name and some of their configuration options.
- Loading branch information
1 parent
687ed14
commit 85f0aed
Showing
19 changed files
with
388 additions
and
994 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
fhevm-engine/listener/Cargo.toml → fhevm-engine/fhevm-listener/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "listener" | ||
name = "fhevm-listener" | ||
version = "0.0.1" | ||
edition = "2021" | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
fhevm-engine/listener/README.md → fhevm-engine/fhevm-listener/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "gw-listener" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
[dependencies] | ||
# workspace dependencies | ||
alloy = { workspace = true } | ||
clap = { workspace = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use alloy::primitives::Address; | ||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug, Clone)] | ||
#[command(version, about, long_about = None)] | ||
struct Args { | ||
#[arg(short, long)] | ||
database_url: Option<String>, | ||
|
||
#[arg(short, long, default_value = "16")] | ||
database_pool_size: u32, | ||
|
||
#[arg(short, long)] | ||
gw_url: String, | ||
|
||
#[arg(short, long)] | ||
zkpok_manager_address: Address, | ||
|
||
#[arg(short, long, default_value = "1")] | ||
error_sleep_initial_secs: u16, | ||
|
||
#[arg(short, long, default_value = "10")] | ||
error_sleep_max_secs: u16, | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: u64, right: u64) -> u64 { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "zkproof-worker" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
|
||
[dependencies] | ||
# workspace dependencies | ||
clap = { workspace = true } | ||
|
||
# crates.io dependencies | ||
|
||
|
||
# arch-specific dependencies | ||
[target.'cfg(target_arch = "x86_64")'.dependencies] | ||
tfhe = { workspace = true, features = ["x86_64-unix"] } | ||
[target.'cfg(target_arch = "aarch64")'.dependencies] | ||
tfhe = { workspace = true, features = ["aarch64-unix"] } | ||
|
||
[features] | ||
nightly-avx512 = ["tfhe/nightly-avx512"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug, Clone)] | ||
#[command(version, about, long_about = None)] | ||
struct Conf { | ||
#[arg(short, long)] | ||
database_url: Option<String>, | ||
|
||
#[arg(short, long, default_value = "10")] | ||
database_pool_size: u32, | ||
|
||
#[arg(short, long, default_value = "5")] | ||
database_polling_interval_secs: u16, | ||
|
||
#[arg(short, long, default_value = "verify_proof_resquests")] | ||
verify_proof_req_database_channel: String, | ||
|
||
#[arg(short, long, default_value = "16")] | ||
tokio_blocking_threads: usize, | ||
|
||
#[arg(short, long, default_value = "1")] | ||
error_sleep_initial_secs: u16, | ||
|
||
#[arg(short, long, default_value = "10")] | ||
error_sleep_max_secs: u16, | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: u64, right: u64) -> u64 { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |