Commit Graph

703 Commits

Author SHA1 Message Date
Diana Carvalho
79045e2689 feat: Verify contracts on etherscan
--- don't change below this line ---
ENG-4260 Took 31 minutes
2025-02-27 15:52:32 +00:00
semantic-release-bot
87e7394b0a chore(release): 0.54.0 [skip ci]
## [0.54.0](https://github.com/propeller-heads/tycho-execution/compare/0.53.1...0.54.0) (2025-02-27)

### Features

* Deploy all executors ([f95c74f](f95c74fbc6))

### Bug Fixes

* Add a value to the Transaction if token in is ETH ([05a1843](05a1843f9c))
* Get correct runtime everywhere ([6a6f2d3](6a6f2d3221))
* the key for univ4 fee is key_lp_fee ([9eb4299](9eb4299ffe))
2025-02-27 15:04:59 +00:00
dianacarvalho1
28353fa5c5 Merge pull request #90 from propeller-heads/router/dc/deploy-executors
fix: Miscellaneous fixes
2025-02-27 15:02:58 +00:00
Diana Carvalho
d011c4b475 Merge branch 'refs/heads/main' into router/dc/deploy-executors 2025-02-27 15:00:17 +00:00
semantic-release-bot
ce14e7a52c chore(release): 0.53.1 [skip ci]
## [0.53.1](https://github.com/propeller-heads/tycho-execution/compare/0.53.0...0.53.1) (2025-02-27)

### Bug Fixes

* remove 0 amount check in _unwrapEth ([0273f58](0273f58274))
2025-02-27 14:47:13 +00:00
Harsh Vardhan Roy
7b06707d4a Merge pull request #89 from propeller-heads/router/hr/ENG-4277-refactor-unwrapeth
refactor: remove unnecessary checks from _unwrapEth
2025-02-27 20:14:31 +05:30
royvardhan
0273f58274 fix: remove 0 amount check in _unwrapEth 2025-02-27 20:08:49 +05:30
Harsh Vardhan Roy
393ed61595 docs: update _unwrapEth docs
Co-authored-by: Tamara <tamara@datarevenue.com>
2025-02-27 20:08:49 +05:30
royvardhan
353861f738 refactor: update unwrapEth to only check 0 amount 2025-02-27 20:08:49 +05:30
Diana Carvalho
05a1843f9c fix: Add a value to the Transaction if token in is ETH
not only if the action is unwrap

--- don't change below this line ---
ENG-4260 Took 11 minutes
2025-02-27 12:39:16 +00:00
Diana Carvalho
9eb4299ffe fix: the key for univ4 fee is key_lp_fee
Update tests with new executor addresses as well

--- don't change below this line ---
ENG-4260 Took 6 minutes
2025-02-27 11:49:03 +00:00
Diana Carvalho
6a6f2d3221 fix: Get correct runtime everywhere
Made an utils function for it to make sure it is used correctly

--- don't change below this line ---
ENG-4260 Took 9 minutes
2025-02-27 11:16:21 +00:00
Diana Carvalho
f95c74fbc6 feat: Deploy all executors
univ3, univ4 and balancer v2

--- don't change below this line ---
ENG-4260 Took 33 minutes
2025-02-27 09:44:53 +00:00
semantic-release-bot
6b57e81afc chore(release): 0.53.0 [skip ci]
## [0.53.0](https://github.com/propeller-heads/tycho-execution/compare/0.52.2...0.53.0) (2025-02-26)

### Features

* support base deployment ([7ca9120](7ca9120b7b))

### Bug Fixes

* (deployment) add tenderly keys to json files ([1bdcbb8](1bdcbb83e0))
* proper executor address json after merge ([adfcb3d](adfcb3da82))
* rename mainnet -> ethereum ([ac35256](ac35256c69))
* TENDERLY_RPC_URL -> RPC_URL ([e5759b9](e5759b9498))
2025-02-26 18:26:17 +00:00
Tamara
c12af6e3d2 Merge pull request #85 from propeller-heads/router/tnl/ENG-4269-base-deployment
feat: support base deployment
2025-02-26 13:24:32 -05:00
Tamara
503d7e0907 Merge branch 'main' into router/tnl/ENG-4269-base-deployment 2025-02-26 13:21:04 -05:00
TAMARA LIPOWSKI
ac35256c69 fix: rename mainnet -> ethereum
we must match what we have in the executors file (which is what tycho-indexer gives us)
2025-02-26 13:20:51 -05:00
TAMARA LIPOWSKI
e5759b9498 fix: TENDERLY_RPC_URL -> RPC_URL
for simplicity and consistency
2025-02-26 13:01:48 -05:00
semantic-release-bot
d7ddb27497 chore(release): 0.52.2 [skip ci]
## [0.52.2](https://github.com/propeller-heads/tycho-execution/compare/0.52.1...0.52.2) (2025-02-26)
2025-02-26 18:01:34 +00:00
Harsh Vardhan Roy
4e5776133b Merge pull request #88 from propeller-heads/router/hr/ENG-4279-check-leftover
refactor: check if amountIn was fully consumed based on balance changes
2025-02-26 23:29:24 +05:30
Harsh Vardhan Roy
5e175e295f Merge branch 'main' into router/hr/ENG-4279-check-leftover 2025-02-26 23:26:53 +05:30
royvardhan
7b0dd5872c chore: merge main 2025-02-26 23:26:27 +05:30
semantic-release-bot
09354b501a chore(release): 0.52.1 [skip ci]
## [0.52.1](https://github.com/propeller-heads/tycho-execution/compare/0.52.0...0.52.1) (2025-02-26)
2025-02-26 17:47:24 +00:00
Harsh Vardhan Roy
a3dcddaa37 Merge pull request #87 from propeller-heads/router/hr/ENG-4278-refactor-swap-functions
refactor: use swap core logic in swapPermit2
2025-02-26 23:15:34 +05:30
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