Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v0.8.0: bump alloy, update API types #28

Merged
merged 6 commits into from
Dec 27, 2024
Merged

feat: v0.8.0: bump alloy, update API types #28

merged 6 commits into from
Dec 27, 2024

Conversation

merklefruit
Copy link
Contributor

@merklefruit merklefruit commented Dec 26, 2024

This PR bumps the package version from v0.7.4 to v0.8.0.

Here is a list of all the changes:

  • updated old dependencies: mainly alloy and ethereum_ssz
  • got rid of reth_primitives as dependency as now all the types we need are upstreamed into alloy
  • added all background task handles to the Client struct so that we have a way to manually kill them if necessary
  • added a Client::kill_all_background_tasks() function to kill all outstanding streams
  • updated all send_ API functions to return tx_hashes as alloy::primitives::B256 instead of String.
  • removed all unused dependencies (and added clippy lint rule for the future).
  • added usage of thiserror for library error enum

Some types have changed due to how outdated alloy was. In particular:

  • sending typed transactions now expects alloy::consensus::TxEnvelope
  • subscribing to transactions returns a stream of alloy::consensus::transaction::Recovered<TxEnvelope>
  • subscribing to blob txs returns Recovered<alloy::consensus::Signed<TxEip4844WithSidecar>>
  • subscribing to execution payloads returns a stream of alloy::consensus::Block<TxEnvelope>>

Given the type changes to the public API, this marks a breaking change.

@merklefruit merklefruit changed the title feat: bump alloy, rm reth as dependency, other types upgrades feat: v0.8.0: bump alloy, update API types Dec 26, 2024
@merklefruit merklefruit self-assigned this Dec 26, 2024
@merklefruit merklefruit added the enhancement New feature or request label Dec 26, 2024
chore: fix ci

chore: fix ci
src/client.rs Outdated Show resolved Hide resolved
@merklefruit merklefruit merged commit 2986e20 into main Dec 27, 2024
9 checks passed
@merklefruit merklefruit deleted the maintenance branch December 27, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants