Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -101,7 +101,7 @@ pezkuwichain-runtime-constants = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
xcm-runtime-apis = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
|
||||
# Pezcumulus
|
||||
assets-common = { workspace = true }
|
||||
@@ -127,7 +127,7 @@ bp-bridge-hub-zagros = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
asset-test-utils = { workspace = true, default-features = true }
|
||||
asset-test-pezutils = { workspace = true, default-features = true }
|
||||
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
|
||||
[build-dependencies]
|
||||
@@ -137,7 +137,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
default = ["std"]
|
||||
fast-runtime = []
|
||||
runtime-benchmarks = [
|
||||
"asset-test-utils/runtime-benchmarks",
|
||||
"asset-test-pezutils/runtime-benchmarks",
|
||||
"assets-common/runtime-benchmarks",
|
||||
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"bp-asset-hub-zagros/runtime-benchmarks",
|
||||
@@ -225,11 +225,11 @@ runtime-benchmarks = [
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"asset-test-utils/try-runtime",
|
||||
"asset-test-pezutils/try-runtime",
|
||||
"assets-common/try-runtime",
|
||||
"pezcumulus-pezpallet-aura-ext/try-runtime",
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
@@ -379,7 +379,7 @@ std = [
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm-runtime-pezapis/std",
|
||||
"xcm/std",
|
||||
]
|
||||
|
||||
|
||||
+3
-3
@@ -27,7 +27,7 @@ pezsp-core = { workspace = true }
|
||||
# Bridge Dependencies
|
||||
bp-bridge-hub-pezcumulus = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-xcm-bridge-hub-router = { workspace = true }
|
||||
testnet-teyrchains-constants = { features = ["pezkuwichain"], workspace = true }
|
||||
|
||||
@@ -39,7 +39,7 @@ default = ["std"]
|
||||
std = [
|
||||
"bp-bridge-hub-pezcumulus/std",
|
||||
"bp-messages/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-xcm-bridge-hub-router/std",
|
||||
"codec/std",
|
||||
"pezframe-support/std",
|
||||
@@ -52,7 +52,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
|
||||
+2
-2
@@ -22,9 +22,9 @@ extern crate alloc;
|
||||
use codec::{Decode, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
|
||||
pub use bp_bridge_hub_cumulus::*;
|
||||
pub use bp_bridge_hub_pezcumulus::*;
|
||||
use bp_messages::*;
|
||||
use bp_runtime::{
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
|
||||
@@ -43,7 +43,7 @@ use assets_common::{
|
||||
AssetIdForPoolAssets, AssetIdForPoolAssetsConvert, AssetIdForTrustBackedAssetsConvert,
|
||||
};
|
||||
use bp_asset_hub_pezkuwichain::CreateForeignAssetDeposit;
|
||||
use pezcumulus_pallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
|
||||
use pezcumulus_pezpallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
|
||||
use pezcumulus_primitives_core::AggregateMessageOrigin;
|
||||
use pezsp_api::impl_runtime_apis;
|
||||
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
|
||||
@@ -116,7 +116,7 @@ use xcm::{
|
||||
Version as XcmVersion, VersionedAsset, VersionedAssetId, VersionedAssets, VersionedLocation,
|
||||
VersionedXcm,
|
||||
};
|
||||
use xcm_runtime_apis::{
|
||||
use xcm_runtime_pezapis::{
|
||||
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
|
||||
fees::Error as XcmPaymentApiError,
|
||||
};
|
||||
@@ -190,13 +190,13 @@ impl pezframe_system::Config for Runtime {
|
||||
type SystemWeightInfo = weights::pezframe_system::WeightInfo<Runtime>;
|
||||
type ExtensionsWeightInfo = weights::pezframe_system_extensions::WeightInfo<Runtime>;
|
||||
type SS58Prefix = SS58Prefix;
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
type SingleBlockMigrations = Migrations;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl pezpallet_timestamp::Config for Runtime {
|
||||
@@ -737,8 +737,8 @@ parameter_types! {
|
||||
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
@@ -752,7 +752,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type RelayParentOffset = ConstU32<0>;
|
||||
}
|
||||
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
BLOCK_PROCESSING_VELOCITY,
|
||||
@@ -788,7 +788,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
|
||||
impl teyrchain_info::Config for Runtime {}
|
||||
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
|
||||
|
||||
parameter_types! {
|
||||
/// The asset ID for the asset that we use to pay for message delivery fees.
|
||||
@@ -804,8 +804,8 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
|
||||
XcmpQueue,
|
||||
>;
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ChannelInfo = TeyrchainSystem;
|
||||
type VersionWrapper = PezkuwiXcm;
|
||||
@@ -820,7 +820,7 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
// This must be the same as the `ChannelInfo` from the `Config`:
|
||||
type ChannelList = TeyrchainSystem;
|
||||
}
|
||||
@@ -1021,7 +1021,7 @@ impl pezpallet_xcm_bridge_hub_router::Config<ToZagrosXcmRouterInstance> for Runt
|
||||
>;
|
||||
type ToBridgeHubSender = XcmpQueue;
|
||||
type LocalXcmChannelManager =
|
||||
pezcumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
|
||||
|
||||
type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee;
|
||||
type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId;
|
||||
@@ -1301,10 +1301,10 @@ construct_runtime!(
|
||||
{
|
||||
// System support stuff.
|
||||
System: pezframe_system = 0,
|
||||
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
|
||||
Timestamp: pezpallet_timestamp = 3,
|
||||
TeyrchainInfo: teyrchain_info = 4,
|
||||
WeightReclaim: pezcumulus_pallet_weight_reclaim = 5,
|
||||
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 5,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pezpallet_balances = 10,
|
||||
@@ -1316,12 +1316,12 @@ construct_runtime!(
|
||||
CollatorSelection: pezpallet_collator_selection = 21,
|
||||
Session: pezpallet_session = 22,
|
||||
Aura: pezpallet_aura = 23,
|
||||
AuraExt: pezcumulus_pallet_aura_ext = 24,
|
||||
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
|
||||
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
|
||||
PezkuwiXcm: pezpallet_xcm = 31,
|
||||
CumulusXcm: pezcumulus_pallet_xcm = 32,
|
||||
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
|
||||
MessageQueue: pezpallet_message_queue = 34,
|
||||
|
||||
// Handy utilities.
|
||||
@@ -1386,7 +1386,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
|
||||
/// BlockId type as expected by this runtime.
|
||||
pub type BlockId = generic::BlockId<Block>;
|
||||
/// The extension to the basic transaction logic.
|
||||
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
|
||||
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
|
||||
Runtime,
|
||||
(
|
||||
pezframe_system::AuthorizeCall<Runtime>,
|
||||
@@ -1408,8 +1408,8 @@ pub type UncheckedExtrinsic =
|
||||
pub type Migrations = (
|
||||
InitStorageVersions,
|
||||
// unreleased
|
||||
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
pezpallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
|
||||
pezframe_support::migrations::RemovePallet<StateTrieMigrationName, RocksDbWeight>,
|
||||
// unreleased
|
||||
@@ -1424,7 +1424,7 @@ pub type Migrations = (
|
||||
>,
|
||||
// permanent
|
||||
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
|
||||
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
);
|
||||
|
||||
parameter_types! {
|
||||
@@ -1580,8 +1580,8 @@ mod benches {
|
||||
[pezpallet_timestamp, Timestamp]
|
||||
[pezpallet_transaction_payment, TransactionPayment]
|
||||
[pezpallet_collator_selection, CollatorSelection]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
|
||||
[pezpallet_xcm_bridge_hub_router, ToZagros]
|
||||
[pezpallet_asset_conversion_ops, AssetConversionMigration]
|
||||
// XCM
|
||||
@@ -1589,7 +1589,7 @@ mod benches {
|
||||
// NOTE: Make sure you point to the individual modules below.
|
||||
[pezpallet_xcm_benchmarks::fungible, XcmBalances]
|
||||
[pezpallet_xcm_benchmarks::generic, XcmGeneric]
|
||||
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
// PezkuwiChain Custom Pallets
|
||||
[pezpallet_pez_treasury, PezTreasury]
|
||||
[pezpallet_presale, Presale]
|
||||
@@ -1807,7 +1807,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
|
||||
let native_token = xcm_config::TokenLocation::get();
|
||||
// We accept the native token to pay fees.
|
||||
@@ -1835,7 +1835,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
|
||||
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
|
||||
}
|
||||
@@ -1845,12 +1845,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
fn convert_location(location: VersionedLocation) -> Result<
|
||||
AccountId,
|
||||
xcm_runtime_apis::conversions::Error
|
||||
xcm_runtime_pezapis::conversions::Error
|
||||
> {
|
||||
xcm_runtime_apis::conversions::LocationToAccountHelper::<
|
||||
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
|
||||
AccountId,
|
||||
xcm_config::LocationToAccountId,
|
||||
>::convert_location(location)
|
||||
@@ -1898,7 +1898,7 @@ impl_runtime_apis! {
|
||||
use pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
use pezpallet_xcm_bridge_hub_router::benchmarking::Pallet as XcmBridgeHubRouterBench;
|
||||
|
||||
@@ -1942,12 +1942,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
|
||||
use pezpallet_xcm_bridge_hub_router::benchmarking::{
|
||||
Pallet as XcmBridgeHubRouterBench,
|
||||
@@ -2097,7 +2097,7 @@ impl_runtime_apis! {
|
||||
|
||||
impl XcmBridgeHubRouterConfig<ToZagrosXcmRouterInstance> for Runtime {
|
||||
fn make_congested() {
|
||||
pezcumulus_pallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
|
||||
xcm_config::bridging::SiblingBridgeHubParaId::get().into()
|
||||
);
|
||||
}
|
||||
@@ -2306,11 +2306,11 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_reserve(asset, location)
|
||||
}
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_teleporter(asset, location)
|
||||
}
|
||||
}
|
||||
@@ -2327,23 +2327,23 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
fn authorized_aliasers(target: VersionedLocation) -> Result<
|
||||
Vec<xcm_runtime_apis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
Vec<xcm_runtime_pezapis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::authorized_aliasers(target)
|
||||
}
|
||||
fn is_authorized_alias(origin: VersionedLocation, target: VersionedLocation) -> Result<
|
||||
bool,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::is_authorized_alias(origin, target)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
@@ -15,9 +15,9 @@
|
||||
// limitations under the License.
|
||||
|
||||
pub mod block_weights;
|
||||
pub mod pezcumulus_pallet_teyrchain_system;
|
||||
pub mod pezcumulus_pallet_weight_reclaim;
|
||||
pub mod pezcumulus_pallet_xcmp_queue;
|
||||
pub mod pezcumulus_pezpallet_teyrchain_system;
|
||||
pub mod pezcumulus_pezpallet_weight_reclaim;
|
||||
pub mod pezcumulus_pezpallet_xcmp_queue;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_teyrchain_system
|
||||
// --pallet=pezcumulus_pezpallet_teyrchain_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
|
||||
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_weight_reclaim`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_weight_reclaim
|
||||
// --pallet=pezcumulus_pezpallet_weight_reclaim
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
fn storage_weight_reclaim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-pezkuwichain-runtime/asset_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_xcmp_queue
|
||||
// --pallet=pezcumulus_pezpallet_xcmp_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
|
||||
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
|
||||
fn set_config_with_u32() -> Weight {
|
||||
|
||||
@@ -73,7 +73,7 @@ parameter_types! {
|
||||
pub const TokenLocation: Location = Location::parent();
|
||||
pub const RelayNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
|
||||
pub const AssetHubParaId: crate::ParaId = crate::ParaId::new(ASSET_HUB_ID);
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
|
||||
pub UniversalLocation: InteriorLocation =
|
||||
[GlobalConsensus(RelayNetwork::get()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
|
||||
pub UniversalLocationNetworkId: NetworkId = UniversalLocation::get().global_consensus().unwrap();
|
||||
@@ -235,7 +235,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
||||
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
|
||||
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
|
||||
// recognised.
|
||||
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
|
||||
SiblingTeyrchainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
|
||||
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
|
||||
// transaction from the Root origin.
|
||||
ParentAsSuperuser<RuntimeOrigin>,
|
||||
@@ -490,7 +490,7 @@ impl pezpallet_xcm::Config for Runtime {
|
||||
>;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcm::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcm::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ use asset_hub_pezkuwichain_runtime::{
|
||||
MetadataDepositBase, MetadataDepositPerByte, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin,
|
||||
SessionKeys, TeyrchainSystem, ToZagrosXcmRouterInstance, TrustBackedAssetsInstance, XcmpQueue,
|
||||
};
|
||||
use asset_test_utils::{
|
||||
use asset_test_pezutils::{
|
||||
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
|
||||
ExtBuilder, GovernanceOrigin, SlotDurations,
|
||||
};
|
||||
@@ -56,7 +56,7 @@ use xcm::latest::{
|
||||
};
|
||||
use xcm_builder::WithLatestLocationConverter;
|
||||
use xcm_executor::traits::{JustTry, WeightTrader};
|
||||
use xcm_runtime_apis::conversions::LocationToAccountHelper;
|
||||
use xcm_runtime_pezapis::conversions::LocationToAccountHelper;
|
||||
|
||||
const ALICE: [u8; 32] = [1u8; 32];
|
||||
const SOME_ASSET_ADMIN: [u8; 32] = [5u8; 32];
|
||||
@@ -68,7 +68,7 @@ parameter_types! {
|
||||
type AssetIdForTrustBackedAssetsConvert =
|
||||
assets_common::AssetIdForTrustBackedAssetsConvert<TrustBackedAssetsPalletLocation>;
|
||||
|
||||
type RuntimeHelper = asset_test_utils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
|
||||
type RuntimeHelper = asset_test_pezutils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
|
||||
|
||||
fn collator_session_key(account: [u8; 32]) -> CollatorSessionKey<Runtime> {
|
||||
CollatorSessionKey::new(
|
||||
@@ -574,7 +574,7 @@ fn test_assets_balances_api_works() {
|
||||
});
|
||||
}
|
||||
|
||||
asset_test_utils::include_teleports_for_native_asset_works!(
|
||||
asset_test_pezutils::include_teleports_for_native_asset_works!(
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -593,7 +593,7 @@ asset_test_utils::include_teleports_for_native_asset_works!(
|
||||
1000
|
||||
);
|
||||
|
||||
asset_test_utils::include_teleports_for_foreign_assets_works!(
|
||||
asset_test_pezutils::include_teleports_for_foreign_assets_works!(
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -619,7 +619,7 @@ asset_test_utils::include_teleports_for_foreign_assets_works!(
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
collator_session_keys(),
|
||||
@@ -634,7 +634,7 @@ asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currenc
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_transactor_transfer_with_trust_backed_assets_works,
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
@@ -652,7 +652,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_transactor_transfer_with_foreign_assets_works,
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
@@ -670,7 +670,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
|
||||
asset_test_pezutils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
WeightToFee,
|
||||
@@ -703,7 +703,7 @@ asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_t
|
||||
fn limited_reserve_transfer_assets_for_native_asset_over_bridge_works(
|
||||
bridging_configuration: fn() -> TestBridgingConfig,
|
||||
) {
|
||||
asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -790,7 +790,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
foreign_asset_id_minimum_balance,
|
||||
);
|
||||
|
||||
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -805,7 +805,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
1000000000000,
|
||||
|| {
|
||||
// setup pool for paying fees to touch `SwapFirstAssetTrader`
|
||||
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
// staking pot account for collecting local native fees from `BuyExecution`
|
||||
let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get());
|
||||
// prepare bridge configuration
|
||||
@@ -874,7 +874,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
foreign_asset_id_minimum_balance,
|
||||
);
|
||||
|
||||
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -888,7 +888,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
foreign_asset_create_params,
|
||||
1000000000000,
|
||||
|| {
|
||||
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
bridging_to_asset_hub_zagros()
|
||||
},
|
||||
(
|
||||
@@ -923,7 +923,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
|
||||
#[test]
|
||||
fn report_bridge_status_from_xcm_bridge_router_for_zagros_works() {
|
||||
asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -978,7 +978,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
|
||||
#[test]
|
||||
fn reserve_transfer_native_asset_to_non_teleport_para_works() {
|
||||
asset_test_utils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
|
||||
asset_test_pezutils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1009,7 +1009,7 @@ mod asset_hub_pezkuwichain_tests {
|
||||
|
||||
#[test]
|
||||
fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
|
||||
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridging::XcmBridgeHubRouterByteFee,
|
||||
Balance,
|
||||
@@ -1035,7 +1035,7 @@ fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
|
||||
|
||||
#[test]
|
||||
fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
|
||||
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridging::XcmBridgeHubRouterBaseFee,
|
||||
Balance,
|
||||
@@ -1067,7 +1067,7 @@ fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
|
||||
|
||||
#[test]
|
||||
fn change_xcm_bridge_hub_ethereum_base_fee_by_governance_works() {
|
||||
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridging::to_ethereum::BridgeHubEthereumBaseFee,
|
||||
Balance,
|
||||
@@ -1338,7 +1338,7 @@ fn xcm_payment_api_works() {
|
||||
Block,
|
||||
WeightToFee,
|
||||
>();
|
||||
asset_test_utils::test_cases::xcm_payment_api_with_pools_works::<
|
||||
asset_test_pezutils::test_cases::xcm_payment_api_with_pools_works::<
|
||||
Runtime,
|
||||
RuntimeCall,
|
||||
RuntimeOrigin,
|
||||
@@ -1346,7 +1346,7 @@ fn xcm_payment_api_works() {
|
||||
WeightToFee,
|
||||
>();
|
||||
|
||||
asset_test_utils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
|
||||
asset_test_pezutils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
|
||||
Runtime,
|
||||
RuntimeCall,
|
||||
RuntimeOrigin,
|
||||
|
||||
@@ -110,7 +110,7 @@ pezkuwi-teyrchain-primitives = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
xcm-runtime-apis = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
zagros-runtime-constants = { workspace = true }
|
||||
|
||||
# Pezcumulus
|
||||
@@ -136,13 +136,13 @@ bp-asset-hub-zagros = { workspace = true }
|
||||
bp-bridge-hub-pezkuwichain = { workspace = true }
|
||||
bp-bridge-hub-zagros = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-primitives = { workspace = true }
|
||||
snowbridge-pezpallet-system-frontend = { workspace = true }
|
||||
snowbridge-runtime-common = { workspace = true }
|
||||
snowpezbridge-runtime-common = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
alloy-core = { workspace = true, features = ["sol-types"] }
|
||||
asset-test-utils = { workspace = true, default-features = true }
|
||||
asset-test-pezutils = { workspace = true, default-features = true }
|
||||
pezpallet-revive-fixtures = { workspace = true, default-features = true }
|
||||
pezsp-tracing = { workspace = true, default-features = true }
|
||||
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
@@ -153,7 +153,7 @@ bizinikiwi-wasm-builder = { optional = true, workspace = true, default-features
|
||||
[features]
|
||||
default = ["std"]
|
||||
runtime-benchmarks = [
|
||||
"asset-test-utils/runtime-benchmarks",
|
||||
"asset-test-pezutils/runtime-benchmarks",
|
||||
"assets-common/runtime-benchmarks",
|
||||
"bp-asset-hub-pezkuwichain/runtime-benchmarks",
|
||||
"bp-asset-hub-zagros/runtime-benchmarks",
|
||||
@@ -230,9 +230,9 @@ runtime-benchmarks = [
|
||||
"pezpallet-xcm/runtime-benchmarks",
|
||||
"pezkuwi-runtime-common/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-system-frontend/runtime-benchmarks",
|
||||
"snowbridge-runtime-common/runtime-benchmarks",
|
||||
"snowpezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
@@ -254,12 +254,12 @@ runtime-benchmarks = [
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
"zagros-runtime-constants/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"asset-test-utils/try-runtime",
|
||||
"asset-test-pezutils/try-runtime",
|
||||
"assets-common/try-runtime",
|
||||
"pezcumulus-pezpallet-aura-ext/try-runtime",
|
||||
"pezcumulus-pezpallet-teyrchain-system/try-runtime",
|
||||
@@ -319,7 +319,7 @@ try-runtime = [
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezkuwi-runtime-common/try-runtime",
|
||||
"snowbridge-pezpallet-system-frontend/try-runtime",
|
||||
"snowbridge-runtime-common/try-runtime",
|
||||
"snowpezbridge-runtime-common/try-runtime",
|
||||
"pezsp-runtime/try-runtime",
|
||||
"teyrchain-info/try-runtime",
|
||||
"teyrchains-common/try-runtime",
|
||||
@@ -407,9 +407,9 @@ std = [
|
||||
"primitive-types/std",
|
||||
"scale-info/std",
|
||||
"serde_json/std",
|
||||
"snowbridge-outbound-queue-primitives/std",
|
||||
"pezsnowbridge-outbound-queue-primitives/std",
|
||||
"snowbridge-pezpallet-system-frontend/std",
|
||||
"snowbridge-runtime-common/std",
|
||||
"snowpezbridge-runtime-common/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-arithmetic/std",
|
||||
"pezsp-block-builder/std",
|
||||
@@ -435,7 +435,7 @@ std = [
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm-runtime-pezapis/std",
|
||||
"xcm/std",
|
||||
"zagros-runtime-constants/std",
|
||||
]
|
||||
|
||||
@@ -27,7 +27,7 @@ pezsp-core = { workspace = true }
|
||||
# Bridge Dependencies
|
||||
bp-bridge-hub-pezcumulus = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-xcm-bridge-hub-router = { workspace = true }
|
||||
testnet-teyrchains-constants = { features = ["zagros"], workspace = true }
|
||||
|
||||
@@ -39,7 +39,7 @@ default = ["std"]
|
||||
std = [
|
||||
"bp-bridge-hub-pezcumulus/std",
|
||||
"bp-messages/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-xcm-bridge-hub-router/std",
|
||||
"codec/std",
|
||||
"pezframe-support/std",
|
||||
@@ -52,7 +52,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
pub use bp_bridge_hub_cumulus::*;
|
||||
pub use bp_bridge_hub_pezcumulus::*;
|
||||
use bp_messages::*;
|
||||
use bp_runtime::{
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall;
|
||||
|
||||
+5
-5
@@ -26,7 +26,7 @@ use crate::{
|
||||
use assets_common::{matching::FromSiblingTeyrchain, AssetIdForTrustBackedAssetsConvert};
|
||||
use pezframe_support::{parameter_types, traits::EitherOf};
|
||||
use pezframe_system::EnsureRootWithSuccess;
|
||||
use snowbridge_runtime_common::{ForeignAssetOwner, LocalAssetOwner};
|
||||
use snowpezbridge_runtime_common::{ForeignAssetOwner, LocalAssetOwner};
|
||||
use testnet_teyrchains_constants::zagros::snowbridge::{EthereumNetwork, FRONTEND_PALLET_INDEX};
|
||||
use teyrchains_common::AssetIdForTrustBackedAssets;
|
||||
use xcm::prelude::{InteriorLocation, Location, PalletInstance};
|
||||
@@ -42,9 +42,9 @@ parameter_types! {
|
||||
pub SystemFrontendPalletLocation: InteriorLocation = [PalletInstance(FRONTEND_PALLET_INDEX)].into();
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system_frontend::Config for Runtime {
|
||||
impl snowbridge_pezpallet_system_frontend::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type WeightInfo = weights::snowbridge_pallet_system_frontend::WeightInfo<Runtime>;
|
||||
type WeightInfo = weights::snowbridge_pezpallet_system_frontend::WeightInfo<Runtime>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = ();
|
||||
type RegisterTokenOrigin = EitherOf<
|
||||
@@ -80,7 +80,7 @@ impl snowbridge_pallet_system_frontend::Config for Runtime {
|
||||
type UniversalLocation = UniversalLocation;
|
||||
type PalletLocation = SystemFrontendPalletLocation;
|
||||
type Swap = AssetConversion;
|
||||
type BackendWeightInfo = weights::snowbridge_pallet_system_backend::WeightInfo<Runtime>;
|
||||
type BackendWeightInfo = weights::snowbridge_pezpallet_system_backend::WeightInfo<Runtime>;
|
||||
type AccountIdConverter = xcm_config::LocationToAccountId;
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ pub mod benchmark_helpers {
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system_frontend::BenchmarkHelper<RuntimeOrigin, AccountId> for () {
|
||||
impl snowbridge_pezpallet_system_frontend::BenchmarkHelper<RuntimeOrigin, AccountId> for () {
|
||||
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
|
||||
RuntimeOrigin::from(pezpallet_xcm::Origin::Xcm(location))
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ use assets_common::{
|
||||
};
|
||||
use bp_asset_hub_zagros::CreateForeignAssetDeposit;
|
||||
use codec::{Decode, DecodeWithMemTracking, Encode, MaxEncodedLen};
|
||||
use pezcumulus_pallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
|
||||
use pezcumulus_pezpallet_teyrchain_system::{RelayNumberMonotonicallyIncreases, RelaychainDataProvider};
|
||||
use pezcumulus_primitives_core::{relay_chain::AccountIndex, AggregateMessageOrigin, ParaId};
|
||||
use pezframe_support::{
|
||||
construct_runtime, derive_impl,
|
||||
@@ -119,7 +119,7 @@ use xcm::{
|
||||
XcmVersion,
|
||||
},
|
||||
};
|
||||
use xcm_runtime_apis::{
|
||||
use xcm_runtime_pezapis::{
|
||||
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
|
||||
fees::Error as XcmPaymentApiError,
|
||||
};
|
||||
@@ -201,14 +201,14 @@ impl pezframe_system::Config for Runtime {
|
||||
type SystemWeightInfo = weights::pezframe_system::WeightInfo<Runtime>;
|
||||
type ExtensionsWeightInfo = weights::pezframe_system_extensions::WeightInfo<Runtime>;
|
||||
type SS58Prefix = SS58Prefix;
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
type MultiBlockMigrator = MultiBlockMigrations;
|
||||
type SingleBlockMigrations = Migrations;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl pezpallet_timestamp::Config for Runtime {
|
||||
@@ -890,8 +890,8 @@ parameter_types! {
|
||||
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
@@ -905,7 +905,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type RelayParentOffset = ConstU32<0>;
|
||||
}
|
||||
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
BLOCK_PROCESSING_VELOCITY,
|
||||
@@ -941,7 +941,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
type IdleMaxServiceWeight = MessageQueueServiceWeight;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
|
||||
|
||||
parameter_types! {
|
||||
/// The asset ID for the asset that we use to pay for message delivery fees.
|
||||
@@ -957,7 +957,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
|
||||
XcmpQueue,
|
||||
>;
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ChannelInfo = TeyrchainSystem;
|
||||
type VersionWrapper = PezkuwiXcm;
|
||||
@@ -970,11 +970,11 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
|
||||
type ControllerOrigin = EnsureRoot<AccountId>;
|
||||
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
|
||||
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
// This must be the same as the `ChannelInfo` from the `Config`:
|
||||
type ChannelList = TeyrchainSystem;
|
||||
}
|
||||
@@ -1169,7 +1169,7 @@ impl pezpallet_xcm_bridge_hub_router::Config<ToPezkuwichainXcmRouterInstance> fo
|
||||
>;
|
||||
type ToBridgeHubSender = XcmpQueue;
|
||||
type LocalXcmChannelManager =
|
||||
pezcumulus_pallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::InAndOutXcmpChannelStatusProvider<Runtime>;
|
||||
|
||||
type ByteFee = xcm_config::bridging::XcmBridgeHubRouterByteFee;
|
||||
type FeeAsset = xcm_config::bridging::XcmBridgeHubRouterFeeAssetId;
|
||||
@@ -1308,11 +1308,11 @@ construct_runtime!(
|
||||
{
|
||||
// System support stuff.
|
||||
System: pezframe_system = 0,
|
||||
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
|
||||
// RandomnessCollectiveFlip = 2 removed
|
||||
Timestamp: pezpallet_timestamp = 3,
|
||||
TeyrchainInfo: teyrchain_info = 4,
|
||||
WeightReclaim: pezcumulus_pallet_weight_reclaim = 5,
|
||||
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 5,
|
||||
MultiBlockMigrations: pezpallet_migrations = 6,
|
||||
Preimage: pezpallet_preimage = 7,
|
||||
Scheduler: pezpallet_scheduler = 8,
|
||||
@@ -1330,17 +1330,17 @@ construct_runtime!(
|
||||
CollatorSelection: pezpallet_collator_selection = 21,
|
||||
Session: pezpallet_session = 22,
|
||||
Aura: pezpallet_aura = 23,
|
||||
AuraExt: pezcumulus_pallet_aura_ext = 24,
|
||||
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
|
||||
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
|
||||
PezkuwiXcm: pezpallet_xcm = 31,
|
||||
CumulusXcm: pezcumulus_pallet_xcm = 32,
|
||||
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
|
||||
// Bridge utilities.
|
||||
ToPezkuwichainXcmRouter: pezpallet_xcm_bridge_hub_router::<Instance1> = 34,
|
||||
MessageQueue: pezpallet_message_queue = 35,
|
||||
// Snowbridge
|
||||
SnowbridgeSystemFrontend: snowbridge_pallet_system_frontend = 36,
|
||||
SnowbridgeSystemFrontend: snowbridge_pezpallet_system_frontend = 36,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pezpallet_utility = 40,
|
||||
@@ -1406,7 +1406,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
|
||||
/// BlockId type as expected by this runtime.
|
||||
pub type BlockId = generic::BlockId<Block>;
|
||||
/// The extension to the basic transaction logic.
|
||||
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
|
||||
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
|
||||
Runtime,
|
||||
(
|
||||
pezframe_system::AuthorizeCall<Runtime>,
|
||||
@@ -1466,8 +1466,8 @@ pub type Migrations = (
|
||||
// unreleased
|
||||
DeleteUndecodableStorage,
|
||||
// unreleased
|
||||
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
// unreleased
|
||||
pezpallet_assets::migration::next_asset_id::SetNextAssetId<
|
||||
ConstU32<50_000_000>,
|
||||
@@ -1484,7 +1484,7 @@ pub type Migrations = (
|
||||
>,
|
||||
// permanent
|
||||
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
|
||||
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
);
|
||||
|
||||
/// Asset Hub Zagros has some undecodable storage, delete it.
|
||||
@@ -1701,8 +1701,8 @@ mod benches {
|
||||
[pezpallet_timestamp, Timestamp]
|
||||
[pezpallet_transaction_payment, TransactionPayment]
|
||||
[pezpallet_collator_selection, CollatorSelection]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
|
||||
[pezpallet_treasury, Treasury]
|
||||
[pezpallet_vesting, Vesting]
|
||||
[pezpallet_whitelist, Whitelist]
|
||||
@@ -1714,8 +1714,8 @@ mod benches {
|
||||
// NOTE: Make sure you point to the individual modules below.
|
||||
[pezpallet_xcm_benchmarks::fungible, XcmBalances]
|
||||
[pezpallet_xcm_benchmarks::generic, XcmGeneric]
|
||||
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
|
||||
[snowbridge_pallet_system_frontend, SnowbridgeSystemFrontend]
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
[snowbridge_pezpallet_system_frontend, SnowbridgeSystemFrontend]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1929,7 +1929,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
|
||||
let native_token = xcm_config::ZagrosLocation::get();
|
||||
// We accept the native token to pay fees.
|
||||
@@ -1957,7 +1957,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
|
||||
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
|
||||
}
|
||||
@@ -1967,37 +1967,37 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
fn convert_location(location: VersionedLocation) -> Result<
|
||||
AccountId,
|
||||
xcm_runtime_apis::conversions::Error
|
||||
xcm_runtime_pezapis::conversions::Error
|
||||
> {
|
||||
xcm_runtime_apis::conversions::LocationToAccountHelper::<
|
||||
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
|
||||
AccountId,
|
||||
xcm_config::LocationToAccountId,
|
||||
>::convert_location(location)
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_reserve(asset, location)
|
||||
}
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_teleporter(asset, location)
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
fn authorized_aliasers(target: VersionedLocation) -> Result<
|
||||
Vec<xcm_runtime_apis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
Vec<xcm_runtime_pezapis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::authorized_aliasers(target)
|
||||
}
|
||||
fn is_authorized_alias(origin: VersionedLocation, target: VersionedLocation) -> Result<
|
||||
bool,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::is_authorized_alias(origin, target)
|
||||
}
|
||||
@@ -2168,7 +2168,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
use pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
use pezpallet_xcm_bridge_hub_router::benchmarking::Pallet as XcmBridgeHubRouterBench;
|
||||
|
||||
@@ -2211,14 +2211,14 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use xcm_config::{MaxAssetsIntoHolding, ZagrosLocation};
|
||||
|
||||
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
use testnet_teyrchains_constants::zagros::locations::{PeopleParaId, PeopleLocation};
|
||||
parameter_types! {
|
||||
pub ExistentialDepositAsset: Option<Asset> = Some((
|
||||
@@ -2370,7 +2370,7 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
|
||||
impl XcmBridgeHubRouterConfig<ToPezkuwichainXcmRouterInstance> for Runtime {
|
||||
fn make_congested() {
|
||||
pezcumulus_pallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::suspend_channel_for_benchmarks::<Runtime>(
|
||||
xcm_config::bridging::SiblingBridgeHubParaId::get().into()
|
||||
);
|
||||
}
|
||||
@@ -2645,9 +2645,9 @@ pezpallet_revive::impl_runtime_apis_plus_revive_traits!(
|
||||
}
|
||||
);
|
||||
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
// limitations under the License.
|
||||
|
||||
pub mod block_weights;
|
||||
pub mod pezcumulus_pallet_teyrchain_system;
|
||||
pub mod pezcumulus_pallet_weight_reclaim;
|
||||
pub mod pezcumulus_pallet_xcmp_queue;
|
||||
pub mod pezcumulus_pezpallet_teyrchain_system;
|
||||
pub mod pezcumulus_pezpallet_weight_reclaim;
|
||||
pub mod pezcumulus_pezpallet_xcmp_queue;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
@@ -63,8 +63,8 @@ pub mod pezpallet_xcm;
|
||||
pub mod pezpallet_xcm_bridge_hub_router;
|
||||
pub mod paritydb_weights;
|
||||
pub mod rocksdb_weights;
|
||||
pub mod snowbridge_pallet_system_backend;
|
||||
pub mod snowbridge_pallet_system_frontend;
|
||||
pub mod snowbridge_pezpallet_system_backend;
|
||||
pub mod snowbridge_pezpallet_system_frontend;
|
||||
pub mod xcm;
|
||||
|
||||
pub use block_weights::constants::BlockExecutionWeight;
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_teyrchain_system
|
||||
// --pallet=pezcumulus_pezpallet_teyrchain_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
|
||||
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_weight_reclaim`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_weight_reclaim
|
||||
// --pallet=pezcumulus_pezpallet_weight_reclaim
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
fn storage_weight_reclaim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -28,7 +28,7 @@
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/asset-hub-zagros-runtime/asset_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_xcmp_queue
|
||||
// --pallet=pezcumulus_pezpallet_xcmp_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
|
||||
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
|
||||
fn set_config_with_u32() -> Weight {
|
||||
|
||||
+3
-3
@@ -21,11 +21,11 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_system_frontend::BackendWeightInfo`.
|
||||
/// Weight functions for `snowbridge_pezpallet_system_frontend::BackendWeightInfo`.
|
||||
/// Copy the weight generated for `fn register_token() -> Weight` from
|
||||
/// ../../../../bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pallet_system_v2.rs
|
||||
/// ../../../../bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pezpallet_system_v2.rs
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_system_frontend::BackendWeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_system_frontend::BackendWeightInfo for WeightInfo<T> {
|
||||
fn transact_register_token() -> Weight {
|
||||
Weight::from_parts(45_000_000, 6044)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_system_frontend`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_system_frontend`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-05-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -31,7 +31,7 @@
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --output
|
||||
// pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights/snowbridge_pallet_system_frontend.rs
|
||||
// pezcumulus/teyrchains/runtimes/assets/asset-hub-zagros/src/weights/snowbridge_pezpallet_system_frontend.rs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -41,9 +41,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_system_frontend`.
|
||||
/// Weight functions for `snowbridge_pezpallet_system_frontend`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_system_frontend::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_system_frontend::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `SnowbridgeSystemFrontend::ExportOperatingMode` (r:1 w:0)
|
||||
/// Proof: `SnowbridgeSystemFrontend::ExportOperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TeyrchainInfo::TeyrchainId` (r:1 w:0)
|
||||
|
||||
@@ -41,7 +41,7 @@ use pezframe_system::EnsureRoot;
|
||||
use pezpallet_xcm::{AuthorizedAliasers, XcmPassthrough};
|
||||
use pezkuwi_runtime_common::xcm_sender::ExponentialPrice;
|
||||
use pezkuwi_teyrchain_primitives::primitives::Sibling;
|
||||
use snowbridge_outbound_queue_primitives::v2::exporter::PausableExporter;
|
||||
use pezsnowbridge_outbound_queue_primitives::v2::exporter::PausableExporter;
|
||||
use pezsp_runtime::traits::{AccountIdConversion, TryConvertInto};
|
||||
use testnet_teyrchains_constants::zagros::locations::AssetHubParaId;
|
||||
use teyrchains_common::xcm_config::{
|
||||
@@ -72,7 +72,7 @@ parameter_types! {
|
||||
pub const RootLocation: Location = Location::here();
|
||||
pub const ZagrosLocation: Location = Location::parent();
|
||||
pub const RelayNetwork: Option<NetworkId> = Some(NetworkId::ByGenesis(ZAGROS_GENESIS_HASH));
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
|
||||
pub UniversalLocation: InteriorLocation =
|
||||
[GlobalConsensus(RelayNetwork::get().unwrap()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
|
||||
pub UniversalLocationNetworkId: NetworkId = UniversalLocation::get().global_consensus().unwrap();
|
||||
@@ -256,7 +256,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
||||
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
|
||||
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
|
||||
// recognised.
|
||||
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
|
||||
SiblingTeyrchainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
|
||||
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
|
||||
// transaction from the Root origin.
|
||||
ParentAsSuperuser<RuntimeOrigin>,
|
||||
@@ -594,7 +594,7 @@ impl pezpallet_xcm::Config for Runtime {
|
||||
>;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcm::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcm::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
}
|
||||
@@ -767,9 +767,9 @@ pub mod bridging {
|
||||
xcm_builder::NetworkExportTable<EthereumBridgeTableV1>;
|
||||
|
||||
pub type EthereumNetworkExportTableV2 =
|
||||
snowbridge_outbound_queue_primitives::v2::XcmFilterExporter<
|
||||
pezsnowbridge_outbound_queue_primitives::v2::XcmFilterExporter<
|
||||
xcm_builder::NetworkExportTable<EthereumBridgeTableV2>,
|
||||
snowbridge_outbound_queue_primitives::v2::XcmForSnowbridgeV2,
|
||||
pezsnowbridge_outbound_queue_primitives::v2::XcmForSnowbridgeV2,
|
||||
>;
|
||||
|
||||
pub type EthereumAssetFromEthereum =
|
||||
|
||||
@@ -34,7 +34,7 @@ use asset_hub_zagros_runtime::{
|
||||
ToPezkuwichainXcmRouterInstance, TrustBackedAssetsInstance, Uniques, WeightToFee, XcmpQueue,
|
||||
};
|
||||
pub use asset_hub_zagros_runtime::{AssetConversion, AssetDeposit, CollatorSelection, System};
|
||||
use asset_test_utils::{
|
||||
use asset_test_pezutils::{
|
||||
test_cases_over_bridge::TestBridgingConfig, CollatorSessionKey, CollatorSessionKeys,
|
||||
ExtBuilder, GovernanceOrigin, SlotDurations,
|
||||
};
|
||||
@@ -80,7 +80,7 @@ use xcm_builder::{
|
||||
NonFungiblesAdapter as OldNftAdapter, WithLatestLocationConverter,
|
||||
};
|
||||
use xcm_executor::traits::{ConvertLocation, JustTry, TransactAsset, WeightTrader};
|
||||
use xcm_runtime_apis::conversions::LocationToAccountHelper;
|
||||
use xcm_runtime_pezapis::conversions::LocationToAccountHelper;
|
||||
|
||||
const ALICE: [u8; 32] = [1u8; 32];
|
||||
const BOB: [u8; 32] = [2u8; 32];
|
||||
@@ -103,7 +103,7 @@ parameter_types! {
|
||||
type AssetIdForTrustBackedAssetsConvert =
|
||||
assets_common::AssetIdForTrustBackedAssetsConvert<TrustBackedAssetsPalletLocation>;
|
||||
|
||||
type RuntimeHelper = asset_test_utils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
|
||||
type RuntimeHelper = asset_test_pezutils::RuntimeHelper<Runtime, AllPalletsWithoutSystem>;
|
||||
|
||||
fn collator_session_key(account: [u8; 32]) -> CollatorSessionKey<Runtime> {
|
||||
CollatorSessionKey::new(
|
||||
@@ -888,7 +888,7 @@ fn authorized_aliases_work() {
|
||||
})
|
||||
}
|
||||
|
||||
asset_test_utils::include_teleports_for_native_asset_works!(
|
||||
asset_test_pezutils::include_teleports_for_native_asset_works!(
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -907,7 +907,7 @@ asset_test_utils::include_teleports_for_native_asset_works!(
|
||||
1000
|
||||
);
|
||||
|
||||
asset_test_utils::include_teleports_for_foreign_assets_works!(
|
||||
asset_test_pezutils::include_teleports_for_foreign_assets_works!(
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -933,7 +933,7 @@ asset_test_utils::include_teleports_for_foreign_assets_works!(
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_local_consensus_currency_works!(
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
collator_session_keys(),
|
||||
@@ -948,7 +948,7 @@ asset_test_utils::include_asset_transactor_transfer_with_local_consensus_currenc
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_transactor_transfer_with_trust_backed_assets_works,
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
@@ -966,7 +966,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_test_pezutils::include_asset_transactor_transfer_with_pallet_assets_instance_works!(
|
||||
asset_transactor_transfer_with_foreign_assets_works,
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
@@ -988,7 +988,7 @@ asset_test_utils::include_asset_transactor_transfer_with_pallet_assets_instance_
|
||||
})
|
||||
);
|
||||
|
||||
asset_test_utils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
|
||||
asset_test_pezutils::include_create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_works!(
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
WeightToFee,
|
||||
@@ -1035,7 +1035,7 @@ fn bridging_to_asset_hub_pezkuwichain() -> TestBridgingConfig {
|
||||
|
||||
#[test]
|
||||
fn limited_reserve_transfer_assets_for_native_asset_to_asset_hub_pezkuwichain_works() {
|
||||
asset_test_utils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::limited_reserve_transfer_assets_for_native_asset_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1090,7 +1090,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
|
||||
let pool_params =
|
||||
(foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance);
|
||||
|
||||
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1105,7 +1105,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
|
||||
1000000000000,
|
||||
|| {
|
||||
// setup pool for paying fees to touch `SwapFirstAssetTrader`
|
||||
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
// staking pot account for collecting local native fees from `BuyExecution`
|
||||
let _ = Balances::force_set_balance(RuntimeOrigin::root(), StakingPot::get().into(), ExistentialDeposit::get());
|
||||
// prepare bridge configuration
|
||||
@@ -1170,7 +1170,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
|
||||
let pool_params =
|
||||
(foreign_asset_owner, foreign_asset_id_location.clone(), foreign_asset_id_minimum_balance);
|
||||
|
||||
asset_test_utils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::receive_reserve_asset_deposited_from_different_consensus_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1184,7 +1184,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
|
||||
foreign_asset_create_params,
|
||||
1000000000000,
|
||||
|| {
|
||||
asset_test_utils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
asset_test_pezutils::test_cases::setup_pool_for_paying_fees_with_foreign_assets::<Runtime, RuntimeOrigin>(ExistentialDeposit::get(), pool_params);
|
||||
bridging_to_asset_hub_pezkuwichain()
|
||||
},
|
||||
(
|
||||
@@ -1219,7 +1219,7 @@ fn receive_reserve_asset_deposited_roc_from_asset_hub_pezkuwichain_fees_paid_by_
|
||||
|
||||
#[test]
|
||||
fn report_bridge_status_from_xcm_bridge_router_for_pezkuwichain_works() {
|
||||
asset_test_utils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
|
||||
asset_test_pezutils::test_cases_over_bridge::report_bridge_status_from_xcm_bridge_router_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1271,7 +1271,7 @@ fn check_sane_weight_report_bridge_status() {
|
||||
|
||||
#[test]
|
||||
fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
|
||||
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridging::XcmBridgeHubRouterByteFee,
|
||||
Balance,
|
||||
@@ -1297,7 +1297,7 @@ fn change_xcm_bridge_hub_router_byte_fee_by_governance_works() {
|
||||
|
||||
#[test]
|
||||
fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
|
||||
asset_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
asset_test_pezutils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridging::XcmBridgeHubRouterBaseFee,
|
||||
Balance,
|
||||
@@ -1329,7 +1329,7 @@ fn change_xcm_bridge_hub_router_base_fee_by_governance_works() {
|
||||
|
||||
#[test]
|
||||
fn reserve_transfer_native_asset_to_non_teleport_para_works() {
|
||||
asset_test_utils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
|
||||
asset_test_pezutils::test_cases::reserve_transfer_native_asset_to_non_teleport_para_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -1597,7 +1597,7 @@ fn xcm_payment_api_works() {
|
||||
Block,
|
||||
WeightToFee,
|
||||
>();
|
||||
asset_test_utils::test_cases::xcm_payment_api_with_pools_works::<
|
||||
asset_test_pezutils::test_cases::xcm_payment_api_with_pools_works::<
|
||||
Runtime,
|
||||
RuntimeCall,
|
||||
RuntimeOrigin,
|
||||
@@ -1605,7 +1605,7 @@ fn xcm_payment_api_works() {
|
||||
WeightToFee,
|
||||
>();
|
||||
|
||||
asset_test_utils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
|
||||
asset_test_pezutils::test_cases::xcm_payment_api_foreign_asset_pool_works::<
|
||||
Runtime,
|
||||
RuntimeCall,
|
||||
RuntimeOrigin,
|
||||
@@ -1662,7 +1662,7 @@ fn governance_authorize_upgrade_works() {
|
||||
#[test]
|
||||
fn weight_of_message_increases_when_dealing_with_erc20s() {
|
||||
use xcm::VersionedXcm;
|
||||
use xcm_runtime_apis::fees::runtime_decl_for_xcm_payment_api::XcmPaymentApiV2;
|
||||
use xcm_runtime_pezapis::fees::runtime_decl_for_xcm_payment_api::XcmPaymentApiV2;
|
||||
let message = Xcm::<()>::builder_unsafe().withdraw_asset((Parent, 100u128)).build();
|
||||
let versioned = VersionedXcm::<()>::V5(message);
|
||||
let regular_asset_weight = Runtime::query_xcm_weight(versioned).unwrap();
|
||||
|
||||
@@ -38,7 +38,7 @@ xcm-executor = { workspace = true }
|
||||
|
||||
# Pezcumulus
|
||||
pezcumulus-primitives-core = { workspace = true }
|
||||
ethereum-standards = { workspace = true }
|
||||
pez-ethereum-standards = { workspace = true }
|
||||
teyrchains-common = { workspace = true }
|
||||
|
||||
[features]
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
//! The ERC20 Asset Transactor.
|
||||
|
||||
use core::marker::PhantomData;
|
||||
use ethereum_standards::IERC20;
|
||||
use pez_ethereum_standards::IERC20;
|
||||
use pezframe_support::traits::{fungible::Inspect, OriginTrait};
|
||||
use pezframe_system::pezpallet_prelude::OriginFor;
|
||||
use pezpallet_revive::{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "asset-test-utils"
|
||||
name = "asset-test-pezutils"
|
||||
version = "7.0.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
@@ -7,7 +7,7 @@ description = "Test utils for Asset Hub runtimes."
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/asset-test-utils"
|
||||
documentation = "https://docs.rs/asset-test-pezutils"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -41,7 +41,7 @@ pezpallet-xcm = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
xcm-runtime-apis = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
|
||||
# Bridges
|
||||
pezpallet-xcm-bridge-hub-router = { workspace = true }
|
||||
@@ -71,7 +71,7 @@ std = [
|
||||
"teyrchains-runtimes-test-utils/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm-runtime-pezapis/std",
|
||||
"xcm/std",
|
||||
]
|
||||
try-runtime = [
|
||||
@@ -114,6 +114,6 @@ runtime-benchmarks = [
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -44,7 +44,7 @@ use xcm_executor::{
|
||||
traits::{ConvertLocation, TransferType},
|
||||
XcmExecutor,
|
||||
};
|
||||
use xcm_runtime_apis::fees::{
|
||||
use xcm_runtime_pezapis::fees::{
|
||||
runtime_decl_for_xcm_payment_api::XcmPaymentApiV2, Error as XcmPaymentApiError,
|
||||
};
|
||||
|
||||
@@ -77,8 +77,8 @@ pub fn teleports_for_native_asset_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -95,7 +95,7 @@ pub fn teleports_for_native_asset_works<
|
||||
XcmConfig: xcm_executor::Config,
|
||||
CheckingAccount: Get<Option<AccountIdOf<Runtime>>>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
{
|
||||
let buy_execution_fee_amount_eta =
|
||||
@@ -194,7 +194,7 @@ pub fn teleports_for_native_asset_works<
|
||||
let native_asset_to_teleport_away = native_asset_amount_unit * 3.into();
|
||||
// 2. try to teleport asset back to the relaychain
|
||||
{
|
||||
<pezcumulus_pallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
|
||||
<pezcumulus_pezpallet_teyrchain_system::Pallet<Runtime> as UpwardMessageSender>::ensure_successful_delivery();
|
||||
|
||||
let dest = Location::parent();
|
||||
let mut dest_beneficiary = Location::parent()
|
||||
@@ -372,7 +372,7 @@ pub fn teleports_for_foreign_assets_works<
|
||||
asset_owner: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
) where
|
||||
Runtime: pezframe_system::Config
|
||||
@@ -381,8 +381,8 @@ pub fn teleports_for_foreign_assets_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
@@ -393,7 +393,7 @@ pub fn teleports_for_foreign_assets_works<
|
||||
XcmConfig: xcm_executor::Config,
|
||||
CheckingAccount: Get<AccountIdOf<Runtime>>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
WeightToFee: pezframe_support::weights::WeightToFee<Balance = Balance>,
|
||||
<WeightToFee as pezframe_support::weights::WeightToFee>::Balance: From<u128> + Into<u128>,
|
||||
@@ -747,7 +747,7 @@ pub fn asset_transactor_transfer_with_local_consensus_currency_works<Runtime, Xc
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
ValidatorIdOf<Runtime>: From<AccountIdOf<Runtime>>,
|
||||
@@ -872,7 +872,7 @@ pub fn asset_transactor_transfer_with_pallet_assets_instance_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezpallet_assets::Config<AssetsPalletInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
@@ -1140,7 +1140,7 @@ pub fn create_and_manage_foreign_assets_for_local_consensus_teyrchain_assets_wor
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AccountIdOf<Runtime>: Into<[u8; 32]>,
|
||||
@@ -1461,7 +1461,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
alice_account: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
weight_limit: WeightLimit,
|
||||
) where
|
||||
@@ -1471,8 +1471,8 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -1488,7 +1488,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
From<<Runtime as pezframe_system::Config>::AccountId>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
HrmpChannelSource: XcmpMessageSource,
|
||||
{
|
||||
@@ -1599,7 +1599,7 @@ pub fn reserve_transfer_native_asset_to_non_teleport_para_works<
|
||||
.into_iter()
|
||||
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
|
||||
.find_map(|e| match e {
|
||||
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
pezcumulus_pezpallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
Some(message_hash),
|
||||
_ => None,
|
||||
});
|
||||
@@ -1657,8 +1657,8 @@ where
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config
|
||||
+ pezpallet_assets::Config<
|
||||
pezpallet_assets::Instance1,
|
||||
@@ -1844,8 +1844,8 @@ pub fn xcm_payment_api_foreign_asset_pool_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config
|
||||
+ pezpallet_assets::Config<
|
||||
pezpallet_assets::Instance2,
|
||||
|
||||
@@ -60,7 +60,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
alice_account: AccountIdOf<Runtime>,
|
||||
unwrap_pallet_xcm_event: Box<dyn Fn(Vec<u8>) -> Option<pezpallet_xcm::Event<Runtime>>>,
|
||||
unwrap_xcmp_queue_event: Box<
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pallet_xcmp_queue::Event<Runtime>>,
|
||||
dyn Fn(Vec<u8>) -> Option<pezcumulus_pezpallet_xcmp_queue::Event<Runtime>>,
|
||||
>,
|
||||
prepare_configuration: fn() -> TestBridgingConfig,
|
||||
weight_limit: WeightLimit,
|
||||
@@ -73,8 +73,8 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
OnInitialize<BlockNumberFor<Runtime>> + OnFinalize<BlockNumberFor<Runtime>>,
|
||||
@@ -90,7 +90,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
From<<Runtime as pezframe_system::Config>::AccountId>,
|
||||
<Runtime as pezframe_system::Config>::AccountId: From<AccountId>,
|
||||
HrmpChannelOpener: pezframe_support::inherent::ProvideInherent<
|
||||
Call = pezcumulus_pallet_teyrchain_system::Call<Runtime>,
|
||||
Call = pezcumulus_pezpallet_teyrchain_system::Call<Runtime>,
|
||||
>,
|
||||
HrmpChannelSource: XcmpMessageSource,
|
||||
{
|
||||
@@ -220,7 +220,7 @@ pub fn limited_reserve_transfer_assets_for_native_asset_works<
|
||||
.into_iter()
|
||||
.filter_map(|e| unwrap_xcmp_queue_event(e.event.encode()))
|
||||
.find_map(|e| match e {
|
||||
pezcumulus_pallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
pezcumulus_pezpallet_xcmp_queue::Event::XcmpMessageSent { message_hash } =>
|
||||
Some(message_hash),
|
||||
_ => None,
|
||||
});
|
||||
@@ -357,8 +357,8 @@ pub fn receive_reserve_asset_deposited_from_different_consensus_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_assets::Config<ForeignAssetsPalletInstance, ReserveData = ForeignAssetReserveData>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
@@ -528,8 +528,8 @@ pub fn report_bridge_status_from_xcm_bridge_router_works<
|
||||
+ pezpallet_xcm::Config
|
||||
+ teyrchain_info::Config
|
||||
+ pezpallet_collator_selection::Config
|
||||
+ pezcumulus_pallet_teyrchain_system::Config
|
||||
+ pezcumulus_pallet_xcmp_queue::Config
|
||||
+ pezcumulus_pezpallet_teyrchain_system::Config
|
||||
+ pezcumulus_pezpallet_xcmp_queue::Config
|
||||
+ pezpallet_xcm_bridge_hub_router::Config<XcmBridgeHubRouterInstance>
|
||||
+ pezpallet_timestamp::Config,
|
||||
AllPalletsWithoutSystem:
|
||||
|
||||
@@ -112,7 +112,7 @@ PEZKUWI_TEYRCHAIN_BINARY=~/local_bridge_testing/bin/pezkuwi-teyrchain \
|
||||
```
|
||||
cd <pezkuwi-sdk-git-repo-dir>
|
||||
|
||||
./bridges/testing/environments/pezkuwichain-zagros/bridges_pezkuwichain_zagros.sh run-finality-relay
|
||||
./bridges/testing/environments/pezkuwichain-zagros/bridges_pezkuwichain_zagros.sh run-pez-finality-relay
|
||||
```
|
||||
|
||||
**Check relay-chain headers relaying:**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "bridge-hub-pezkuwichain-runtime"
|
||||
name = "pezbridge-hub-pezkuwichain-runtime"
|
||||
version = "0.5.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
@@ -7,7 +7,7 @@ description = "Pezkuwichain's BridgeHub teyrchain runtime"
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/bridge-hub-pezkuwichain-runtime"
|
||||
documentation = "https://docs.rs/pezbridge-hub-pezkuwichain-runtime"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -69,7 +69,7 @@ pezkuwichain-runtime-constants = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
xcm-runtime-apis = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
|
||||
# Pezcumulus
|
||||
pezcumulus-pezpallet-aura-ext = { workspace = true }
|
||||
@@ -91,16 +91,16 @@ bp-asset-hub-pezkuwichain = { workspace = true }
|
||||
bp-asset-hub-zagros = { workspace = true }
|
||||
bp-bridge-hub-pezkuwichain = { workspace = true }
|
||||
bp-bridge-hub-zagros = { workspace = true }
|
||||
bp-header-chain = { workspace = true }
|
||||
bp-header-pez-chain = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-pezkuwi-bulletin = { workspace = true }
|
||||
bp-pezkuwi-core = { workspace = true }
|
||||
bp-relayers = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-teyrchains = { workspace = true }
|
||||
bp-xcm-bridge-hub-router = { workspace = true }
|
||||
bp-zagros = { workspace = true }
|
||||
bridge-runtime-common = { workspace = true }
|
||||
pezbridge-runtime-common = { workspace = true }
|
||||
pezpallet-bridge-grandpa = { workspace = true }
|
||||
pezpallet-bridge-messages = { workspace = true }
|
||||
pezpallet-bridge-relayers = { workspace = true }
|
||||
@@ -108,28 +108,28 @@ pezpallet-bridge-teyrchains = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub = { workspace = true }
|
||||
|
||||
# Ethereum Bridge (Snowbridge)
|
||||
snowbridge-beacon-primitives = { workspace = true }
|
||||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
snowbridge-merkle-tree = { workspace = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true }
|
||||
snowbridge-outbound-queue-runtime-api = { workspace = true }
|
||||
pezsnowbridge-beacon-primitives = { workspace = true }
|
||||
pezsnowbridge-core = { workspace = true }
|
||||
pezsnowbridge-inbound-queue-primitives = { workspace = true }
|
||||
pezsnowbridge-merkle-tree = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-primitives = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-runtime-api = { workspace = true }
|
||||
snowbridge-pezpallet-ethereum-client = { workspace = true }
|
||||
snowbridge-pezpallet-inbound-queue = { workspace = true }
|
||||
snowbridge-pezpallet-inbound-queue-fixtures = { workspace = true }
|
||||
snowbridge-pezpallet-outbound-queue = { workspace = true }
|
||||
snowbridge-pezpallet-system = { workspace = true }
|
||||
snowbridge-system-runtime-api = { workspace = true }
|
||||
pezsnowbridge-system-runtime-api = { workspace = true }
|
||||
|
||||
bridge-hub-common = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
bridge-hub-test-utils = { workspace = true, default-features = true }
|
||||
bridge-runtime-common = { features = [
|
||||
pezbridge-hub-test-utils = { workspace = true, default-features = true }
|
||||
pezbridge-runtime-common = { features = [
|
||||
"integrity-test",
|
||||
], workspace = true, default-features = true }
|
||||
pezpallet-bridge-relayers = { features = ["integrity-test"], workspace = true }
|
||||
snowbridge-runtime-test-common = { workspace = true, default-features = true }
|
||||
pezsnowbridge-runtime-test-common = { workspace = true, default-features = true }
|
||||
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
|
||||
[features]
|
||||
@@ -139,17 +139,17 @@ std = [
|
||||
"bp-asset-hub-zagros/std",
|
||||
"bp-bridge-hub-pezkuwichain/std",
|
||||
"bp-bridge-hub-zagros/std",
|
||||
"bp-header-chain/std",
|
||||
"bp-header-pez-chain/std",
|
||||
"bp-messages/std",
|
||||
"bp-pezkuwi-bulletin/std",
|
||||
"bp-pezkuwi-core/std",
|
||||
"bp-relayers/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-teyrchains/std",
|
||||
"bp-xcm-bridge-hub-router/std",
|
||||
"bp-zagros/std",
|
||||
"bridge-hub-common/std",
|
||||
"bridge-runtime-common/std",
|
||||
"pezbridge-runtime-common/std",
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
@@ -192,18 +192,18 @@ std = [
|
||||
"scale-info/std",
|
||||
"serde",
|
||||
"serde_json/std",
|
||||
"snowbridge-beacon-primitives/std",
|
||||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"snowbridge-merkle-tree/std",
|
||||
"snowbridge-outbound-queue-primitives/std",
|
||||
"snowbridge-outbound-queue-runtime-api/std",
|
||||
"pezsnowbridge-beacon-primitives/std",
|
||||
"pezsnowbridge-core/std",
|
||||
"pezsnowbridge-inbound-queue-primitives/std",
|
||||
"pezsnowbridge-merkle-tree/std",
|
||||
"pezsnowbridge-outbound-queue-primitives/std",
|
||||
"pezsnowbridge-outbound-queue-runtime-api/std",
|
||||
"snowbridge-pezpallet-ethereum-client/std",
|
||||
"snowbridge-pezpallet-inbound-queue-fixtures/std",
|
||||
"snowbridge-pezpallet-inbound-queue/std",
|
||||
"snowbridge-pezpallet-outbound-queue/std",
|
||||
"snowbridge-pezpallet-system/std",
|
||||
"snowbridge-system-runtime-api/std",
|
||||
"pezsnowbridge-system-runtime-api/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-block-builder/std",
|
||||
"pezsp-consensus-aura/std",
|
||||
@@ -226,7 +226,7 @@ std = [
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm-runtime-pezapis/std",
|
||||
"xcm/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
@@ -234,18 +234,18 @@ runtime-benchmarks = [
|
||||
"bp-asset-hub-zagros/runtime-benchmarks",
|
||||
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
"bp-bridge-hub-zagros/runtime-benchmarks",
|
||||
"bp-header-chain/runtime-benchmarks",
|
||||
"bp-header-pez-chain/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-pezkuwi-bulletin/runtime-benchmarks",
|
||||
"bp-pezkuwi-core/runtime-benchmarks",
|
||||
"bp-relayers/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-teyrchains/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"bp-zagros/runtime-benchmarks",
|
||||
"bridge-hub-common/runtime-benchmarks",
|
||||
"bridge-hub-test-utils/runtime-benchmarks",
|
||||
"bridge-runtime-common/runtime-benchmarks",
|
||||
"pezbridge-hub-test-utils/runtime-benchmarks",
|
||||
"pezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
@@ -284,19 +284,19 @@ runtime-benchmarks = [
|
||||
"pezkuwi-runtime-common/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"pezkuwichain-runtime-constants/runtime-benchmarks",
|
||||
"snowbridge-beacon-primitives/runtime-benchmarks",
|
||||
"snowbridge-core/runtime-benchmarks",
|
||||
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-merkle-tree/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-beacon-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-core/runtime-benchmarks",
|
||||
"pezsnowbridge-inbound-queue-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-merkle-tree/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-runtime-api/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-inbound-queue/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-system/runtime-benchmarks",
|
||||
"snowbridge-runtime-test-common/runtime-benchmarks",
|
||||
"snowbridge-system-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-runtime-test-common/runtime-benchmarks",
|
||||
"pezsnowbridge-system-runtime-api/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
@@ -316,7 +316,7 @@ runtime-benchmarks = [
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
@@ -346,7 +346,7 @@ try-runtime = [
|
||||
"pezpallet-xcm-bridge-hub/try-runtime",
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezkuwi-runtime-common/try-runtime",
|
||||
"snowbridge-inbound-queue-primitives/try-runtime",
|
||||
"pezsnowbridge-inbound-queue-primitives/try-runtime",
|
||||
"snowbridge-pezpallet-ethereum-client/try-runtime",
|
||||
"snowbridge-pezpallet-inbound-queue/try-runtime",
|
||||
"snowbridge-pezpallet-outbound-queue/try-runtime",
|
||||
|
||||
+3
-3
@@ -21,7 +21,7 @@ codec = { features = ["derive"], workspace = true }
|
||||
# Bridge Dependencies
|
||||
bp-bridge-hub-pezcumulus = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-xcm-bridge-hub = { workspace = true }
|
||||
|
||||
# Bizinikiwi Based Dependencies
|
||||
@@ -35,7 +35,7 @@ default = ["std"]
|
||||
std = [
|
||||
"bp-bridge-hub-pezcumulus/std",
|
||||
"bp-messages/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezframe-support/std",
|
||||
@@ -46,7 +46,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
|
||||
+2
-2
@@ -19,9 +19,9 @@
|
||||
#![warn(missing_docs)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
pub use bp_bridge_hub_cumulus::*;
|
||||
pub use bp_bridge_hub_pezcumulus::*;
|
||||
use bp_messages::*;
|
||||
use bp_runtime::{
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
|
||||
+3
-3
@@ -105,7 +105,7 @@ pub type OnBridgeHubPezkuwichainRefundPezkuwichainBulletinMessages =
|
||||
PriorityBoostPerMessage,
|
||||
>,
|
||||
>;
|
||||
bp_runtime::generate_static_str_provider!(
|
||||
pezbp_runtime::generate_static_str_provider!(
|
||||
OnBridgeHubPezkuwichainRefundPezkuwichainBulletinMessages
|
||||
);
|
||||
|
||||
@@ -165,7 +165,7 @@ impl pezpallet_xcm_bridge_hub::Config<XcmOverPezkuwiBulletinInstance> for Runtim
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::bridge_common_config::BridgeGrandpaPezkuwichainBulletinInstance;
|
||||
use bridge_runtime_common::{
|
||||
use pezbridge_runtime_common::{
|
||||
assert_complete_bridge_types, integrity::check_message_lane_weights,
|
||||
};
|
||||
use testnet_teyrchains_constants::pezkuwichain;
|
||||
@@ -243,7 +243,7 @@ where
|
||||
R: pezpallet_xcm_bridge_hub::Config<XBHI>,
|
||||
XBHI: 'static,
|
||||
C: xcm_executor::traits::ConvertLocation<
|
||||
bp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
pezbp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
>,
|
||||
{
|
||||
use pezpallet_xcm_bridge_hub::{Bridge, BridgeId, BridgeState};
|
||||
|
||||
+22
-22
@@ -21,10 +21,10 @@ use crate::{
|
||||
EthereumOutboundQueue, EthereumSystem, MessageQueue, Runtime, RuntimeEvent, TransactionByteFee,
|
||||
TreasuryAccount,
|
||||
};
|
||||
use snowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use snowbridge_core::{gwei, meth, AllowSiblingsOnly, PricingParameters, Rewards};
|
||||
use snowbridge_inbound_queue_primitives::v1::MessageToXcm;
|
||||
use snowbridge_outbound_queue_primitives::v1::EthereumBlobExporter;
|
||||
use pezsnowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use pezsnowbridge_core::{gwei, meth, AllowSiblingsOnly, PricingParameters, Rewards};
|
||||
use pezsnowbridge_inbound_queue_primitives::v1::MessageToXcm;
|
||||
use pezsnowbridge_outbound_queue_primitives::v1::EthereumBlobExporter;
|
||||
use teyrchains_common::{AccountId, Balance};
|
||||
|
||||
use pezsp_core::H160;
|
||||
@@ -51,8 +51,8 @@ use xcm::prelude::{GlobalConsensus, InteriorLocation, Location, Teyrchain};
|
||||
pub type SnowbridgeExporter = EthereumBlobExporter<
|
||||
UniversalLocation,
|
||||
EthereumNetwork,
|
||||
snowbridge_pallet_outbound_queue::Pallet<Runtime>,
|
||||
snowbridge_core::AgentIdOf,
|
||||
snowbridge_pezpallet_outbound_queue::Pallet<Runtime>,
|
||||
pezsnowbridge_core::AgentIdOf,
|
||||
EthereumSystem,
|
||||
>;
|
||||
|
||||
@@ -73,9 +73,9 @@ parameter_types! {
|
||||
pub EthereumUniversalLocation: InteriorLocation = [GlobalConsensus(EthereumNetwork::get())].into();
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_inbound_queue::Config for Runtime {
|
||||
impl snowbridge_pezpallet_inbound_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Verifier = snowbridge_pallet_ethereum_client::Pallet<Runtime>;
|
||||
type Verifier = snowbridge_pezpallet_ethereum_client::Pallet<Runtime>;
|
||||
type Token = Balances;
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
type XcmSender = XcmRouter;
|
||||
@@ -98,12 +98,12 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime {
|
||||
type WeightToFee = WeightToFee;
|
||||
type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;
|
||||
type MaxMessageSize = ConstU32<2048>;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_inbound_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_inbound_queue::WeightInfo<Runtime>;
|
||||
type PricingParameters = EthereumSystem;
|
||||
type AssetTransactor = <xcm_config::XcmConfig as xcm_executor::Config>::AssetTransactor;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_outbound_queue::Config for Runtime {
|
||||
impl snowbridge_pezpallet_outbound_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Hashing = Keccak256;
|
||||
type MessageQueue = MessageQueue;
|
||||
@@ -113,7 +113,7 @@ impl snowbridge_pallet_outbound_queue::Config for Runtime {
|
||||
type GasMeter = crate::ConstantGasMeter;
|
||||
type Balance = Balance;
|
||||
type WeightToFee = WeightToFee;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_outbound_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_outbound_queue::WeightInfo<Runtime>;
|
||||
type PricingParameters = EthereumSystem;
|
||||
type Channels = EthereumSystem;
|
||||
}
|
||||
@@ -186,24 +186,24 @@ parameter_types! {
|
||||
};
|
||||
}
|
||||
|
||||
pub const SLOTS_PER_EPOCH: u32 = snowbridge_pallet_ethereum_client::config::SLOTS_PER_EPOCH as u32;
|
||||
pub const SLOTS_PER_EPOCH: u32 = snowbridge_pezpallet_ethereum_client::config::SLOTS_PER_EPOCH as u32;
|
||||
|
||||
impl snowbridge_pallet_ethereum_client::Config for Runtime {
|
||||
impl snowbridge_pezpallet_ethereum_client::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ForkVersions = ChainForkVersions;
|
||||
// Free consensus update every epoch. Works out to be 225 updates per day.
|
||||
type FreeHeadersInterval = ConstU32<SLOTS_PER_EPOCH>;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_ethereum_client::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_ethereum_client::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system::Config for Runtime {
|
||||
impl snowbridge_pezpallet_system::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OutboundQueue = EthereumOutboundQueue;
|
||||
type SiblingOrigin = EnsureXcm<AllowSiblingsOnly>;
|
||||
type AgentIdOf = snowbridge_core::AgentIdOf;
|
||||
type AgentIdOf = pezsnowbridge_core::AgentIdOf;
|
||||
type TreasuryAccount = TreasuryAccount;
|
||||
type Token = Balances;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_system::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_system::WeightInfo<Runtime>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = ();
|
||||
type DefaultPricingParameters = Parameters;
|
||||
@@ -216,12 +216,12 @@ impl snowbridge_pallet_system::Config for Runtime {
|
||||
pub mod benchmark_helpers {
|
||||
use crate::{EthereumBeaconClient, Runtime, RuntimeOrigin};
|
||||
use codec::Encode;
|
||||
use snowbridge_inbound_queue_primitives::EventFixture;
|
||||
use snowbridge_pallet_inbound_queue::BenchmarkHelper;
|
||||
use snowbridge_pallet_inbound_queue_fixtures::register_token::make_register_token_message;
|
||||
use pezsnowbridge_inbound_queue_primitives::EventFixture;
|
||||
use snowbridge_pezpallet_inbound_queue::BenchmarkHelper;
|
||||
use snowbridge_pezpallet_inbound_queue_fixtures::register_token::make_register_token_message;
|
||||
use xcm::latest::{Assets, Location, SendError, SendResult, SendXcm, Xcm, XcmHash};
|
||||
|
||||
impl<T: snowbridge_pallet_ethereum_client::Config> BenchmarkHelper<T> for Runtime {
|
||||
impl<T: snowbridge_pezpallet_ethereum_client::Config> BenchmarkHelper<T> for Runtime {
|
||||
fn initialize_storage() -> EventFixture {
|
||||
let message = make_register_token_message();
|
||||
EthereumBeaconClient::store_finalized_header(
|
||||
@@ -249,7 +249,7 @@ pub mod benchmark_helpers {
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
impl snowbridge_pezpallet_system::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
|
||||
RuntimeOrigin::from(pezpallet_xcm::Origin::Xcm(location))
|
||||
}
|
||||
|
||||
+6
-6
@@ -66,7 +66,7 @@ parameter_types! {
|
||||
2,
|
||||
[
|
||||
GlobalConsensus(ZagrosGlobalConsensusNetwork::get()),
|
||||
Teyrchain(<bp_bridge_hub_zagros::BridgeHubZagros as bp_runtime::Teyrchain>::TEYRCHAIN_ID)
|
||||
Teyrchain(<bp_bridge_hub_zagros::BridgeHubZagros as pezbp_runtime::Teyrchain>::TEYRCHAIN_ID)
|
||||
]
|
||||
);
|
||||
|
||||
@@ -99,7 +99,7 @@ pub type OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages = BridgeRelayersTr
|
||||
PriorityBoostPerMessage,
|
||||
>,
|
||||
>;
|
||||
bp_runtime::generate_static_str_provider!(OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages);
|
||||
pezbp_runtime::generate_static_str_provider!(OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages);
|
||||
|
||||
/// Add XCM messages support for BridgeHubPezkuwichain to support Pezkuwichain->Zagros XCM messages
|
||||
pub type WithBridgeHubZagrosMessagesInstance = pezpallet_bridge_messages::Instance3;
|
||||
@@ -172,7 +172,7 @@ impl pezpallet_xcm_bridge_hub::LocalXcmChannelManager for CongestionManager {
|
||||
// dispatched and sent to the sibling teyrchain. Therefore, checking outbound `XcmpQueue`
|
||||
// is sufficient here.
|
||||
use bp_xcm_bridge_hub_router::XcmChannelStatusProvider;
|
||||
pezcumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
|
||||
with,
|
||||
)
|
||||
}
|
||||
@@ -207,7 +207,7 @@ where
|
||||
R: pezpallet_xcm_bridge_hub::Config<XBHI>,
|
||||
XBHI: 'static,
|
||||
C: xcm_executor::traits::ConvertLocation<
|
||||
bp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
pezbp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
>,
|
||||
{
|
||||
use pezpallet_xcm_bridge_hub::{Bridge, BridgeId, BridgeState};
|
||||
@@ -251,7 +251,7 @@ where
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::bridge_common_config::BridgeGrandpaZagrosInstance;
|
||||
use bridge_runtime_common::{
|
||||
use pezbridge_runtime_common::{
|
||||
assert_complete_bridge_types,
|
||||
integrity::{
|
||||
assert_complete_with_teyrchain_bridge_constants, check_message_lane_weights,
|
||||
@@ -363,7 +363,7 @@ pub mod migration {
|
||||
|
||||
mod v1_wrong {
|
||||
use bp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use bp_runtime::AccountIdOf;
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use codec::{Decode, Encode};
|
||||
use pezpallet_bridge_messages::BridgedChainOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
@@ -39,10 +39,10 @@ pub mod xcm_config;
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use bridge_runtime_common::extensions::{
|
||||
use pezbridge_runtime_common::extensions::{
|
||||
CheckAndBoostBridgeGrandpaTransactions, CheckAndBoostBridgeTeyrchainsTransactions,
|
||||
};
|
||||
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezpallet_bridge_messages::LaneIdOf;
|
||||
use pezsp_api::impl_runtime_apis;
|
||||
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
|
||||
@@ -75,7 +75,7 @@ use testnet_teyrchains_constants::pezkuwichain::{
|
||||
consensus::*, currency::*, fee::WeightToFee, time::*,
|
||||
};
|
||||
|
||||
use bp_runtime::HeaderId;
|
||||
use pezbp_runtime::HeaderId;
|
||||
use bridge_hub_common::{
|
||||
message_queue::{NarrowOriginToSibling, ParaIdToSibling},
|
||||
AggregateMessageOrigin,
|
||||
@@ -93,10 +93,10 @@ pub use pezsp_runtime::BuildStorage;
|
||||
|
||||
use pezkuwi_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate};
|
||||
use pezkuwichain_runtime_constants::system_teyrchain::{ASSET_HUB_ID, BRIDGE_HUB_ID};
|
||||
use snowbridge_core::{AgentId, PricingParameters};
|
||||
pub use snowbridge_outbound_queue_primitives::v1::{Command, ConstantGasMeter, Fee};
|
||||
use pezsnowbridge_core::{AgentId, PricingParameters};
|
||||
pub use pezsnowbridge_outbound_queue_primitives::v1::{Command, ConstantGasMeter, Fee};
|
||||
use xcm::{latest::prelude::*, prelude::*, Version as XcmVersion};
|
||||
use xcm_runtime_apis::{
|
||||
use xcm_runtime_pezapis::{
|
||||
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
|
||||
fees::Error as XcmPaymentApiError,
|
||||
};
|
||||
@@ -124,7 +124,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
|
||||
pub type BlockId = generic::BlockId<Block>;
|
||||
|
||||
/// The TransactionExtension to the basic transaction logic.
|
||||
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
|
||||
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
|
||||
Runtime,
|
||||
(
|
||||
(
|
||||
@@ -154,14 +154,14 @@ pub type Migrations = (
|
||||
pezpallet_multisig::migrations::v1::MigrateToV1<Runtime>,
|
||||
InitStorageVersions,
|
||||
// unreleased
|
||||
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
snowbridge_pallet_system::migration::v0::InitializeOnUpgrade<
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
snowbridge_pezpallet_system::migration::v0::InitializeOnUpgrade<
|
||||
Runtime,
|
||||
ConstU32<BRIDGE_HUB_ID>,
|
||||
ConstU32<ASSET_HUB_ID>,
|
||||
>,
|
||||
snowbridge_pallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
snowbridge_pezpallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
pezpallet_bridge_messages::migration::v1::MigrationToV1<
|
||||
Runtime,
|
||||
bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance,
|
||||
@@ -196,7 +196,7 @@ pub type Migrations = (
|
||||
>,
|
||||
// permanent
|
||||
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
|
||||
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
);
|
||||
|
||||
parameter_types! {
|
||||
@@ -323,13 +323,13 @@ impl pezframe_system::Config for Runtime {
|
||||
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
|
||||
type SS58Prefix = SS58Prefix;
|
||||
/// The action to take on a Runtime Upgrade
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
type SingleBlockMigrations = Migrations;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl pezpallet_timestamp::Config for Runtime {
|
||||
@@ -389,8 +389,8 @@ parameter_types! {
|
||||
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
@@ -404,7 +404,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type RelayParentOffset = ConstU32<0>;
|
||||
}
|
||||
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
BLOCK_PROCESSING_VELOCITY,
|
||||
@@ -450,7 +450,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
type IdleMaxServiceWeight = MessageQueueServiceWeight;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
|
||||
|
||||
parameter_types! {
|
||||
/// The asset ID for the asset that we use to pay for message delivery fees.
|
||||
@@ -466,7 +466,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
|
||||
XcmpQueue,
|
||||
>;
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ChannelInfo = TeyrchainSystem;
|
||||
type VersionWrapper = PezkuwiXcm;
|
||||
@@ -479,11 +479,11 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
|
||||
type ControllerOrigin = EnsureRoot<AccountId>;
|
||||
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
|
||||
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
// This must be the same as the `ChannelInfo` from the `Config`:
|
||||
type ChannelList = TeyrchainSystem;
|
||||
}
|
||||
@@ -574,10 +574,10 @@ construct_runtime!(
|
||||
{
|
||||
// System support stuff.
|
||||
System: pezframe_system = 0,
|
||||
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
|
||||
Timestamp: pezpallet_timestamp = 2,
|
||||
TeyrchainInfo: teyrchain_info = 3,
|
||||
WeightReclaim: pezcumulus_pallet_weight_reclaim = 4,
|
||||
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 4,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pezpallet_balances = 10,
|
||||
@@ -588,12 +588,12 @@ construct_runtime!(
|
||||
CollatorSelection: pezpallet_collator_selection = 21,
|
||||
Session: pezpallet_session = 22,
|
||||
Aura: pezpallet_aura = 23,
|
||||
AuraExt: pezcumulus_pallet_aura_ext = 24,
|
||||
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
|
||||
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
|
||||
PezkuwiXcm: pezpallet_xcm = 31,
|
||||
CumulusXcm: pezcumulus_pallet_xcm = 32,
|
||||
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pezpallet_utility = 40,
|
||||
@@ -629,10 +629,10 @@ construct_runtime!(
|
||||
// Bridge relayers pallet, used by several bridges here (another instance).
|
||||
BridgeRelayersForPermissionlessLanes: pezpallet_bridge_relayers::<Instance2> = 63,
|
||||
|
||||
EthereumInboundQueue: snowbridge_pallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pallet_system = 83,
|
||||
EthereumInboundQueue: snowbridge_pezpallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pezpallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pezpallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pezpallet_system = 83,
|
||||
|
||||
// Message Queue. Importantly, is registered last so that messages are processed after
|
||||
// the `on_initialize` hooks of bridging pallets.
|
||||
@@ -647,7 +647,7 @@ pub type BridgePezkuwichainBulletinMessages = BridgePezkuwiBulletinMessages;
|
||||
/// Proper alias for bridge messages pallet used to bridge with the bulletin chain.
|
||||
pub type XcmOverPezkuwichainBulletin = XcmOverPezkuwiBulletin;
|
||||
|
||||
bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
|
||||
pezbridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
|
||||
RuntimeCall, AccountId,
|
||||
// Grandpa
|
||||
CheckAndBoostBridgeGrandpaTransactions<
|
||||
@@ -688,9 +688,9 @@ mod benches {
|
||||
[pezpallet_timestamp, Timestamp]
|
||||
[pezpallet_transaction_payment, TransactionPayment]
|
||||
[pezpallet_collator_selection, CollatorSelection]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
|
||||
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
// XCM
|
||||
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
|
||||
// NOTE: Make sure you point to the individual modules below.
|
||||
@@ -704,16 +704,16 @@ mod benches {
|
||||
[pezpallet_bridge_relayers, Legacy]
|
||||
[pezpallet_bridge_relayers, PermissionlessLanes]
|
||||
// Ethereum Bridge
|
||||
[snowbridge_pallet_inbound_queue, EthereumInboundQueue]
|
||||
[snowbridge_pallet_outbound_queue, EthereumOutboundQueue]
|
||||
[snowbridge_pallet_system, EthereumSystem]
|
||||
[snowbridge_pallet_ethereum_client, EthereumBeaconClient]
|
||||
[snowbridge_pezpallet_inbound_queue, EthereumInboundQueue]
|
||||
[snowbridge_pezpallet_outbound_queue, EthereumOutboundQueue]
|
||||
[snowbridge_pezpallet_system, EthereumSystem]
|
||||
[snowbridge_pezpallet_ethereum_client, EthereumBeaconClient]
|
||||
);
|
||||
}
|
||||
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
impl_runtime_apis! {
|
||||
@@ -869,7 +869,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
|
||||
let acceptable_assets = vec![AssetId(xcm_config::TokenLocation::get())];
|
||||
PezkuwiXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets)
|
||||
@@ -890,7 +890,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
|
||||
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
|
||||
}
|
||||
@@ -900,12 +900,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
fn convert_location(location: VersionedLocation) -> Result<
|
||||
AccountId,
|
||||
xcm_runtime_apis::conversions::Error
|
||||
xcm_runtime_pezapis::conversions::Error
|
||||
> {
|
||||
xcm_runtime_apis::conversions::LocationToAccountHelper::<
|
||||
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
|
||||
AccountId,
|
||||
xcm_config::LocationToAccountId,
|
||||
>::convert_location(location)
|
||||
@@ -928,7 +928,7 @@ impl_runtime_apis! {
|
||||
>>::FreeHeadersInterval::get()
|
||||
}
|
||||
fn synced_headers_grandpa_info(
|
||||
) -> Vec<bp_header_chain::StoredHeaderGrandpaInfo<bp_zagros::Header>> {
|
||||
) -> Vec<bp_header_pez_chain::StoredHeaderGrandpaInfo<bp_zagros::Header>> {
|
||||
BridgeZagrosGrandpa::synced_headers_grandpa_info()
|
||||
}
|
||||
}
|
||||
@@ -951,7 +951,7 @@ impl_runtime_apis! {
|
||||
lane: LaneIdOf<Runtime, bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance>,
|
||||
messages: Vec<(bp_messages::MessagePayload, bp_messages::OutboundMessageDetails)>,
|
||||
) -> Vec<bp_messages::InboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::inbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::inbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance,
|
||||
>(lane, messages)
|
||||
@@ -965,7 +965,7 @@ impl_runtime_apis! {
|
||||
begin: bp_messages::MessageNonce,
|
||||
end: bp_messages::MessageNonce,
|
||||
) -> Vec<bp_messages::OutboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::outbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::outbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance,
|
||||
>(lane, begin, end)
|
||||
@@ -973,7 +973,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
impl bp_pezkuwi_bulletin::PezkuwiBulletinFinalityApi<Block> for Runtime {
|
||||
fn best_finalized() -> Option<bp_runtime::HeaderId<bp_pezkuwi_bulletin::Hash, bp_pezkuwi_bulletin::BlockNumber>> {
|
||||
fn best_finalized() -> Option<pezbp_runtime::HeaderId<bp_pezkuwi_bulletin::Hash, bp_pezkuwi_bulletin::BlockNumber>> {
|
||||
BridgePezkuwiBulletinGrandpa::best_finalized()
|
||||
}
|
||||
|
||||
@@ -984,7 +984,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn synced_headers_grandpa_info(
|
||||
) -> Vec<bp_header_chain::StoredHeaderGrandpaInfo<bp_pezkuwi_bulletin::Header>> {
|
||||
) -> Vec<bp_header_pez_chain::StoredHeaderGrandpaInfo<bp_pezkuwi_bulletin::Header>> {
|
||||
BridgePezkuwiBulletinGrandpa::synced_headers_grandpa_info()
|
||||
}
|
||||
}
|
||||
@@ -994,7 +994,7 @@ impl_runtime_apis! {
|
||||
lane: LaneIdOf<Runtime, bridge_to_bulletin_config::WithPezkuwichainBulletinMessagesInstance>,
|
||||
messages: Vec<(bp_messages::MessagePayload, bp_messages::OutboundMessageDetails)>,
|
||||
) -> Vec<bp_messages::InboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::inbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::inbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_bulletin_config::WithPezkuwichainBulletinMessagesInstance,
|
||||
>(lane, messages)
|
||||
@@ -1007,26 +1007,26 @@ impl_runtime_apis! {
|
||||
begin: bp_messages::MessageNonce,
|
||||
end: bp_messages::MessageNonce,
|
||||
) -> Vec<bp_messages::OutboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::outbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::outbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_bulletin_config::WithPezkuwichainBulletinMessagesInstance,
|
||||
>(lane, begin, end)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_outbound_queue_runtime_api::OutboundQueueApi<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<snowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
impl pezsnowbridge_outbound_queue_runtime_api::OutboundQueueApi<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<pezsnowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pezpallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
}
|
||||
|
||||
fn calculate_fee(command: Command, parameters: Option<PricingParameters<Balance>>) -> Fee<Balance> {
|
||||
snowbridge_pallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
snowbridge_pezpallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_system_runtime_api::ControlApi<Block> for Runtime {
|
||||
impl pezsnowbridge_system_runtime_api::ControlApi<Block> for Runtime {
|
||||
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
|
||||
snowbridge_pallet_system::api::agent_id::<Runtime>(location)
|
||||
snowbridge_pezpallet_system::api::agent_id::<Runtime>(location)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1059,7 +1059,7 @@ impl_runtime_apis! {
|
||||
use pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
|
||||
// This is defined once again in dispatch_benchmark, because list_benchmarks!
|
||||
@@ -1100,12 +1100,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
|
||||
use xcm::latest::prelude::*;
|
||||
use xcm_config::TokenLocation;
|
||||
@@ -1336,7 +1336,7 @@ impl_runtime_apis! {
|
||||
type Legacy = BridgeRelayersBench::<Runtime, bridge_common_config::RelayersForLegacyLaneIdsMessagesInstance>;
|
||||
type PermissionlessLanes = BridgeRelayersBench::<Runtime, bridge_common_config::RelayersForPermissionlessLanesInstance>;
|
||||
|
||||
use bridge_runtime_common::messages_benchmarking::{
|
||||
use pezbridge_runtime_common::messages_benchmarking::{
|
||||
prepare_message_delivery_proof_from_grandpa_chain,
|
||||
prepare_message_delivery_proof_from_teyrchain,
|
||||
prepare_message_proof_from_grandpa_chain,
|
||||
@@ -1352,7 +1352,7 @@ impl_runtime_apis! {
|
||||
impl BridgeMessagesConfig<bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance> for Runtime {
|
||||
fn is_relayer_rewarded(relayer: &Self::AccountId) -> bool {
|
||||
let bench_lane_id = <Self as BridgeMessagesConfig<bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance>>::bench_lane_id();
|
||||
use bp_runtime::Chain;
|
||||
use pezbp_runtime::Chain;
|
||||
let bridged_chain_id =<Self as pezpallet_bridge_messages::Config<bridge_to_zagros_config::WithBridgeHubZagrosMessagesInstance>>::BridgedChain::ID;
|
||||
pezpallet_bridge_relayers::Pallet::<Runtime, bridge_common_config::RelayersForLegacyLaneIdsMessagesInstance>::relayer_reward(
|
||||
relayer,
|
||||
@@ -1448,7 +1448,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
use bridge_runtime_common::teyrchains_benchmarking::prepare_teyrchain_heads_proof;
|
||||
use pezbridge_runtime_common::teyrchains_benchmarking::prepare_teyrchain_heads_proof;
|
||||
use pezpallet_bridge_teyrchains::benchmarking::Config as BridgeTeyrchainsConfig;
|
||||
use pezpallet_bridge_relayers::benchmarking::{
|
||||
Pallet as BridgeRelayersBench,
|
||||
@@ -1457,14 +1457,14 @@ impl_runtime_apis! {
|
||||
|
||||
impl BridgeTeyrchainsConfig<bridge_common_config::BridgeTeyrchainZagrosInstance> for Runtime {
|
||||
fn teyrchains() -> Vec<bp_pezkuwi_core::teyrchains::ParaId> {
|
||||
use bp_runtime::Teyrchain;
|
||||
use pezbp_runtime::Teyrchain;
|
||||
vec![bp_pezkuwi_core::teyrchains::ParaId(bp_bridge_hub_zagros::BridgeHubZagros::TEYRCHAIN_ID)]
|
||||
}
|
||||
|
||||
fn prepare_teyrchain_heads_proof(
|
||||
teyrchains: &[bp_pezkuwi_core::teyrchains::ParaId],
|
||||
teyrchain_head_size: u32,
|
||||
proof_params: bp_runtime::UnverifiedStorageProofParams,
|
||||
proof_params: pezbp_runtime::UnverifiedStorageProofParams,
|
||||
) -> (
|
||||
bp_teyrchains::RelayBlockNumber,
|
||||
bp_teyrchains::RelayBlockHash,
|
||||
@@ -1564,11 +1564,11 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_reserve(asset, location)
|
||||
}
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_teleporter(asset, location)
|
||||
}
|
||||
}
|
||||
@@ -1626,7 +1626,7 @@ mod tests {
|
||||
bp_bridge_hub_pezkuwichain::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
bp_runtime::TransactionEra::Immortal,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
|
||||
+7
-7
@@ -23,9 +23,9 @@ use ::pezpallet_bridge_relayers::WeightInfo as _;
|
||||
use ::pezpallet_bridge_teyrchains::WeightInfoExt as TeyrchainsWeightInfoExt;
|
||||
|
||||
pub mod block_weights;
|
||||
pub mod pezcumulus_pallet_teyrchain_system;
|
||||
pub mod pezcumulus_pallet_weight_reclaim;
|
||||
pub mod pezcumulus_pallet_xcmp_queue;
|
||||
pub mod pezcumulus_pezpallet_teyrchain_system;
|
||||
pub mod pezcumulus_pezpallet_weight_reclaim;
|
||||
pub mod pezcumulus_pezpallet_xcmp_queue;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
@@ -46,10 +46,10 @@ pub mod pezpallet_utility;
|
||||
pub mod pezpallet_xcm;
|
||||
pub mod paritydb_weights;
|
||||
pub mod rocksdb_weights;
|
||||
pub mod snowbridge_pallet_ethereum_client;
|
||||
pub mod snowbridge_pallet_inbound_queue;
|
||||
pub mod snowbridge_pallet_outbound_queue;
|
||||
pub mod snowbridge_pallet_system;
|
||||
pub mod snowbridge_pezpallet_ethereum_client;
|
||||
pub mod snowbridge_pezpallet_inbound_queue;
|
||||
pub mod snowbridge_pezpallet_outbound_queue;
|
||||
pub mod snowbridge_pezpallet_system;
|
||||
pub mod xcm;
|
||||
|
||||
pub use block_weights::constants::BlockExecutionWeight;
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_teyrchain_system
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_teyrchain_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
|
||||
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_weight_reclaim`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_weight_reclaim
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_weight_reclaim
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
fn storage_weight_reclaim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_xcmp_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_xcmp_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
|
||||
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
|
||||
fn set_config_with_u32() -> Weight {
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezframe_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezframe_system_extensions
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_balances
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_grandpa
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_messages
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_messages
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_relayers
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_relayers
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_teyrchains
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_collator_selection
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_message_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_multisig
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_session
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_timestamp
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_transaction_payment
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_utility
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_xcm
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_ethereum_client`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_ethereum_client`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_ethereum_client
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_ethereum_client
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_ethereum_client`.
|
||||
/// Weight functions for `snowbridge_pezpallet_ethereum_client`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_ethereum_client::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_ethereum_client::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumBeaconClient::FinalizedBeaconStateIndex` (r:1 w:1)
|
||||
/// Proof: `EthereumBeaconClient::FinalizedBeaconStateIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumBeaconClient::FinalizedBeaconStateMapping` (r:1 w:1)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_inbound_queue`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_inbound_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_inbound_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_inbound_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_inbound_queue`.
|
||||
/// Weight functions for `snowbridge_pezpallet_inbound_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_inbound_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_inbound_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumInboundQueue::OperatingMode` (r:1 w:0)
|
||||
/// Proof: `EthereumInboundQueue::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_outbound_queue`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_outbound_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_outbound_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_outbound_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_outbound_queue`.
|
||||
/// Weight functions for `snowbridge_pezpallet_outbound_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_outbound_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_outbound_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumOutboundQueue::MessageLeaves` (r:1 w:1)
|
||||
/// Proof: `EthereumOutboundQueue::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `EthereumOutboundQueue::Nonce` (r:1 w:1)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_system`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_system
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_system`.
|
||||
/// Weight functions for `snowbridge_pezpallet_system`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_system::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_system::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumSystem::Channels` (r:1 w:0)
|
||||
/// Proof: `EthereumSystem::Channels` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumSystem::PricingParameters` (r:1 w:0)
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_xcm_benchmarks::fungible
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights/xcm
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-pezkuwichain-runtime/bridge_hub_pezkuwichain_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-pezkuwichain-runtime/pezbridge_hub_pezkuwichain_runtime.wasm
|
||||
// --pallet=pezpallet_xcm_benchmarks::generic
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-pezkuwichain/src/weights/xcm
|
||||
|
||||
+3
-3
@@ -64,7 +64,7 @@ use xcm_executor::{
|
||||
parameter_types! {
|
||||
pub const RootLocation: Location = Location::here();
|
||||
pub const TokenLocation: Location = Location::parent();
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pallet_xcm::Origin::Relay.into();
|
||||
pub RelayChainOrigin: RuntimeOrigin = pezcumulus_pezpallet_xcm::Origin::Relay.into();
|
||||
pub RelayNetwork: NetworkId = NetworkId::ByGenesis(PEZKUWICHAIN_GENESIS_HASH);
|
||||
pub UniversalLocation: InteriorLocation =
|
||||
[GlobalConsensus(RelayNetwork::get()), Teyrchain(TeyrchainInfo::teyrchain_id().into())].into();
|
||||
@@ -119,7 +119,7 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
||||
RelayChainAsNative<RelayChainOrigin, RuntimeOrigin>,
|
||||
// Native converter for sibling Teyrchains; will convert to a `SiblingPara` origin when
|
||||
// recognized.
|
||||
SiblingTeyrchainAsNative<pezcumulus_pallet_xcm::Origin, RuntimeOrigin>,
|
||||
SiblingTeyrchainAsNative<pezcumulus_pezpallet_xcm::Origin, RuntimeOrigin>,
|
||||
// Superuser converter for the Relay-chain (Parent) location. This will allow it to issue a
|
||||
// transaction from the Root origin.
|
||||
ParentAsSuperuser<RuntimeOrigin>,
|
||||
@@ -303,7 +303,7 @@ impl pezpallet_xcm::Config for Runtime {
|
||||
>;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcm::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcm::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
}
|
||||
|
||||
+12
-12
@@ -17,7 +17,7 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use bp_pezkuwi_core::Signature;
|
||||
use bridge_hub_pezkuwichain_runtime::{
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_to_zagros_config::OnBridgeHubPezkuwichainRefundBridgeHubZagrosMessages,
|
||||
xcm_config::XcmConfig, AllPalletsWithoutSystem, BridgeRejectObsoleteHeadersAndMessages,
|
||||
Executive, MessageQueueServiceWeight, Runtime, RuntimeCall, RuntimeEvent, SessionKeys,
|
||||
@@ -26,7 +26,7 @@ use bridge_hub_pezkuwichain_runtime::{
|
||||
use codec::{Decode, Encode};
|
||||
use pezcumulus_primitives_core::XcmError::FailedToTransactAsset;
|
||||
use pezframe_support::parameter_types;
|
||||
use snowbridge_pallet_ethereum_client::WeightInfo;
|
||||
use snowbridge_pezpallet_ethereum_client::WeightInfo;
|
||||
use pezsp_core::H160;
|
||||
use pezsp_keyring::Sr25519Keyring::Alice;
|
||||
use pezsp_runtime::{
|
||||
@@ -39,8 +39,8 @@ parameter_types! {
|
||||
pub const DefaultBridgeHubEthereumBaseFee: Balance = 3_833_568_200_000;
|
||||
}
|
||||
|
||||
fn collator_session_keys() -> bridge_hub_test_utils::CollatorSessionKeys<Runtime> {
|
||||
bridge_hub_test_utils::CollatorSessionKeys::new(
|
||||
fn collator_session_keys() -> pezbridge_hub_test_utils::CollatorSessionKeys<Runtime> {
|
||||
pezbridge_hub_test_utils::CollatorSessionKeys::new(
|
||||
AccountId::from(Alice),
|
||||
AccountId::from(Alice),
|
||||
SessionKeys { aura: AuraId::from(Alice.public()) },
|
||||
@@ -49,7 +49,7 @@ fn collator_session_keys() -> bridge_hub_test_utils::CollatorSessionKeys<Runtime
|
||||
|
||||
#[test]
|
||||
pub fn transfer_token_to_ethereum_works() {
|
||||
snowbridge_runtime_test_common::send_transfer_token_message_success::<Runtime, XcmConfig>(
|
||||
pezsnowbridge_runtime_test_common::send_transfer_token_message_success::<Runtime, XcmConfig>(
|
||||
11155111,
|
||||
collator_session_keys(),
|
||||
1002,
|
||||
@@ -68,7 +68,7 @@ pub fn transfer_token_to_ethereum_works() {
|
||||
|
||||
#[test]
|
||||
pub fn unpaid_transfer_token_to_ethereum_should_work() {
|
||||
snowbridge_runtime_test_common::send_unpaid_transfer_token_message::<Runtime, XcmConfig>(
|
||||
pezsnowbridge_runtime_test_common::send_unpaid_transfer_token_message::<Runtime, XcmConfig>(
|
||||
11155111,
|
||||
collator_session_keys(),
|
||||
1002,
|
||||
@@ -80,7 +80,7 @@ pub fn unpaid_transfer_token_to_ethereum_should_work() {
|
||||
|
||||
#[test]
|
||||
pub fn transfer_token_to_ethereum_insufficient_fund() {
|
||||
snowbridge_runtime_test_common::send_transfer_token_message_failure::<Runtime, XcmConfig>(
|
||||
pezsnowbridge_runtime_test_common::send_transfer_token_message_failure::<Runtime, XcmConfig>(
|
||||
11155111,
|
||||
collator_session_keys(),
|
||||
1002,
|
||||
@@ -97,16 +97,16 @@ pub fn transfer_token_to_ethereum_insufficient_fund() {
|
||||
fn max_message_queue_service_weight_is_more_than_beacon_extrinsic_weights() {
|
||||
let max_message_queue_weight = MessageQueueServiceWeight::get();
|
||||
let force_checkpoint =
|
||||
<Runtime as snowbridge_pallet_ethereum_client::Config>::WeightInfo::force_checkpoint();
|
||||
<Runtime as snowbridge_pezpallet_ethereum_client::Config>::WeightInfo::force_checkpoint();
|
||||
let submit_checkpoint =
|
||||
<Runtime as snowbridge_pallet_ethereum_client::Config>::WeightInfo::submit();
|
||||
<Runtime as snowbridge_pezpallet_ethereum_client::Config>::WeightInfo::submit();
|
||||
max_message_queue_weight.all_gt(force_checkpoint);
|
||||
max_message_queue_weight.all_gt(submit_checkpoint);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ethereum_client_consensus_extrinsics_work() {
|
||||
snowbridge_runtime_test_common::ethereum_extrinsic(
|
||||
pezsnowbridge_runtime_test_common::ethereum_extrinsic(
|
||||
collator_session_keys(),
|
||||
1002,
|
||||
construct_and_apply_extrinsic,
|
||||
@@ -115,7 +115,7 @@ fn ethereum_client_consensus_extrinsics_work() {
|
||||
|
||||
#[test]
|
||||
fn ethereum_to_pezkuwi_message_extrinsics_work() {
|
||||
snowbridge_runtime_test_common::ethereum_to_pezkuwi_message_extrinsics_work(
|
||||
pezsnowbridge_runtime_test_common::ethereum_to_pezkuwi_message_extrinsics_work(
|
||||
collator_session_keys(),
|
||||
1002,
|
||||
construct_and_apply_extrinsic,
|
||||
@@ -128,7 +128,7 @@ fn ethereum_to_pezkuwi_message_extrinsics_work() {
|
||||
/// will fail.
|
||||
#[test]
|
||||
pub fn ethereum_outbound_queue_processes_messages_before_message_queue_works() {
|
||||
snowbridge_runtime_test_common::ethereum_outbound_queue_processes_messages_before_message_queue_works::<
|
||||
pezsnowbridge_runtime_test_common::ethereum_outbound_queue_processes_messages_before_message_queue_works::<
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
AllPalletsWithoutSystem,
|
||||
|
||||
@@ -17,18 +17,18 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use bp_pezkuwi_core::Signature;
|
||||
use bridge_hub_pezkuwichain_runtime::{
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_common_config, bridge_to_bulletin_config, bridge_to_zagros_config,
|
||||
xcm_config::{RelayNetwork, TokenLocation, XcmConfig},
|
||||
AllPalletsWithoutSystem, Block, BridgeRejectObsoleteHeadersAndMessages, Executive,
|
||||
ExistentialDeposit, PezkuwiXcm, Runtime, RuntimeCall, RuntimeEvent, RuntimeOrigin, SessionKeys,
|
||||
TeyrchainSystem, TransactionPayment, TxExtension, UncheckedExtrinsic,
|
||||
};
|
||||
use bridge_hub_test_utils::{GovernanceOrigin, SlotDurations};
|
||||
use pezbridge_hub_test_utils::{GovernanceOrigin, SlotDurations};
|
||||
use codec::{Decode, Encode};
|
||||
use pezframe_support::{dispatch::GetDispatchInfo, parameter_types, traits::ConstU8};
|
||||
use hex_literal::hex;
|
||||
use snowbridge_core::ChannelId;
|
||||
use pezsnowbridge_core::ChannelId;
|
||||
use pezsp_consensus_aura::SlotDuration;
|
||||
use pezsp_core::{crypto::Ss58Codec, H160};
|
||||
use pezsp_keyring::Sr25519Keyring::Alice;
|
||||
@@ -40,7 +40,7 @@ use testnet_teyrchains_constants::pezkuwichain::{consensus::*, fee::WeightToFee}
|
||||
use teyrchains_common::{AccountId, AuraId, Balance};
|
||||
use teyrchains_runtimes_test_utils::ExtBuilder;
|
||||
use xcm::latest::{prelude::*, PEZKUWICHAIN_GENESIS_HASH, ZAGROS_GENESIS_HASH};
|
||||
use xcm_runtime_apis::conversions::LocationToAccountHelper;
|
||||
use xcm_runtime_pezapis::conversions::LocationToAccountHelper;
|
||||
|
||||
parameter_types! {
|
||||
pub Governance: GovernanceOrigin<RuntimeOrigin> = GovernanceOrigin::Location(Location::parent());
|
||||
@@ -90,8 +90,8 @@ fn construct_and_estimate_extrinsic_fee(call: RuntimeCall) -> Balance {
|
||||
TransactionPayment::compute_fee(xt.encoded_size() as _, &info, 0)
|
||||
}
|
||||
|
||||
fn collator_session_keys() -> bridge_hub_test_utils::CollatorSessionKeys<Runtime> {
|
||||
bridge_hub_test_utils::CollatorSessionKeys::new(
|
||||
fn collator_session_keys() -> pezbridge_hub_test_utils::CollatorSessionKeys<Runtime> {
|
||||
pezbridge_hub_test_utils::CollatorSessionKeys::new(
|
||||
AccountId::from(Alice),
|
||||
AccountId::from(Alice),
|
||||
SessionKeys { aura: AuraId::from(Alice.public()) },
|
||||
@@ -105,7 +105,7 @@ fn slot_durations() -> SlotDurations {
|
||||
}
|
||||
}
|
||||
|
||||
bridge_hub_test_utils::test_cases::include_teleports_for_native_asset_works!(
|
||||
pezbridge_hub_test_utils::test_cases::include_teleports_for_native_asset_works!(
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -131,10 +131,10 @@ mod bridge_hub_zagros_tests {
|
||||
BridgeGrandpaZagrosInstance, BridgeTeyrchainZagrosInstance, DeliveryRewardInBalance,
|
||||
RelayersForLegacyLaneIdsMessagesInstance,
|
||||
};
|
||||
use bridge_hub_pezkuwichain_runtime::{
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_to_ethereum_config::EthereumGatewayAddress, xcm_config::LocationToAccountId,
|
||||
};
|
||||
use bridge_hub_test_utils::test_cases::from_teyrchain;
|
||||
use pezbridge_hub_test_utils::test_cases::from_teyrchain;
|
||||
use bridge_to_zagros_config::{
|
||||
BridgeHubZagrosLocation, WithBridgeHubZagrosMessagesInstance,
|
||||
XcmOverBridgeHubZagrosInstance, ZagrosGlobalConsensusNetwork,
|
||||
@@ -164,7 +164,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn initialize_bridge_by_governance_works() {
|
||||
// for PezkuwichainBulletin finality
|
||||
bridge_hub_test_utils::test_cases::initialize_bridge_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::initialize_bridge_by_governance_works::<
|
||||
Runtime,
|
||||
BridgeGrandpaZagrosInstance,
|
||||
>(
|
||||
@@ -177,7 +177,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn change_bridge_grandpa_pallet_mode_by_governance_works() {
|
||||
// for Zagros finality
|
||||
bridge_hub_test_utils::test_cases::change_bridge_grandpa_pallet_mode_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_bridge_grandpa_pallet_mode_by_governance_works::<
|
||||
Runtime,
|
||||
BridgeGrandpaZagrosInstance,
|
||||
>(
|
||||
@@ -190,7 +190,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn change_bridge_teyrchains_pallet_mode_by_governance_works() {
|
||||
// for Zagros finality
|
||||
bridge_hub_test_utils::test_cases::change_bridge_teyrchains_pallet_mode_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_bridge_teyrchains_pallet_mode_by_governance_works::<
|
||||
Runtime,
|
||||
BridgeTeyrchainZagrosInstance,
|
||||
>(
|
||||
@@ -203,7 +203,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn change_bridge_messages_pallet_mode_by_governance_works() {
|
||||
// for Zagros finality
|
||||
bridge_hub_test_utils::test_cases::change_bridge_messages_pallet_mode_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_bridge_messages_pallet_mode_by_governance_works::<
|
||||
Runtime,
|
||||
WithBridgeHubZagrosMessagesInstance,
|
||||
>(
|
||||
@@ -215,7 +215,7 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
#[test]
|
||||
fn change_ethereum_gateway_by_governance_works() {
|
||||
bridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
EthereumGatewayAddress,
|
||||
H160,
|
||||
@@ -235,37 +235,37 @@ mod bridge_hub_zagros_tests {
|
||||
let nonce = 42;
|
||||
|
||||
// Reset a single inbound channel
|
||||
bridge_hub_test_utils::test_cases::set_storage_keys_by_governance_works::<Runtime>(
|
||||
pezbridge_hub_test_utils::test_cases::set_storage_keys_by_governance_works::<Runtime>(
|
||||
collator_session_keys(),
|
||||
bp_bridge_hub_pezkuwichain::BRIDGE_HUB_PEZKUWICHAIN_TEYRCHAIN_ID,
|
||||
Governance::get(),
|
||||
vec![
|
||||
(snowbridge_pallet_outbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
(snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
channel_id_one,
|
||||
)
|
||||
.to_vec(), 0u64.encode()),
|
||||
(snowbridge_pallet_inbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
(snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::hashed_key_for::<ChannelId>(
|
||||
channel_id_one,
|
||||
)
|
||||
.to_vec(), 0u64.encode()),
|
||||
],
|
||||
|| {
|
||||
// Outbound
|
||||
snowbridge_pallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_one,
|
||||
nonce,
|
||||
);
|
||||
snowbridge_pallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_two,
|
||||
nonce,
|
||||
);
|
||||
|
||||
// Inbound
|
||||
snowbridge_pallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_one,
|
||||
nonce,
|
||||
);
|
||||
snowbridge_pallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::insert::<ChannelId, u64>(
|
||||
channel_id_two,
|
||||
nonce,
|
||||
);
|
||||
@@ -273,21 +273,21 @@ mod bridge_hub_zagros_tests {
|
||||
|| {
|
||||
// Outbound
|
||||
assert_eq!(
|
||||
snowbridge_pallet_outbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
0
|
||||
);
|
||||
assert_eq!(
|
||||
snowbridge_pallet_outbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
snowbridge_pezpallet_outbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
nonce
|
||||
);
|
||||
|
||||
// Inbound
|
||||
assert_eq!(
|
||||
snowbridge_pallet_inbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_one),
|
||||
0
|
||||
);
|
||||
assert_eq!(
|
||||
snowbridge_pallet_inbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
snowbridge_pezpallet_inbound_queue::Nonce::<Runtime>::get(channel_id_two),
|
||||
nonce
|
||||
);
|
||||
},
|
||||
@@ -296,7 +296,7 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
#[test]
|
||||
fn change_delivery_reward_by_governance_works() {
|
||||
bridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
DeliveryRewardInBalance,
|
||||
u64,
|
||||
@@ -312,7 +312,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn handle_export_message_from_system_teyrchain_add_to_outbound_queue_works() {
|
||||
// for Zagros
|
||||
bridge_hub_test_utils::test_cases::handle_export_message_from_system_teyrchain_to_outbound_queue_works::<
|
||||
pezbridge_hub_test_utils::test_cases::handle_export_message_from_system_teyrchain_to_outbound_queue_works::<
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
WithBridgeHubZagrosMessagesInstance,
|
||||
@@ -334,7 +334,7 @@ mod bridge_hub_zagros_tests {
|
||||
PezkuwiXcm::force_xcm_version(RuntimeOrigin::root(), Box::new(BridgeHubZagrosLocation::get()), XCM_VERSION).expect("version saved!");
|
||||
|
||||
// we need to create lane between sibling teyrchain and remote destination
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance,
|
||||
LocationToAccountId,
|
||||
@@ -344,7 +344,7 @@ mod bridge_hub_zagros_tests {
|
||||
BridgedUniversalLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance
|
||||
>(locations, LegacyLaneId([0, 0, 0, 1]))
|
||||
@@ -357,7 +357,7 @@ mod bridge_hub_zagros_tests {
|
||||
#[test]
|
||||
fn message_dispatch_routing_works() {
|
||||
// from Zagros
|
||||
bridge_hub_test_utils::test_cases::message_dispatch_routing_works::<
|
||||
pezbridge_hub_test_utils::test_cases::message_dispatch_routing_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -399,7 +399,7 @@ mod bridge_hub_zagros_tests {
|
||||
ByGenesis(PEZKUWICHAIN_GENESIS_HASH),
|
||||
|| {
|
||||
// we need to create lane between sibling teyrchain and remote destination
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance,
|
||||
LocationToAccountId,
|
||||
@@ -409,7 +409,7 @@ mod bridge_hub_zagros_tests {
|
||||
BridgedUniversalLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance,
|
||||
>(locations, LegacyLaneId([0, 0, 0, 1]))
|
||||
@@ -434,7 +434,7 @@ mod bridge_hub_zagros_tests {
|
||||
ByGenesis(PEZKUWICHAIN_GENESIS_HASH),
|
||||
|| {
|
||||
// we need to create lane between sibling teyrchain and remote destination
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance,
|
||||
LocationToAccountId,
|
||||
@@ -444,7 +444,7 @@ mod bridge_hub_zagros_tests {
|
||||
BridgedUniversalLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverBridgeHubZagrosInstance,
|
||||
>(locations, LegacyLaneId([0, 0, 0, 1]))
|
||||
@@ -459,11 +459,11 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
#[test]
|
||||
pub fn can_calculate_weight_for_paid_export_message_with_reserve_transfer() {
|
||||
bridge_hub_test_utils::check_sane_fees_values(
|
||||
pezbridge_hub_test_utils::check_sane_fees_values(
|
||||
"bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseXcmFeeInRocs",
|
||||
bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseXcmFeeInRocs::get(),
|
||||
|| {
|
||||
bridge_hub_test_utils::test_cases::can_calculate_weight_for_paid_export_message_with_reserve_transfer::<
|
||||
pezbridge_hub_test_utils::test_cases::can_calculate_weight_for_paid_export_message_with_reserve_transfer::<
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
WeightToFee,
|
||||
@@ -480,7 +480,7 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
#[test]
|
||||
fn can_calculate_fee_for_standalone_message_delivery_transaction() {
|
||||
bridge_hub_test_utils::check_sane_fees_values(
|
||||
pezbridge_hub_test_utils::check_sane_fees_values(
|
||||
"bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseDeliveryFeeInRocs",
|
||||
bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseDeliveryFeeInRocs::get(),
|
||||
|| {
|
||||
@@ -499,7 +499,7 @@ mod bridge_hub_zagros_tests {
|
||||
|
||||
#[test]
|
||||
fn can_calculate_fee_for_standalone_message_confirmation_transaction() {
|
||||
bridge_hub_test_utils::check_sane_fees_values(
|
||||
pezbridge_hub_test_utils::check_sane_fees_values(
|
||||
"bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseConfirmationFeeInRocs",
|
||||
bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichainBaseConfirmationFeeInRocs::get(),
|
||||
|| {
|
||||
@@ -521,11 +521,11 @@ mod bridge_hub_bulletin_tests {
|
||||
use super::*;
|
||||
use bp_messages::LegacyLaneId;
|
||||
use bridge_common_config::BridgeGrandpaPezkuwichainBulletinInstance;
|
||||
use bridge_hub_pezkuwichain_runtime::{
|
||||
use pezbridge_hub_pezkuwichain_runtime::{
|
||||
bridge_common_config::RelayersForLegacyLaneIdsMessagesInstance,
|
||||
xcm_config::LocationToAccountId,
|
||||
};
|
||||
use bridge_hub_test_utils::test_cases::from_grandpa_chain;
|
||||
use pezbridge_hub_test_utils::test_cases::from_grandpa_chain;
|
||||
use bridge_to_bulletin_config::{
|
||||
PezkuwichainBulletinGlobalConsensusNetwork,
|
||||
PezkuwichainBulletinGlobalConsensusNetworkLocation,
|
||||
@@ -554,7 +554,7 @@ mod bridge_hub_bulletin_tests {
|
||||
#[test]
|
||||
fn initialize_bridge_by_governance_works() {
|
||||
// for Bulletin finality
|
||||
bridge_hub_test_utils::test_cases::initialize_bridge_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::initialize_bridge_by_governance_works::<
|
||||
Runtime,
|
||||
BridgeGrandpaPezkuwichainBulletinInstance,
|
||||
>(
|
||||
@@ -567,7 +567,7 @@ mod bridge_hub_bulletin_tests {
|
||||
#[test]
|
||||
fn change_bridge_grandpa_pallet_mode_by_governance_works() {
|
||||
// for Bulletin finality
|
||||
bridge_hub_test_utils::test_cases::change_bridge_grandpa_pallet_mode_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_bridge_grandpa_pallet_mode_by_governance_works::<
|
||||
Runtime,
|
||||
BridgeGrandpaPezkuwichainBulletinInstance,
|
||||
>(
|
||||
@@ -580,7 +580,7 @@ mod bridge_hub_bulletin_tests {
|
||||
#[test]
|
||||
fn change_bridge_messages_pallet_mode_by_governance_works() {
|
||||
// for Bulletin finality
|
||||
bridge_hub_test_utils::test_cases::change_bridge_messages_pallet_mode_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_bridge_messages_pallet_mode_by_governance_works::<
|
||||
Runtime,
|
||||
WithPezkuwichainBulletinMessagesInstance,
|
||||
>(
|
||||
@@ -593,7 +593,7 @@ mod bridge_hub_bulletin_tests {
|
||||
#[test]
|
||||
fn handle_export_message_from_system_teyrchain_add_to_outbound_queue_works() {
|
||||
// for Bulletin
|
||||
bridge_hub_test_utils::test_cases::handle_export_message_from_system_teyrchain_to_outbound_queue_works::<
|
||||
pezbridge_hub_test_utils::test_cases::handle_export_message_from_system_teyrchain_to_outbound_queue_works::<
|
||||
Runtime,
|
||||
XcmConfig,
|
||||
WithPezkuwichainBulletinMessagesInstance,
|
||||
@@ -618,7 +618,7 @@ mod bridge_hub_bulletin_tests {
|
||||
PezkuwiXcm::force_xcm_version(RuntimeOrigin::root(), Box::new(PezkuwichainBulletinGlobalConsensusNetworkLocation::get()), XCM_VERSION).expect("version saved!");
|
||||
|
||||
// we need to create lane between PezkuwichainPeople and PezkuwichainBulletin
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance,
|
||||
LocationToAccountId,
|
||||
@@ -628,7 +628,7 @@ mod bridge_hub_bulletin_tests {
|
||||
BridgedBulletinLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance
|
||||
>(locations, LegacyLaneId([0, 0, 0, 0]))
|
||||
@@ -641,7 +641,7 @@ mod bridge_hub_bulletin_tests {
|
||||
#[test]
|
||||
fn message_dispatch_routing_works() {
|
||||
// from Bulletin
|
||||
bridge_hub_test_utils::test_cases::message_dispatch_routing_works::<
|
||||
pezbridge_hub_test_utils::test_cases::message_dispatch_routing_works::<
|
||||
Runtime,
|
||||
AllPalletsWithoutSystem,
|
||||
XcmConfig,
|
||||
@@ -682,7 +682,7 @@ mod bridge_hub_bulletin_tests {
|
||||
ByGenesis(PEZKUWICHAIN_GENESIS_HASH),
|
||||
|| {
|
||||
// we need to create lane between PezkuwichainPeople and PezkuwichainBulletin
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance,
|
||||
LocationToAccountId,
|
||||
@@ -692,7 +692,7 @@ mod bridge_hub_bulletin_tests {
|
||||
BridgedBulletinLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance,
|
||||
>(locations, LegacyLaneId([0, 0, 0, 0]))
|
||||
@@ -716,7 +716,7 @@ mod bridge_hub_bulletin_tests {
|
||||
ByGenesis(PEZKUWICHAIN_GENESIS_HASH),
|
||||
|| {
|
||||
// we need to create lane between PezkuwichainPeople and PezkuwichainBulletin
|
||||
bridge_hub_test_utils::ensure_opened_bridge::<
|
||||
pezbridge_hub_test_utils::ensure_opened_bridge::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance,
|
||||
LocationToAccountId,
|
||||
@@ -726,7 +726,7 @@ mod bridge_hub_bulletin_tests {
|
||||
BridgedBulletinLocation::get(),
|
||||
false,
|
||||
|locations, _fee| {
|
||||
bridge_hub_test_utils::open_bridge_with_storage::<
|
||||
pezbridge_hub_test_utils::open_bridge_with_storage::<
|
||||
Runtime,
|
||||
XcmOverPezkuwiBulletinInstance,
|
||||
>(locations, LegacyLaneId([0, 0, 0, 0]))
|
||||
@@ -742,7 +742,7 @@ mod bridge_hub_bulletin_tests {
|
||||
|
||||
#[test]
|
||||
fn change_required_stake_by_governance_works() {
|
||||
bridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
pezbridge_hub_test_utils::test_cases::change_storage_constant_by_governance_works::<
|
||||
Runtime,
|
||||
bridge_common_config::RequiredStakeForStakeAndSlash,
|
||||
Balance,
|
||||
@@ -984,7 +984,7 @@ fn location_conversion_works() {
|
||||
|
||||
let got = LocationToAccountHelper::<
|
||||
AccountId,
|
||||
bridge_hub_pezkuwichain_runtime::xcm_config::LocationToAccountId,
|
||||
pezbridge_hub_pezkuwichain_runtime::xcm_config::LocationToAccountId,
|
||||
>::convert_location(tc.location.into())
|
||||
.unwrap();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "bridge-hub-zagros-runtime"
|
||||
name = "pezbridge-hub-zagros-runtime"
|
||||
version = "0.3.0"
|
||||
authors.workspace = true
|
||||
edition.workspace = true
|
||||
@@ -7,7 +7,7 @@ description = "Zagros's BridgeHub teyrchain runtime"
|
||||
license = "Apache-2.0"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
documentation = "https://docs.rs/bridge-hub-zagros-runtime"
|
||||
documentation = "https://docs.rs/pezbridge-hub-zagros-runtime"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
@@ -65,7 +65,7 @@ pezkuwi-teyrchain-primitives = { workspace = true }
|
||||
xcm = { workspace = true }
|
||||
xcm-builder = { workspace = true }
|
||||
xcm-executor = { workspace = true }
|
||||
xcm-runtime-apis = { workspace = true }
|
||||
xcm-runtime-pezapis = { workspace = true }
|
||||
zagros-runtime-constants = { workspace = true }
|
||||
|
||||
# Pezcumulus
|
||||
@@ -89,16 +89,16 @@ bp-asset-hub-pezkuwichain = { workspace = true }
|
||||
bp-asset-hub-zagros = { workspace = true }
|
||||
bp-bridge-hub-pezkuwichain = { workspace = true }
|
||||
bp-bridge-hub-zagros = { workspace = true }
|
||||
bp-header-chain = { workspace = true }
|
||||
bp-header-pez-chain = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-pezkuwi-core = { workspace = true }
|
||||
bp-pezkuwichain = { workspace = true }
|
||||
bp-relayers = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-teyrchains = { workspace = true }
|
||||
bp-xcm-bridge-hub-router = { workspace = true }
|
||||
bridge-hub-common = { workspace = true }
|
||||
bridge-runtime-common = { workspace = true }
|
||||
pezbridge-runtime-common = { workspace = true }
|
||||
pezpallet-bridge-grandpa = { workspace = true }
|
||||
pezpallet-bridge-messages = { workspace = true }
|
||||
pezpallet-bridge-relayers = { workspace = true }
|
||||
@@ -106,13 +106,13 @@ pezpallet-bridge-teyrchains = { workspace = true }
|
||||
pezpallet-xcm-bridge-hub = { workspace = true }
|
||||
|
||||
# Ethereum Bridge (Snowbridge)
|
||||
snowbridge-beacon-primitives = { workspace = true }
|
||||
snowbridge-core = { workspace = true }
|
||||
snowbridge-inbound-queue-primitives = { workspace = true }
|
||||
snowbridge-merkle-tree = { workspace = true }
|
||||
snowbridge-outbound-queue-primitives = { workspace = true }
|
||||
snowbridge-outbound-queue-runtime-api = { workspace = true }
|
||||
snowbridge-outbound-queue-v2-runtime-api = { workspace = true }
|
||||
pezsnowbridge-beacon-primitives = { workspace = true }
|
||||
pezsnowbridge-core = { workspace = true }
|
||||
pezsnowbridge-inbound-queue-primitives = { workspace = true }
|
||||
pezsnowbridge-merkle-tree = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-primitives = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-runtime-api = { workspace = true }
|
||||
pezsnowbridge-outbound-queue-v2-runtime-api = { workspace = true }
|
||||
snowbridge-pezpallet-ethereum-client = { workspace = true }
|
||||
snowbridge-pezpallet-inbound-queue = { workspace = true }
|
||||
snowbridge-pezpallet-inbound-queue-fixtures = { workspace = true }
|
||||
@@ -122,16 +122,16 @@ snowbridge-pezpallet-outbound-queue = { workspace = true }
|
||||
snowbridge-pezpallet-outbound-queue-v2 = { workspace = true }
|
||||
snowbridge-pezpallet-system = { workspace = true }
|
||||
snowbridge-pezpallet-system-v2 = { workspace = true }
|
||||
snowbridge-system-runtime-api = { workspace = true }
|
||||
snowbridge-system-v2-runtime-api = { workspace = true }
|
||||
pezsnowbridge-system-runtime-api = { workspace = true }
|
||||
pezsnowbridge-system-v2-runtime-api = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
bridge-hub-test-utils = { workspace = true, default-features = true }
|
||||
bridge-runtime-common = { features = [
|
||||
pezbridge-hub-test-utils = { workspace = true, default-features = true }
|
||||
pezbridge-runtime-common = { features = [
|
||||
"integrity-test",
|
||||
], workspace = true, default-features = true }
|
||||
pezpallet-bridge-relayers = { features = ["integrity-test"], workspace = true }
|
||||
snowbridge-runtime-test-common = { workspace = true, default-features = true }
|
||||
pezsnowbridge-runtime-test-common = { workspace = true, default-features = true }
|
||||
teyrchains-runtimes-test-utils = { workspace = true, default-features = true }
|
||||
|
||||
[build-dependencies]
|
||||
@@ -143,16 +143,16 @@ std = [
|
||||
"bp-asset-hub-zagros/std",
|
||||
"bp-bridge-hub-pezkuwichain/std",
|
||||
"bp-bridge-hub-zagros/std",
|
||||
"bp-header-chain/std",
|
||||
"bp-header-pez-chain/std",
|
||||
"bp-messages/std",
|
||||
"bp-pezkuwi-core/std",
|
||||
"bp-pezkuwichain/std",
|
||||
"bp-relayers/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-teyrchains/std",
|
||||
"bp-xcm-bridge-hub-router/std",
|
||||
"bridge-hub-common/std",
|
||||
"bridge-runtime-common/std",
|
||||
"pezbridge-runtime-common/std",
|
||||
"codec/std",
|
||||
"pezcumulus-pezpallet-aura-ext/std",
|
||||
"pezcumulus-pezpallet-session-benchmarking/std",
|
||||
@@ -194,13 +194,13 @@ std = [
|
||||
"scale-info/std",
|
||||
"serde",
|
||||
"serde_json/std",
|
||||
"snowbridge-beacon-primitives/std",
|
||||
"snowbridge-core/std",
|
||||
"snowbridge-inbound-queue-primitives/std",
|
||||
"snowbridge-merkle-tree/std",
|
||||
"snowbridge-outbound-queue-primitives/std",
|
||||
"snowbridge-outbound-queue-runtime-api/std",
|
||||
"snowbridge-outbound-queue-v2-runtime-api/std",
|
||||
"pezsnowbridge-beacon-primitives/std",
|
||||
"pezsnowbridge-core/std",
|
||||
"pezsnowbridge-inbound-queue-primitives/std",
|
||||
"pezsnowbridge-merkle-tree/std",
|
||||
"pezsnowbridge-outbound-queue-primitives/std",
|
||||
"pezsnowbridge-outbound-queue-runtime-api/std",
|
||||
"pezsnowbridge-outbound-queue-v2-runtime-api/std",
|
||||
"snowbridge-pezpallet-ethereum-client/std",
|
||||
"snowbridge-pezpallet-inbound-queue-fixtures/std",
|
||||
"snowbridge-pezpallet-inbound-queue-v2-fixtures/std",
|
||||
@@ -210,8 +210,8 @@ std = [
|
||||
"snowbridge-pezpallet-outbound-queue/std",
|
||||
"snowbridge-pezpallet-system-v2/std",
|
||||
"snowbridge-pezpallet-system/std",
|
||||
"snowbridge-system-runtime-api/std",
|
||||
"snowbridge-system-v2-runtime-api/std",
|
||||
"pezsnowbridge-system-runtime-api/std",
|
||||
"pezsnowbridge-system-v2-runtime-api/std",
|
||||
"pezsp-api/std",
|
||||
"pezsp-block-builder/std",
|
||||
"pezsp-consensus-aura/std",
|
||||
@@ -234,7 +234,7 @@ std = [
|
||||
"tracing/std",
|
||||
"xcm-builder/std",
|
||||
"xcm-executor/std",
|
||||
"xcm-runtime-apis/std",
|
||||
"xcm-runtime-pezapis/std",
|
||||
"xcm/std",
|
||||
"zagros-runtime-constants/std",
|
||||
]
|
||||
@@ -245,17 +245,17 @@ runtime-benchmarks = [
|
||||
"bp-asset-hub-zagros/runtime-benchmarks",
|
||||
"bp-bridge-hub-pezkuwichain/runtime-benchmarks",
|
||||
"bp-bridge-hub-zagros/runtime-benchmarks",
|
||||
"bp-header-chain/runtime-benchmarks",
|
||||
"bp-header-pez-chain/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-pezkuwi-core/runtime-benchmarks",
|
||||
"bp-pezkuwichain/runtime-benchmarks",
|
||||
"bp-relayers/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-teyrchains/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub-router/runtime-benchmarks",
|
||||
"bridge-hub-common/runtime-benchmarks",
|
||||
"bridge-hub-test-utils/runtime-benchmarks",
|
||||
"bridge-runtime-common/runtime-benchmarks",
|
||||
"pezbridge-hub-test-utils/runtime-benchmarks",
|
||||
"pezbridge-runtime-common/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-aura-ext/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-session-benchmarking/runtime-benchmarks",
|
||||
"pezcumulus-pezpallet-teyrchain-system/runtime-benchmarks",
|
||||
@@ -293,13 +293,13 @@ runtime-benchmarks = [
|
||||
"pezpallet-xcm/runtime-benchmarks",
|
||||
"pezkuwi-runtime-common/runtime-benchmarks",
|
||||
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
|
||||
"snowbridge-beacon-primitives/runtime-benchmarks",
|
||||
"snowbridge-core/runtime-benchmarks",
|
||||
"snowbridge-inbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-merkle-tree/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-runtime-api/runtime-benchmarks",
|
||||
"snowbridge-outbound-queue-v2-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-beacon-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-core/runtime-benchmarks",
|
||||
"pezsnowbridge-inbound-queue-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-merkle-tree/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-primitives/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-outbound-queue-v2-runtime-api/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-ethereum-client/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-inbound-queue-fixtures/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-inbound-queue-v2-fixtures/runtime-benchmarks",
|
||||
@@ -309,9 +309,9 @@ runtime-benchmarks = [
|
||||
"snowbridge-pezpallet-outbound-queue/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-system-v2/runtime-benchmarks",
|
||||
"snowbridge-pezpallet-system/runtime-benchmarks",
|
||||
"snowbridge-runtime-test-common/runtime-benchmarks",
|
||||
"snowbridge-system-runtime-api/runtime-benchmarks",
|
||||
"snowbridge-system-v2-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-runtime-test-common/runtime-benchmarks",
|
||||
"pezsnowbridge-system-runtime-api/runtime-benchmarks",
|
||||
"pezsnowbridge-system-v2-runtime-api/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
"pezsp-block-builder/runtime-benchmarks",
|
||||
"pezsp-consensus-aura/runtime-benchmarks",
|
||||
@@ -331,7 +331,7 @@ runtime-benchmarks = [
|
||||
"teyrchains-runtimes-test-utils/runtime-benchmarks",
|
||||
"xcm-builder/runtime-benchmarks",
|
||||
"xcm-executor/runtime-benchmarks",
|
||||
"xcm-runtime-apis/runtime-benchmarks",
|
||||
"xcm-runtime-pezapis/runtime-benchmarks",
|
||||
"xcm/runtime-benchmarks",
|
||||
"zagros-runtime-constants/runtime-benchmarks",
|
||||
]
|
||||
@@ -363,7 +363,7 @@ try-runtime = [
|
||||
"pezpallet-xcm-bridge-hub/try-runtime",
|
||||
"pezpallet-xcm/try-runtime",
|
||||
"pezkuwi-runtime-common/try-runtime",
|
||||
"snowbridge-inbound-queue-primitives/try-runtime",
|
||||
"pezsnowbridge-inbound-queue-primitives/try-runtime",
|
||||
"snowbridge-pezpallet-ethereum-client/try-runtime",
|
||||
"snowbridge-pezpallet-inbound-queue-v2/try-runtime",
|
||||
"snowbridge-pezpallet-inbound-queue/try-runtime",
|
||||
|
||||
+3
-3
@@ -21,7 +21,7 @@ codec = { features = ["derive"], workspace = true }
|
||||
# Bridge Dependencies
|
||||
bp-bridge-hub-pezcumulus = { workspace = true }
|
||||
bp-messages = { workspace = true }
|
||||
bp-runtime = { workspace = true }
|
||||
pezbp-runtime = { workspace = true }
|
||||
bp-xcm-bridge-hub = { workspace = true }
|
||||
|
||||
# Bizinikiwi Based Dependencies
|
||||
@@ -35,7 +35,7 @@ default = ["std"]
|
||||
std = [
|
||||
"bp-bridge-hub-pezcumulus/std",
|
||||
"bp-messages/std",
|
||||
"bp-runtime/std",
|
||||
"pezbp-runtime/std",
|
||||
"bp-xcm-bridge-hub/std",
|
||||
"codec/std",
|
||||
"pezframe-support/std",
|
||||
@@ -46,7 +46,7 @@ std = [
|
||||
runtime-benchmarks = [
|
||||
"bp-bridge-hub-pezcumulus/runtime-benchmarks",
|
||||
"bp-messages/runtime-benchmarks",
|
||||
"bp-runtime/runtime-benchmarks",
|
||||
"pezbp-runtime/runtime-benchmarks",
|
||||
"bp-xcm-bridge-hub/runtime-benchmarks",
|
||||
"pezframe-support/runtime-benchmarks",
|
||||
"pezsp-api/runtime-benchmarks",
|
||||
|
||||
+2
-2
@@ -18,9 +18,9 @@
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
pub use bp_bridge_hub_cumulus::*;
|
||||
pub use bp_bridge_hub_pezcumulus::*;
|
||||
use bp_messages::*;
|
||||
use bp_runtime::{
|
||||
use pezbp_runtime::{
|
||||
decl_bridge_finality_runtime_apis, decl_bridge_messages_runtime_apis, Chain, ChainId, Teyrchain,
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ impl bp_relayers::PaymentProcedure<AccountId, BridgeReward, u128> for BridgeRewa
|
||||
BridgeRewardBeneficiaries::AssetHubLocation(account_location) => {
|
||||
let account_location = Location::try_from(account_location)
|
||||
.map_err(|_| Self::Error::Other("`AssetHubLocation` beneficiary location version is not supported for `Snowbridge` rewards!"))?;
|
||||
snowbridge_core::reward::PayAccountOnLocation::<
|
||||
pezsnowbridge_core::reward::PayAccountOnLocation::<
|
||||
AccountId,
|
||||
u128,
|
||||
EthereumNetwork,
|
||||
|
||||
+44
-44
@@ -28,10 +28,10 @@ use pezframe_support::{parameter_types, traits::Contains, weights::ConstantMulti
|
||||
use pezframe_system::EnsureRootWithSuccess;
|
||||
use hex_literal::hex;
|
||||
use pezpallet_xcm::EnsureXcm;
|
||||
use snowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use snowbridge_core::{gwei, meth, AllowSiblingsOnly, PricingParameters, Rewards};
|
||||
use snowbridge_inbound_queue_primitives::v2::CreateAssetCallInfo;
|
||||
use snowbridge_outbound_queue_primitives::{
|
||||
use pezsnowbridge_beacon_primitives::{Fork, ForkVersions};
|
||||
use pezsnowbridge_core::{gwei, meth, AllowSiblingsOnly, PricingParameters, Rewards};
|
||||
use pezsnowbridge_inbound_queue_primitives::v2::CreateAssetCallInfo;
|
||||
use pezsnowbridge_outbound_queue_primitives::{
|
||||
v1::{ConstantGasMeter, EthereumBlobExporter},
|
||||
v2::{ConstantGasMeter as ConstantGasMeterV2, EthereumBlobExporter as EthereumBlobExporterV2},
|
||||
};
|
||||
@@ -53,14 +53,14 @@ use xcm::prelude::{GlobalConsensus, InteriorLocation, Location, PalletInstance,
|
||||
use xcm_executor::XcmExecutor;
|
||||
use zagros_runtime_constants::system_teyrchain::ASSET_HUB_ID;
|
||||
|
||||
pub const SLOTS_PER_EPOCH: u32 = snowbridge_pallet_ethereum_client::config::SLOTS_PER_EPOCH as u32;
|
||||
pub const SLOTS_PER_EPOCH: u32 = snowbridge_pezpallet_ethereum_client::config::SLOTS_PER_EPOCH as u32;
|
||||
|
||||
/// Exports message to the Ethereum Gateway contract.
|
||||
pub type SnowbridgeExporter = EthereumBlobExporter<
|
||||
UniversalLocation,
|
||||
EthereumNetwork,
|
||||
snowbridge_pallet_outbound_queue::Pallet<Runtime>,
|
||||
snowbridge_core::AgentIdOf,
|
||||
snowbridge_pezpallet_outbound_queue::Pallet<Runtime>,
|
||||
pezsnowbridge_core::AgentIdOf,
|
||||
EthereumSystem,
|
||||
>;
|
||||
|
||||
@@ -100,9 +100,9 @@ parameter_types! {
|
||||
pub SnowbridgeFrontendLocation: Location = Location::new(1, [Teyrchain(ASSET_HUB_ID), PalletInstance(FRONTEND_PALLET_INDEX)]);
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_inbound_queue::Config for Runtime {
|
||||
impl snowbridge_pezpallet_inbound_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Verifier = snowbridge_pallet_ethereum_client::Pallet<Runtime>;
|
||||
type Verifier = snowbridge_pezpallet_ethereum_client::Pallet<Runtime>;
|
||||
type Token = Balances;
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
type XcmSender = crate::XcmRouter;
|
||||
@@ -112,7 +112,7 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime {
|
||||
type GatewayAddress = EthereumGatewayAddress;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = Runtime;
|
||||
type MessageConverter = snowbridge_inbound_queue_primitives::v1::MessageToXcm<
|
||||
type MessageConverter = pezsnowbridge_inbound_queue_primitives::v1::MessageToXcm<
|
||||
CreateAssetCallIndex,
|
||||
CreateForeignAssetDeposit,
|
||||
ConstU8<INBOUND_QUEUE_PALLET_INDEX_V1>,
|
||||
@@ -125,12 +125,12 @@ impl snowbridge_pallet_inbound_queue::Config for Runtime {
|
||||
type WeightToFee = WeightToFee;
|
||||
type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;
|
||||
type MaxMessageSize = ConstU32<2048>;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_inbound_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_inbound_queue::WeightInfo<Runtime>;
|
||||
type PricingParameters = EthereumSystem;
|
||||
type AssetTransactor = <xcm_config::XcmConfig as xcm_executor::Config>::AssetTransactor;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_inbound_queue_v2::Config for Runtime {
|
||||
impl snowbridge_pezpallet_inbound_queue_v2::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Verifier = EthereumBeaconClient;
|
||||
#[cfg(not(feature = "runtime-benchmarks"))]
|
||||
@@ -140,10 +140,10 @@ impl snowbridge_pallet_inbound_queue_v2::Config for Runtime {
|
||||
type GatewayAddress = EthereumGatewayAddress;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = Runtime;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_inbound_queue_v2::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_inbound_queue_v2::WeightInfo<Runtime>;
|
||||
type AssetHubParaId = AssetHubParaId;
|
||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||
type MessageConverter = snowbridge_inbound_queue_primitives::v2::MessageToXcm<
|
||||
type MessageConverter = pezsnowbridge_inbound_queue_primitives::v2::MessageToXcm<
|
||||
CreateAssetCall,
|
||||
EthereumNetwork,
|
||||
RelayNetwork,
|
||||
@@ -162,7 +162,7 @@ impl snowbridge_pallet_inbound_queue_v2::Config for Runtime {
|
||||
type RewardPayment = BridgeRelayers;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_outbound_queue::Config for Runtime {
|
||||
impl snowbridge_pezpallet_outbound_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Hashing = Keccak256;
|
||||
type MessageQueue = MessageQueue;
|
||||
@@ -172,12 +172,12 @@ impl snowbridge_pallet_outbound_queue::Config for Runtime {
|
||||
type GasMeter = ConstantGasMeter;
|
||||
type Balance = Balance;
|
||||
type WeightToFee = WeightToFee;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_outbound_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_outbound_queue::WeightInfo<Runtime>;
|
||||
type PricingParameters = EthereumSystem;
|
||||
type Channels = EthereumSystem;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_outbound_queue_v2::Config for Runtime {
|
||||
impl snowbridge_pezpallet_outbound_queue_v2::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type Hashing = Keccak256;
|
||||
type MessageQueue = MessageQueue;
|
||||
@@ -185,7 +185,7 @@ impl snowbridge_pallet_outbound_queue_v2::Config for Runtime {
|
||||
type MaxMessagePayloadSize = ConstU32<2048>;
|
||||
// Maximum number of outbound messages that can be committed per block.
|
||||
// It's benchmarked, including the entire process flow(initialize,submit,commit) in the
|
||||
// worst-case, Benchmark results in `../weights/snowbridge_pallet_outbound_queue_v2.
|
||||
// worst-case, Benchmark results in `../weights/snowbridge_pezpallet_outbound_queue_v2.
|
||||
// rs` show that the `process` function consumes less than 1% of the block capacity, which is
|
||||
// safe enough.
|
||||
type MaxMessagesPerBlock = ConstU32<32>;
|
||||
@@ -194,7 +194,7 @@ impl snowbridge_pallet_outbound_queue_v2::Config for Runtime {
|
||||
type WeightToFee = WeightToFee;
|
||||
type Verifier = EthereumBeaconClient;
|
||||
type GatewayAddress = EthereumGatewayAddress;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_outbound_queue_v2::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_outbound_queue_v2::WeightInfo<Runtime>;
|
||||
type EthereumNetwork = EthereumNetwork;
|
||||
type RewardKind = BridgeReward;
|
||||
type DefaultRewardKind = SnowbridgeReward;
|
||||
@@ -273,21 +273,21 @@ parameter_types! {
|
||||
};
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_ethereum_client::Config for Runtime {
|
||||
impl snowbridge_pezpallet_ethereum_client::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ForkVersions = ChainForkVersions;
|
||||
type FreeHeadersInterval = ConstU32<SLOTS_PER_EPOCH>;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_ethereum_client::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_ethereum_client::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system::Config for Runtime {
|
||||
impl snowbridge_pezpallet_system::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OutboundQueue = EthereumOutboundQueue;
|
||||
type SiblingOrigin = EnsureXcm<AllowSiblingsOnly>;
|
||||
type AgentIdOf = snowbridge_core::AgentIdOf;
|
||||
type AgentIdOf = pezsnowbridge_core::AgentIdOf;
|
||||
type TreasuryAccount = TreasuryAccount;
|
||||
type Token = Balances;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_system::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_system::WeightInfo<Runtime>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = ();
|
||||
type DefaultPricingParameters = Parameters;
|
||||
@@ -307,12 +307,12 @@ impl Contains<Location> for AllowFromEthereumFrontend {
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system_v2::Config for Runtime {
|
||||
impl snowbridge_pezpallet_system_v2::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OutboundQueue = EthereumOutboundQueueV2;
|
||||
type InboundQueue = EthereumInboundQueueV2;
|
||||
type FrontendOrigin = EnsureXcm<AllowFromEthereumFrontend>;
|
||||
type WeightInfo = crate::weights::snowbridge_pallet_system_v2::WeightInfo<Runtime>;
|
||||
type WeightInfo = crate::weights::snowbridge_pezpallet_system_v2::WeightInfo<Runtime>;
|
||||
type GovernanceOrigin = EnsureRootWithSuccess<crate::AccountId, RootLocation>;
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
type Helper = ();
|
||||
@@ -327,17 +327,17 @@ pub mod benchmark_helpers {
|
||||
use codec::Encode;
|
||||
use pezframe_support::assert_ok;
|
||||
use hex_literal::hex;
|
||||
use snowbridge_beacon_primitives::BeaconHeader;
|
||||
use snowbridge_inbound_queue_primitives::EventFixture;
|
||||
use snowbridge_pallet_inbound_queue::BenchmarkHelper;
|
||||
use snowbridge_pallet_inbound_queue_fixtures::register_token::make_register_token_message;
|
||||
use snowbridge_pallet_inbound_queue_v2::BenchmarkHelper as InboundQueueBenchmarkHelperV2;
|
||||
use snowbridge_pallet_inbound_queue_v2_fixtures::register_token::make_register_token_message as make_register_token_message_v2;
|
||||
use snowbridge_pallet_outbound_queue_v2::BenchmarkHelper as OutboundQueueBenchmarkHelperV2;
|
||||
use pezsnowbridge_beacon_primitives::BeaconHeader;
|
||||
use pezsnowbridge_inbound_queue_primitives::EventFixture;
|
||||
use snowbridge_pezpallet_inbound_queue::BenchmarkHelper;
|
||||
use snowbridge_pezpallet_inbound_queue_fixtures::register_token::make_register_token_message;
|
||||
use snowbridge_pezpallet_inbound_queue_v2::BenchmarkHelper as InboundQueueBenchmarkHelperV2;
|
||||
use snowbridge_pezpallet_inbound_queue_v2_fixtures::register_token::make_register_token_message as make_register_token_message_v2;
|
||||
use snowbridge_pezpallet_outbound_queue_v2::BenchmarkHelper as OutboundQueueBenchmarkHelperV2;
|
||||
use pezsp_core::H256;
|
||||
use xcm::latest::{Assets, Location, SendError, SendResult, SendXcm, Xcm, XcmHash};
|
||||
|
||||
impl<T: snowbridge_pallet_ethereum_client::Config> BenchmarkHelper<T> for Runtime {
|
||||
impl<T: snowbridge_pezpallet_ethereum_client::Config> BenchmarkHelper<T> for Runtime {
|
||||
fn initialize_storage() -> EventFixture {
|
||||
let message = make_register_token_message();
|
||||
EthereumBeaconClient::store_finalized_header(
|
||||
@@ -357,7 +357,7 @@ pub mod benchmark_helpers {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: snowbridge_pallet_inbound_queue_v2::Config> InboundQueueBenchmarkHelperV2<T> for Runtime {
|
||||
impl<T: snowbridge_pezpallet_inbound_queue_v2::Config> InboundQueueBenchmarkHelperV2<T> for Runtime {
|
||||
fn initialize_storage() -> EventFixture {
|
||||
let message = make_register_token_message_v2();
|
||||
|
||||
@@ -370,7 +370,7 @@ pub mod benchmark_helpers {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: snowbridge_pallet_outbound_queue_v2::Config> OutboundQueueBenchmarkHelperV2<T> for Runtime {
|
||||
impl<T: snowbridge_pezpallet_outbound_queue_v2::Config> OutboundQueueBenchmarkHelperV2<T> for Runtime {
|
||||
fn initialize_storage(beacon_header: BeaconHeader, block_roots_root: H256) {
|
||||
EthereumBeaconClient::store_finalized_header(beacon_header, block_roots_root).unwrap();
|
||||
}
|
||||
@@ -392,13 +392,13 @@ pub mod benchmark_helpers {
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
impl snowbridge_pezpallet_system::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
|
||||
RuntimeOrigin::from(pezpallet_xcm::Origin::Xcm(location))
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_pallet_system_v2::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
impl snowbridge_pezpallet_system_v2::BenchmarkHelper<RuntimeOrigin> for () {
|
||||
fn make_xcm_origin(location: Location) -> RuntimeOrigin {
|
||||
RuntimeOrigin::from(pezpallet_xcm::Origin::Xcm(location))
|
||||
}
|
||||
@@ -428,11 +428,11 @@ mod tests {
|
||||
|
||||
pub(crate) mod migrations {
|
||||
use pezframe_support::pezpallet_prelude::*;
|
||||
use snowbridge_core::TokenId;
|
||||
use pezsnowbridge_core::TokenId;
|
||||
|
||||
#[pezframe_support::storage_alias]
|
||||
pub type OldNativeToForeignId<T: snowbridge_pallet_system::Config> = StorageMap<
|
||||
snowbridge_pallet_system::Pallet<T>,
|
||||
pub type OldNativeToForeignId<T: snowbridge_pezpallet_system::Config> = StorageMap<
|
||||
snowbridge_pezpallet_system::Pallet<T>,
|
||||
Blake2_128Concat,
|
||||
xcm::v4::Location,
|
||||
TokenId,
|
||||
@@ -440,8 +440,8 @@ pub(crate) mod migrations {
|
||||
>;
|
||||
|
||||
/// One shot migration for NetworkId::Zagros to NetworkId::ByGenesis(ZAGROS_GENESIS_HASH)
|
||||
pub struct MigrationForXcmV5<T: snowbridge_pallet_system::Config>(core::marker::PhantomData<T>);
|
||||
impl<T: snowbridge_pallet_system::Config> pezframe_support::traits::OnRuntimeUpgrade
|
||||
pub struct MigrationForXcmV5<T: snowbridge_pezpallet_system::Config>(core::marker::PhantomData<T>);
|
||||
impl<T: snowbridge_pezpallet_system::Config> pezframe_support::traits::OnRuntimeUpgrade
|
||||
for MigrationForXcmV5<T>
|
||||
{
|
||||
fn on_runtime_upgrade() -> Weight {
|
||||
@@ -451,7 +451,7 @@ pub(crate) mod migrations {
|
||||
weight.saturating_accrue(T::DbWeight::get().reads_writes(1, 1));
|
||||
Some(xcm::v5::Location::try_from(pre).expect("valid location"))
|
||||
};
|
||||
snowbridge_pallet_system::ForeignToNativeId::<T>::translate_values(translate_zagros);
|
||||
snowbridge_pezpallet_system::ForeignToNativeId::<T>::translate_values(translate_zagros);
|
||||
|
||||
weight
|
||||
}
|
||||
|
||||
+6
-6
@@ -71,7 +71,7 @@ parameter_types! {
|
||||
2,
|
||||
[
|
||||
GlobalConsensus(PezkuwichainGlobalConsensusNetwork::get()),
|
||||
Teyrchain(<bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichain as bp_runtime::Teyrchain>::TEYRCHAIN_ID)
|
||||
Teyrchain(<bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichain as pezbp_runtime::Teyrchain>::TEYRCHAIN_ID)
|
||||
]
|
||||
);
|
||||
|
||||
@@ -105,7 +105,7 @@ pub type OnBridgeHubZagrosRefundBridgeHubPezkuwichainMessages = BridgeRelayersTr
|
||||
PriorityBoostPerMessage,
|
||||
>,
|
||||
>;
|
||||
bp_runtime::generate_static_str_provider!(OnBridgeHubZagrosRefundBridgeHubPezkuwichainMessages);
|
||||
pezbp_runtime::generate_static_str_provider!(OnBridgeHubZagrosRefundBridgeHubPezkuwichainMessages);
|
||||
|
||||
/// Add GRANDPA bridge pallet to track Pezkuwichain relay chain.
|
||||
pub type BridgeGrandpaPezkuwichainInstance = pezpallet_bridge_grandpa::Instance1;
|
||||
@@ -203,7 +203,7 @@ impl pezpallet_xcm_bridge_hub::LocalXcmChannelManager for CongestionManager {
|
||||
// dispatched and sent to the sibling teyrchain. Therefore, checking outbound `XcmpQueue`
|
||||
// is sufficient here.
|
||||
use bp_xcm_bridge_hub_router::XcmChannelStatusProvider;
|
||||
pezcumulus_pallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
|
||||
pezcumulus_pezpallet_xcmp_queue::bridging::OutXcmpChannelStatusProvider::<Runtime>::is_congested(
|
||||
with,
|
||||
)
|
||||
}
|
||||
@@ -238,7 +238,7 @@ where
|
||||
R: pezpallet_xcm_bridge_hub::Config<XBHI>,
|
||||
XBHI: 'static,
|
||||
C: xcm_executor::traits::ConvertLocation<
|
||||
bp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
pezbp_runtime::AccountIdOf<pezpallet_xcm_bridge_hub::ThisChainOf<R, XBHI>>,
|
||||
>,
|
||||
{
|
||||
use pezpallet_xcm_bridge_hub::{Bridge, BridgeId, BridgeState};
|
||||
@@ -281,7 +281,7 @@ where
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use bridge_runtime_common::{
|
||||
use pezbridge_runtime_common::{
|
||||
assert_complete_bridge_types,
|
||||
integrity::{
|
||||
assert_complete_with_teyrchain_bridge_constants, check_message_lane_weights,
|
||||
@@ -381,7 +381,7 @@ pub mod migration {
|
||||
|
||||
mod v1_wrong {
|
||||
use bp_messages::{LaneState, MessageNonce, UnrewardedRelayer};
|
||||
use bp_runtime::AccountIdOf;
|
||||
use pezbp_runtime::AccountIdOf;
|
||||
use codec::{Decode, Encode};
|
||||
use pezpallet_bridge_messages::BridgedChainOf;
|
||||
use pezsp_std::collections::vec_deque::VecDeque;
|
||||
|
||||
@@ -37,10 +37,10 @@ pub mod xcm_config;
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::{vec, vec::Vec};
|
||||
use bridge_runtime_common::extensions::{
|
||||
use pezbridge_runtime_common::extensions::{
|
||||
CheckAndBoostBridgeGrandpaTransactions, CheckAndBoostBridgeTeyrchainsTransactions,
|
||||
};
|
||||
use pezcumulus_pallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_pezpallet_teyrchain_system::RelayNumberMonotonicallyIncreases;
|
||||
use pezcumulus_primitives_core::ParaId;
|
||||
use pezsp_api::impl_runtime_apis;
|
||||
use pezsp_core::{crypto::KeyTypeId, OpaqueMetadata};
|
||||
@@ -75,12 +75,12 @@ pub use pezsp_consensus_aura::sr25519::AuthorityId as AuraId;
|
||||
pub use pezsp_runtime::{MultiAddress, Perbill, Permill};
|
||||
use xcm_config::{XcmConfig, XcmOriginToTransactDispatchOrigin, XcmRouter};
|
||||
|
||||
use xcm_runtime_apis::{
|
||||
use xcm_runtime_pezapis::{
|
||||
dry_run::{CallDryRunEffects, Error as XcmDryRunApiError, XcmDryRunEffects},
|
||||
fees::Error as XcmPaymentApiError,
|
||||
};
|
||||
|
||||
use bp_runtime::HeaderId;
|
||||
use pezbp_runtime::HeaderId;
|
||||
use pezpallet_bridge_messages::LaneIdOf;
|
||||
#[cfg(any(feature = "std", test))]
|
||||
pub use pezsp_runtime::BuildStorage;
|
||||
@@ -93,8 +93,8 @@ use xcm::prelude::*;
|
||||
|
||||
use weights::{BlockExecutionWeight, ExtrinsicBaseWeight, RocksDbWeight};
|
||||
|
||||
use snowbridge_core::{AgentId, PricingParameters};
|
||||
use snowbridge_outbound_queue_primitives::v1::{Command, Fee};
|
||||
use pezsnowbridge_core::{AgentId, PricingParameters};
|
||||
use pezsnowbridge_outbound_queue_primitives::v1::{Command, Fee};
|
||||
use testnet_teyrchains_constants::zagros::{consensus::*, currency::*, fee::WeightToFee, time::*};
|
||||
use teyrchains_common::{
|
||||
impls::DealWithFees, AccountId, Balance, BlockNumber, Hash, Header, Nonce, Signature,
|
||||
@@ -117,7 +117,7 @@ pub type SignedBlock = generic::SignedBlock<Block>;
|
||||
pub type BlockId = generic::BlockId<Block>;
|
||||
|
||||
/// The TransactionExtension to the basic transaction logic.
|
||||
pub type TxExtension = pezcumulus_pallet_weight_reclaim::StorageWeightReclaim<
|
||||
pub type TxExtension = pezcumulus_pezpallet_weight_reclaim::StorageWeightReclaim<
|
||||
Runtime,
|
||||
(
|
||||
(
|
||||
@@ -147,8 +147,8 @@ pub type Migrations = (
|
||||
pezpallet_multisig::migrations::v1::MigrateToV1<Runtime>,
|
||||
InitStorageVersions,
|
||||
// unreleased
|
||||
pezcumulus_pallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v4::MigrationToV4<Runtime>,
|
||||
pezcumulus_pezpallet_xcmp_queue::migration::v5::MigrateV4ToV5<Runtime>,
|
||||
pezpallet_bridge_messages::migration::v1::MigrationToV1<
|
||||
Runtime,
|
||||
bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance,
|
||||
@@ -172,12 +172,12 @@ pub type Migrations = (
|
||||
bridge_common_config::BridgeRelayersInstance,
|
||||
bp_messages::LegacyLaneId,
|
||||
>,
|
||||
snowbridge_pallet_system::migration::v0::InitializeOnUpgrade<
|
||||
snowbridge_pezpallet_system::migration::v0::InitializeOnUpgrade<
|
||||
Runtime,
|
||||
ConstU32<BRIDGE_HUB_ID>,
|
||||
ConstU32<ASSET_HUB_ID>,
|
||||
>,
|
||||
snowbridge_pallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
snowbridge_pezpallet_system::migration::FeePerGasMigrationV0ToV1<Runtime>,
|
||||
bridge_to_ethereum_config::migrations::MigrationForXcmV5<Runtime>,
|
||||
pezpallet_session::migrations::v1::MigrateV0ToV1<
|
||||
Runtime,
|
||||
@@ -185,7 +185,7 @@ pub type Migrations = (
|
||||
>,
|
||||
// permanent
|
||||
pezpallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
|
||||
pezcumulus_pallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
pezcumulus_pezpallet_aura_ext::migration::MigrateV0ToV1<Runtime>,
|
||||
);
|
||||
|
||||
parameter_types! {
|
||||
@@ -311,13 +311,13 @@ impl pezframe_system::Config for Runtime {
|
||||
/// This is used as an identifier of the chain. 42 is the generic bizinikiwi prefix.
|
||||
type SS58Prefix = SS58Prefix;
|
||||
/// The action to take on a Runtime Upgrade
|
||||
type OnSetCode = pezcumulus_pallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type OnSetCode = pezcumulus_pezpallet_teyrchain_system::TeyrchainSetCode<Self>;
|
||||
type MaxConsumers = pezframe_support::traits::ConstU32<16>;
|
||||
type SingleBlockMigrations = Migrations;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_weight_reclaim::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_weight_reclaim::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
impl pezpallet_timestamp::Config for Runtime {
|
||||
@@ -377,8 +377,8 @@ parameter_types! {
|
||||
pub const ReservedDmpWeight: Weight = MAXIMUM_BLOCK_WEIGHT.saturating_div(4);
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
impl pezcumulus_pezpallet_teyrchain_system::Config for Runtime {
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_teyrchain_system::WeightInfo<Runtime>;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type OnSystemEvent = ();
|
||||
type SelfParaId = teyrchain_info::Pallet<Runtime>;
|
||||
@@ -392,7 +392,7 @@ impl pezcumulus_pallet_teyrchain_system::Config for Runtime {
|
||||
type RelayParentOffset = ConstU32<0>;
|
||||
}
|
||||
|
||||
type ConsensusHook = pezcumulus_pallet_aura_ext::FixedVelocityConsensusHook<
|
||||
type ConsensusHook = pezcumulus_pezpallet_aura_ext::FixedVelocityConsensusHook<
|
||||
Runtime,
|
||||
RELAY_CHAIN_SLOT_DURATION_MILLIS,
|
||||
BLOCK_PROCESSING_VELOCITY,
|
||||
@@ -435,7 +435,7 @@ impl pezpallet_message_queue::Config for Runtime {
|
||||
type IdleMaxServiceWeight = MessageQueueServiceWeight;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_aura_ext::Config for Runtime {}
|
||||
impl pezcumulus_pezpallet_aura_ext::Config for Runtime {}
|
||||
|
||||
parameter_types! {
|
||||
/// The asset ID for the asset that we use to pay for message delivery fees.
|
||||
@@ -451,7 +451,7 @@ pub type PriceForSiblingTeyrchainDelivery = pezkuwi_runtime_common::xcm_sender::
|
||||
XcmpQueue,
|
||||
>;
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::Config for Runtime {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type ChannelInfo = TeyrchainSystem;
|
||||
type VersionWrapper = PezkuwiXcm;
|
||||
@@ -463,11 +463,11 @@ impl pezcumulus_pallet_xcmp_queue::Config for Runtime {
|
||||
type MaxPageSize = ConstU32<{ 103 * 1024 }>;
|
||||
type ControllerOrigin = EnsureRoot<AccountId>;
|
||||
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
|
||||
type WeightInfo = weights::pezcumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type WeightInfo = weights::pezcumulus_pezpallet_xcmp_queue::WeightInfo<Runtime>;
|
||||
type PriceForSiblingDelivery = PriceForSiblingTeyrchainDelivery;
|
||||
}
|
||||
|
||||
impl pezcumulus_pallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
impl pezcumulus_pezpallet_xcmp_queue::migration::v5::V5Config for Runtime {
|
||||
// This must be the same as the `ChannelInfo` from the `Config`:
|
||||
type ChannelList = TeyrchainSystem;
|
||||
}
|
||||
@@ -558,10 +558,10 @@ construct_runtime!(
|
||||
{
|
||||
// System support stuff.
|
||||
System: pezframe_system = 0,
|
||||
TeyrchainSystem: pezcumulus_pallet_teyrchain_system = 1,
|
||||
TeyrchainSystem: pezcumulus_pezpallet_teyrchain_system = 1,
|
||||
Timestamp: pezpallet_timestamp = 2,
|
||||
TeyrchainInfo: teyrchain_info = 3,
|
||||
WeightReclaim: pezcumulus_pallet_weight_reclaim = 4,
|
||||
WeightReclaim: pezcumulus_pezpallet_weight_reclaim = 4,
|
||||
|
||||
// Monetary stuff.
|
||||
Balances: pezpallet_balances = 10,
|
||||
@@ -572,12 +572,12 @@ construct_runtime!(
|
||||
CollatorSelection: pezpallet_collator_selection = 21,
|
||||
Session: pezpallet_session = 22,
|
||||
Aura: pezpallet_aura = 23,
|
||||
AuraExt: pezcumulus_pallet_aura_ext = 24,
|
||||
AuraExt: pezcumulus_pezpallet_aura_ext = 24,
|
||||
|
||||
// XCM helpers.
|
||||
XcmpQueue: pezcumulus_pallet_xcmp_queue = 30,
|
||||
XcmpQueue: pezcumulus_pezpallet_xcmp_queue = 30,
|
||||
PezkuwiXcm: pezpallet_xcm = 31,
|
||||
CumulusXcm: pezcumulus_pallet_xcm = 32,
|
||||
CumulusXcm: pezcumulus_pezpallet_xcm = 32,
|
||||
|
||||
// Handy utilities.
|
||||
Utility: pezpallet_utility = 40,
|
||||
@@ -590,14 +590,14 @@ construct_runtime!(
|
||||
BridgePezkuwichainMessages: pezpallet_bridge_messages::<Instance1> = 44,
|
||||
XcmOverBridgeHubPezkuwichain: pezpallet_xcm_bridge_hub::<Instance1> = 45,
|
||||
|
||||
EthereumInboundQueue: snowbridge_pallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pallet_system = 83,
|
||||
EthereumInboundQueue: snowbridge_pezpallet_inbound_queue = 80,
|
||||
EthereumOutboundQueue: snowbridge_pezpallet_outbound_queue = 81,
|
||||
EthereumBeaconClient: snowbridge_pezpallet_ethereum_client = 82,
|
||||
EthereumSystem: snowbridge_pezpallet_system = 83,
|
||||
|
||||
EthereumSystemV2: snowbridge_pallet_system_v2 = 90,
|
||||
EthereumInboundQueueV2: snowbridge_pallet_inbound_queue_v2 = 91,
|
||||
EthereumOutboundQueueV2: snowbridge_pallet_outbound_queue_v2 = 92,
|
||||
EthereumSystemV2: snowbridge_pezpallet_system_v2 = 90,
|
||||
EthereumInboundQueueV2: snowbridge_pezpallet_inbound_queue_v2 = 91,
|
||||
EthereumOutboundQueueV2: snowbridge_pezpallet_outbound_queue_v2 = 92,
|
||||
|
||||
// Message Queue. Importantly, is registered last so that messages are processed after
|
||||
// the `on_initialize` hooks of bridging pallets.
|
||||
@@ -605,7 +605,7 @@ construct_runtime!(
|
||||
}
|
||||
);
|
||||
|
||||
bridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
|
||||
pezbridge_runtime_common::generate_bridge_reject_obsolete_headers_and_messages! {
|
||||
RuntimeCall, AccountId,
|
||||
// Grandpa
|
||||
CheckAndBoostBridgeGrandpaTransactions<
|
||||
@@ -639,8 +639,8 @@ mod benches {
|
||||
[pezpallet_timestamp, Timestamp]
|
||||
[pezpallet_transaction_payment, TransactionPayment]
|
||||
[pezpallet_collator_selection, CollatorSelection]
|
||||
[pezcumulus_pallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pallet_xcmp_queue, XcmpQueue]
|
||||
[pezcumulus_pezpallet_teyrchain_system, TeyrchainSystem]
|
||||
[pezcumulus_pezpallet_xcmp_queue, XcmpQueue]
|
||||
// XCM
|
||||
[pezpallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
|
||||
// NOTE: Make sure you point to the individual modules below.
|
||||
@@ -652,16 +652,16 @@ mod benches {
|
||||
[pezpallet_bridge_teyrchains, WithinPezkuwichain]
|
||||
[pezpallet_bridge_messages, ZagrosToPezkuwichain]
|
||||
// Ethereum Bridge V1
|
||||
[snowbridge_pallet_system, EthereumSystem]
|
||||
[snowbridge_pallet_ethereum_client, EthereumBeaconClient]
|
||||
[snowbridge_pallet_inbound_queue, EthereumInboundQueue]
|
||||
[snowbridge_pallet_outbound_queue, EthereumOutboundQueue]
|
||||
[snowbridge_pezpallet_system, EthereumSystem]
|
||||
[snowbridge_pezpallet_ethereum_client, EthereumBeaconClient]
|
||||
[snowbridge_pezpallet_inbound_queue, EthereumInboundQueue]
|
||||
[snowbridge_pezpallet_outbound_queue, EthereumOutboundQueue]
|
||||
// Ethereum Bridge V2
|
||||
[snowbridge_pallet_system_v2, EthereumSystemV2]
|
||||
[snowbridge_pallet_inbound_queue_v2, EthereumInboundQueueV2]
|
||||
[snowbridge_pallet_outbound_queue_v2, EthereumOutboundQueueV2]
|
||||
[snowbridge_pezpallet_system_v2, EthereumSystemV2]
|
||||
[snowbridge_pezpallet_inbound_queue_v2, EthereumInboundQueueV2]
|
||||
[snowbridge_pezpallet_outbound_queue_v2, EthereumOutboundQueueV2]
|
||||
|
||||
[pezcumulus_pallet_weight_reclaim, WeightReclaim]
|
||||
[pezcumulus_pezpallet_weight_reclaim, WeightReclaim]
|
||||
);
|
||||
}
|
||||
|
||||
@@ -818,7 +818,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::fees::XcmPaymentApi<Block> for Runtime {
|
||||
fn query_acceptable_payment_assets(xcm_version: xcm::Version) -> Result<Vec<VersionedAssetId>, XcmPaymentApiError> {
|
||||
let acceptable_assets = vec![AssetId(xcm_config::ZagrosLocation::get())];
|
||||
PezkuwiXcm::query_acceptable_payment_assets(xcm_version, acceptable_assets)
|
||||
@@ -839,7 +839,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
impl xcm_runtime_pezapis::dry_run::DryRunApi<Block, RuntimeCall, RuntimeEvent, OriginCaller> for Runtime {
|
||||
fn dry_run_call(origin: OriginCaller, call: RuntimeCall, result_xcms_version: XcmVersion) -> Result<CallDryRunEffects<RuntimeEvent>, XcmDryRunApiError> {
|
||||
PezkuwiXcm::dry_run_call::<Runtime, xcm_config::XcmRouter, OriginCaller, RuntimeCall>(origin, call, result_xcms_version)
|
||||
}
|
||||
@@ -849,37 +849,37 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
impl xcm_runtime_pezapis::conversions::LocationToAccountApi<Block, AccountId> for Runtime {
|
||||
fn convert_location(location: VersionedLocation) -> Result<
|
||||
AccountId,
|
||||
xcm_runtime_apis::conversions::Error
|
||||
xcm_runtime_pezapis::conversions::Error
|
||||
> {
|
||||
xcm_runtime_apis::conversions::LocationToAccountHelper::<
|
||||
xcm_runtime_pezapis::conversions::LocationToAccountHelper::<
|
||||
AccountId,
|
||||
xcm_config::LocationToAccountId,
|
||||
>::convert_location(location)
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
impl xcm_runtime_pezapis::trusted_query::TrustedQueryApi<Block> for Runtime {
|
||||
fn is_trusted_reserve(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_reserve(asset, location)
|
||||
}
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_apis::trusted_query::XcmTrustedQueryResult {
|
||||
fn is_trusted_teleporter(asset: VersionedAsset, location: VersionedLocation) -> xcm_runtime_pezapis::trusted_query::XcmTrustedQueryResult {
|
||||
PezkuwiXcm::is_trusted_teleporter(asset, location)
|
||||
}
|
||||
}
|
||||
|
||||
impl xcm_runtime_apis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
impl xcm_runtime_pezapis::authorized_aliases::AuthorizedAliasersApi<Block> for Runtime {
|
||||
fn authorized_aliasers(target: VersionedLocation) -> Result<
|
||||
Vec<xcm_runtime_apis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
Vec<xcm_runtime_pezapis::authorized_aliases::OriginAliaser>,
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::authorized_aliasers(target)
|
||||
}
|
||||
fn is_authorized_alias(origin: VersionedLocation, target: VersionedLocation) -> Result<
|
||||
bool,
|
||||
xcm_runtime_apis::authorized_aliases::Error
|
||||
xcm_runtime_pezapis::authorized_aliases::Error
|
||||
> {
|
||||
PezkuwiXcm::is_authorized_alias(origin, target)
|
||||
}
|
||||
@@ -901,7 +901,7 @@ impl_runtime_apis! {
|
||||
>>::FreeHeadersInterval::get()
|
||||
}
|
||||
fn synced_headers_grandpa_info(
|
||||
) -> Vec<bp_header_chain::StoredHeaderGrandpaInfo<bp_pezkuwichain::Header>> {
|
||||
) -> Vec<bp_header_pez_chain::StoredHeaderGrandpaInfo<bp_pezkuwichain::Header>> {
|
||||
BridgePezkuwichainGrandpa::synced_headers_grandpa_info()
|
||||
}
|
||||
}
|
||||
@@ -923,7 +923,7 @@ impl_runtime_apis! {
|
||||
lane: LaneIdOf<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>,
|
||||
messages: Vec<(bp_messages::MessagePayload, bp_messages::OutboundMessageDetails)>,
|
||||
) -> Vec<bp_messages::InboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::inbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::inbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance,
|
||||
>(lane, messages)
|
||||
@@ -936,38 +936,38 @@ impl_runtime_apis! {
|
||||
begin: bp_messages::MessageNonce,
|
||||
end: bp_messages::MessageNonce,
|
||||
) -> Vec<bp_messages::OutboundMessageDetails> {
|
||||
bridge_runtime_common::messages_api::outbound_message_details::<
|
||||
pezbridge_runtime_common::messages_api::outbound_message_details::<
|
||||
Runtime,
|
||||
bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance,
|
||||
>(lane, begin, end)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_outbound_queue_runtime_api::OutboundQueueApi<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<snowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
impl pezsnowbridge_outbound_queue_runtime_api::OutboundQueueApi<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<pezsnowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pezpallet_outbound_queue::api::prove_message::<Runtime>(leaf_index)
|
||||
}
|
||||
|
||||
fn calculate_fee(command: Command, parameters: Option<PricingParameters<Balance>>) -> Fee<Balance> {
|
||||
snowbridge_pallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
snowbridge_pezpallet_outbound_queue::api::calculate_fee::<Runtime>(command, parameters)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_outbound_queue_v2_runtime_api::OutboundQueueV2Api<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<snowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pallet_outbound_queue_v2::api::prove_message::<Runtime>(leaf_index)
|
||||
impl pezsnowbridge_outbound_queue_v2_runtime_api::OutboundQueueV2Api<Block, Balance> for Runtime {
|
||||
fn prove_message(leaf_index: u64) -> Option<pezsnowbridge_merkle_tree::MerkleProof> {
|
||||
snowbridge_pezpallet_outbound_queue_v2::api::prove_message::<Runtime>(leaf_index)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_system_runtime_api::ControlApi<Block> for Runtime {
|
||||
impl pezsnowbridge_system_runtime_api::ControlApi<Block> for Runtime {
|
||||
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
|
||||
snowbridge_pallet_system::api::agent_id::<Runtime>(location)
|
||||
snowbridge_pezpallet_system::api::agent_id::<Runtime>(location)
|
||||
}
|
||||
}
|
||||
|
||||
impl snowbridge_system_v2_runtime_api::ControlV2Api<Block> for Runtime {
|
||||
impl pezsnowbridge_system_v2_runtime_api::ControlV2Api<Block> for Runtime {
|
||||
fn agent_id(location: VersionedLocation) -> Option<AgentId> {
|
||||
snowbridge_pallet_system_v2::api::agent_id::<Runtime>(location)
|
||||
snowbridge_pezpallet_system_v2::api::agent_id::<Runtime>(location)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1000,7 +1000,7 @@ impl_runtime_apis! {
|
||||
use pezframe_support::traits::StorageInfoTrait;
|
||||
use pezframe_system_benchmarking::Pallet as SystemBench;
|
||||
use pezframe_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
use pezpallet_xcm::benchmarking::Pallet as PalletXcmExtrinsicsBenchmark;
|
||||
|
||||
// This is defined once again in dispatch_benchmark, because list_benchmarks!
|
||||
@@ -1038,12 +1038,12 @@ impl_runtime_apis! {
|
||||
}
|
||||
|
||||
fn verify_set_code() {
|
||||
System::assert_last_event(pezcumulus_pallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
System::assert_last_event(pezcumulus_pezpallet_teyrchain_system::Event::<Runtime>::ValidationFunctionStored.into());
|
||||
}
|
||||
}
|
||||
|
||||
use pezcumulus_pallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pallet_session_benchmarking::Config for Runtime {}
|
||||
use pezcumulus_pezpallet_session_benchmarking::Pallet as SessionBench;
|
||||
impl pezcumulus_pezpallet_session_benchmarking::Config for Runtime {}
|
||||
|
||||
use xcm::latest::prelude::*;
|
||||
use xcm_config::ZagrosLocation;
|
||||
@@ -1277,7 +1277,7 @@ impl_runtime_apis! {
|
||||
type WithinPezkuwichain = pezpallet_bridge_teyrchains::benchmarking::Pallet::<Runtime, bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance>;
|
||||
type ZagrosToPezkuwichain = pezpallet_bridge_messages::benchmarking::Pallet ::<Runtime, bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>;
|
||||
|
||||
use bridge_runtime_common::messages_benchmarking::{
|
||||
use pezbridge_runtime_common::messages_benchmarking::{
|
||||
prepare_message_delivery_proof_from_teyrchain,
|
||||
prepare_message_proof_from_teyrchain,
|
||||
generate_xcm_builder_bridge_message_sample,
|
||||
@@ -1291,7 +1291,7 @@ impl_runtime_apis! {
|
||||
impl BridgeMessagesConfig<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance> for Runtime {
|
||||
fn is_relayer_rewarded(relayer: &Self::AccountId) -> bool {
|
||||
let bench_lane_id = <Self as BridgeMessagesConfig<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>>::bench_lane_id();
|
||||
use bp_runtime::Chain;
|
||||
use pezbp_runtime::Chain;
|
||||
let bridged_chain_id =<Self as pezpallet_bridge_messages::Config<bridge_to_pezkuwichain_config::WithBridgeHubPezkuwichainMessagesInstance>>::BridgedChain::ID;
|
||||
pezpallet_bridge_relayers::Pallet::<Runtime, bridge_common_config::BridgeRelayersInstance>::relayer_reward(
|
||||
relayer,
|
||||
@@ -1344,7 +1344,7 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
use bridge_runtime_common::teyrchains_benchmarking::prepare_teyrchain_heads_proof;
|
||||
use pezbridge_runtime_common::teyrchains_benchmarking::prepare_teyrchain_heads_proof;
|
||||
use pezpallet_bridge_teyrchains::benchmarking::Config as BridgeTeyrchainsConfig;
|
||||
use pezpallet_bridge_relayers::benchmarking::{
|
||||
Pallet as BridgeRelayersBench,
|
||||
@@ -1353,14 +1353,14 @@ impl_runtime_apis! {
|
||||
|
||||
impl BridgeTeyrchainsConfig<bridge_to_pezkuwichain_config::BridgeTeyrchainPezkuwichainInstance> for Runtime {
|
||||
fn teyrchains() -> Vec<bp_pezkuwi_core::teyrchains::ParaId> {
|
||||
use bp_runtime::Teyrchain;
|
||||
use pezbp_runtime::Teyrchain;
|
||||
vec![bp_pezkuwi_core::teyrchains::ParaId(bp_bridge_hub_pezkuwichain::BridgeHubPezkuwichain::TEYRCHAIN_ID)]
|
||||
}
|
||||
|
||||
fn prepare_teyrchain_heads_proof(
|
||||
teyrchains: &[bp_pezkuwi_core::teyrchains::ParaId],
|
||||
teyrchain_head_size: u32,
|
||||
proof_params: bp_runtime::UnverifiedStorageProofParams,
|
||||
proof_params: pezbp_runtime::UnverifiedStorageProofParams,
|
||||
) -> (
|
||||
bp_teyrchains::RelayBlockNumber,
|
||||
bp_teyrchains::RelayBlockHash,
|
||||
@@ -1446,9 +1446,9 @@ impl_runtime_apis! {
|
||||
}
|
||||
}
|
||||
|
||||
pezcumulus_pallet_teyrchain_system::register_validate_block! {
|
||||
pezcumulus_pezpallet_teyrchain_system::register_validate_block! {
|
||||
Runtime = Runtime,
|
||||
BlockExecutor = pezcumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
BlockExecutor = pezcumulus_pezpallet_aura_ext::BlockExecutor::<Runtime, Executive>,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -1489,7 +1489,7 @@ mod tests {
|
||||
let bh_indirect_payload = bp_bridge_hub_zagros::TransactionExtension::from_params(
|
||||
VERSION.spec_version,
|
||||
VERSION.transaction_version,
|
||||
bp_runtime::TransactionEra::Immortal,
|
||||
pezbp_runtime::TransactionEra::Immortal,
|
||||
System::block_hash(BlockNumber::zero()),
|
||||
10,
|
||||
10,
|
||||
|
||||
@@ -23,9 +23,9 @@ use ::pezpallet_bridge_relayers::WeightInfo as _;
|
||||
use ::pezpallet_bridge_teyrchains::WeightInfoExt as TeyrchainsWeightInfoExt;
|
||||
|
||||
pub mod block_weights;
|
||||
pub mod pezcumulus_pallet_teyrchain_system;
|
||||
pub mod pezcumulus_pallet_weight_reclaim;
|
||||
pub mod pezcumulus_pallet_xcmp_queue;
|
||||
pub mod pezcumulus_pezpallet_teyrchain_system;
|
||||
pub mod pezcumulus_pezpallet_weight_reclaim;
|
||||
pub mod pezcumulus_pezpallet_xcmp_queue;
|
||||
pub mod extrinsic_weights;
|
||||
pub mod pezframe_system;
|
||||
pub mod pezframe_system_extensions;
|
||||
@@ -46,13 +46,13 @@ pub mod paritydb_weights;
|
||||
pub mod rocksdb_weights;
|
||||
pub mod xcm;
|
||||
|
||||
pub mod snowbridge_pallet_ethereum_client;
|
||||
pub mod snowbridge_pallet_inbound_queue;
|
||||
pub mod snowbridge_pallet_inbound_queue_v2;
|
||||
pub mod snowbridge_pallet_outbound_queue;
|
||||
pub mod snowbridge_pallet_outbound_queue_v2;
|
||||
pub mod snowbridge_pallet_system;
|
||||
pub mod snowbridge_pallet_system_v2;
|
||||
pub mod snowbridge_pezpallet_ethereum_client;
|
||||
pub mod snowbridge_pezpallet_inbound_queue;
|
||||
pub mod snowbridge_pezpallet_inbound_queue_v2;
|
||||
pub mod snowbridge_pezpallet_outbound_queue;
|
||||
pub mod snowbridge_pezpallet_outbound_queue_v2;
|
||||
pub mod snowbridge_pezpallet_system;
|
||||
pub mod snowbridge_pezpallet_system_v2;
|
||||
|
||||
pub use block_weights::constants::BlockExecutionWeight;
|
||||
pub use extrinsic_weights::constants::ExtrinsicBaseWeight;
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_teyrchain_system`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_teyrchain_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_teyrchain_system
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_teyrchain_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_teyrchain_system`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_teyrchain_system`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_teyrchain_system::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `TeyrchainSystem::LastDmqMqcHead` (r:1 w:1)
|
||||
/// Proof: `TeyrchainSystem::LastDmqMqcHead` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_weight_reclaim`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_weight_reclaim`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_weight_reclaim
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_weight_reclaim
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_weight_reclaim`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_weight_reclaim`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_weight_reclaim::WeightInfo for WeightInfo<T> {
|
||||
fn storage_weight_reclaim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `pezcumulus_pallet_xcmp_queue`
|
||||
//! Autogenerated weights for `pezcumulus_pezpallet_xcmp_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pallet_xcmp_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezcumulus_pezpallet_xcmp_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pezcumulus_pallet_xcmp_queue`.
|
||||
/// Weight functions for `pezcumulus_pezpallet_xcmp_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> pezcumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> pezcumulus_pezpallet_xcmp_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
|
||||
/// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
|
||||
fn set_config_with_u32() -> Weight {
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezframe_system
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezframe_system_extensions
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_balances
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_grandpa
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_messages
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_relayers
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_bridge_teyrchains
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_collator_selection
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_message_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_multisig
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_session
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_timestamp
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_transaction_payment
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_utility
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=pezpallet_xcm
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_ethereum_client`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_ethereum_client`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_ethereum_client
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_ethereum_client
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_ethereum_client`.
|
||||
/// Weight functions for `snowbridge_pezpallet_ethereum_client`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_ethereum_client::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_ethereum_client::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumBeaconClient::FinalizedBeaconStateIndex` (r:1 w:1)
|
||||
/// Proof: `EthereumBeaconClient::FinalizedBeaconStateIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumBeaconClient::FinalizedBeaconStateMapping` (r:1 w:1)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_inbound_queue`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_inbound_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_inbound_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_inbound_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_inbound_queue`.
|
||||
/// Weight functions for `snowbridge_pezpallet_inbound_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_inbound_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_inbound_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumInboundQueue::OperatingMode` (r:1 w:0)
|
||||
/// Proof: `EthereumInboundQueue::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
|
||||
|
||||
+4
-4
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_inbound_queue_v2`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_inbound_queue_v2`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-03-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -31,7 +31,7 @@
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --output
|
||||
// pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pallet_inbound_queue_v2.rs
|
||||
// pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights/snowbridge_pezpallet_inbound_queue_v2.rs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -41,9 +41,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_inbound_queue_v2`.
|
||||
/// Weight functions for `snowbridge_pezpallet_inbound_queue_v2`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_inbound_queue_v2::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_inbound_queue_v2::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumInboundQueueV2::OperatingMode` (r:1 w:0)
|
||||
/// Proof: `EthereumInboundQueueV2::OperatingMode` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
||||
/// Storage: `EthereumBeaconClient::LatestFinalizedBlockRoot` (r:1 w:0)
|
||||
|
||||
+5
-5
@@ -13,7 +13,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for `snowbridge_pallet_outbound_queue`
|
||||
//! Autogenerated weights for `snowbridge_pezpallet_outbound_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
@@ -27,8 +27,8 @@
|
||||
// benchmark
|
||||
// pallet
|
||||
// --extrinsic=*
|
||||
// --runtime=target/production/wbuild/bridge-hub-zagros-runtime/bridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pallet_outbound_queue
|
||||
// --runtime=target/production/wbuild/pezbridge-hub-zagros-runtime/pezbridge_hub_zagros_runtime.wasm
|
||||
// --pallet=snowbridge_pezpallet_outbound_queue
|
||||
// --header=/__w/pezkuwi-sdk/pezkuwi-sdk/pezcumulus/file_header.txt
|
||||
// --output=./pezcumulus/teyrchains/runtimes/bridge-hubs/bridge-hub-zagros/src/weights
|
||||
// --wasm-execution=compiled
|
||||
@@ -47,9 +47,9 @@
|
||||
use pezframe_support::{traits::Get, weights::Weight};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `snowbridge_pallet_outbound_queue`.
|
||||
/// Weight functions for `snowbridge_pezpallet_outbound_queue`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: pezframe_system::Config> snowbridge_pallet_outbound_queue::WeightInfo for WeightInfo<T> {
|
||||
impl<T: pezframe_system::Config> snowbridge_pezpallet_outbound_queue::WeightInfo for WeightInfo<T> {
|
||||
/// Storage: `EthereumOutboundQueue::MessageLeaves` (r:1 w:1)
|
||||
/// Proof: `EthereumOutboundQueue::MessageLeaves` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `EthereumOutboundQueue::Nonce` (r:1 w:1)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user