Commit Graph

1016 Commits

Author SHA1 Message Date
Diana Carvalho
c791c93cb5 feat: Add uniswap v3 to swap encoders list
--- don't change below this line ---
ENG-4088 Took 10 minutes
2025-02-07 12:16:46 +00:00
Diana Carvalho
dee8542b45 chore: Improve error message when reading executors file
--- don't change below this line ---
ENG-4088 Took 1 minute

Took 7 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
b333d60d69 feat: Add clone to EVMTychoEncoder
--- don't change below this line ---
ENG-4088 Took 4 minutes

Took 8 seconds

Took 48 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
4680a4be24 feat: Make executors_file_path optional and use a default value if None
--- don't change below this line ---
ENG-4088 Took 4 minutes

Took 59 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
3116fef0d7 fix: Change version of serde to match tycho-simulation
--- don't change below this line ---
ENG-4088 Took 4 minutes


Took 9 seconds

Took 30 seconds

Took 21 seconds
2025-02-07 12:16:46 +00:00
semantic-release-bot
f79a77f9a8 chore(release): 0.34.0 [skip ci]
## [0.34.0](https://github.com/propeller-heads/tycho-execution/compare/0.33.0...0.34.0) (2025-02-06)

### Features

* add default private key ([d3ad0ba](d3ad0ba5bf))
* add encoder bin ([4f7fe3b](4f7fe3b96d))
* add md ([d3be9d1](d3be9d1489))
* add serde primitive, update command ([b938560](b93856073c))
* default native action ([80f1ca9](80f1ca913b))
* remove direct execution hardcode ([ae6b1ed](ae6b1ed658))
* remove manual parsing ([fd4045e](fd4045e6fe))
* simplify ([8d97f73](8d97f73ec7))
* update cli params and docs ([32c3bd2](32c3bd2220))
* use clap for cli and resolve pr comments ([a5166f2](a5166f282d))

### Bug Fixes

* chain.into() ([520bee5](520bee5a5d))
* ci ([a3cf443](a3cf443056))
* ci ([6cec83f](6cec83fde5))
* fmt ([3bb5b0c](3bb5b0c7c6))
* fmt ([7df1995](7df1995655))
* remove redundant parse checks ([c4f9fd0](c4f9fd0fa6))
* rm v4-core ([1dad36d](1dad36d7a8))
2025-02-06 18:31:41 +00:00
Harsh Vardhan Roy
d8655f9161 Merge pull request #55 from propeller-heads/encoder/hr/ENG-4093-bin 2025-02-06 23:59:29 +05:30
royvardhan
3bb5b0c7c6 fix: fmt 2025-02-06 22:44:18 +05:30
Harsh Vardhan Roy
0e3ce00698 Merge branch 'main' into encoder/hr/ENG-4093-bin 2025-02-06 22:41:23 +05:30
royvardhan
7df1995655 fix: fmt 2025-02-06 22:30:23 +05:30
Tamara
2f83659d60 Merge pull request #53 from propeller-heads/encoding/tnl/ENG-4205-code-docs
docs: In-code docs for encoders
2025-02-06 11:59:14 -05:00
royvardhan
520bee5a5d fix: chain.into() 2025-02-06 22:28:02 +05:30
TAMARA LIPOWSKI
77d53c786a docs: Explain wrap/unwrap process in validate_swap_path 2025-02-06 11:52:43 -05:00
Harsh Vardhan Roy
8d69d748d1 Merge branch 'main' into encoder/hr/ENG-4093-bin 2025-02-06 22:20:56 +05:30
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
royvardhan
1dad36d7a8 fix: rm v4-core 2025-02-06 20:57:43 +05:30
royvardhan
32c3bd2220 feat: update cli params and docs 2025-02-06 20:55:27 +05:30
Harsh Vardhan Roy
535384393b Merge branch 'main' into encoder/hr/ENG-4093-bin 2025-02-06 18:34:27 +05:30
royvardhan
a5166f282d feat: use clap for cli and resolve pr comments 2025-02-06 18:30:52 +05:30
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
royvardhan
b93856073c feat: add serde primitive, update command 2025-02-06 00:16:35 +05:30
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
royvardhan
38ce6e5c79 chore: rm json 2025-02-05 22:57:56 +05:30
royvardhan
fd4045e6fe feat: remove manual parsing 2025-02-05 22:57:38 +05:30
royvardhan
a3cf443056 fix: ci 2025-02-05 20:54:30 +05:30
royvardhan
c4f9fd0fa6 fix: remove redundant parse checks 2025-02-05 20:50:44 +05:30
royvardhan
d3ad0ba5bf feat: add default private key 2025-02-05 20:47:51 +05:30
royvardhan
80f1ca913b feat: default native action 2025-02-05 20:39:59 +05:30
royvardhan
07288163d2 chore: merge run.md to readme.md 2025-02-05 20:34:56 +05:30
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
royvardhan
6cec83fde5 fix: ci 2025-02-05 17:36:27 +05:30
royvardhan
d3be9d1489 feat: add md 2025-02-05 17:29:17 +05:30
royvardhan
8d97f73ec7 feat: simplify 2025-02-05 17:26:02 +05:30
royvardhan
ae6b1ed658 feat: remove direct execution hardcode 2025-02-05 17:05:06 +05:30
royvardhan
4f7fe3b96d feat: add encoder bin 2025-02-05 16:53:20 +05:30