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

Update Moonkit fork Reference #467

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 15 additions & 15 deletions Cargo.lock

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

5 changes: 5 additions & 0 deletions container-chains/templates/frontier/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,15 @@ impl Get<(Slot, SlotDuration)> for ParaSlotProvider {
}
}

parameter_types! {
pub const ExpectedBlockTime: u64 = MILLISECS_PER_BLOCK;
}

impl pallet_async_backing::Config for Runtime {
type AllowMultipleBlocksPerSlot = ConstBool<false>;
type GetAndVerifySlot =
pallet_async_backing::ParaSlot<RELAY_CHAIN_SLOT_DURATION_MILLIS, ParaSlotProvider>;
type ExpectedBlockTime = ExpectedBlockTime;
}

impl parachain_info::Config for Runtime {}
Expand Down
2 changes: 2 additions & 0 deletions container-chains/templates/frontier/runtime/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ impl pallet_foreign_asset_creator::Config for Runtime {
type ForeignAssetDestroyerOrigin = EnsureRoot<AccountId>;
type Fungibles = ForeignAssets;
type WeightInfo = pallet_foreign_asset_creator::weights::SubstrateWeight<Runtime>;
type OnForeignAssetCreated = ();
type OnForeignAssetDestroyed = ();
}

impl pallet_asset_rate::Config for Runtime {
Expand Down
5 changes: 5 additions & 0 deletions container-chains/templates/simple/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,15 @@ impl sp_core::Get<(Slot, SlotDuration)> for ParaSlotProvider {
}
}

parameter_types! {
pub const ExpectedBlockTime: u64 = MILLISECS_PER_BLOCK;
}

impl pallet_async_backing::Config for Runtime {
type AllowMultipleBlocksPerSlot = ConstBool<false>;
type GetAndVerifySlot =
pallet_async_backing::ParaSlot<RELAY_CHAIN_SLOT_DURATION_MILLIS, ParaSlotProvider>;
type ExpectedBlockTime = ExpectedBlockTime;
}

impl parachain_info::Config for Runtime {}
Expand Down
2 changes: 2 additions & 0 deletions container-chains/templates/simple/runtime/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ impl pallet_foreign_asset_creator::Config for Runtime {
type ForeignAssetDestroyerOrigin = EnsureRoot<AccountId>;
type Fungibles = ForeignAssets;
type WeightInfo = pallet_foreign_asset_creator::weights::SubstrateWeight<Runtime>;
type OnForeignAssetCreated = ();
type OnForeignAssetDestroyed = ();
}

impl pallet_asset_rate::Config for Runtime {
Expand Down
5 changes: 5 additions & 0 deletions runtime/dancebox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,15 @@ impl Get<(Slot, SlotDuration)> for ParaSlotProvider {
}
}

parameter_types! {
pub const ExpectedBlockTime: u64 = MILLISECS_PER_BLOCK;
}

impl pallet_async_backing::Config for Runtime {
type AllowMultipleBlocksPerSlot = ConstBool<false>;
type GetAndVerifySlot =
pallet_async_backing::ParaSlot<RELAY_CHAIN_SLOT_DURATION_MILLIS, ParaSlotProvider>;
type ExpectedBlockTime = ExpectedBlockTime;
}

/// Only callable after `set_validation_data` is called which forms this proof the same way
Expand Down
2 changes: 2 additions & 0 deletions runtime/dancebox/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ impl pallet_foreign_asset_creator::Config for Runtime {
type ForeignAssetDestroyerOrigin = EnsureRoot<AccountId>;
type Fungibles = ForeignAssets;
type WeightInfo = pallet_foreign_asset_creator::weights::SubstrateWeight<Runtime>;
type OnForeignAssetCreated = ();
type OnForeignAssetDestroyed = ();
}

impl pallet_asset_rate::Config for Runtime {
Expand Down
5 changes: 5 additions & 0 deletions runtime/flashbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,15 @@ impl Get<(Slot, SlotDuration)> for ParaSlotProvider {
}
}

parameter_types! {
pub const ExpectedBlockTime: u64 = MILLISECS_PER_BLOCK;
}

impl pallet_async_backing::Config for Runtime {
type AllowMultipleBlocksPerSlot = ConstBool<false>;
type GetAndVerifySlot =
pallet_async_backing::ParaSlot<RELAY_CHAIN_SLOT_DURATION_MILLIS, ParaSlotProvider>;
type ExpectedBlockTime = ExpectedBlockTime;
}

pub struct OwnApplySession;
Expand Down
6 changes: 6 additions & 0 deletions typescript-api/src/dancebox/interfaces/augment-api-consts.ts

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

6 changes: 6 additions & 0 deletions typescript-api/src/flashbox/interfaces/augment-api-consts.ts

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

Loading