Commit Graph

735 Commits

Author SHA1 Message Date
semantic-release-bot
2241c50df1 chore(release): 0.49.0 [skip ci]
## [0.49.0](https://github.com/propeller-heads/tycho-execution/compare/0.48.1...0.49.0) (2025-02-21)

### Features

* Use openzepplin's sendValue instead of send for ETH transfers ([0ba5d02](0ba5d02268))
2025-02-21 17:56:12 +00:00
dianacarvalho1
53a231f280 Merge pull request #79 from propeller-heads/router/dc/ENG-4260-improve-receive
fix: Miscellaneous small changes
2025-02-21 17:54:12 +00:00
Diana Carvalho
0ba5d02268 feat: Use openzepplin's sendValue instead of send for ETH transfers
--- don't change below this line ---
ENG-4260 Took 7 minutes
2025-02-21 17:07:46 +00:00
Diana Carvalho
530c86dbf3 chore: Remove LICENSE
We are working on a special license format for tycho-execution. For now we can't have any license

--- don't change below this line ---
ENG-4260 Took 51 seconds


Took 31 minutes

Took 59 seconds
2025-02-21 17:07:46 +00:00
Harsh Vardhan Roy
562aad6992 Merge pull request #75 from propeller-heads/encoder/hr/ENG-4245-strategy-swap-encoder-docs
docs: add docs for TychoEncoder, StrategyEncoder and SwapEncoder traits
2025-02-21 20:25:36 +05:30
Harsh Vardhan Roy
38110d0f5f Merge branch 'main' into encoder/hr/ENG-4245-strategy-swap-encoder-docs 2025-02-21 20:23:48 +05:30
semantic-release-bot
ec423290d2 chore(release): 0.48.1 [skip ci]
## [0.48.1](https://github.com/propeller-heads/tycho-execution/compare/0.48.0...0.48.1) (2025-02-21)

### Bug Fixes

* Native ETH input/output integration tests/fixes ([a7aa4d7](a7aa4d7ebb))
2025-02-21 14:52:13 +00:00
Harsh Vardhan Roy
63ce121cf9 Merge branch 'main' into encoder/hr/ENG-4245-strategy-swap-encoder-docs 2025-02-21 20:20:26 +05:30
Tamara
9778f935c4 Merge pull request #78 from propeller-heads/encoding/tnl/ENG-4259-native-eth-integration
fix: Native ETH input/output integration tests/fixes
2025-02-21 09:50:22 -05:00
TAMARA LIPOWSKI
023ae9c1ea chore: merge main 2025-02-21 09:48:22 -05:00
TAMARA LIPOWSKI
c42421718b docs: Fix typos in code comments 2025-02-21 09:44:21 -05:00
semantic-release-bot
be1e679e51 chore(release): 0.48.0 [skip ci]
## [0.48.0](https://github.com/propeller-heads/tycho-execution/compare/0.47.0...0.48.0) (2025-02-21)

### Features

* Adapt SplitSwapStrategyEncoder to have optional permit2 logic ([20e6419](20e6419a20))
* Implement Clone for EVMTychoEncoder ([8b2af4f](8b2af4f577))
* Update tycho-core ([c6c734d](c6c734d494))
2025-02-21 09:43:43 +00:00
dianacarvalho1
ac561e5953 Merge pull request #77 from propeller-heads/encoding/dc/ENG-4255-no-permit2
feat: Adapt SplitSwapStrategyEncoder to have optional permit2 logic
2025-02-21 09:40:54 +00:00
TAMARA LIPOWSKI
a7aa4d7ebb fix: Native ETH input/output integration tests/fixes
- Only for single swaps
- Used USV4 for this because it's the only DEX we support that allows native ETH swaps
- For Native ETH input single swaps, we need to properly check the remaining amount (we were treating them wronly like ERC20 tokens)
- For Native ETH output single swaps, we were passing the incorrect currency (the settle always needs to be the out token and the take always needs to be the in token, this should not depend on the zeroForOne value).
2025-02-21 00:23:24 -05:00
Diana Carvalho
918bc27e39 chore: Don't call Chain TychoCoreChain unnecessarily
--- don't change below this line ---
ENG-4255 Took 2 minutes
2025-02-20 18:31:28 +00:00
Diana Carvalho
8b2af4f577 feat: Implement Clone for EVMTychoEncoder
--- don't change below this line ---
ENG-4255 Took 6 minutes
2025-02-20 18:29:14 +00:00
Diana Carvalho
c6c734d494 feat: Update tycho-core
--- don't change below this line ---
ENG-4255 Took 7 minutes
2025-02-20 18:29:14 +00:00
Diana Carvalho
20e6419a20 feat: Adapt SplitSwapStrategyEncoder to have optional permit2 logic
- If the signer_pk is not passed -> use the swap method that expects the tokens to be already in the Router
- If it is passed -> compute permit2 and use swap method that does the token in transfer
- Extend builder to have another shortcut
- Add integration test with contract
- Update bin (and simplified it) and quickstart

--- don't change below this line ---
ENG-4255 Took 1 hour 51 minutes

Took 2 minutes

Took 7 seconds
2025-02-20 18:29:11 +00:00
royvardhan
4b20a1164b docs: add docs for TychoEncoder, StrategyEncoder and SwapEncoder traits 2025-02-20 23:40:53 +05:30
semantic-release-bot
30a7d5bbe4 chore(release): 0.47.0 [skip ci]
## [0.47.0](https://github.com/propeller-heads/tycho-execution/compare/0.46.1...0.47.0) (2025-02-20)

### Features

* Don't encode min amount for USV4 ([d65d575](d65d575003))
* UniswapV4 integration test and fixes ([45fdfc7](45fdfc708d))

### Bug Fixes

* Pass proper group tokens in EncodingContext... ([81c8a04](81c8a04cbb))
2025-02-20 17:39:03 +00:00
Tamara
f615844480 Merge pull request #73 from propeller-heads/router/tnl/ENG-4253-usv4-integration
feat: UniswapV4 integration test and fixes
2025-02-20 12:36:46 -05:00
Tamara
cae05e837e Merge branch 'main' into router/tnl/ENG-4253-usv4-integration 2025-02-20 12:34:47 -05:00
TAMARA LIPOWSKI
2c92596681 chore: merge main 2025-02-20 12:33:59 -05:00
semantic-release-bot
aae95ec4bd chore(release): 0.46.1 [skip ci]
## [0.46.1](https://github.com/propeller-heads/tycho-execution/compare/0.46.0...0.46.1) (2025-02-20)
2025-02-20 17:31:23 +00:00
Harsh Vardhan Roy
2d10dcf4b9 Merge pull request #76 from propeller-heads/encoder/hr/ENG-4257-switch-to-models-chain 2025-02-20 22:59:24 +05:30
TAMARA LIPOWSKI
67ce2f71de Merge remote-tracking branch 'origin/router/tnl/ENG-4253-usv4-integration' into router/tnl/ENG-4253-usv4-integration 2025-02-20 12:26:47 -05:00
TAMARA LIPOWSKI
447195a4a8 test: fix test after latest changes 2025-02-20 12:26:17 -05:00
Tamara
be21d10a41 Merge branch 'main' into router/tnl/ENG-4253-usv4-integration 2025-02-20 12:16:07 -05:00
TAMARA LIPOWSKI
d65d575003 feat: Don't encode min amount for USV4
We aren't checking min amount for any other executor. This would be overkill (since we are already checking in the main router) and also inconsistent.
2025-02-20 12:15:40 -05:00
royvardhan
29bc662ba9 refactor: use chain and protocol component from tycho_core::models 2025-02-20 22:36:50 +05:30
TAMARA LIPOWSKI
9eda00cbb6 chore: PR comments 2025-02-20 11:51:08 -05:00
TAMARA LIPOWSKI
bb8778b2bf chore: merge main 2025-02-20 11:45:18 -05:00
semantic-release-bot
9693856dca chore(release): 0.46.0 [skip ci]
## [0.46.0](https://github.com/propeller-heads/tycho-execution/compare/0.45.0...0.46.0) (2025-02-20)

### Features

* add native and weth addresses for supported networks ([83f1955](83f1955094))

