From efd83c99cea2a3252f5ef25a8b635043fc4227c6 Mon Sep 17 00:00:00 2001 From: Jonas Bostoen Date: Fri, 29 Nov 2024 14:54:22 +0100 Subject: [PATCH] test(cli): eigenlayer deregistration --- bolt-cli/src/commands/operators.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bolt-cli/src/commands/operators.rs b/bolt-cli/src/commands/operators.rs index a66e9d96..a2a84e66 100644 --- a/bolt-cli/src/commands/operators.rs +++ b/bolt-cli/src/commands/operators.rs @@ -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"); @@ -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