fix(ci): resolve all quick-checks failures
- Remove missing cli crate from workspace members - Fix TOML array syntax errors in pvf and benchmarking-cli Cargo.toml - Fix Rust import ordering with cargo fmt - Fix feature propagation with zepter (try-runtime, runtime-benchmarks, std)
This commit is contained in:
@@ -48,7 +48,7 @@ pezpallet-collator-selection = { workspace = true }
|
||||
teyrchain-info = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
|
||||
+1
-1
@@ -39,8 +39,8 @@ pezbp-bridge-hub-pezkuwichain = { workspace = true }
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"asset-hub-pezkuwichain-runtime/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezkuwichain-emulated-chain/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -39,8 +39,8 @@ pezbp-bridge-hub-zagros = { workspace = true }
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"asset-hub-zagros-runtime/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-zagros/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-zagros/runtime-benchmarks",
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -36,9 +36,9 @@ teyrchains-common = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbridge-hub-pezkuwichain-runtime/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -36,9 +36,9 @@ teyrchains-common = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbridge-hub-zagros-runtime/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-keyring/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -59,8 +59,8 @@ pezsnowbridge-pezpallet-system = { workspace = true }
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"asset-hub-pezkuwichain-runtime/runtime-benchmarks",
|
||||
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezkuwichain-system-emulated-network/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -68,9 +68,9 @@ pezsnowbridge-pezpallet-system-v2 = { workspace = true }
|
||||
[features]
|
||||
runtime-benchmarks = [
|
||||
"asset-hub-zagros-runtime/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbp-asset-hub-zagros/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"emulated-integration-tests-common/runtime-benchmarks",
|
||||
"pezbridge-hub-zagros-runtime/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
|
||||
|
||||
@@ -30,7 +30,7 @@ pezsp-runtime = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
runtime-benchmarks = [
|
||||
"pezframe-benchmarking/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
|
||||
@@ -34,7 +34,7 @@ pezpallet-balances = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -42,7 +42,7 @@ pezsp-io = { workspace = true, default-features = false, optional = true }
|
||||
# pezpallet-sudo = { workspace = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -66,7 +66,7 @@ pezsp-core = { workspace = true, default-features = false, features = ["std"] }
|
||||
pezsp-io = { workspace = true, default-features = false, features = ["std"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -49,7 +49,7 @@ pezpallet-assets = { workspace = true, default-features = false, features = [
|
||||
] } # <-- BU SATIRI EKLEYİN
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -26,7 +26,7 @@ pezcumulus-pezpallet-xcm = { workspace = true }
|
||||
pezcumulus-primitives-core = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-xcm/std",
|
||||
|
||||
@@ -39,7 +39,7 @@ pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -36,7 +36,7 @@ pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -48,7 +48,7 @@ pezsp-runtime = { workspace = true, features = ["std"] }
|
||||
pezsp-staking = { workspace = true, features = ["std"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
|
||||
@@ -24,7 +24,7 @@ pezsp-runtime = { workspace = true }
|
||||
pezcumulus-primitives-core = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
|
||||
@@ -35,7 +35,7 @@ pezsp-core = { workspace = true }
|
||||
pezsp-io = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -41,7 +41,7 @@ pezsp-io = { workspace = true }
|
||||
serde = { version = "1.0" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezframe-benchmarking?/std",
|
||||
|
||||
@@ -53,7 +53,7 @@ pezsp-core = { workspace = true, default-features = false }
|
||||
pezsp-io = { workspace = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
@@ -73,7 +73,8 @@ std = [
|
||||
"pezsp-runtime/std",
|
||||
"pezsp-std/std",
|
||||
"scale-info/std",
|
||||
"serde", # serde'yi doğrudan feature olarak ekliyoruz
|
||||
"serde",
|
||||
# serde'yi doğrudan feature olarak ekliyoruz
|
||||
"serde?/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
|
||||
@@ -56,7 +56,7 @@ pezsp-core = { workspace = true, default-features = false }
|
||||
pezsp-io = { workspace = true, default-features = false }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"log/std",
|
||||
|
||||
@@ -134,12 +134,12 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
fast-runtime = []
|
||||
runtime-benchmarks = [
|
||||
"asset-test-pezutils/runtime-benchmarks",
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"pezbp-asset-hub-zagros/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
@@ -284,14 +284,14 @@ try-runtime = [
|
||||
"teyrchains-common/try-runtime",
|
||||
]
|
||||
std = [
|
||||
"pez-assets-common/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"pez-assets-common/std",
|
||||
"pezbp-asset-hub-pezkuwichain/std",
|
||||
"pezbp-asset-hub-zagros/std",
|
||||
"pezbp-bridge-hub-pezkuwichain/std",
|
||||
"pezbp-bridge-hub-zagros/std",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
@@ -384,9 +384,9 @@ std = [
|
||||
]
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
+4
-4
@@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["pezkuwichain"], workspace = true }
|
||||
xcm = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-bridge-hub-pezcumulus/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezframe-support/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
@@ -52,8 +52,8 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"testnet-teyrchains-constants/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -24,10 +24,10 @@ use scale_info::TypeInfo;
|
||||
|
||||
pub use pezbp_bridge_hub_pezcumulus::*;
|
||||
use pezbp_messages::*;
|
||||
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
use pezframe_support::{
|
||||
dispatch::DispatchClass,
|
||||
pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion},
|
||||
|
||||
@@ -61,8 +61,8 @@ use testnet_teyrchains_constants::pezkuwichain::snowbridge::EthereumNetwork;
|
||||
use pezsp_version::NativeVersion;
|
||||
use pezsp_version::RuntimeVersion;
|
||||
|
||||
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use pezcumulus_primitives_core::ParaId;
|
||||
use pezframe_support::{
|
||||
construct_runtime, derive_impl,
|
||||
|
||||
@@ -129,7 +129,10 @@ pub type FungibleTransactor = FungibleAdapter<
|
||||
|
||||
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
|
||||
pub type TrustBackedAssetsConvertedConcreteId =
|
||||
pez_assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
|
||||
pez_assets_common::TrustBackedAssetsConvertedConcreteId<
|
||||
TrustBackedAssetsPalletLocation,
|
||||
Balance,
|
||||
>;
|
||||
|
||||
/// Means for transacting assets besides the native currency on this chain.
|
||||
pub type FungiblesTransactor = FungiblesAdapter<
|
||||
|
||||
@@ -967,7 +967,8 @@ mod asset_hub_pezkuwichain_tests {
|
||||
let actual = <Runtime as pezpallet_xcm_bridge_hub_router::Config<
|
||||
ToZagrosXcmRouterInstance,
|
||||
>>::WeightInfo::report_bridge_status();
|
||||
let max_weight = pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get();
|
||||
let max_weight =
|
||||
pezbp_asset_hub_pezkuwichain::XcmBridgeHubRouterTransactCallMaxWeight::get();
|
||||
assert!(
|
||||
actual.all_lte(max_weight),
|
||||
"max_weight: {:?} should be adjusted to actual {:?}",
|
||||
|
||||
@@ -151,11 +151,11 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
runtime-benchmarks = [
|
||||
"asset-test-pezutils/runtime-benchmarks",
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"pezbp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"pezbp-asset-hub-zagros/runtime-benchmarks",
|
||||
"pezbp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
@@ -326,14 +326,14 @@ try-runtime = [
|
||||
]
|
||||
std = [
|
||||
"alloy-core/std",
|
||||
"pez-assets-common/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"pez-assets-common/std",
|
||||
"pezbp-asset-hub-pezkuwichain/std",
|
||||
"pezbp-asset-hub-zagros/std",
|
||||
"pezbp-bridge-hub-pezkuwichain/std",
|
||||
"pezbp-bridge-hub-zagros/std",
|
||||
"codec/std",
|
||||
"log/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
@@ -443,9 +443,9 @@ std = [
|
||||
fast-runtime = []
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
@@ -35,13 +35,13 @@ testnet-teyrchains-constants = { features = ["zagros"], workspace = true }
|
||||
xcm = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-bridge-hub-pezcumulus/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezframe-support/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-core/std",
|
||||
@@ -52,8 +52,8 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"testnet-teyrchains-constants/runtime-benchmarks",
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
pub use pezbp_bridge_hub_pezcumulus::*;
|
||||
use pezbp_messages::*;
|
||||
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
pub use pezbp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
use pezframe_support::{
|
||||
dispatch::DispatchClass,
|
||||
pezsp_runtime::{MultiAddress, MultiSigner, RuntimeDebug, StateVersion},
|
||||
|
||||
@@ -43,13 +43,13 @@ use governance::{
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
pub use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use pez_assets_common::{
|
||||
local_and_foreign_assets::{LocalFromLeft, TargetFromLeft},
|
||||
AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert,
|
||||
};
|
||||
use pezbp_asset_hub_zagros::CreateForeignAssetDeposit;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezcumulus_pezpallet_teyrchain_system::{
|
||||
RelayNumberMonotonicallyIncreases, RelaychainDataProvider,
|
||||
};
|
||||
|
||||
@@ -124,7 +124,10 @@ pub type FungibleTransactor = FungibleAdapter<
|
||||
|
||||
/// `AssetId`/`Balance` converter for `TrustBackedAssets`.
|
||||
pub type TrustBackedAssetsConvertedConcreteId =
|
||||
pez_assets_common::TrustBackedAssetsConvertedConcreteId<TrustBackedAssetsPalletLocation, Balance>;
|
||||
pez_assets_common::TrustBackedAssetsConvertedConcreteId<
|
||||
TrustBackedAssetsPalletLocation,
|
||||
Balance,
|
||||
>;
|
||||
|
||||
/// Means for transacting assets besides the native currency on this chain.
|
||||
pub type FungiblesTransactor = FungiblesAdapter<
|
||||
|
||||
@@ -38,9 +38,9 @@ use asset_test_pezutils::{
|
||||
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
|
||||
ExtBuilder, GovernanceOrigin, SlotDurations,
|
||||
};
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::{Decode, Encode};
|
||||
use hex_literal::hex;
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use pezframe_support::{
|
||||
assert_err, assert_noop, assert_ok, parameter_types,
|
||||
traits::{
|
||||
@@ -780,12 +780,13 @@ fn test_assets_balances_api_works() {
|
||||
assert_eq!(result.len(), 3);
|
||||
|
||||
// check currency
|
||||
assert!(result.inner().iter().any(|asset| asset.eq(
|
||||
&pez_assets_common::fungible_conversion::convert_balance::<ZagrosLocation, Balance>(
|
||||
some_currency
|
||||
)
|
||||
.unwrap()
|
||||
)));
|
||||
assert!(result.inner().iter().any(|asset| {
|
||||
asset.eq(&pez_assets_common::fungible_conversion::convert_balance::<
|
||||
ZagrosLocation,
|
||||
Balance,
|
||||
>(some_currency)
|
||||
.unwrap())
|
||||
}));
|
||||
// check trusted asset
|
||||
assert!(result.inner().iter().any(|asset| asset.eq(&(
|
||||
AssetIdForTrustBackedAssetsConvert::convert_back(&local_asset_id).unwrap(),
|
||||
|
||||
@@ -42,7 +42,7 @@ pezcumulus-primitives-core = { workspace = true }
|
||||
teyrchains-common = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
|
||||
@@ -47,10 +47,10 @@ xcm-runtime-pezapis = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pez-assets-common/std",
|
||||
"codec/std",
|
||||
"pez-assets-common/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezcumulus-pezpallet-xcmp-queue/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
use super::xcm_helpers;
|
||||
use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees};
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::Encode;
|
||||
use core::ops::Mul;
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use pezcumulus_primitives_core::{UpwardMessageSender, XcmpMessageSource};
|
||||
use pezframe_support::{
|
||||
assert_noop, assert_ok,
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
//! over a bridge.
|
||||
|
||||
use crate::{assert_matches_reserve_asset_deposited_instructions, get_fungible_delivery_fees};
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use codec::Encode;
|
||||
use pez_assets_common::local_and_foreign_assets::ForeignAssetReserveData;
|
||||
use pezcumulus_primitives_core::XcmpMessageSource;
|
||||
use pezframe_support::{
|
||||
assert_ok,
|
||||
|
||||
@@ -133,9 +133,10 @@ pezsnowbridge-runtime-test-common = { workspace = true, default-features = true
|
||||
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"pezbp-asset-hub-pezkuwichain/std",
|
||||
"pezbp-asset-hub-zagros/std",
|
||||
"pezbp-bridge-hub-pezkuwichain/std",
|
||||
@@ -145,12 +146,11 @@ std = [
|
||||
"pezbp-pezkuwi-bulletin/std",
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-relayers/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezbp-zagros/std",
|
||||
"pezbridge-hub-common/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbridge-runtime-common/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
@@ -240,11 +240,11 @@ runtime-benchmarks = [
|
||||
"pezbp-pezkuwi-bulletin/runtime-benchmarks",
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-relayers/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbp-zagros/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbridge-hub-test-utils/runtime-benchmarks",
|
||||
"pezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
|
||||
+4
-4
@@ -31,13 +31,13 @@ pezsp-runtime = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-bridge-hub-pezcumulus/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"pezframe-support/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-runtime/std",
|
||||
@@ -46,8 +46,8 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -19,9 +19,9 @@
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
pub use pezbp_bridge_hub_pezcumulus::*;
|
||||
use pezbp_messages::*;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
|
||||
+1
-1
@@ -37,8 +37,8 @@ use testnet_teyrchains_constants::pezkuwichain::{
|
||||
use crate::xcm_config::RelayNetwork;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
use benchmark_helpers::DoNothingRouter;
|
||||
use pezbp_asset_hub_pezkuwichain::CreateForeignAssetDeposit;
|
||||
use hex_literal::hex;
|
||||
use pezbp_asset_hub_pezkuwichain::CreateForeignAssetDeposit;
|
||||
use pezframe_support::{parameter_types, weights::ConstantMultiplier};
|
||||
use pezpallet_xcm::EnsureXcm;
|
||||
use pezsp_runtime::{
|
||||
|
||||
+1
-1
@@ -364,8 +364,8 @@ pub mod migration {
|
||||
>;
|
||||
|
||||
mod v1_wrong {
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezpallet_bridge_messages::BridgedChainOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
@@ -75,11 +75,11 @@ use testnet_teyrchains_constants::pezkuwichain::{
|
||||
consensus::*, currency::*, fee::WeightToFee, time::*,
|
||||
};
|
||||
|
||||
use pezbp_runtime::HeaderId;
|
||||
use pezbridge_hub_common::{
|
||||
message_queue::{NarrowOriginToSibling, ParaIdToSibling},
|
||||
AggregateMessageOrigin,
|
||||
};
|
||||
use pezbp_runtime::HeaderId;
|
||||
pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
|
||||
pub use pezsp_runtime::{MultiAddress, Perbill, Permill};
|
||||
|
||||
|
||||
+1
-1
@@ -16,8 +16,8 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_to_zagros_config::OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages,
|
||||
xcm_config::XcmConfig, AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages,
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use codec::{Decode, Encode};
|
||||
use hex_literal::hex;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_common_config, bridge_to_bulletin_config, bridge_to_zagros_config,
|
||||
xcm_config::{RelayNetwork, TokenLocation, XcmConfig},
|
||||
@@ -126,7 +126,6 @@ pezbridge_hub_test_utils::test_cases::include_teleports_for_native_asset_works!(
|
||||
|
||||
mod bridge_hub_zagros_tests {
|
||||
use super::*;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use bridge_common_config::{
|
||||
BridgeGrandpaZagrosInstance, BridgeTeyrchainZagrosInstance, DeliveryRewardInBalance,
|
||||
RelayersForLegacyLaneIdsMessagesInstance,
|
||||
@@ -135,6 +134,7 @@ mod bridge_hub_zagros_tests {
|
||||
BridgeHubZagrosLocation, WithBridgeHubZagrosMessagesInstance,
|
||||
XcmOverBridgeHubZagrosInstance, ZagrosGlobalConsensusNetwork,
|
||||
};
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_to_ethereum_config::EthereumGatewayAddress, xcm_config::LocationToAccountId,
|
||||
};
|
||||
@@ -525,13 +525,13 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
mod bridge_hub_bulletin_tests {
|
||||
use super::*;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use bridge_common_config::BridgeGrandpaPezkuwichainBulletinInstance;
|
||||
use bridge_to_bulletin_config::{
|
||||
PezkuwichainBulletinGlobalConsensusNetwork,
|
||||
PezkuwichainBulletinGlobalConsensusNetworkLocation,
|
||||
WithPezkuwichainBulletinMessagesInstance, XcmOverPezkuwiBulletinInstance,
|
||||
};
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_common_config::RelayersForLegacyLaneIdsMessagesInstance,
|
||||
xcm_config::LocationToAccountId,
|
||||
|
||||
@@ -140,6 +140,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"pezbp-asset-hub-pezkuwichain/std",
|
||||
"pezbp-asset-hub-zagros/std",
|
||||
"pezbp-bridge-hub-pezkuwichain/std",
|
||||
@@ -149,11 +150,10 @@ std = [
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-pezkuwichain/std",
|
||||
"pezbp-relayers/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"pezbp-xcm-bridge-hub-router/std",
|
||||
"pezbridge-hub-common/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbridge-runtime-common/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
@@ -238,7 +238,7 @@ std = [
|
||||
"xcm/std",
|
||||
"zagros-runtime-constants/std",
|
||||
]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
|
||||
runtime-benchmarks = [
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
@@ -251,10 +251,10 @@ runtime-benchmarks = [
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-pezkuwichain/runtime-benchmarks",
|
||||
"pezbp-relayers/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezbridge-hub-common/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbridge-hub-test-utils/runtime-benchmarks",
|
||||
"pezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
@@ -377,11 +377,11 @@ try-runtime = [
|
||||
]
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
fast-runtime = []
|
||||
|
||||
+4
-4
@@ -31,13 +31,13 @@ pezsp-runtime = { workspace = true }
|
||||
pezsp-std = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezbp-bridge-hub-pezcumulus/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-xcm-bridge-hub/std",
|
||||
"pezframe-support/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-runtime/std",
|
||||
@@ -46,8 +46,8 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"pezbp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-runtime/runtime-benchmarks",
|
||||
|
||||
+1
-1
@@ -18,9 +18,9 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
pub use pezbp_bridge_hub_pezcumulus::*;
|
||||
use pezbp_messages::*;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
|
||||
+1
-1
@@ -26,9 +26,9 @@ use crate::{
|
||||
bridge_to_ethereum_config::InboundQueueV2Location, xcm_config::XcmConfig, RuntimeCall,
|
||||
XcmRouter,
|
||||
};
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_relayers::RewardsAccountParams;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezframe_support::parameter_types;
|
||||
use scale_info::TypeInfo;
|
||||
use testnet_teyrchains_constants::zagros::{
|
||||
|
||||
+1
-1
@@ -22,9 +22,9 @@ use crate::{
|
||||
EthereumOutboundQueue, EthereumOutboundQueueV2, EthereumSystem, EthereumSystemV2, MessageQueue,
|
||||
Runtime, RuntimeEvent, TransactionByteFee,
|
||||
};
|
||||
use hex_literal::hex;
|
||||
use pezbp_asset_hub_zagros::CreateForeignAssetDeposit;
|
||||
use pezbridge_hub_common::AggregateMessageOrigin;
|
||||
use hex_literal::hex;
|
||||
use pezframe_support::{parameter_types, traits::Contains, weights::ConstantMultiplier};
|
||||
use pezframe_system::EnsureRootWithSuccess;
|
||||
use pezpallet_xcm::EnsureXcm;
|
||||
|
||||
+5
-3
@@ -83,8 +83,10 @@ parameter_types! {
|
||||
pub type FromPezkuwichainBridgeHubMessagesProof<MI> =
|
||||
FromBridgedChainMessagesProof<pezbp_bridge_hub_pezkuwichain::Hash, LaneIdOf<Runtime, MI>>;
|
||||
/// Messages delivery proof for Pezkuwichain Bridge Hub -> Zagros Bridge Hub messages.
|
||||
pub type ToPezkuwichainBridgeHubMessagesDeliveryProof<MI> =
|
||||
FromBridgedChainMessagesDeliveryProof<pezbp_bridge_hub_pezkuwichain::Hash, LaneIdOf<Runtime, MI>>;
|
||||
pub type ToPezkuwichainBridgeHubMessagesDeliveryProof<MI> = FromBridgedChainMessagesDeliveryProof<
|
||||
pezbp_bridge_hub_pezkuwichain::Hash,
|
||||
LaneIdOf<Runtime, MI>,
|
||||
>;
|
||||
|
||||
/// Dispatches received XCM messages from other bridge
|
||||
type FromPezkuwichainMessageBlobDispatcher = BridgeBlobDispatcher<
|
||||
@@ -381,8 +383,8 @@ pub mod migration {
|
||||
}
|
||||
|
||||
mod v1_wrong {
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use pezpallet_bridge_messages::BridgedChainOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
@@ -1487,15 +1487,16 @@ mod tests {
|
||||
).into();
|
||||
|
||||
{
|
||||
let bh_indirect_payload = pezbp_bridge_hub_zagros::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
(((), ()), ((), ())),
|
||||
);
|
||||
let bh_indirect_payload =
|
||||
pezbp_bridge_hub_zagros::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
(((), ()), ((), ())),
|
||||
);
|
||||
assert_eq!(payload.encode().split_last().unwrap().1, bh_indirect_payload.encode());
|
||||
assert_eq!(
|
||||
TxExtension::implicit(&payload).unwrap().encode().split_last().unwrap().1,
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use pezbp_asset_hub_zagros::ASSET_HUB_ZAGROS_TEYRCHAIN_ID;
|
||||
use pezbp_bridge_hub_zagros::BRIDGE_HUB_ZAGROS_TEYRCHAIN_ID;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use codec::{Decode, Encode};
|
||||
use pezbridge_hub_zagros_runtime::{
|
||||
bridge_to_pezkuwichain_config, xcm_config::XcmConfig, AllPalletsWithoutSystem,
|
||||
BridgeRejectObsoleteHeadersAndMessages, Executive, MessageQueueServiceWeight, Runtime,
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use crate::bridge_common_config::BridgeRewardBeneficiaries;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams};
|
||||
use bridge_common_config::{BridgeRelayersInstance, BridgeReward, RequiredStakeForStakeAndSlash};
|
||||
use bridge_to_pezkuwichain_config::{
|
||||
BridgeGrandpaPezkuwichainInstance, BridgeHubPezkuwichainLocation,
|
||||
@@ -28,6 +25,9 @@ use bridge_to_pezkuwichain_config::{
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
use hex_literal::hex;
|
||||
use pezbp_messages::LegacyLaneId;
|
||||
use pezbp_pezkuwi_core::Signature;
|
||||
use pezbp_relayers::{PayRewardFromAccount, RewardsAccountOwner, RewardsAccountParams};
|
||||
use pezbridge_hub_test_utils::{
|
||||
test_cases::{from_teyrchain, run_test},
|
||||
GovernanceOrigin, SlotDurations,
|
||||
|
||||
@@ -27,7 +27,7 @@ xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-primitives-core/std",
|
||||
|
||||
@@ -58,17 +58,17 @@ pezpallet-bridge-teyrchains = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"asset-test-pezutils/std",
|
||||
"codec/std",
|
||||
"pezbp-header-pez-chain/std",
|
||||
"pezbp-messages/std",
|
||||
"pezbp-pezkuwi-core/std",
|
||||
"pezbp-relayers/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezbp-test-utils/std",
|
||||
"pezbp-teyrchains/std",
|
||||
"codec/std",
|
||||
"pezbp-runtime/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
"pezcumulus-pezpallet-xcmp-queue/std",
|
||||
"pezframe-support/std",
|
||||
@@ -99,9 +99,9 @@ runtime-benchmarks = [
|
||||
"pezbp-messages/runtime-benchmarks",
|
||||
"pezbp-pezkuwi-core/runtime-benchmarks",
|
||||
"pezbp-relayers/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezbp-test-utils/runtime-benchmarks",
|
||||
"pezbp-teyrchains/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-xcmp-queue/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
|
||||
@@ -19,10 +19,10 @@
|
||||
use crate::test_cases::{bridges_prelude::*, run_test, RuntimeHelper};
|
||||
|
||||
use asset_test_pezutils::BasicTeyrchainRuntime;
|
||||
use pezbp_messages::MessageNonce;
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId};
|
||||
use codec::Decode;
|
||||
use core::marker::PhantomData;
|
||||
use pezbp_messages::MessageNonce;
|
||||
use pezbp_pezkuwi_core::teyrchains::{ParaHash, ParaId};
|
||||
use pezbp_runtime::Chain;
|
||||
use pezframe_support::{
|
||||
assert_ok,
|
||||
|
||||
@@ -27,11 +27,11 @@ pub(crate) mod helpers;
|
||||
use crate::{test_cases::bridges_prelude::*, test_data};
|
||||
|
||||
use asset_test_pezutils::BasicTeyrchainRuntime;
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
target_chain::{DispatchMessage, DispatchMessageData, MessageDispatch},
|
||||
LaneState, MessageKey, MessagesOperatingMode, OutboundLaneData,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezframe_support::{
|
||||
assert_ok,
|
||||
|
||||
+2
-2
@@ -18,14 +18,14 @@
|
||||
|
||||
use crate::test_data::{prepare_inbound_xcm, XcmAsPlainPayload};
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
source_chain::FromBridgedChainMessagesDeliveryProof,
|
||||
target_chain::FromBridgedChainMessagesProof, ChainWithMessages, LaneState, MessageNonce,
|
||||
UnrewardedRelayersState,
|
||||
};
|
||||
use pezbp_test_utils::make_default_justification;
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{AccountIdOf, BlockNumberOf, Chain, HeaderOf, UnverifiedStorageProofParams};
|
||||
use pezbp_test_utils::make_default_justification;
|
||||
use pezpallet_bridge_grandpa::{BridgedChain, BridgedHeader};
|
||||
use pezsp_runtime::traits::Header as HeaderT;
|
||||
use xcm::latest::prelude::*;
|
||||
|
||||
+3
-3
@@ -21,17 +21,17 @@ use super::{
|
||||
XcmAsPlainPayload,
|
||||
};
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
source_chain::FromBridgedChainMessagesDeliveryProof,
|
||||
target_chain::FromBridgedChainMessagesProof, ChainWithMessages, LaneState,
|
||||
UnrewardedRelayersState, Weight,
|
||||
};
|
||||
use pezbp_test_utils::prepare_teyrchain_heads_proof;
|
||||
use pezbp_teyrchains::{RelayBlockHash, RelayBlockNumber};
|
||||
use codec::Encode;
|
||||
use pezbp_runtime::{
|
||||
AccountIdOf, BlockNumberOf, Chain, HeaderOf, Teyrchain, UnverifiedStorageProofParams,
|
||||
};
|
||||
use pezbp_test_utils::prepare_teyrchain_heads_proof;
|
||||
use pezbp_teyrchains::{RelayBlockHash, RelayBlockNumber};
|
||||
use pezpallet_bridge_grandpa::BridgedHeader;
|
||||
use pezsp_runtime::traits::Header as HeaderT;
|
||||
use xcm::latest::prelude::*;
|
||||
|
||||
@@ -19,18 +19,18 @@
|
||||
pub mod from_grandpa_chain;
|
||||
pub mod from_teyrchain;
|
||||
|
||||
use codec::Encode;
|
||||
use pezbp_messages::{
|
||||
target_chain::{DispatchMessage, DispatchMessageData},
|
||||
MessageKey,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pezframe_support::traits::Get;
|
||||
use pezpallet_bridge_grandpa::BridgedHeader;
|
||||
use xcm::latest::prelude::*;
|
||||
|
||||
use pezbp_messages::MessageNonce;
|
||||
use pezbp_test_utils::authority_list;
|
||||
use pezbp_runtime::BasicOperatingMode;
|
||||
use pezbp_test_utils::authority_list;
|
||||
use xcm::GetVersion;
|
||||
use xcm_builder::{BridgeMessage, HaulBlob, HaulBlobError, HaulBlobExporter};
|
||||
use xcm_executor::traits::{validate_export, ExportXcm};
|
||||
|
||||
@@ -102,7 +102,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
runtime-benchmarks = [
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
@@ -288,9 +288,9 @@ std = [
|
||||
]
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
@@ -32,7 +32,7 @@ zagros-runtime-constants = { optional = true, workspace = true }
|
||||
pezcumulus-primitives-core = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pezcumulus-primitives-core/std",
|
||||
"pezframe-support/std",
|
||||
@@ -44,8 +44,8 @@ std = [
|
||||
]
|
||||
|
||||
# Test runtimes specific features.
|
||||
pezkuwichain = ["pezkuwichain-runtime-constants"]
|
||||
zagros = ["zagros-runtime-constants"]
|
||||
pezkuwichain = [ "pezkuwichain-runtime-constants" ]
|
||||
zagros = [ "zagros-runtime-constants" ]
|
||||
runtime-benchmarks = [
|
||||
"pezcumulus-primitives-core/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
|
||||
@@ -90,7 +90,7 @@ teyrchains-runtimes-test-utils = { workspace = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
@@ -243,12 +243,12 @@ try-runtime = [
|
||||
"teyrchain-info/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
]
|
||||
fast-runtime = ["pezkuwichain-runtime-constants/fast-runtime"]
|
||||
fast-runtime = [ "pezkuwichain-runtime-constants/fast-runtime" ]
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
@@ -91,7 +91,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
@@ -243,12 +243,12 @@ try-runtime = [
|
||||
"teyrchain-info/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
]
|
||||
fast-runtime = ["zagros-runtime-constants/fast-runtime"]
|
||||
fast-runtime = [ "zagros-runtime-constants/fast-runtime" ]
|
||||
|
||||
# Enable the metadata hash generation in the wasm builder.
|
||||
metadata-hash = ["bizinikiwi-wasm-builder/metadata-hash"]
|
||||
metadata-hash = [ "bizinikiwi-wasm-builder/metadata-hash" ]
|
||||
|
||||
# A feature that should be enabled when the runtime should be built for on-chain
|
||||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
|
||||
# to make it smaller, like logging for example.
|
||||
on-chain-release-build = ["metadata-hash"]
|
||||
on-chain-release-build = [ "metadata-hash" ]
|
||||
|
||||
@@ -63,7 +63,7 @@ teyrchains-common = { workspace = true }
|
||||
bizinikiwi-wasm-builder = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
runtime-benchmarks = [
|
||||
"bizinikiwi-wasm-builder/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
|
||||
@@ -112,7 +112,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
|
||||
@@ -91,7 +91,7 @@ teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
|
||||
@@ -45,7 +45,7 @@ xcm-executor = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
|
||||
@@ -96,11 +96,11 @@ primitive-types = { workspace = true, default-features = false, features = [
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"pez-assets-common/std",
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
"pez-assets-common/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
"pezcumulus-pezpallet-teyrchain-system/std",
|
||||
@@ -163,9 +163,9 @@ std = [
|
||||
]
|
||||
|
||||
runtime-benchmarks = [
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"bizinikiwi-wasm-builder?/runtime-benchmarks",
|
||||
"hex-literal",
|
||||
"pez-assets-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
|
||||
@@ -41,8 +41,8 @@ use super::{
|
||||
TeyrchainSystem, WeightToFee, XcmpQueue,
|
||||
};
|
||||
use crate::{BaseDeliveryFee, FeeAssetId, TransactionByteFee};
|
||||
use pez_assets_common::TrustBackedAssetsAsLocation;
|
||||
use core::marker::PhantomData;
|
||||
use pez_assets_common::TrustBackedAssetsAsLocation;
|
||||
use pezframe_support::{
|
||||
parameter_types,
|
||||
traits::{
|
||||
|
||||
@@ -69,7 +69,7 @@ teyrchains-common = { workspace = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
|
||||
@@ -79,7 +79,7 @@ pezcumulus-pezpallet-teyrchain-system = { workspace = true }
|
||||
bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
default = [ "std" ]
|
||||
std = [
|
||||
"bizinikiwi-wasm-builder",
|
||||
"codec/std",
|
||||
|
||||
@@ -79,8 +79,8 @@ pub use pezsp_runtime::BuildStorage;
|
||||
pub use pezsp_runtime::{Perbill, Permill};
|
||||
|
||||
use pezcumulus_primitives_core::AggregateMessageOrigin; //, ClaimQueueOffset, CoreSelector};
|
||||
use xcm::latest::prelude::BodyId;
|
||||
use teyrchains_common::{AccountId, Signature};
|
||||
use xcm::latest::prelude::BodyId;
|
||||
|
||||
pub type SessionHandlers = ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user