Refactoring Checkpoint: (WIP)

This commit is contained in:
2025-12-14 10:29:31 +03:00
parent 09735eb97a
commit c89d7cac55
1424 changed files with 6415 additions and 6064 deletions
@@ -1,5 +1,5 @@
[package]
name = "snowbridge-outbound-queue-primitives"
name = "pezsnowbridge-outbound-queue-primitives"
description = "Snowbridge Outbound Queue Primitives"
version = "0.2.0"
authors = ["Snowfork <contact@snowfork.com>"]
@@ -7,7 +7,7 @@ edition.workspace = true
repository.workspace = true
license = "Apache-2.0"
categories = ["cryptography::cryptocurrencies"]
documentation = "https://docs.rs/snowbridge-outbound-queue-primitives"
documentation = "https://docs.rs/pezsnowbridge-outbound-queue-primitives"
homepage = { workspace = true }
[lints]
@@ -38,8 +38,8 @@ pezsp-std = { workspace = true }
alloy-core = { workspace = true, features = ["sol-types"] }
ethabi = { workspace = true }
snowbridge-core = { workspace = true }
snowbridge-verification-primitives = { workspace = true }
pezsnowbridge-core = { workspace = true }
pezsnowbridge-verification-primitives = { workspace = true }
[features]
default = ["std"]
@@ -51,8 +51,8 @@ std = [
"pezframe-system/std",
"pezkuwi-teyrchain-primitives/std",
"scale-info/std",
"snowbridge-core/std",
"snowbridge-verification-primitives/std",
"pezsnowbridge-core/std",
"pezsnowbridge-verification-primitives/std",
"pezsp-arithmetic/std",
"pezsp-core/std",
"pezsp-io/std",
@@ -67,8 +67,8 @@ runtime-benchmarks = [
"pezframe-support/runtime-benchmarks",
"pezframe-system/runtime-benchmarks",
"pezkuwi-teyrchain-primitives/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-verification-primitives/runtime-benchmarks",
"pezsnowbridge-core/runtime-benchmarks",
"pezsnowbridge-verification-primitives/runtime-benchmarks",
"pezsp-io/runtime-benchmarks",
"pezsp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
@@ -13,7 +13,7 @@ use scale_info::TypeInfo;
use pezsp_arithmetic::traits::{BaseArithmetic, Unsigned};
use pezsp_core::RuntimeDebug;
pub use snowbridge_verification_primitives::*;
pub use pezsnowbridge_verification_primitives::*;
/// The operating mode of Channels and Gateway contract on Ethereum.
#[derive(
@@ -11,7 +11,7 @@ use codec::{Decode, Encode};
use super::message::{Command, Message, SendMessage};
use pezframe_support::{ensure, traits::Get};
use snowbridge_core::{AgentId, ChannelId, ParaId, TokenId, TokenIdOf};
use pezsnowbridge_core::{AgentId, ChannelId, ParaId, TokenId, TokenIdOf};
use pezsp_core::{H160, H256};
use pezsp_runtime::traits::MaybeConvert;
use pezsp_std::{iter::Peekable, marker::PhantomData, prelude::*};
@@ -5,7 +5,7 @@ use crate::{
};
use pezframe_support::parameter_types;
use hex_literal::hex;
use snowbridge_core::AgentIdOf;
use pezsnowbridge_core::AgentIdOf;
use pezsp_std::default::Default;
use xcm::{
latest::{PEZKUWICHAIN_GENESIS_HASH, ZAGROS_GENESIS_HASH},
@@ -6,7 +6,7 @@ use crate::{OperatingMode, SendError, SendMessageFeeProvider};
use codec::{Decode, DecodeWithMemTracking, Encode};
use ethabi::Token;
use scale_info::TypeInfo;
use snowbridge_core::{pricing::UD60x18, ChannelId};
use pezsnowbridge_core::{pricing::UD60x18, ChannelId};
use pezsp_arithmetic::traits::{BaseArithmetic, Unsigned};
use pezsp_core::{RuntimeDebug, H160, H256, U256};
use pezsp_std::{borrow::ToOwned, vec, vec::Vec};
@@ -5,7 +5,7 @@
use codec::DecodeAll;
use core::slice::Iter;
use pezframe_support::{ensure, BoundedVec};
use snowbridge_core::{AgentIdOf, TokenId, TokenIdOf};
use pezsnowbridge_core::{AgentIdOf, TokenId, TokenIdOf};
use crate::v2::{
message::{Command, Message},
@@ -14,7 +14,7 @@ use pezframe_support::{
ensure,
traits::{Contains, Get, ProcessMessageError},
};
use snowbridge_core::{ParaId, TokenId};
use pezsnowbridge_core::{ParaId, TokenId};
use pezsp_runtime::traits::MaybeConvert;
use pezsp_std::{marker::PhantomData, ops::ControlFlow, prelude::*};
use xcm::prelude::*;
@@ -122,7 +122,7 @@ where
// messages. We use the presence of an `AliasOrigin` instruction to distinguish between
// Snowbridge V2 and Snowbridge V1 messages, since XCM V5 came after Snowbridge V1 and
// so it's not supported in Snowbridge V1. Snowbridge V1 messages are processed by the
// snowbridge-outbound-queue-primitives v1 exporter.
// pezsnowbridge-outbound-queue-primitives v1 exporter.
let mut instructions = message.clone().0;
let result = instructions.matcher().match_next_inst_while(
|_| true,
@@ -5,7 +5,7 @@ use crate::{
};
use pezframe_support::{parameter_types, BoundedVec};
use hex_literal::hex;
use snowbridge_core::{AgentIdOf, TokenIdOf};
use pezsnowbridge_core::{AgentIdOf, TokenIdOf};
use pezsp_core::H256;
use pezsp_std::default::Default;
use xcm::{latest::ZAGROS_GENESIS_HASH, prelude::SendError as XcmSendError};
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
use core::marker::PhantomData;
use snowbridge_core::operating_mode::ExportPausedQuery;
use pezsnowbridge_core::operating_mode::ExportPausedQuery;
use pezsp_std::vec::Vec;
use xcm::{
prelude::{Location, SendError, SendResult, SendXcm, Xcm, XcmHash},