Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
Updates AWS SDK dependencies from v0.x to v1.x versions to maintain compatibility with the cowprotocol/services transition to alloy, which requires AWS v1.
- Updates aws-config from version 0.55 to 1.8
- Updates aws-sdk-kms from version 0.28 to 1.85
- Updates AWS configuration loading code to use the new v1 API pattern
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| ethcontract/Cargo.toml | Updates AWS dependency versions to v1.x |
| examples/examples/kms.rs | Updates AWS config loading to use new v1 API with BehaviorVersion |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
9ca56c9 to
8219a76
Compare
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
1e9aa18 to
cd79c4c
Compare
jmg-duarte
approved these changes
Sep 2, 2025
squadgazzz
added a commit
to cowprotocol/services
that referenced
this pull request
Sep 3, 2025
# Description Adds a conversion from `ethcontract::Account` to the corresponding alloy types. A wrapper is introduced because local accounts don’t share a common type with KMS or PrivateKey in alloy. The usage also differs when building/signing transactions: for a local account it’s enough to just set the from field (an address), while with KMS and PrivateKey there isn’t a direct way to use a signer that’s different from the provider’s configured one(more details alloy-rs/alloy#2829). `ethcontract::Account::Locked` remains unused in this repo and it seems like there is no direct way to convert it into `alloy::signers::local::LocalSigner`, so this branch is `unimplemented`. This PR also depends on cowprotocol/ethcontract-rs#981, which explains incompatibilities. After ethcontract was updated in cowprotocol/ethcontract-rs#981, driver tests started failing with stack overflow. As @jmg-duarte's research showed, that the issue lies in how updated third-party libraries optimizations work, which is not related to any infinite recursion. The problem doesn't exist when building with the `--release` flag, so instead, the stack size was increased. ## How to test In the upcoming PRs. --------- Co-authored-by: MartinquaXD <martin.beckmann@protonmail.com>
m-sz
pushed a commit
to cowprotocol/services
that referenced
this pull request
Sep 4, 2025
# Description Adds a conversion from `ethcontract::Account` to the corresponding alloy types. A wrapper is introduced because local accounts don’t share a common type with KMS or PrivateKey in alloy. The usage also differs when building/signing transactions: for a local account it’s enough to just set the from field (an address), while with KMS and PrivateKey there isn’t a direct way to use a signer that’s different from the provider’s configured one(more details alloy-rs/alloy#2829). `ethcontract::Account::Locked` remains unused in this repo and it seems like there is no direct way to convert it into `alloy::signers::local::LocalSigner`, so this branch is `unimplemented`. This PR also depends on cowprotocol/ethcontract-rs#981, which explains incompatibilities. After ethcontract was updated in cowprotocol/ethcontract-rs#981, driver tests started failing with stack overflow. As @jmg-duarte's research showed, that the issue lies in how updated third-party libraries optimizations work, which is not related to any infinite recursion. The problem doesn't exist when building with the `--release` flag, so instead, the stack size was increased. ## How to test In the upcoming PRs. --------- Co-authored-by: MartinquaXD <martin.beckmann@protonmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates aws dependencies to the latest versions. Another requirement for the cowprotocol/services transition to allloy is that it uses AWS v1 which is incompatible with the v0.x used in this repository.