Skip to content

Commit

Permalink
chore: change to atlantic proving service
Browse files Browse the repository at this point in the history
  • Loading branch information
byteZorvin committed Oct 15, 2024
1 parent e887c73 commit e0f8781
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ DATABASE_NAME="orchestrator"

##### PROVER #####

PROVER_SERVICE="sharp"
PROVER_SERVICE="atlantic"
SHARP_CUSTOMER_ID="sharp_consumer_id"
SHARP_URL="http://127.0.0.1:5000"
# [IMP!!!] These are test certificates (they don't work)
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,5 @@ utils = { path = "crates/utils" }
prover-client-interface = { path = "crates/prover-services/prover-client-interface" }
gps-fact-checker = { path = "crates/prover-services/gps-fact-checker" }
sharp-service = { path = "crates/prover-services/sharp-service" }
atlantic-service = { path = "crates/prover-services/atlantic-service" }
orchestrator = { path = "crates/orchestrator" }
1 change: 1 addition & 0 deletions crates/orchestrator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
settlement-client-interface = { workspace = true }
sharp-service = { workspace = true }
atlantic-service = { workspace = true }
starknet = { workspace = true }
starknet-core = "0.9.0"
starknet-os = { workspace = true }
Expand Down
2 changes: 2 additions & 0 deletions crates/orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::sync::Arc;
use alloy::primitives::Address;
#[cfg(feature = "testing")]
use alloy::providers::RootProvider;
use atlantic_service::AtlanticProverService;
use aws_config::meta::region::RegionProviderChain;
use aws_config::{Region, SdkConfig};
use aws_credential_types::Credentials;
Expand Down Expand Up @@ -225,6 +226,7 @@ pub async fn build_da_client(settings_provider: &impl Settings) -> Box<dyn DaCli
pub fn build_prover_service(settings_provider: &impl Settings) -> Box<dyn ProverClient> {
match get_env_var_or_panic("PROVER_SERVICE").as_str() {
"sharp" => Box::new(SharpProverService::new_with_settings(settings_provider)),
"atlantic" => Box::new(AtlanticProverService::new_with_settings(settings_provider)),
_ => panic!("Unsupported prover service"),
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/prover-services/atlantic-service/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod constants;
#[rstest]
async fn atlantic_client_submit_task_works() {
let _ = env_logger::try_init();
color_eyre::install().expect("Unable to isntall color_eyre");
color_eyre::install().expect("Unable to install color_eyre");
dotenvy::from_filename("../.env.test").expect("Failed to load the .env file");
let atlantic_service = AtlanticProverService::new_with_settings(&EnvSettingsProvider {});

Expand Down
2 changes: 2 additions & 0 deletions e2e-tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ struct Setup {
impl Setup {
/// Initialise a new setup
pub async fn new() -> Self {
color_eyre::install().expect("Unable to install color_eyre");

let mongo_db_instance = MongoDbServer::run().await;
println!("✅ Mongo DB setup completed");

Expand Down

0 comments on commit e0f8781

Please sign in to comment.