-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(workspace): extracting crates and modifying project structure (
#137) * refactor(common): extract keys to own module * refactor(prism): moving node_types/sequencer to own crate * refactor(prism): extract node_types/lightclient into own crate * restructuring * refactor(prism): renaming prism-main to bin * refactor(sequencer): renaming sequencer to prover * fix(prover): sync loop * fix(justfile): sp1 build dir
- Loading branch information
1 parent
1f81adb
commit 787bbaf
Showing
77 changed files
with
785 additions
and
832 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,2 @@ | ||
pub mod cfg; | ||
pub mod node_types; |
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,23 @@ | ||
use anyhow::Result; | ||
use async_trait::async_trait; | ||
use std::{self, sync::Arc}; | ||
|
||
#[async_trait] | ||
pub trait NodeType { | ||
async fn start(self: Arc<Self>) -> Result<()>; | ||
// async fn stop(&self) -> Result<(), String>; | ||
} | ||
|
||
#[async_trait] | ||
impl NodeType for prism_prover::Prover { | ||
async fn start(self: Arc<Self>) -> Result<()> { | ||
self.run().await | ||
} | ||
} | ||
|
||
#[async_trait] | ||
impl NodeType for prism_lightclient::LightClient { | ||
async fn start(self: Arc<Self>) -> Result<()> { | ||
self.run().await | ||
} | ||
} |
Oops, something went wrong.