Skip to content

Support v1 archive RPCs#1977

Merged
jsdw merged 2 commits intomasterfrom
jsdw-archive-v1
Apr 1, 2025
Merged

Support v1 archive RPCs#1977
jsdw merged 2 commits intomasterfrom
jsdw-archive-v1

Conversation

@jsdw
Copy link
Copy Markdown
Collaborator

@jsdw jsdw commented Apr 1, 2025

Now that we've stabilized the archive RPCs, add support for v1 archive RPCs in subxt-rpcs.

We keep the archive_unstable methods as copies of the v1 ones which do the same thing, but when the v1 ones have been around a while we can delete them.

@lexnv
Copy link
Copy Markdown
Collaborator

lexnv commented Apr 1, 2025

Nice! Thanks for stabilizing and implementing these! 🙏

@jsdw jsdw marked this pull request as ready for review April 1, 2025 15:43
@jsdw jsdw requested a review from a team as a code owner April 1, 2025 15:43
}

/// Call the `archive_v1_call` method and return the response.
pub async fn archive_v1_call(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm, we could perhaps have a shared implementation for this for both archive_v1_call and archive_unstable_call but doesn't matter that much since we will remove the unstable stuff eventually :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I contemplated that, but then it'd make it messier to remove them, whereas at the mo we can just delete the unstable ones nice and cleanly :)

// Dev note: we continue to support the latest "unstable" archive methods because
// they will be around for a while before the stable ones make it into a release.
// The below are just a copy-paste of the v1 methods, above, but calling the
// "unstable" RPCs instead. Eventually we'll remove them.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe open a tracking issue for that so we don't forget

@jsdw jsdw merged commit 054140b into master Apr 1, 2025
13 checks passed
@jsdw jsdw deleted the jsdw-archive-v1 branch April 1, 2025 16:34
@jsdw jsdw mentioned this pull request May 9, 2025
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.

3 participants