Commit Graph

391 Commits

Author SHA1 Message Date
dianacarvalho1
3ce384ea16 Merge pull request #63 from propeller-heads/router/dc/ENG-4226-misc-audit-remarks
fix: Miscellaneous audit remarks
2025-02-12 09:51:39 +00:00
Diana Carvalho
582533fa31 fix: Miscellaneous audit remarks
- Move pause functions together
- Add missing zero checks
- Use openzepplin's sendValues instead of transfer

--- don't change below this line ---
ENG-4226 Took 25 minutes


Took 2 minutes
2025-02-11 16:35:26 +00:00
semantic-release-bot
0626cea164 chore(release): 0.36.1 [skip ci]
## [0.36.1](https://github.com/propeller-heads/tycho-execution/compare/0.36.0...0.36.1) (2025-02-11)
2025-02-11 16:33:23 +00:00
Tamara
135994f13a Merge pull request #61 from propeller-heads/encoding/tnl/small-misc-fixes
refactor: (Solution) replace check_amount with checked_amount
2025-02-11 11:31:37 -05:00
TAMARA LIPOWSKI
1c565deb57 refactor: (Solution) replace check_amount with checked_amount
- This is to have consistency with checked_token
2025-02-11 11:25:58 -05:00
semantic-release-bot
c4c282a62e chore(release): 0.36.0 [skip ci]
## [0.36.0](https://github.com/propeller-heads/tycho-execution/compare/0.35.1...0.36.0) (2025-02-11)

### Features

* Add selector to Transaction ([dd7ecac](dd7ecac324))
2025-02-11 16:20:41 +00:00
dianacarvalho1
e4e44ecd9c Merge pull request #60 from propeller-heads/encoding/dc/extend-transaction-to-have-selector
feat: Add selector to Transaction
2025-02-11 16:18:48 +00:00
dianacarvalho1
0d641582dd Merge branch 'main' into encoding/dc/extend-transaction-to-have-selector 2025-02-11 16:17:20 +00:00
semantic-release-bot
3d2c148f70 chore(release): 0.35.1 [skip ci]
## [0.35.1](https://github.com/propeller-heads/tycho-execution/compare/0.35.0...0.35.1) (2025-02-11)

### Bug Fixes

* (TychoRouter) Revert if empty swaps ([37efe52](37efe52c10))
2025-02-11 14:52:52 +00:00
Tamara
5e29dd94b2 Merge pull request #59 from propeller-heads/router/tnl/ENG-4074-no-empty-swaps
fix: (TychoRouter) Revert if empty swaps
2025-02-11 09:50:03 -05:00
Diana Carvalho
dd7ecac324 feat: Add selector to Transaction
Return selector in the StrategyEncoder. This is needed for the ExecutorStrategyEncoder

--- don't change below this line ---
ENG-4088 Took 12 minutes


Took 13 seconds
2025-02-11 12:20:47 +00:00
TAMARA LIPOWSKI
37efe52c10 fix: (TychoRouter) Revert if empty swaps
- This is for security purposes. Max uncovered a vulnerability where funds could be stolen if we don't ether the while loop (i.e. if we have empty swaps).
2025-02-10 23:49:01 -05:00
semantic-release-bot
12b6ba0743 chore(release): 0.35.0 [skip ci]
## [0.35.0](https://github.com/propeller-heads/tycho-execution/compare/0.34.0...0.35.0) (2025-02-07)

### Features

* Add clone to EVMTychoEncoder ([b333d60](b333d60d69))
* Add uniswap v3 to swap encoders list ([c791c93](c791c93cb5))
* Get current runtime if there is any ([12f85cc](12f85ccc0a))
* Increase tycho-core version ([6bbb6da](6bbb6da1cd))
* Make executors_file_path optional and use a default value if None ([4680a4b](4680a4be24))
* Read default executors at compile time into a json ([f5232f4](f5232f403e))
* Remove router_address from TychoEncoder ([a234ff7](a234ff701f))
* The execution structs should receiver tycho_core Chain ([cad9f39](cad9f394cd))
* Use block_in_place instead of block_on ([d4af59d](d4af59d4dc))

### Bug Fixes

* After rebase fixes ([bef4740](bef4740a1d))
* Change version of serde to match tycho-simulation ([3116fef](3116fef0d7))
* Don't have a DEFAULT_CONFIG_PATH in bin ([d7f20aa](d7f20aa74f))
* Uniswap v3 pool fee is big endian, not little endian ([0c9050c](0c9050cf79))
* **univ3:** The fee keyword is just "fee" and not "pool_fee" ([164d062](164d062ad9))
2025-02-07 16:22:11 +00:00
dianacarvalho1
d0e37171bd Merge pull request #57 from propeller-heads/quickstart/dc/ENG-4088-add-execution-to-quickstart
feat: Misc changes needed to add execution to quickstart
2025-02-07 16:19:16 +00:00
Diana Carvalho
c8a200dc55 docs: Add mention to the quickstart in the main README.md
--- don't change below this line ---
ENG-4088 Took 5 minutes
2025-02-07 16:16:55 +00:00
Diana Carvalho
a234ff701f feat: Remove router_address from TychoEncoder
Make the router address mandatory for the Solution attribute instead

--- don't change below this line ---
ENG-4088 Took 30 minutes
2025-02-07 14:58:09 +00:00
Diana Carvalho
d7f20aa74f fix: Don't have a DEFAULT_CONFIG_PATH in bin
This is unnecessary since we already have the executor address loaded at build time

--- don't change below this line ---
ENG-4088 Took 8 minutes


Took 7 seconds
2025-02-07 12:27:24 +00:00
Diana Carvalho
cad9f394cd feat: The execution structs should receiver tycho_core Chain
and convert it later to an execution model Chain

--- don't change below this line ---
ENG-4088 Took 8 minutes
2025-02-07 12:16:46 +00:00
Diana Carvalho
0c9050cf79 fix: Uniswap v3 pool fee is big endian, not little endian
--- don't change below this line ---
ENG-4088 Took 18 minutes


Took 17 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
bef4740a1d fix: After rebase fixes
--- don't change below this line ---
ENG-4088 Took 2 minutes
2025-02-07 12:16:46 +00:00
Diana Carvalho
164d062ad9 fix(univ3): The fee keyword is just "fee" and not "pool_fee"
--- don't change below this line ---
ENG-4088 Took 1 minute
2025-02-07 12:16:46 +00:00
Diana Carvalho
6bbb6da1cd feat: Increase tycho-core version
--- don't change below this line ---
ENG-4088 Took 8 minutes

Took 11 seconds

Took 22 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
d4af59d4dc feat: Use block_in_place instead of block_on
This is necessary when we run tycho-execution in an environment that already has a runtime.
Make sure that if no runtime exists, like in the testing scenario inside tycho-execution, we save the new runtime in an attribute of permit2. If we don't do this, then the runtime just dies and our handle points to nothing at all and all tests fail

--- don't change below this line ---
ENG-4088 Took 17 minutes

Took 5 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
12f85ccc0a feat: Get current runtime if there is any
instead of creating a new one every time

--- don't change below this line ---
ENG-4088 Took 18 minutes

Took 6 seconds
2025-02-07 12:16:46 +00:00
Diana Carvalho
f5232f403e feat: Read default executors at compile time into a json
This way we don't have issues with paths and trying to read files that are at other locations after compile time

--- don't change below this line ---
ENG-4088 Took 44 seconds

Took 52 seconds
2025-02-07 12:16:46 +00:00
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