Skip to content

Prep subxt-historic 0.0.7 release: expose ClientAtBlock bits#2138

Merged
jsdw merged 1 commit intomasterfrom
jsdw-historic-expose-clientatblock
Dec 3, 2025
Merged

Prep subxt-historic 0.0.7 release: expose ClientAtBlock bits#2138
jsdw merged 1 commit intomasterfrom
jsdw-historic-expose-clientatblock

Conversation

@jsdw
Copy link
Collaborator

@jsdw jsdw commented Dec 3, 2025

Expose OfflineClientAtBlock, OfflineClientAtBlockT, OnlinelientAtBlock, OnlineClientAtBlockT.

This is so that you can pass the ClientAtBlock into functions like so:

use subxt_historic::config::Config;
use subxt_historic::client::{ ClientAtBlock, OnlineClientAtBlock, OnlineClientAtBlockT };

fn accepts_client_at_block_concrete<T: Config>(client: &ClientAtBlock<OnlineClientAtBlock<'_, T>, T>) {
    // ...
}
fn accepts_client_at_block_generic<'conf, T: Config + 'conf, C: OnlineClientAtBlockT<'conf, T>>(client: &ClientAtBlock<C, T>) {
    // ...
}

closes #2137

@jsdw jsdw requested a review from a team as a code owner December 3, 2025 10:59
Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thanks :)

@jsdw jsdw merged commit 24ccd58 into master Dec 3, 2025
14 checks passed
@jsdw jsdw deleted the jsdw-historic-expose-clientatblock branch December 3, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

subxt-historic: Expose ClientAtBlock type for reuse across operations

3 participants