Skip to content

Commit

Permalink
add info logs
Browse files Browse the repository at this point in the history
  • Loading branch information
supernovahs committed Dec 3, 2024
1 parent 109ea7e commit 07bb9aa
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions bin/incredible-squaring-avs/src/commands/avs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use std::net::SocketAddr;
use std::process::{Command, Stdio};
use std::str::FromStr;
use std::time::{SystemTime, UNIX_EPOCH};
use tracing::debug;
use tracing::{debug, info};

/// No Additional arguments
#[derive(Debug, Clone, Copy, Default, Args)]
Expand Down Expand Up @@ -462,6 +462,7 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
config.erc20_mock_strategy_addr()?,
)
.await?;
info!(tx_hash = %new_operator_set_tx_hash,"new operator set created tx_hash");
if register_operator {
let _ = register_operator_with_el_and_avs(
config.operator_pvt_key(),
Expand Down Expand Up @@ -505,7 +506,7 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
)
.await;

let modify_allocation_tx_hash = modify_allocation_for_operator(
let modify_allocation_for_operator1_tx_hash = modify_allocation_for_operator(
allocation_manager_address_anvil,
config.operator_pvt_key(),
ecdsa_keystore_path.clone(),
Expand All @@ -516,7 +517,10 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
vec![0],
)
.await?;
let modify_allocation_tx_hash = modify_allocation_for_operator(

info!(tx_hash = %modify_allocation_for_operator1_tx_hash,strategy_address = %erc20_mock_strategy_address,"allocation by operator1 for strategy");

let modify_allocation_for_operator2_tx_hash = modify_allocation_for_operator(
allocation_manager_address_anvil,
config.operator_2_pvt_key(),
ecdsa_keystore_2_path.clone(),
Expand All @@ -527,6 +531,7 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
vec![0],
)
.await?;
info!(tx_hash = %modify_allocation_for_operator2_tx_hash,strategy_address = %erc20_mock_strategy_address,"allocation by operator2 for strategy");

let register_for_operator_sets_by_operator1_txhash = register_for_operator_sets(
allocation_manager_address_anvil,
Expand All @@ -538,6 +543,8 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
)
.await?;

info!(tx_hash = %register_for_operator_sets_by_operator1_txhash,"register for operator sets by operator1");

let register_for_operator_sets_by_operator2_txhash = register_for_operator_sets(
allocation_manager_address_anvil,
config.operator_2_pvt_key(),
Expand All @@ -548,6 +555,8 @@ impl<Ext: clap::Args + fmt::Debug + Send + Sync + 'static> AvsCommand<Ext> {
)
.await?;

info!(tx_hash = %register_for_operator_sets_by_operator2_txhash,"register for operator sets by operator2");

let current_block_number = get_provider(&rpc_url).get_block_number().await?;

fn mine_anvil_block(rpc_url: &str, blocks: u64) {
Expand Down

0 comments on commit 07bb9aa

Please sign in to comment.