Commit Graph

1029 Commits

Author SHA1 Message Date
royvardhan
07987a3584 refactor: rm _executeSwap and move core logic back to swap, make swapPermit2 use swap 2025-02-26 23:12:46 +05:30
royvardhan
ff83693b28 refactor: move wrap operation and receiver check to _executeSwap 2025-02-26 23:12:46 +05:30
royvardhan
d1f7f6dde1 refactor: centralize swap logic to reduce duplication between swap and swapPermit2 2025-02-26 23:12:46 +05:30
Harsh Vardhan Roy
9ad7cd0fd5 Merge pull request #86 from propeller-heads/router/hr/ENG-4268-add-base-fork-tests
test: add simple base network tests in usv2 and router
2025-02-26 23:10:55 +05:30
TAMARA LIPOWSKI
adfcb3da82 fix: proper executor address json after merge 2025-02-26 12:39:54 -05:00
royvardhan
030505c497 test: add vm.rollFork with correct block in base network tests 2025-02-26 23:04:40 +05:30
royvardhan
ed2bc414d8 test: update asserts in base network test 2025-02-26 22:01:18 +05:30
royvardhan
2323ad3fd9 test: add simple base network tests in usv2 and router 2025-02-26 22:01:18 +05:30
TAMARA LIPOWSKI
1bdcbb83e0 fix: (deployment) add tenderly keys to json files 2025-02-26 10:59:35 -05:00
TAMARA LIPOWSKI
7ca9120b7b feat: support base deployment
gas limit had to be set when setting executors on base: kept getting UNPREDICTABLE_GAS_LIMIT error. It should definitely not cost more than 100000 gas to set limit... but this may be a problem on other chains in the future.
2025-02-26 10:59:25 -05:00
royvardhan
0be69c9aea refactor: check if amountIn was fully consumed based on balance changes 2025-02-26 19:04:26 +05:30
royvardhan
53d48f1bac refactor: centralize swap logic to reduce duplication between swap and swapPermit2 2025-02-26 18:05:29 +05:30
semantic-release-bot
22c48e80d2 chore(release): 0.52.0 [skip ci]
## [0.52.0](https://github.com/propeller-heads/tycho-execution/compare/0.51.2...0.52.0) (2025-02-26)

### Features

* Add deployment and fund wallet scripts ([cbea0bd](cbea0bdab3))
* Deploy executors and set them in router ([02a9da1](02a9da183e))
* Deploy on mainnet ([34563c3](34563c3eb7))
* Set roles script ([90cf194](90cf194869))
* Verify router contract on tenderly ([77ba949](77ba9498a7))

### Bug Fixes

* Unify both executor addresses in one file ([57789a4](57789a40e4))
2025-02-26 10:15:40 +00:00
dianacarvalho1
dbd124c082 Merge pull request #81 from propeller-heads/router/dc/ENG-4101-deployment-script
feat: Add deployment scripts
2025-02-26 10:13:05 +00:00
Diana Carvalho
57789a40e4 fix: Unify both executor addresses in one file
- Move executor_addresses.json to a top level directory
- Delete executors.json
- Use the same file for both encoding and setting executors

--- don't change below this line ---
ENG-4260 Took 19 minutes


Took 11 seconds
2025-02-26 10:10:30 +00:00
Diana Carvalho
34563c3eb7 feat: Deploy on mainnet
Also update executors.json with uniswap v2 address on mainnet

--- don't change below this line ---
ENG-4101 Took 22 minutes


Took 7 seconds
2025-02-26 09:49:00 +00:00
Diana Carvalho
02a9da183e feat: Deploy executors and set them in router
--- don't change below this line ---
ENG-4101 Took 59 minutes


Took 10 seconds
2025-02-26 09:49:00 +00:00
Diana Carvalho
90cf194869 feat: Set roles script
Added a roles.json file where we can define all the addresses that need roles

--- don't change below this line ---
ENG-4101 Took 42 seconds
2025-02-26 09:49:00 +00:00
Diana Carvalho
77ba9498a7 feat: Verify router contract on tenderly
Fix package.json

--- don't change below this line ---
ENG-4101 Took 34 minutes
2025-02-26 09:49:00 +00:00
Diana Carvalho
cbea0bdab3 feat: Add deployment and fund wallet scripts
--- don't change below this line ---
ENG-4101 Took 1 hour 2 minutes


Took 2 minutes

Took 8 minutes

Took 4 minutes

