Skip to content

Commit

Permalink
test(cli): eigenlayer deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
mempirate committed Nov 29, 2024
1 parent 85de226 commit efd83c9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bolt-cli/src/commands/operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ mod tests {

#[tokio::test]
async fn test_eigenlayer_flow() {
let _ = tracing_subscriber::fmt().try_init();
let mut rnd = rand::thread_rng();
let secret_key = B256::from(rnd.gen::<[u8; 32]>());
let wallet = PrivateKeySigner::from_bytes(&secret_key).expect("valid private key");
Expand Down Expand Up @@ -480,6 +481,28 @@ mod tests {
};

check_operator_registration.run().await.expect("to check operator registration");

let deregister_operator = OperatorsCommand {
subcommand: OperatorsSubcommand::EigenLayer {
subcommand: EigenLayerSubcommand::Deregister {
rpc_url: anvil_url.parse().expect("valid url"),
operator_private_key: secret_key,
},
},
};

deregister_operator.run().await.expect("to deregister operator");

let check_operator_registration = OperatorsCommand {
subcommand: OperatorsSubcommand::EigenLayer {
subcommand: EigenLayerSubcommand::Status {
rpc_url: anvil_url.parse().expect("valid url"),
address: account,
},
},
};

check_operator_registration.run().await.expect("to check operator registration");
}

/// Ignored since it requires Symbiotic CLI: https://docs.symbiotic.fi/guides/cli/#installation
Expand Down

0 comments on commit efd83c9

Please sign in to comment.