TAMARA LIPOWSKI
9adbab498c
chore: merge main
2025-02-06 11:49:17 -05:00
semantic-release-bot
54ef671683
chore(release): 0.33.0 [skip ci]
...
## [0.33.0](https://github.com/propeller-heads/tycho-execution/compare/0.32.0...0.33.0 ) (2025-02-06)
### Features
* Get native/wrapped addresses from chain ([8cd7d9f ](8cd7d9f76e ))
* Take Chain object containing native/wrapped addresses ([e83b8d9 ](e83b8d9aef ))
### Bug Fixes
* Do not let user specify the native/wrapped token ([1a07c7d ](1a07c7dc61 ))
2025-02-06 16:43:48 +00:00
Tamara
9c8fbb634d
Merge pull request #52 from propeller-heads/encoding/tnl/configurable-chain
...
feat: Get native/wrapped addresses for chain
2025-02-06 11:41:52 -05:00
TAMARA LIPOWSKI
2b94a3f213
docs: improvements from PR comments
2025-02-06 11:34:57 -05:00
TAMARA LIPOWSKI
41a5fe99c9
chore: merge main
2025-02-06 11:09:07 -05:00
TAMARA LIPOWSKI
1a07c7dc61
Fix: Do not let user specify the native/wrapped token
...
This puts too much burden on the user. Instead, specify native and wrapped tokens as methods which return hardcoded values.
2025-02-06 11:08:06 -05:00
semantic-release-bot
6ed23db449
chore(release): 0.32.0 [skip ci]
...
## [0.32.0](https://github.com/propeller-heads/tycho-execution/compare/0.31.0...0.32.0 ) (2025-02-06)
### Features
* Accept any struct that implements Into<ProtocolComponent> in Swap ([cb14022 ](cb14022681 ))
2025-02-06 09:21:59 +00:00
dianacarvalho1
5c51939d73
Merge pull request #56 from propeller-heads/encoding/dc/ENG-4213-generic-protocol-component
...
feat: Accept any struct that implements Into<ProtocolComponent> in Swap
2025-02-06 09:19:16 +00:00
TAMARA LIPOWSKI
e83b8d9aef
feat: Take Chain object containing native/wrapped addresses
...
- This way this chain object contains everything we need, we don't need to worry about doing any transformation or calling any supplementary functions inside any of the encoders
- Needed to move our new Chain object to a higher level since this is used in the higher-level encoder traits. This required some weird default values in the constants in order to avoid using alloy's hex literal. I could have instead opted to make Bytes parse a string I think, though this would mean possibly returning an error at the constants level, which is not nice either.
Question:
- Do we want the user to be in charge of passing the native and wrapped token every single time? This may be a bit annoying for the user. For now, I have defaulted to those in constants.rs, this would take 5 mins to remove though if you don't like it, and it would get rid of this complicated bytes initialization.
2025-02-05 17:14:56 -05:00
TAMARA LIPOWSKI
2b43ecdf29
docs: Document validation functions
2025-02-05 16:44:28 -05:00
Tamara
021a179076
Merge branch 'main' into encoding/tnl/ENG-4205-code-docs
2025-02-05 16:35:54 -05:00
TAMARA LIPOWSKI
07457b5f76
docs: More docs and improvements of existing docs
...
- Tried not to leave a single public function undocumented, though did not double-document public function with obvious names
- Remove all mentions of the strategy selector in favour of the strategy registry (to avoid confusion)
2025-02-05 16:35:43 -05:00
TAMARA LIPOWSKI
44e8e0bb96
docs: Address comments, make clippy happy
2025-02-05 15:44:27 -05:00
TAMARA LIPOWSKI
f8b3baff55
chore: merge main
2025-02-05 13:48:00 -05:00
Diana Carvalho
cb14022681
feat: Accept any struct that implements Into<ProtocolComponent> in Swap
...
--- don't change below this line ---
ENG-4213 Took 27 minutes
2025-02-05 18:02:43 +00:00
semantic-release-bot
cb01f95af9
chore(release): 0.31.0 [skip ci]
...
## [0.31.0](https://github.com/propeller-heads/tycho-execution/compare/0.30.1...0.31.0 ) (2025-02-05)
### Features
* add tests for split swap validations ([b69aef9 ](b69aef9b8f ))
* add tests for wrap unwrap case ([4d97c3f ](4d97c3f16d ))
* add validation for split swap ([f80ffa9 ](f80ffa924f ))
### Bug Fixes
* checks in validations ([95edd5b ](95edd5b1fe ))
* get_mock_split_swap_strategy_encoder ([7b72263 ](7b7226356d ))
* use native action to validate path ([c787f5e ](c787f5e722 ))
2025-02-05 15:03:14 +00:00
Harsh Vardhan Roy
db6cf4f0f0
Merge pull request #48 from propeller-heads/encoder/hr/ENG-4083-Validate-SplitSwap
...
feat: add validations for split swap
2025-02-05 20:31:14 +05:30
Harsh Vardhan Roy
9e61261a51
Update strategy_encoders.rs
...
Co-authored-by: Tamara <tamara@datarevenue.com >
2025-02-05 20:23:10 +05:30
Harsh Vardhan Roy
3803be897e
Merge branch 'main' into encoder/hr/ENG-4083-Validate-SplitSwap
2025-02-05 19:39:00 +05:30
dianacarvalho1
c868033072
Merge pull request #54 from propeller-heads/encoding/dc/ENG-4169-use-dto-objects
...
chore: Use tycho_core::dto objects instead of tycho_core::models
2025-02-05 10:33:21 +00:00
Diana Carvalho
3dcb8aee7b
chore: Use tycho_core::dto objects instead of tycho_core::models
...
--- don't change below this line ---
ENG-4169 Took 11 minutes
2025-02-05 10:10:43 +00:00
TAMARA LIPOWSKI
52cce5f5c6
docs: (WIP) In-code docs for encoders
...
- TODO double check all this, look for missing docs
2025-02-04 18:14:32 -05:00
TAMARA LIPOWSKI
8cd7d9f76e
feat: Get native/wrapped addresses from chain
...
- These were being hardcoded to ETH and WETH, which may not always be the case for EVM-compatible chains.
2025-02-04 16:59:01 -05:00
royvardhan
7b7226356d
fix: get_mock_split_swap_strategy_encoder
2025-02-05 00:18:26 +05:30
Harsh Vardhan Roy
b19dc89c8c
Merge branch 'main' into encoder/hr/ENG-4083-Validate-SplitSwap
2025-02-05 00:17:21 +05:30
royvardhan
c787f5e722
fix: use native action to validate path
2025-02-05 00:14:09 +05:30
semantic-release-bot
25a26f21be
chore(release): 0.30.1 [skip ci]
...
## [0.30.1](https://github.com/propeller-heads/tycho-execution/compare/0.30.0...0.30.1 ) (2025-02-04)
### Bug Fixes
* deprecated signature ([576f89d ](576f89d24c ))
2025-02-04 18:17:33 +00:00
Harsh Vardhan Roy
873b6ef961
Merge pull request #50 from propeller-heads/encoder/hr/bump-alloy
...
fix: use PrimitiveSignature instead of deprecated Signature
2025-02-04 23:45:14 +05:30
royvardhan
576f89d24c
fix: deprecated signature
2025-02-04 23:30:23 +05:30
semantic-release-bot
6557ede64b
chore(release): 0.30.0 [skip ci]
...
## [0.30.0](https://github.com/propeller-heads/tycho-execution/compare/0.29.1...0.30.0 ) (2025-02-04)
### Features
* Refactor Registries ([23875b8 ](23875b8b02 ))
2025-02-04 17:36:31 +00:00
dianacarvalho1
ce2179e16d
Merge pull request #47 from propeller-heads/encoding/dc/refactor-init
...
feat: Refactor Registries
2025-02-04 17:34:31 +00:00
Diana Carvalho
79f513c76b
chore: After rebase with master fixes
...
Took 2 minutes
2025-02-04 17:32:14 +00:00
Diana Carvalho
c89f46a2e6
chore: Rename registry -> swap_encoder_registry
...
Took 14 minutes
Took 8 seconds
2025-02-04 17:30:19 +00:00
Diana Carvalho
23875b8b02
feat: Refactor Registries
...
Interface changes:
- Rename StrategySelector to StrategyEncoderRegistry
- Implement clone for SwapEncoder
The StrategyEncoderRegistry needs to be initialised at the highest level and the passed to the TychoEncoder.
The TychoEncoder doesn't hold the chain nor the signer_pk as attributes anymore
The StrategyEncoderRegistry does:
- Initialises the SwapEncoderRegistry
- Initialises all the strategies and saves them in a HashMap
- Later, the TychoEncoder only reads from this hashmap
The StrategyEncoder now each holds a SwapEncoderRegistry as an attribute and they use this to get the correct SwapEncoder instead of reading from the global SWAP_ENCODER_REGISTRY
Simplified the SwapEncoderRegistry to not need a Config (everything is done inside itself)
All SwapEncoders implement clone
Took 2 hours 29 minutes
Took 11 seconds
Took 2 minutes
2025-02-04 17:30:10 +00:00
royvardhan
2f0013a934
chore: naming
2025-02-04 22:34:53 +05:30
royvardhan
4da50ddc9e
chore: naming
2025-02-04 22:34:53 +05:30
royvardhan
4d97c3f16d
feat: add tests for wrap unwrap case
2025-02-04 22:34:10 +05:30
royvardhan
b0dda205b0
chore: break tests
2025-02-04 22:34:10 +05:30
royvardhan
b8013c6e7e
chore: move validation methods inside impl
2025-02-04 22:34:10 +05:30
royvardhan
b69aef9b8f
feat: add tests for split swap validations
2025-02-04 22:34:10 +05:30
royvardhan
95edd5b1fe
fix: checks in validations
2025-02-04 22:34:10 +05:30
royvardhan
f80ffa924f
feat: add validation for split swap
2025-02-04 22:34:10 +05:30
semantic-release-bot
a92ba96d86
chore(release): 0.29.1 [skip ci]
...
## [0.29.1](https://github.com/propeller-heads/tycho-execution/compare/0.29.0...0.29.1 ) (2025-02-04)
### Bug Fixes
* Fix bug with token indexing when wrapping/unwrapping ([3f4e27a ](3f4e27a348 ))
* test fixes after merge ([ff283bc ](ff283bc333 ))
2025-02-04 16:54:33 +00:00
Tamara
47a54ebc26
Merge pull request #46 from propeller-heads/encoding/tnl/fix-wrapping-indices
...
fix: Fix bug with token indexing when wrapping/unwrapping
2025-02-04 11:52:14 -05:00
TAMARA LIPOWSKI
ff283bc333
fix: test fixes after merge
2025-02-04 11:49:27 -05:00
Tamara
e8f22a2eee
Merge branch 'main' into encoding/tnl/fix-wrapping-indices
2025-02-04 11:47:58 -05:00
semantic-release-bot
e21a8de6c9
chore(release): 0.29.0 [skip ci]
...
## [0.29.0](https://github.com/propeller-heads/tycho-execution/compare/0.28.0...0.29.0 ) (2025-02-04)
### Features
* add swap encoder test in balancer v2 executor ([6333072 ](6333072178 ))
### Bug Fixes
* executor test naming ([e6310d6 ](e6310d65d1 ))
2025-02-04 15:46:38 +00:00
Harsh Vardhan Roy
43772b61cf
Merge pull request #49 from propeller-heads/router/hr/ENG-4035-2-Add-Encoded-Test
...
feat: add swap encoder test in balancer v2 executor
2025-02-04 21:14:32 +05:30
Harsh Vardhan Roy
409d5a61cf
Merge branch 'main' into router/hr/ENG-4035-2-Add-Encoded-Test
2025-02-04 21:10:54 +05:30
semantic-release-bot
00171ea72e
chore(release): 0.28.0 [skip ci]
...
## [0.28.0](https://github.com/propeller-heads/tycho-execution/compare/0.27.0...0.28.0 ) (2025-02-04)
### Features
* Tycho encoder validation ([4bc6159 ](4bc615913e ))
### Bug Fixes
* test_validate_fails_for_unwrap_wrong_last_swap ([0660321 ](06603210bc ))
2025-02-04 15:37:28 +00:00