From 7aa292ef82f411aaf575bcd91ffe640ea12e997b Mon Sep 17 00:00:00 2001 From: TAMARA LIPOWSKI Date: Mon, 14 Jul 2025 11:24:05 -0400 Subject: [PATCH] chore: small polishings to example - Add note in readme that order will need to be encoded still - Fix log - Don't pass executors to builder --- examples/uniswapx-encoding-example/README.md | 3 +++ examples/uniswapx-encoding-example/main.rs | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/uniswapx-encoding-example/README.md b/examples/uniswapx-encoding-example/README.md index d139426..807e685 100644 --- a/examples/uniswapx-encoding-example/README.md +++ b/examples/uniswapx-encoding-example/README.md @@ -5,6 +5,9 @@ This guide enables you to: 1. Create a Solution object 2. Create callback data for executing a UniswapX Order +Note: This guide only encodes the callback data for you. You will still have to encode the call to the +`execute` method of the filler, which also includes the encoded UniswapX order. + ## How to run ```bash diff --git a/examples/uniswapx-encoding-example/main.rs b/examples/uniswapx-encoding-example/main.rs index d60d126..b2e2f5e 100644 --- a/examples/uniswapx-encoding-example/main.rs +++ b/examples/uniswapx-encoding-example/main.rs @@ -46,7 +46,6 @@ fn main() { let encoder = TychoRouterEncoderBuilder::new() .chain(tycho_common::models::Chain::Ethereum) .user_transfer_type(UserTransferType::TransferFrom) - .executors_file_path("config/test_executor_addresses.json".to_string()) .router_address(router_address.clone()) .build() .expect("Failed to build encoder"); @@ -163,7 +162,7 @@ fn main() { let hex_calldata = encode(&full_calldata); - println!(" ====== Simple swap WETH -> USDC ======"); + println!(" ====== Simple swap DAI -> USDT ======"); println!( "The following callback data should be sent to the filler contract, along with the \ encoded order and signature: {:?}",