Diana Carvalho
e16d7ccb8e
feat: Add foundry environment and CI
2025-01-17 09:50:26 +00:00
semantic-release-bot
3127c0e9bb
chore(release): 1.1.0 [skip ci]
...
## [1.1.0](https://github.com/propeller-heads/tycho-execution/compare/1.0.0...1.1.0 ) (2025-01-16)
### Features
* Add builder pattern and registry for SwapEncoders ([6d8cbcd ](6d8cbcd80c ))
* Add permit2 draft ([5d79da4 ](5d79da44f3 ))
* Add StrategySelector ([6e67875 ](6e67875821 ))
* Add Transaction as output of encoding ([5a661ab ](5a661ab6ca ))
* ApprovalsManager trait ([4991883 ](4991883fc8 ))
* Handle native actions ([fa462ee ](fa462ee9f3 ))
* Initial draft of encoding module ([36fe8f4 ](36fe8f4b76 ))
* Make check amount optional ([6f8bbd8 ](6f8bbd89a5 ))
* Remove batch execute logic from StrategyEncoder ([68c5a91 ](68c5a914eb ))
* Support encoding only the pool swap ([3e609c7 ](3e609c75ae ))
### Bug Fixes
* Add expected_amount to Solution ([f9f83b4 ](f9f83b439f ))
* Add new to SwapEncoder trait ([30f2ac9 ](30f2ac9f6b ))
* Constrain new in SwapEncoder so it does not apply to trait objects ([e93bf11 ](e93bf11a85 ))
* Simplify models. Delete Solution and rename Order->Solution ([a25c56e ](a25c56e667 ))
* TokenApprovalsManager should not implement ApprovalsManager ([93410b4 ](93410b4fe2 ))
2025-01-16 21:46:56 +00:00
Tamara
09f0224b2b
Merge pull request #1 from propeller-heads/dc/initial-draft
...
feat: Initial draft of encoding module
2025-01-16 16:44:41 -05:00
TAMARA LIPOWSKI
20fb01280c
chore: add dummy test to make CI happy
...
Right now it complains and fails because no tests: `error: no tests to run`
2025-01-16 16:41:07 -05:00
TAMARA LIPOWSKI
f8e8a72c53
chore: fix clippy warnings and nightly fmt
2025-01-16 16:35:02 -05:00
Diana Carvalho
e93bf11a85
fix: Constrain new in SwapEncoder so it does not apply to trait objects
2025-01-16 17:18:11 +00:00
Diana Carvalho
30f2ac9f6b
fix: Add new to SwapEncoder trait
...
Add executor_address in SwapEncoderBuilder::new and not in the builder pattern
2025-01-16 17:18:11 +00:00
Diana Carvalho
6d8cbcd80c
feat: Add builder pattern and registry for SwapEncoders
...
Save swap executor addresses in a config file
2025-01-16 17:18:11 +00:00
Diana Carvalho
6f8bbd89a5
feat: Make check amount optional
2025-01-16 17:18:11 +00:00
Diana Carvalho
5a661ab6ca
feat: Add Transaction as output of encoding
2025-01-16 17:18:11 +00:00
Diana Carvalho
f9f83b439f
fix: Add expected_amount to Solution
2025-01-16 17:18:11 +00:00
Diana Carvalho
a25c56e667
fix: Simplify models. Delete Solution and rename Order->Solution
2025-01-16 17:18:11 +00:00
Diana Carvalho
68c5a914eb
feat: Remove batch execute logic from StrategyEncoder
...
Add action_type and selector to StrategyEncoder
Rename SequentialExactInStrategyEncoder -> SequentialStrategyEncoder
2025-01-16 17:18:11 +00:00
Diana Carvalho
93410b4fe2
fix: TokenApprovalsManager should not implement ApprovalsManager
...
They should be separate.
ApprovalsManager is only for user approvals
2025-01-16 17:18:11 +00:00
Diana Carvalho
3e609c75ae
feat: Support encoding only the pool swap
...
Create StraightToPoolStrategyEncoder
2025-01-16 17:18:11 +00:00
Diana Carvalho
4991883fc8
feat: ApprovalsManager trait
...
Make Permit2 and TokenApprovalsManager implement it.
This way in the RouternEncoder we can use either one (I'm not exactly sure what this would mean in the contract though)
I'm not sure I like this generalisation. The TokenApprovalsManager was made with a different purpose: to approve token allowances for the pools (like balancer and curve) for our router
2025-01-16 17:18:09 +00:00
Diana Carvalho
6e67875821
feat: Add StrategySelector
...
This way the user could be able to extend this easily
2025-01-16 17:17:52 +00:00
Diana Carvalho
647f697ea2
chore: Refactor models:
...
- Delete min_checked_amount and use check_amount instead
- Use Bytes and not Address in interfaces
- Move router_address from Solution to Order
2025-01-16 17:17:52 +00:00
Diana Carvalho
5d79da44f3
feat: Add permit2 draft
2025-01-16 17:17:52 +00:00
Diana Carvalho
fa462ee9f3
feat: Handle native actions
2025-01-16 17:17:52 +00:00
Diana Carvalho
36fe8f4b76
feat: Initial draft of encoding module
2025-01-16 17:17:50 +00:00
semantic-release-bot
4711794e4d
chore(release): 1.0.0 [skip ci]
...
## 1.0.0 (2025-01-16)
### Features
* Add Cargo files, CI, configs and README ([c27b253 ](c27b253ef5 ))
### Bug Fixes
* Add temporary main function to lib.rs ([1e54ea0 ](1e54ea045e ))
2025-01-16 17:14:10 +00:00
dianacarvalho1
ab5e830da0
Merge pull request #2 from propeller-heads/dc/setup-repo
...
feat: Add Cargo files, CI, configs and README
2025-01-16 17:10:32 +00:00
Diana Carvalho
1e54ea045e
fix: Add temporary main function to lib.rs
2025-01-16 14:47:55 +00:00
Diana Carvalho
c27b253ef5
feat: Add Cargo files, CI, configs and README
2025-01-16 12:53:28 +00:00
dianacarvalho1
a2784be122
Initial commit
2025-01-13 11:28:27 +00:00