Skip to content

Commit

Permalink
going to merge in Evans work
Browse files Browse the repository at this point in the history
  • Loading branch information
coachchucksol committed Nov 13, 2024
1 parent a4f17b6 commit 7c2d632
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions integration_tests/tests/fixtures/test_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ impl TestBuilder {
)
}

pub async fn setup_ncn(&mut self) -> TestResult<NcnRoot> {
let mut restaking_program_client = self.restaking_program_client();

restaking_program_client.do_initialize_config().await?;
let ncn_root = restaking_program_client.do_initialize_ncn().await?;

Ok(ncn_root)
}

pub async fn transfer(&mut self, to: &Pubkey, sol: f64) -> Result<(), BanksClientError> {
let blockhash = self.context.banks_client.get_latest_blockhash().await?;
self.context
Expand All @@ -131,6 +122,19 @@ impl TestBuilder {
.await
}

pub async fn setup_ncn(&mut self) -> TestResult<NcnRoot> {
let mut restaking_program_client = self.restaking_program_client();

restaking_program_client.do_initialize_config().await?;
let ncn_root = restaking_program_client.do_initialize_ncn().await?;

Ok(ncn_root)
}

pub async fn add_vault_to_ncn(&mut self, ncn_root: &NcnRoot) {
//TODO start here
}

/// Configures a vault with an NCN and operators fully configured
pub async fn setup_vault_with_ncn_and_operators(
&mut self,
Expand Down

0 comments on commit 7c2d632

Please sign in to comment.