Skip to content

🏗️ Funding pallet migration for enabling async backing #472

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

Merged

Conversation

dastansam
Copy link
Contributor

@dastansam dastansam commented Mar 14, 2025

What?

migrates UserMigrations to use relay chain block number, assuming change from 12s block time to 6s. Tested with try-runtime and a unit test

Why?

How?

Testing?

Screenshots (optional)

Screenshot 2025-03-21 at 1 48 34

Anything Else?

Copy link
Contributor Author

dastansam commented Mar 14, 2025

@dastansam dastansam changed the title Migrated pallet funding for block number provider Funding pallet migration for enabling async backing Mar 14, 2025
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch 4 times, most recently from ba2441f to fcf9ede Compare March 17, 2025 09:01
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from e07c1a9 to cbc803c Compare March 17, 2025 09:14
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch 2 times, most recently from 9b6d309 to 16119cf Compare March 18, 2025 05:29
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from cbc803c to 4317213 Compare March 19, 2025 14:37
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch 2 times, most recently from 3a47582 to 257656a Compare March 19, 2025 15:17
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch 2 times, most recently from 8c9017b to d1e02ed Compare March 19, 2025 15:18
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch 3 times, most recently from 3ec3366 to c5c8e08 Compare March 20, 2025 19:46
@dastansam dastansam self-assigned this Mar 20, 2025
@dastansam dastansam marked this pull request as ready for review March 20, 2025 19:46
@dastansam dastansam requested a review from lrazovic March 20, 2025 19:46
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch 2 times, most recently from b5ae21f to 7c4f030 Compare March 21, 2025 05:50
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from d1e02ed to 699d4da Compare April 2, 2025 06:10
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 7c4f030 to 4d70109 Compare April 2, 2025 06:10
@lrazovic lrazovic requested a review from Copilot April 3, 2025 09:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the funding pallet to support asynchronous backing by updating the storage migration paths and introducing a new vesting info migration.

  • Updated migration paths in polimec runtime to reflect new module structure.
  • Added a new vesting info migration (v7 to v8) to adapt vesting times for a faster block time.
  • Refactored funding pallet storage migration module and updated storage version reference.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
runtimes/polimec/src/lib.rs Updated migration paths to the new module structure and added vesting info migration.
pallets/funding/src/migrations/vesting_info.rs Introduced new vesting info migration with runtime upgrade hooks and tests.
pallets/funding/src/migrations/storage_migrations.rs Refactored import statements and removed redundant storage version constant.
pallets/funding/src/migrations/mod.rs Created a centralized module file with the current storage version.
pallets/funding/src/lib.rs Updated pallet attribute to reference the new migration module.
Comments suppressed due to low confidence (1)

pallets/funding/src/migrations/vesting_info.rs:1

  • [nitpick] The file header comment incorrectly references 'storage_migrations.rs' instead of 'vesting_info.rs', which may cause confusion. Please update the comment to accurately reflect the file's purpose.
// storage_migrations.rs

@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4d70109 to a4226b4 Compare April 8, 2025 17:47
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from f4e4f84 to e8ccde4 Compare April 9, 2025 07:28
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from a4226b4 to ce89017 Compare April 9, 2025 07:28
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from ce89017 to cfcee7a Compare April 9, 2025 08:33
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from e8ccde4 to 6ab4ec1 Compare April 9, 2025 08:36
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from cfcee7a to ea3bfe1 Compare April 9, 2025 08:36
@dastansam dastansam force-pushed the 03-14-prepare_pallets_for_async_backing branch from 6ab4ec1 to e087f8f Compare April 9, 2025 08:39
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from ea3bfe1 to 4bdace6 Compare April 9, 2025 08:39
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4bdace6 to 4858afd Compare April 25, 2025 10:48
@lrazovic lrazovic mentioned this pull request Apr 25, 2025
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4858afd to 4bdace6 Compare April 29, 2025 13:32
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4bdace6 to 4858afd Compare April 29, 2025 15:24
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4858afd to 4bdace6 Compare April 30, 2025 15:25
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4bdace6 to 4858afd Compare April 30, 2025 15:34
@lrazovic lrazovic changed the title Funding pallet migration for enabling async backing 🏗️ Funding pallet migration for enabling async backing May 1, 2025
@dastansam dastansam force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4858afd to 4bdace6 Compare May 1, 2025 15:54
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4bdace6 to 4858afd Compare May 2, 2025 07:41
Copy link
Member

lrazovic commented May 2, 2025

Merge activity

  • May 2, 7:23 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • May 2, 7:26 AM EDT: Graphite rebased this pull request as part of a merge.
  • May 2, 7:27 AM EDT: @lrazovic merged this pull request with Graphite.

@lrazovic lrazovic changed the base branch from 03-14-prepare_pallets_for_async_backing to graphite-base/472 May 2, 2025 11:24
@lrazovic lrazovic changed the base branch from graphite-base/472 to main May 2, 2025 11:25
@lrazovic lrazovic force-pushed the 03-14-migrated_pallet_funding_for_block_number_provider branch from 4858afd to 94b245d Compare May 2, 2025 11:26
@lrazovic lrazovic merged commit 34f9718 into main May 2, 2025
1 check passed
@lrazovic lrazovic deleted the 03-14-migrated_pallet_funding_for_block_number_provider branch May 2, 2025 11:27
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.

2 participants