From d7e0692fa336b38877736a01354630baf168f80a Mon Sep 17 00:00:00 2001 From: yooml Date: Mon, 25 Nov 2024 13:21:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20update=20MaximumUnlo?= =?UTF-8?q?ckIdOfTimeUnit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runtime/bifrost-kusama/src/lib.rs | 8 ++------ runtime/bifrost-polkadot/src/lib.rs | 7 ++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/runtime/bifrost-kusama/src/lib.rs b/runtime/bifrost-kusama/src/lib.rs index 41fbea8ef..eb91d96cb 100644 --- a/runtime/bifrost-kusama/src/lib.rs +++ b/runtime/bifrost-kusama/src/lib.rs @@ -164,7 +164,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("bifrost"), impl_name: create_runtime_str!("bifrost"), authoring_version: 1, - spec_version: 15000, + spec_version: 15001, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -1539,7 +1539,7 @@ impl bifrost_vtoken_minting::OnRedeemSuccess for parameter_types! { pub const MaximumUnlockIdOfUser: u32 = 10; - pub const MaximumUnlockIdOfTimeUnit: u32 = 50; + pub const MaximumUnlockIdOfTimeUnit: u32 = 1000; pub BifrostFeeAccount: AccountId = TreasuryPalletId::get().into_account_truncating(); } @@ -2000,12 +2000,8 @@ pub mod migrations { /// Unreleased migrations. Add new ones here: pub type Unreleased = ( - bifrost_parachain_staking::migrations::RemoveDelegatorReserveToLockAndCollatorReserveToLock< - Runtime, - >, // permanent migration, do not remove pallet_xcm::migration::MigrateToLatestXcmVersion, - bifrost_flexible_fee::migrations::v3::MigrateToV3, ); } diff --git a/runtime/bifrost-polkadot/src/lib.rs b/runtime/bifrost-polkadot/src/lib.rs index 9a046b485..68bcdb986 100644 --- a/runtime/bifrost-polkadot/src/lib.rs +++ b/runtime/bifrost-polkadot/src/lib.rs @@ -188,7 +188,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("bifrost_polkadot"), impl_name: create_runtime_str!("bifrost_polkadot"), authoring_version: 0, - spec_version: 15000, + spec_version: 15001, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -1392,7 +1392,7 @@ impl bifrost_vtoken_minting::OnRedeemSuccess for parameter_types! { pub const MaximumUnlockIdOfUser: u32 = 10; - pub const MaximumUnlockIdOfTimeUnit: u32 = 50; + pub const MaximumUnlockIdOfTimeUnit: u32 = 1000; pub BifrostFeeAccount: AccountId = TreasuryPalletId::get().into_account_truncating(); } @@ -1902,9 +1902,6 @@ pub mod migrations { pub type Unreleased = ( // permanent migration, do not remove pallet_xcm::migration::MigrateToLatestXcmVersion, - bifrost_parachain_staking::migrations::InitGenesisMigration, - frame_support::migrations::RemovePallet, - bifrost_flexible_fee::migrations::v3::PolkadotMigrateToV3, ); }