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

Add BlockNumberProvider to salary pallet config #7000

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6481857
Update salary logic to use BlockNumberProvider
PolkadotDom Dec 21, 2024
0e650b6
Salary v0 to v1 migration
PolkadotDom Dec 23, 2024
4359f23
Set block provider to system for now
PolkadotDom Dec 23, 2024
7752f6c
Set to block number provider to relay chain
PolkadotDom Dec 23, 2024
52790c5
Fix storage version issue
PolkadotDom Dec 23, 2024
cb119b0
Add migrations
PolkadotDom Dec 23, 2024
bdd0727
Remove unused import
PolkadotDom Dec 23, 2024
77741b3
fmt
PolkadotDom Dec 23, 2024
a31302c
Add alloc crate back in
PolkadotDom Dec 24, 2024
a071803
Fix noop issue
PolkadotDom Dec 24, 2024
47e7079
Update spec version
PolkadotDom Dec 24, 2024
331469e
Add space
PolkadotDom Dec 25, 2024
5cea0ca
Remove testing functions
PolkadotDom Dec 25, 2024
30cc991
Remove unused imports
PolkadotDom Dec 25, 2024
25053cc
Update prdoc and cargo tomls
PolkadotDom Dec 25, 2024
e53d8b9
Cargo reversions, one doc
PolkadotDom Jan 6, 2025
0de9976
Add to docs for migration block converter
PolkadotDom Jan 6, 2025
b208d52
Update migration.rs
PolkadotDom Jan 7, 2025
606812b
Some more doc and naming updates, migration checks WIP
PolkadotDom Jan 7, 2025
1cbf8bd
fmt
PolkadotDom Jan 7, 2025
0a47eb6
fix migration checks
PolkadotDom Jan 7, 2025
cbc90eb
fmt
PolkadotDom Jan 7, 2025
724795d
Allow for future moments, some wording and syntax
PolkadotDom Jan 7, 2025
7a77e7e
Add runtime user to prdoc
PolkadotDom Jan 8, 2025
519a71d
Fix missing config type issue
PolkadotDom Jan 9, 2025
8d4cf70
Update pr_7000.prdoc
PolkadotDom Jan 9, 2025
d8e7a4e
Documentation fixes
PolkadotDom Jan 9, 2025
a1a2ad8
Merge remote-tracking branch 'upstream/master' into dom/salary-block-…
PolkadotDom Jan 9, 2025
9f4c28a
Fixes after update to umbrella crate
PolkadotDom Jan 10, 2025
5e7a539
small fix
PolkadotDom Jan 10, 2025
73536d9
Update migration.rs
PolkadotDom Jan 10, 2025
d682adf
fmt
PolkadotDom Jan 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add migrations
  • Loading branch information
PolkadotDom committed Dec 23, 2024
commit cb119b0356cfafe61387a047e72da08003c36eb0
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ extern crate alloc;
pub use ambassador::pallet_ambassador_origins;

use alloc::{vec, vec::Vec};
use ambassador::AmbassadorCoreInstance;
use ambassador::{AmbassadorCoreInstance, AmbassadorSalaryInstance};
use cumulus_pallet_parachain_system::RelayNumberMonotonicallyIncreases;
use fellowship::{pallet_fellowship_origins, Fellows, FellowshipCoreInstance};
use fellowship::{pallet_fellowship_origins, Fellows, FellowshipCoreInstance, FellowshipSalaryInstance};
use impls::{AllianceProposalProvider, EqualOrGreatestRootCmp};
use sp_api::impl_runtime_apis;
use sp_core::{crypto::KeyTypeId, OpaqueMetadata};
Expand Down Expand Up @@ -763,8 +763,8 @@ type Migrations = (
// unreleased
pallet_core_fellowship::migration::MigrateV0ToV1<Runtime, AmbassadorCoreInstance>,
// unreleased
pallet_salary::migration::MigrateV0ToV1<Runtime, SalaryBlockNumberConverter, FellowshipCoreInstance>,
pallet_salary::migration::MigrateV0ToV1<Runtime, SalaryBlockNumberConverter, AmbassadorCoreInstance>,
pallet_salary::migration::MigrateV0ToV1<Runtime, SalaryBlockNumberConverter, FellowshipSalaryInstance>,
pallet_salary::migration::MigrateV0ToV1<Runtime, SalaryBlockNumberConverter, AmbassadorSalaryInstance>,
);

// Helpers for the salary pallet v0->v1 storage migration.
Expand Down