pedrobergamini
30a5bd0585
chore: fix single encoding issue
2025-08-10 16:58:12 -03:00
pedrobergamini
712d863368
chore: cleanup tech debt from Bebop tests and the execution harness
2025-08-08 12:28:24 -03:00
pedrobergamini
a76c35d95e
chore: resolve merge conflicts
2025-08-08 11:41:00 -03:00
pedrobergamini
196900b749
chore: update encoder
2025-08-08 11:35:34 -03:00
Diana Carvalho
003ab7cea8
fix: After merging main fixes
...
Took 10 minutes
2025-08-08 14:54:40 +01:00
Diana Carvalho
42609df650
Merge branch 'refs/heads/main' into feat/bebop-rfq-encoder-and-executor
...
# Conflicts:
# config/executor_addresses.json
# foundry/scripts/deploy-executors.js
# foundry/test/TychoRouterSequentialSwap.t.sol
# foundry/test/assets/calldata.txt
# src/encoding/models.rs
# tests/common/mod.rs
Took 21 minutes
2025-08-08 14:40:03 +01:00
Diana Carvalho
c42a5dae6a
fix: Encode sequential swaps with unwrapping WETH correctly
...
Took 24 minutes
Took 1 minute
Took 24 seconds
2025-08-06 18:02:24 +01:00
pedrobergamini
2583e9239e
chore: fix extract_aggregate_taker_amount and bebop unit tests
2025-08-05 22:44:32 -03:00
pedrobergamini
504a4db702
chore: include partialFillOffset as part of user_data
2025-08-05 20:32:42 -03:00
pedrobergamini
c0f675ff21
chore: fix selectors at encoder
2025-08-04 18:12:04 -03:00
pedrobergamini
75ef134e73
chore: add filter / map loop for taker_amount calculation
2025-08-04 14:00:04 -03:00
pedrobergamini
fe5f72e278
chore: update swap_encoders.rs
2025-08-04 10:31:15 -03:00
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
TAMARA LIPOWSKI
c217702560
feat: Add protocol state to Swap object
...
- This consists of lots of necessary battles with lifetimes.
2025-07-22 12:13:39 -04:00
Diana Carvalho
2c25b5a18f
feat: Use Chain from tycho-core and remove current implementation
...
--- don't change below this line ---
ENG-4705 Took 29 minutes
2025-07-10 17:20:53 +01:00
Diana Carvalho
0f679d6e06
fix: Use native token curve address and not regular zero address
...
Took 18 minutes
Took 1 minute
2025-06-27 17:59:37 +01:00
Diana Carvalho
312269dabb
fix: Fix wrong log in CurveEncoder
...
Took 5 minutes
2025-06-27 09:39:13 +01:00
Diana Carvalho
01ab5d22b1
fix: Move Bebop tests according to new setup
...
Encoding: integration tests are now separate and inside their own test folder
Execution: the final integration test should be inside of the protocol test file now and not in TychoRouterProtocolIntegration.t.sol. For this I had to move the BebopExecutionHarness.t.sol outside of the Bebop test file (because of imports)
Took 24 minutes
# Commit time for manual adjustment:
# Took 2 minutes
2025-06-24 10:42:09 +01:00
Diana Carvalho
f1281eb703
Merge branch 'refs/heads/main' into feat/bebop-rfq-encoder-and-executor
...
# Conflicts:
# foundry/test/TychoRouterProtocolIntegration.t.sol
# foundry/test/TychoRouterTestSetup.sol
# foundry/test/assets/calldata.txt
# foundry/test/protocols/BebopExecutor.t.sol
# src/encoding/evm/tycho_encoders.rs
Took 4 minutes
2025-06-24 10:17:33 +01:00
pedrobergamini
dcf992a25e
chore: update calldata generation for testSingleBebopIntegration
2025-06-23 14:39:13 -03:00
Diana Carvalho
1d263f8b4c
fix: After rebase fixes
...
Took 6 minutes
2025-06-23 15:02:21 +01:00
Diana Carvalho
e09789f347
test: Refactor tests
...
- Move encoding integration tests to integration test folder (in the rust project)
- Move protocol integration tests be inside the protocol file. This way we can change the block without any problems and it is easier for integrators
Took 6 minutes
Took 6 minutes
Took 17 minutes
2025-06-23 15:02:20 +01:00
greendianasaur
7dc5099927
Merge branch 'main' into cleanup/dc/ENG-4619-remove-unnecessary-clones
2025-06-23 14:18:35 +01:00
Diana Carvalho
e704151404
fix: Remove unnecessary clones from encoding
...
Use references if possible
Took 3 minutes
2025-06-23 12:54:09 +01:00
Diana Carvalho
525c16a117
feat(curve): Support passing eth/weth instead of weth/eth in encoding
...
Took 2 minutes
2025-06-23 12:44:53 +01:00
pedrobergamini
638ab73ea8
chore: fix cargo linting
2025-06-17 23:29:42 -03:00
pedrobergamini
90ac0a4c98
test: fix all aggregate order tests and a few executor bugs
2025-06-17 23:27:03 -03:00
pedrobergamini
5b8de033de
test: update encoder tests for aggregate orders
2025-06-17 21:39:47 -03:00
pedrobergamini
5418846619
chore: refactor Aggregate orders, fix Single orders integration tests and calldata generation
2025-06-16 23:08:54 -03:00
pedrobergamini
84fbe0ded6
refactor: update Rust encoding to remove Multi order type
2025-06-16 15:32:42 -03:00
Diana Carvalho
a6cf2159d0
fix: Correct misleading error message
...
Took 3 minutes
2025-06-13 16:33:42 +01:00
Diana Carvalho
95994250b1
fix: When choosing strategy, check if the grouped solution has any split
...
This came from a reported bug where the single strategy was being chosen for a solution on a groupable protocol (univ4) but the solution was composed of 2 splits only. Like a trade from WETH to USDC through two different univ4 pools
Took 47 minutes
Took 15 seconds
2025-06-13 09:52:06 +01:00
pedrobergamini
8a82dbfe34
chore: test multi and aggregate orders, support all signature types available
2025-06-08 02:58:52 -03:00
pedrobergamini
0106c5c425
chore: move BebopOrderType to models.rs
2025-06-08 01:01:51 -03:00
pedrobergamini
71a8401670
chore: address merge conflicts, implement user_data for Bebop
2025-06-08 00:36:23 -03:00
pedrobergamini
68d4d083c3
test: add uniswap v3 => bebop sequential swap
2025-06-07 18:36:01 -03:00
pedrobergamini
2124b49a68
test: bebop single encoding integration test
2025-06-07 17:46:08 -03:00
pedrobergamini
5282e2bc83
chore: fix breaking tests and start addressing PR review comments
2025-06-06 19:17:08 -03:00
Diana Carvalho
c03df8aa1e
feat: Add balancer v3 to transfer optimization constants
...
Also added a getForkBlock() on TychoRouterTestSetup.
Moved the router balancer test inside the Balancer file and created a TychoRouterForBalancerV3Test to wrap it
Took 1 hour 10 minutes
Took 21 seconds
2025-06-06 10:41:35 +01:00
Diana Carvalho
06ce28c8fd
feat: Add BalancerV3Encoder
...
Took 1 hour 7 minutes
Took 2 minutes
2025-06-05 17:22:16 +01:00
Diana Carvalho
eec50f8822
feat: Extend Swap to hold user_data: Option<Bytes>
...
Took 25 minutes
2025-06-05 15:47:40 +01:00
pedrobergamini
17e535494b
fix: cargo and forge fmt
2025-06-04 19:57:40 -03:00
pedrobergamini
ad0a9991da
feat: support multi and aggregate orders
2025-06-04 19:41:13 -03:00
pedrobergamini
7e7e3f0e01
feat: implement encoder and executor with single order support
2025-06-04 17:57:09 -03:00
Diana Carvalho
5fa97d08e5
feat: Upgrade alloy to "1.0.6"
...
Took 18 minutes
2025-05-30 11:55:44 +01:00
Diana Carvalho
92d36b9f48
fix: Move encode_input back into encoding_utils.rs
...
We don't want the user to be able to use it outside the crate
Took 16 minutes
2025-05-27 12:12:47 +01:00
Diana Carvalho
73c1a2db6a
chore: Rename selector to function signature
...
Took 8 minutes
2025-05-27 09:37:24 +01:00
Diana Carvalho
5ddd2a9cd7
fix: Make functions in encoding_utils.rs private
...
They shouldn't be used outside the crate by the users. They should reimplement this functions themselves.
Move encode_input to utils.rs
Took 8 minutes
2025-05-26 17:16:35 +01:00
Diana Carvalho
4f85e3e88e
chore: Move tests from strategy_encoders to tycho_encoders
...
Most of these tests were actually integration tests, so they should be in the outer level of the package.
Took 1 hour 5 minutes
2025-05-26 17:08:44 +01:00
Diana Carvalho
d12e3d3b5f
fix: Bring back swapper_pk for backwards compatibility
...
Took 16 minutes
2025-05-26 12:50:11 +01:00