### Bug Fixes

* add decode_hex to models ([7dd59db](7dd59dbe34))
2025-02-20 16:40:55 +00:00
Harsh Vardhan Roy
7e87aa6fef Merge pull request #74 from propeller-heads/encoder/hr/ENG-4247-support-multichain 2025-02-20 22:08:58 +05:30
royvardhan
7dd59dbe34 fix: add decode_hex to models 2025-02-20 21:54:33 +05:30
royvardhan
dc38f108c3 refactor: simplify chain object and move decode_hex to utils 2025-02-20 21:54:33 +05:30
royvardhan
83f1955094 feat: add native and weth addresses for supported networks 2025-02-20 21:54:33 +05:30
semantic-release-bot
a5624be0e7 chore(release): 0.45.0 [skip ci]
## [0.45.0](https://github.com/propeller-heads/tycho-execution/compare/0.44.0...0.45.0) (2025-02-20)

### Features

* TychoRouter swap method not requiring Permit2 ([c3482a5](c3482a509a))
2025-02-20 15:55:14 +00:00
Tamara
8783d72a3f Merge pull request #72 from propeller-heads/router/tnl/ENG-4254-non-permit2-methods
feat: TychoRouter swap method not requiring Permit2
2025-02-20 10:52:40 -05:00
TAMARA LIPOWSKI
2d267792f3 docs: Fixed outdated comments
Some copypastas, some other improvements.
2025-02-20 10:46:27 -05:00
TAMARA LIPOWSKI
45fdfc708d feat: UniswapV4 integration test and fixes
- Biggest issue: We must encode the executor address, not the router address, in the USV4 swap encoder
2025-02-19 18:12:11 -05:00
TAMARA LIPOWSKI
81c8a04cbb fix: Pass proper group tokens in EncodingContext...
Also:
- Remove amount_out_min. Our reasoning is that we perform high-level final amount checks anyway (and expect users to do the same). Lower-level USV4 min amount checks are redundant.
2025-02-19 16:27:56 -05:00
Tamara
8a8d15477c Merge branch 'main' into router/tnl/ENG-4254-non-permit2-methods 2025-02-19 16:16:45 -05:00
TAMARA LIPOWSKI
c3482a509a feat: TychoRouter swap method not requiring Permit2
- Assume the tokens have been transferred into our router beforehand.
2025-02-19 16:15:57 -05:00
semantic-release-bot
2d655b27fe chore(release): 0.44.0 [skip ci]
## [0.44.0](https://github.com/propeller-heads/tycho-execution/compare/0.43.0...0.44.0) (2025-02-19)

### Features

* add integration test for complex swaps ([5e9b388](5e9b38876e))
* add new attributes in encoding context, update usv4 swap encoder and tests ([1bfe656](1bfe656e6b))
* add single swap integration test for usv4 executor ([529456f](529456f40c))
* add usv4 swap encoder with single swap test ([789416b](789416b2cd))
* add util fns, change callback_selector to string, update first_swap check ([9219dd3](9219dd329d))
* early return in usv4 swap encoder for second swap, add utils ([f7ddace](f7ddace559))
* update test_encode_uniswap_v4_grouped ([baeebb9](baeebb9fe4))

### Bug Fixes

* update EncodingContext in strategy_encoder ([7f3aca9](7f3aca90ba))
2025-02-19 20:29:23 +00:00
Tamara
1c56431690 Merge pull request #69 from propeller-heads/router/hr/ENG-4239-usv4-swap-encoder
feat: usv4 swap encoder
2025-02-19 15:27:24 -05:00
Harsh Vardhan Roy
6c4bb376fd Merge branch 'main' into router/hr/ENG-4239-usv4-swap-encoder 2025-02-20 00:07:43 +05:30
royvardhan
c472cda697 refactor: make group tokens and amount out min non optional 2025-02-20 00:05:47 +05:30
royvardhan
e2a2aaaad1 refactor: usv4 swap encoder test, encoder 2025-02-19 23:59:27 +05:30
royvardhan
1e9b411ca5 chore: rm redundant pool params encoder fn 2025-02-19 23:07:26 +05:30