Commit Graph

519 Commits

Author SHA1 Message Date
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