royvardhan
0007c4924c
chore: update executor encoder tests
2025-01-30 21:17:25 +05:30
royvardhan
d2289c3765
chore: update test
2025-01-30 21:17:25 +05:30
royvardhan
ad70a0d5a8
feat: add executor encoder test
2025-01-30 21:17:25 +05:30
royvardhan
5c396512cf
feat: update ExecutorEncoder interface and relevant types
2025-01-30 21:17:25 +05:30
semantic-release-bot
ee0aafbc4d
chore(release): 0.22.0 [skip ci]
...
## [0.22.0](https://github.com/propeller-heads/tycho-execution/compare/0.21.0...0.22.0 ) (2025-01-30)
### Features
* fixed USV3 Verification ([96af542 ](96af542923 ))
* Implement generic callback ([fafeba9 ](fafeba9248 ))
* UniswapV3Executor and integration tests ([ca32446 ](ca32446a9e ))
* USV3 verification ([7822c4f ](7822c4f913 ))
### Bug Fixes
* Remove amountReceived and dataOffset from the callback verification ([63b94b5 ](63b94b5584 ))
* Remove amountReceived, dataOffset from ICallbackVerifier interface ([33ada0c ](33ada0cf26 ))
* Remove exactOut from USV3 encoding ([d8b44f6 ](d8b44f623b ))
2025-01-30 15:40:49 +00:00
Tamara
318ab0ad95
Merge pull request #34 from propeller-heads/router/tnl/ENG-4034-usv3-executor
...
feat: UniswapV3 Executor
2025-01-30 10:36:50 -05:00
Tamara
94b214384b
Merge branch 'main' into router/tnl/ENG-4034-usv3-executor
2025-01-30 10:33:18 -05:00
TAMARA LIPOWSKI
83bbabddd1
chore: rename amountOwed -> amountIn
...
...for consistency.
Also remove comment. We will keep exact_out to avoid future interface changes.
2025-01-30 10:33:09 -05:00
TAMARA LIPOWSKI
92b4ee00d3
chore: remove unused factory variable
2025-01-29 19:53:22 -05:00
TAMARA LIPOWSKI
ca32446a9e
feat: UniswapV3Executor and integration tests
...
- Note: I think we can get the fee straight from the pool... why did we always encode this and send it from the solver? Is this bound to change sometimes?
2025-01-29 19:51:17 -05:00
TAMARA LIPOWSKI
d8b44f623b
fix: Remove exactOut from USV3 encoding
...
- We don't support exactOut atm
2025-01-29 16:56:45 -05:00
dianacarvalho1
1b79326637
Merge pull request #31 from propeller-heads/router/dc/ENG-4047-generic-callback
...
feat: Implement generic callback
2025-01-29 20:20:45 +00:00
Diana Carvalho
33ada0cf26
fix: Remove amountReceived, dataOffset from ICallbackVerifier interface
...
--- don't change below this line ---
ENG-4081 Took 1 hour 36 minutes
2025-01-29 20:19:34 +00:00
Diana Carvalho
63b94b5584
fix: Remove amountReceived and dataOffset from the callback verification
...
--- don't change below this line ---
ENG-4047 Took 20 minutes
2025-01-29 20:19:34 +00:00
Diana Carvalho
fafeba9248
feat: Implement generic callback
...
--- don't change below this line ---
ENG-4047 Took 26 minutes
Took 4 minutes
Took 8 seconds
Took 59 seconds
Took 22 seconds
2025-01-29 20:19:34 +00:00
Tamara
e481ceb304
Merge pull request #32 from propeller-heads/router/tnl/ENG-4100-master-verifier
...
feat: USV3 callback verification
2025-01-29 14:10:49 -05:00
TAMARA LIPOWSKI
d3f1136486
chore: Remove v3-periphery from gitmodules
...
- We aren't using this anymore since the solc version is outdated
2025-01-29 14:05:56 -05:00
TAMARA LIPOWSKI
96af542923
feat: fixed USV3 Verification
...
- We cannot use the regular v3-periphery library because of outdated solc versions. I've copied the v3-updated library which we have used in our previous project
2025-01-29 12:12:58 -05:00
TAMARA LIPOWSKI
057c616b0c
chore: merge main
2025-01-29 10:19:18 -05:00
TAMARA LIPOWSKI
3b9f7dbb52
chore: update gitmodules
2025-01-29 10:11:32 -05:00
TAMARA LIPOWSKI
7822c4f913
feat: USV3 verification
2025-01-29 10:10:13 -05:00
semantic-release-bot
44ca2d5176
chore(release): 0.21.0 [skip ci]
...
## [0.21.0](https://github.com/propeller-heads/tycho-execution/compare/0.20.0...0.21.0 ) (2025-01-28)
### Features
* add balancer v2 executor ([a700189 ](a700189aaf ))
* add node.js workflow ([25756ff ](25756fffdd ))
* add tests for Balancer V2 executor ([a4e405f ](a4e405fb75 ))
* approve max ([cb6d165 ](cb6d165e7f ))
* update remappings and remove node modules ([b65b682 ](b65b682e8d ))
### Bug Fixes
* balancer v2 encoder bug ([a6a624b ](a6a624b740 ))
* build ([5dc5e23 ](5dc5e23239 ))
* ci ([b1ca478 ](b1ca478294 ))
* clippy ([877f625 ](877f625efc ))
* exclude node modules from slither ([4b3c5c5 ](4b3c5c5005 ))
* filter paths slither ([6c30cf8 ](6c30cf8f66 ))
* rm exactOut ([44db2e5 ](44db2e52b3 ))
* slither ([b854282 ](b85428212a ))
* slither ([7a83edd ](7a83eddc92 ))
2025-01-28 18:42:03 +00:00
Harsh Vardhan Roy
200735e55e
Merge pull request #29 from propeller-heads/router/hr/ENG-4035-Balancer-V2-Executor
2025-01-29 00:09:29 +05:30
Harsh Vardhan Roy
cb6d165e7f
feat: approve max
2025-01-28 23:49:28 +05:30
Harsh Vardhan Roy
8c41a28aa8
Merge branch 'main' into router/hr/ENG-4035-Balancer-V2-Executor
2025-01-28 23:21:38 +05:30
royvardhan
15e3933aa7
chore: cleanup
2025-01-28 23:21:22 +05:30
royvardhan
b65b682e8d
feat: update remappings and remove node modules
2025-01-28 23:19:06 +05:30
royvardhan
4b3c5c5005
fix: exclude node modules from slither
2025-01-28 23:11:30 +05:30
royvardhan
b85428212a
fix: slither
2025-01-28 22:59:02 +05:30
royvardhan
b1ca478294
fix: ci
2025-01-28 22:54:31 +05:30
semantic-release-bot
f9ded54a0e
chore(release): 0.20.0 [skip ci]
...
## [0.20.0](https://github.com/propeller-heads/tycho-execution/compare/0.19.0...0.20.0 ) (2025-01-28)
### Features
* Add executor and selector to Swap ([c2347ac ](c2347ac79e ))
* Add swap method (first attempt) ([a8f6fc1 ](a8f6fc1eec ))
* Add swap method with tests ([50429ad ](50429ad05c ))
* Assume that funds will never go straight from a pool to the receiver ([655cf91 ](655cf91984 ))
* Smother slither and add a reentrancy guard in swap() ([dfa7033 ](dfa7033d2e ))
* Wrap and unwrap ETH ([3b2d9fc ](3b2d9fcbdf ))
### Bug Fixes
* fix submodules ([0a1f522 ](0a1f522207 ))
* Remove checkMinAmount ([d8de65a ](d8de65aedf ))
2025-01-28 17:14:21 +00:00
Harsh Vardhan Roy
6af6780f2e
Merge branch 'main' into router/hr/ENG-4035-Balancer-V2-Executor
2025-01-28 22:43:02 +05:30
dianacarvalho1
fbe7c3340c
Merge pull request #25 from propeller-heads/router/dc/ENG-4041-swap
...
feat: Swap public method
2025-01-28 17:11:44 +00:00
royvardhan
6c30cf8f66
fix: filter paths slither
2025-01-28 22:41:36 +05:30
Diana Carvalho
0a1f522207
fix: fix submodules
...
--- don't change below this line ---
ENG-4041 Took 6 minutes
2025-01-28 17:10:15 +00:00
Diana Carvalho
655cf91984
feat: Assume that funds will never go straight from a pool to the receiver
...
- The funds will always go through the router
- Rename splitSwap for Swap
- Improve tests
--- don't change below this line ---
ENG-4041 Took 24 minutes
Took 23 seconds
Took 42 seconds
2025-01-28 17:10:15 +00:00
royvardhan
7a83eddc92
fix: slither
2025-01-28 22:38:26 +05:30
Diana Carvalho
dfa7033d2e
feat: Smother slither and add a reentrancy guard in swap()
...
--- don't change below this line ---
ENG-4041 Took 34 minutes
2025-01-28 16:59:29 +00:00
Diana Carvalho
c2347ac79e
feat: Add executor and selector to Swap
...
Add tests to Swap
Modify ExecutionDispatcher and TychoRouter to account for these changes
--- don't change below this line ---
ENG-4041 Took 57 minutes
Took 10 seconds
2025-01-28 16:59:29 +00:00
Diana Carvalho
dfa0f7d176
chore: Address compilers warnings and use EXECUTOR_SETTER instead of Bob in tests
...
--- don't change below this line ---
ENG-4041 Took 48 seconds
Took 18 seconds
2025-01-28 16:59:29 +00:00
Diana Carvalho
d8de65aedf
fix: Remove checkMinAmount
...
If minAmountOut == 0, then skip the check
--- don't change below this line ---
ENG-4041 Took 35 minutes
2025-01-28 16:59:29 +00:00
Diana Carvalho
50429ad05c
feat: Add swap method with tests
...
Changes:
- If the tokenIn is ETH, skip permit2 approval
- Make executors payable: When using delegatecall the executor inherits the execution context of whoever calls it. Our main swap function can accept ETH, it needs to be payable so by consequence the executors also need to be.
- Set uniswap v2 executor in test router
- Add tests for all possible cases of swap
- Add tests for all cases of splitSwap
- Add test functions to handle permit2 and encode swaps
--- don't change below this line ---
ENG-4041 Took 3 hours 50 minutes
Took 49 seconds
Took 14 seconds
2025-01-28 16:59:29 +00:00
Diana Carvalho
a8f6fc1eec
feat: Add swap method (first attempt)
...
Will add tests and fullproof it in a future PR
--- don't change below this line ---
ENG-4041 Took 8 minutes
Took 42 seconds
Took 5 seconds
2025-01-28 16:59:29 +00:00
Diana Carvalho
3b2d9fcbdf
feat: Wrap and unwrap ETH
...
--- don't change below this line ---
ENG-4041 Took 2 hours 28 minutes
Took 14 seconds
Took 11 seconds
Took 2 minutes
Took 1 minute
Took 7 minutes
2025-01-28 16:59:29 +00:00
royvardhan
877f625efc
fix: clippy
2025-01-28 22:27:26 +05:30
Harsh Vardhan Roy
5f5f30ee2d
Merge branch 'main' into router/hr/ENG-4035-Balancer-V2-Executor
2025-01-28 22:17:05 +05:30
royvardhan
25756fffdd
feat: add node.js workflow
2025-01-28 22:14:45 +05:30
semantic-release-bot
7d35b8bb36
chore(release): 0.19.0 [skip ci]
...
## [0.19.0](https://github.com/propeller-heads/tycho-execution/compare/0.18.0...0.19.0 ) (2025-01-28)
### Features
* UniswapV3SwapEncoder ([9c63e09 ](9c63e099a9 )), closes [/github.com/propeller-heads/tycho-protocol-sdk/blob/3c08359cf112e15c137dd5256b8dc8e9cd6c1626/substreams/ethereum-uniswap-v3/src/modules/1_map_pool_created.rs#L64](3c08359cf1/substreams/ethereum-uniswap-v3/src/modules/1_map_pool_created.rs/issues/L64 )
2025-01-28 15:06:00 +00:00
Tamara
2eab068fc1
Merge pull request #28 from propeller-heads/encoding/tnl/ENG-4067-usv3-swap
...
feat: USV3 Swap Encoder
2025-01-28 10:02:09 -05:00
TAMARA LIPOWSKI
d95b74bb4e
chore: small improvements
...
- Easier less convoluted way to decode address from string
- No more tokio test (not necessary)
- zero_for_one -> zero_to_one for consistency
2025-01-28 09:54:49 -05:00