Skip to content

Commit

Permalink
Prep for v5.39.0 release (#1246)
Browse files Browse the repository at this point in the history
* Prep for v5.39.0 release

* Remove executed migrations
  • Loading branch information
Dinonard committed May 17, 2024
1 parent dc72150 commit 088f2c9
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 59 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/collator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astar-collator"
version = "5.38.0"
version = "5.39.0"
description = "Astar collator implementation in Rust."
build = "build.rs"
default-run = "astar-collator"
Expand Down
2 changes: 1 addition & 1 deletion runtime/astar/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "astar-runtime"
version = "5.38.0"
version = "5.39.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("astar"),
impl_name: create_runtime_str!("astar"),
authoring_version: 1,
spec_version: 86,
spec_version: 87,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down
2 changes: 1 addition & 1 deletion runtime/local/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "local-runtime"
version = "5.38.0"
version = "5.39.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion runtime/shibuya/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shibuya-runtime"
version = "5.38.0"
version = "5.39.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down
20 changes: 2 additions & 18 deletions runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("shibuya"),
impl_name: create_runtime_str!("shibuya"),
authoring_version: 1,
spec_version: 128,
spec_version: 129,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down Expand Up @@ -1292,26 +1292,10 @@ pub type Executive = frame_executive::Executive<
Migrations,
>;

parameter_types! {
pub const DappStakingMigrationName: &'static str = "DappStakingMigration";
pub const DemocracyName: &'static str = "Democracy";
pub const CouncilName: &'static str = "Council";
pub const TechnicalCommitteeName: &'static str = "TechnicalCommittee";
pub const TreasuryName: &'static str = "Treasury";

}
use frame_support::migrations::RemovePallet;

/// All migrations that will run on the next runtime upgrade.
///
/// Once done, migrations should be removed from the tuple.
pub type Migrations = (
RemovePallet<DappStakingMigrationName, <Runtime as frame_system::Config>::DbWeight>,
RemovePallet<DemocracyName, <Runtime as frame_system::Config>::DbWeight>,
RemovePallet<CouncilName, <Runtime as frame_system::Config>::DbWeight>,
RemovePallet<TechnicalCommitteeName, <Runtime as frame_system::Config>::DbWeight>,
RemovePallet<TreasuryName, <Runtime as frame_system::Config>::DbWeight>,
);
pub type Migrations = ();

type EventRecord = frame_system::EventRecord<
<Runtime as frame_system::Config>::RuntimeEvent,
Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shiden-runtime"
version = "5.38.0"
version = "5.39.0"
build = "build.rs"
authors.workspace = true
edition.workspace = true
Expand Down
32 changes: 2 additions & 30 deletions runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("shiden"),
impl_name: create_runtime_str!("shiden"),
authoring_version: 1,
spec_version: 125,
spec_version: 126,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 2,
Expand Down Expand Up @@ -1169,38 +1169,10 @@ pub type Executive = frame_executive::Executive<
Migrations,
>;

parameter_types! {
pub const StaticPriceProviderName: &'static str = "StaticPriceProvider";
// 0.32 $
pub const InitPrice: CurrencyAmount = CurrencyAmount::from_rational(32, 100);
}

/// All migrations that will run on the next runtime upgrade.
///
/// Once done, migrations should be removed from the tuple.
pub type Migrations = (
frame_support::migrations::RemovePallet<
StaticPriceProviderName,
<Runtime as frame_system::Config>::DbWeight,
>,
OracleIntegrationLogic,
pallet_price_aggregator::PriceAggregatorInitializer<Runtime, InitPrice>,
);

use frame_support::traits::OnRuntimeUpgrade;
pub struct OracleIntegrationLogic;
impl OnRuntimeUpgrade for OracleIntegrationLogic {
fn on_runtime_upgrade() -> Weight {
// 1. Set initial storage versions for the membership pallet
use frame_support::traits::StorageVersion;
StorageVersion::new(4)
.put::<pallet_membership::Pallet<Runtime, OracleMembershipInstance>>();

// No storage version for the `orml_oracle` pallet, it's essentially 0

<Runtime as frame_system::Config>::DbWeight::get().writes(1)
}
}
pub type Migrations = ();

type EventRecord = frame_system::EventRecord<
<Runtime as frame_system::Config>::RuntimeEvent,
Expand Down

0 comments on commit 088f2c9

Please sign in to comment.