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

[WIP] Migrate from SignedExtension to TransactionExtension #2454

Merged
merged 35 commits into from
Nov 27, 2023

Conversation

georgepisaltu
Copy link
Contributor

@georgepisaltu georgepisaltu commented Nov 22, 2023

Follow up effort on top of #2280

  • implement TransactionExtension for all SignedExtension impl instances
  • remove AsTransactionExtension adapter
  • mark SignedExtension as deprecated and remove all SignedExtension impl` instances
  • clean up any SignedExtension remnants in docs or other names
  • fix broken migration tests?

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@georgepisaltu georgepisaltu self-assigned this Nov 22, 2023
@georgepisaltu georgepisaltu requested review from a team November 22, 2023 17:57
@georgepisaltu georgepisaltu requested a review from a team as a code owner November 22, 2023 17:57
@paritytech-review-bot paritytech-review-bot bot requested review from a team November 22, 2023 17:57
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@paritytech paritytech deleted a comment from paritytech-cicd-pr Nov 23, 2023
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@paritytech paritytech deleted a comment from paritytech-cicd-pr Nov 24, 2023
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@paritytech paritytech deleted a comment from paritytech-cicd-pr Nov 24, 2023
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@paritytech paritytech deleted a comment from paritytech-cicd-pr Nov 24, 2023
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
let balances = vec![(ALICE, INITIAL_BALANCE)];
let beneficiary: MultiLocation =
Junction::AccountId32 { network: None, id: ALICE.into() }.into();
new_test_ext_with_balances(balances).execute_with(|| {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
new_test_ext_with_balances(balances).execute_with(|| {
new_test_ext_with_balances(balances).execute_with(|| {

@paritytech-ci paritytech-ci requested review from a team November 26, 2023 11:54
@@ -14,7 +14,7 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
tuplex = "0.1.1"
tuplex = { git = "https://github.com/gavofyork/tuplex.git", default-features = false }
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
tuplex = { git = "https://github.com/gavofyork/tuplex.git", default-features = false }
tuplex = "0.1.2"

oooutlk/tuplex#1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice!

@paritytech-ci paritytech-ci requested review from a team November 26, 2023 12:04
@@ -1,130 +0,0 @@
// This file is part of Substrate.
Copy link
Member

Choose a reason for hiding this comment

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

Can't remove this - it's also for other people!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Didn't think of that, I reverted the removal.

@paritytech-review-bot paritytech-review-bot bot requested review from a team November 26, 2023 12:05
Copy link
Member

@gavofyork gavofyork left a comment

Choose a reason for hiding this comment

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

Looks good other than the removal of AsTransactionExtension, which is going to be needed by the community.

@paritytech-ci paritytech-ci requested review from a team November 26, 2023 12:06
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
@gavofyork gavofyork merged commit 91d9e81 into paritytech:gav-tx-ext Nov 27, 2023
118 of 122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants