diff --git a/bin/roundtrip.rs b/bin/roundtrip.rs index 0676ef6..91032eb 100644 --- a/bin/roundtrip.rs +++ b/bin/roundtrip.rs @@ -40,7 +40,7 @@ async fn main() -> eyre::Result<()> { let provider = connect_provider(signer.clone(), config.ru_rpc_url.clone()).await?; info!(signer_address = %signer.address(), "Connected to Signer and Provider"); - // create an example order swapping 1 rollup USDC for 1 host USDC + // create an example order let example_order = get_example_order(&config, signer.address(), args.rollup); // sign & send the order to the transaction cache @@ -53,7 +53,7 @@ async fn main() -> eyre::Result<()> { // fill the order from the transaction cache fill_orders(&signed, signer, provider, config).await?; - info!("Order filled successfully"); + info!("Bundle sent to tx cache successfully; wait for bundle to mine."); Ok(()) } @@ -101,7 +101,10 @@ async fn send_order( let send_order = SendOrder::new(signer.clone(), config.constants.clone())?; // sign the order, return it back for comparison - let signed = order.sign(signer).await?; + let signed = order + .with_chain(config.constants.system()) + .sign(signer) + .await?; // send the signed order to the transaction cache send_order.send_order(signed.clone()).await?; diff --git a/bin/submit_order.rs b/bin/submit_order.rs index b0e5181..9ce7831 100644 --- a/bin/submit_order.rs +++ b/bin/submit_order.rs @@ -103,7 +103,10 @@ async fn send_order( let send_order = SendOrder::new(signer.clone(), config.constants.clone())?; // sign the order, return it back for comparison - let signed = order.sign(signer).await?; + let signed = order + .with_chain(config.constants.system()) + .sign(signer) + .await?; tracing::Span::current().record("signed_order_signature", signed.order_hash().to_string()); debug!(?signed, "Signed order contents"); @@ -139,7 +142,7 @@ async fn fill_orders( // fill each individually filler.fill_individually(orders.as_slice()).await?; - info!("Order filled successfully"); + info!("Bundle sent to tx cache successfully; wait for bundle to mine."); Ok(()) } diff --git a/src/filler.rs b/src/filler.rs index 9114adc..b33d820 100644 --- a/src/filler.rs +++ b/src/filler.rs @@ -283,6 +283,10 @@ where // encode it let encoded = filled.encoded_2718(); + info!( + tx_hash = filled.hash().to_string(), + "Rollup transaction signed and encoded" + ); // add to array encoded_txs.push(Bytes::from(encoded));