Files
tycho-execution/examples/uniswapx-encoding-example
TAMARA LIPOWSKI 95c51247f7 fix: Replace smart pointer with regular pointer
Apparently was not necessary and was causing clippy warnings.

```
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
  --> src/encoding/models.rs:91:32
   |
91 |     pub protocol_state: Option<&'a Box<dyn ProtocolSim>>,
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a dyn ProtocolSim`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
   = note: `#[warn(clippy::borrowed_box)]` on by default
   ```
2025-07-22 12:18:54 -04:00
..
2025-07-14 11:24:05 -04:00

UniswapX Encoding Example

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

cargo run --release --example uniswapx-encoding-example