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

remove substrate compat #1850

Merged
merged 20 commits into from
Nov 27, 2024
Merged

remove substrate compat #1850

merged 20 commits into from
Nov 27, 2024

Conversation

niklasad1
Copy link
Member

@niklasad1 niklasad1 commented Oct 30, 2024

Close #1847

@niklasad1 niklasad1 changed the title WIP: remove substrate compat remove substrate compat Nov 4, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this example; for me it shows that it's not hard to use Substrate's signer stuff instead if people would rather do that!

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

Based on the signer example I feel happy enough removing the substrate compat feature; it's not too hard plugging things like Substrate's signer stuff in, and this means we are independent and one can write SUbxt code against any version of polkadot-sdk that they want :)

@niklasad1 niklasad1 marked this pull request as ready for review November 13, 2024 09:37
@niklasad1 niklasad1 requested a review from a team as a code owner November 13, 2024 09:37
@jsdw
Copy link
Collaborator

jsdw commented Nov 13, 2024

Whoops; my suggestion broke the cargo check; I forgot about the extra import needed!

@@ -77,7 +77,6 @@
//! Let's see how to use each of these approaches:
Copy link
Collaborator

@jsdw jsdw Nov 26, 2024

Choose a reason for hiding this comment

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

I think here I'd be inclined to only show how to do (1), and then link to your example for (2) instead of showing the code here, since it's suddenly quite verbose and also not something we expect people to do so much nowadays

Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

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

This LGTM and I like the example!

Just a small doc change suggestion, but this can also be done as a followup if preferred!

//!
//! If this isn't suitable/available, you can either implement [`crate::tx::Signer`] yourself to use
//! custom signing logic, or you can use some external signing logic, like so:
//! //// 2. See `subxt/examples/substrate_compat_signer.rs` how to use the polkadot-sdk signer with Subxt.
Copy link
Collaborator

@jsdw jsdw Nov 27, 2024

Choose a reason for hiding this comment

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

Nit: Maybe have this below the code block instead, something like:

"See <...> for an example on of intagratating polkadot-sdk's signer in to Subxt."

@niklasad1 niklasad1 merged commit f5e9ce0 into master Nov 27, 2024
13 checks passed
@niklasad1 niklasad1 deleted the na-remove-substrate-compat branch November 27, 2024 15:46
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.

remove substrate-compat feature
3 participants