Took 28 minutes
2025-02-26 09:49:00 +00:00
semantic-release-bot
08f72e7138 chore(release): 0.51.2 [skip ci]
## [0.51.2](https://github.com/propeller-heads/tycho-execution/compare/0.51.1...0.51.2) (2025-02-26)

### Bug Fixes

* Restrict receive callers to have code ([801976f](801976fafa))
2025-02-26 09:45:34 +00:00
dianacarvalho1
0b7e5a7caf Merge pull request #83 from propeller-heads/router/dc/ENG-4260-improve-receive
fix: Restrict receive callers to have code
2025-02-26 09:42:47 +00:00
dianacarvalho1
6008d5e836 Merge branch 'main' into router/dc/ENG-4260-improve-receive 2025-02-26 09:40:58 +00:00
semantic-release-bot
614af9ada7 chore(release): 0.51.1 [skip ci]
## [0.51.1](https://github.com/propeller-heads/tycho-execution/compare/0.51.0...0.51.1) (2025-02-25)
2025-02-25 18:35:20 +00:00
Tamara
419528a991 Merge pull request #84 from propeller-heads/router/tnl/ENG-4250-ascii-art
style: TychoRouter ascii art
2025-02-25 13:32:35 -05:00
TAMARA LIPOWSKI
857522134b chore: forge fmt
kill blank lines
2025-02-25 13:14:30 -05:00
TAMARA LIPOWSKI
abef1e062e style: TychoRouter ascii art 2025-02-25 13:10:29 -05:00
Diana Carvalho
801976fafa fix: Restrict receive callers to have code
--- don't change below this line ---
ENG-4260 Took 8 minutes
2025-02-25 09:36:04 +00:00
semantic-release-bot
dd6b1151b2 chore(release): 0.51.0 [skip ci]
## [0.51.0](https://github.com/propeller-heads/tycho-execution/compare/0.50.0...0.51.0) (2025-02-24)

### Features

* hardcode callback and swap selection in dispatcher ([58116e0](58116e074a))
* rm selector from usv3, usv4, update tests, and rename dispatcher file ([69745b1](69745b18fd))

### Bug Fixes

* usv4 integration tests and remove selector from swap/strategy encoder ([18efe03](18efe0305b))
2025-02-24 17:00:47 +00:00
Harsh Vardhan Roy
6276158af1 Merge pull request #82 from propeller-heads/router/hr/ENG-4262-hardcode-callback-swap-selector
feat: hardcode callback and swap selection in dispatcher
2025-02-24 22:27:55 +05:30
royvardhan
0e049b7c44 chore: rm selector from Transaction 2025-02-24 22:20:51 +05:30
royvardhan
892726e07b chore: cleanup 2025-02-24 21:41:19 +05:30
royvardhan
bfaa63a1a0 test: fix router tests with new integration calldata 2025-02-24 21:37:40 +05:30
royvardhan
570aa50497 test: fix encoder tests after removing the selector 2025-02-24 20:48:55 +05:30
royvardhan
18efe0305b fix: usv4 integration tests and remove selector from swap/strategy encoder 2025-02-24 19:48:25 +05:30
royvardhan
69745b18fd feat: rm selector from usv3, usv4, update tests, and rename dispatcher file 2025-02-24 17:16:27 +05:30
royvardhan
58116e074a feat: hardcode callback and swap selection in dispatcher 2025-02-24 10:56:17 +05:30
semantic-release-bot
d859a7ea97 chore(release): 0.50.0 [skip ci]
## [0.50.0](https://github.com/propeller-heads/tycho-execution/compare/0.49.0...0.50.0) (2025-02-22)

### Features

* add target verification for usv2 and usv3  using _computePairAddress ([7936ba1](7936ba1c94))
2025-02-22 03:35:19 +00:00
Harsh Vardhan Roy
8843f9725a Merge pull request #80 from propeller-heads/router/hr/ENG-4258-verify-valid-target 2025-02-22 09:02:19 +05:30
royvardhan
f4f5b841e7 chore: keep test naming consistent 2025-02-22 01:39:11 +05:30
royvardhan
4b77128df2 chore: rename _computePairAddress to _verifyPairAddress, add fake v2 pool in v2 test file 2025-02-22 00:26:15 +05:30
royvardhan
40bd37a1a4 chore: rm redundant usv3 test 2025-02-21 23:28:03 +05:30
royvardhan
2f1507dd0e test: add target verification tests for usv2, usv3 2025-02-21 23:28:03 +05:30
royvardhan
7936ba1c94 feat: add target verification for usv2 and usv3 using _computePairAddress 2025-02-21 23:28:03 +05:30
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