-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Gelato Settlement Submission Strategy (#841)
Succeeds #599 This PR adds the Gelato settlement submission strategy and is based on #839 and #840. With this new strategy, transaction are submitted over the Gelato relay network, so no transaction execution/submission needs to be handled by the driver 🎉. Note that there is a bit of a code-smell in the `SettlementSubmitter` component. I didn't want to address that in this PR, but I left a clarifying comment to try and explain the issue. Perhaps this is something we can refactor in the near future. ### Test Plan Added a new manual test for submitting a [settlement](https://goerli.etherscan.io/tx/0x9b3d0a61d2862f98651cf7b8e8d7edccc3f7aaa3621dd9a8e26576c9a6cc4e5e): ``` % cargo test -p solver -- gelato::tests::execute_relayed_settlement --ignored --nocapture Compiling solver v0.1.0 (/Users/nlordell/Developer/cowprotocol/services/crates/solver) Finished test [unoptimized + debuginfo] target(s) in 5.97s Running unittests src/lib.rs (target/debug/deps/solver-4e294b2061fada4d) running 1 test executed transaction 0x9b3d0a61d2862f98651cf7b8e8d7edccc3f7aaa3621dd9a8e26576c9a6cc4e5e test settlement_submission::gelato::tests::execute_relayed_settlement ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 196 filtered out; finished in 27.26s ```
- Loading branch information
Nicholas Rodrigues Lordello
authored
Nov 28, 2022
1 parent
704fb32
commit 8b875ed
Showing
7 changed files
with
247 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.