mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Bump polkadot + fix parachain unnamed field (#412)
* parachain unnamed field * bump polkadot: cargo udpate -p xcm * Update lock * Fixes * Fixes Co-authored-by: Gav Wood <gavin@parity.io>
This commit is contained in:
committed by
GitHub
parent
2180cf4820
commit
859524f2f1
Generated
+218
-206
File diff suppressed because it is too large
Load Diff
@@ -314,7 +314,7 @@ impl<T: Config> Module<T> {
|
|||||||
Ok(xcm) => {
|
Ok(xcm) => {
|
||||||
let location = (
|
let location = (
|
||||||
Junction::Parent,
|
Junction::Parent,
|
||||||
Junction::Parachain { id: sender.into() },
|
Junction::Parachain(sender.into()),
|
||||||
);
|
);
|
||||||
match T::XcmExecutor::execute_xcm(
|
match T::XcmExecutor::execute_xcm(
|
||||||
location.into(),
|
location.into(),
|
||||||
@@ -716,7 +716,7 @@ impl<T: Config> SendXcm for Module<T> {
|
|||||||
fn send_xcm(dest: MultiLocation, msg: Xcm<()>) -> Result<(), XcmError> {
|
fn send_xcm(dest: MultiLocation, msg: Xcm<()>) -> Result<(), XcmError> {
|
||||||
match &dest {
|
match &dest {
|
||||||
// An HRMP message for a sibling parachain.
|
// An HRMP message for a sibling parachain.
|
||||||
MultiLocation::X2(Junction::Parent, Junction::Parachain { id }) => {
|
MultiLocation::X2(Junction::Parent, Junction::Parachain(id)) => {
|
||||||
let msg = VersionedXcm::<()>::from(msg);
|
let msg = VersionedXcm::<()>::from(msg);
|
||||||
let hash = T::Hashing::hash_of(&msg);
|
let hash = T::Hashing::hash_of(&msg);
|
||||||
Self::send_fragment((*id).into(), XcmpMessageFormat::ConcatenatedVersionedXcm, msg)
|
Self::send_fragment((*id).into(), XcmpMessageFormat::ConcatenatedVersionedXcm, msg)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ pub mod pallet {
|
|||||||
for (para, payload) in Targets::<T>::get().into_iter() {
|
for (para, payload) in Targets::<T>::get().into_iter() {
|
||||||
let seq = PingCount::<T>::mutate(|seq| { *seq += 1; *seq });
|
let seq = PingCount::<T>::mutate(|seq| { *seq += 1; *seq });
|
||||||
match T::XcmSender::send_xcm(
|
match T::XcmSender::send_xcm(
|
||||||
MultiLocation::X2(Junction::Parent, Junction::Parachain { id: para.into() }),
|
MultiLocation::X2(Junction::Parent, Junction::Parachain(para.into())),
|
||||||
Xcm::Transact {
|
Xcm::Transact {
|
||||||
origin_type: OriginKind::Native,
|
origin_type: OriginKind::Native,
|
||||||
require_weight_at_most: 1_000,
|
require_weight_at_most: 1_000,
|
||||||
@@ -163,7 +163,7 @@ pub mod pallet {
|
|||||||
|
|
||||||
Self::deposit_event(Event::Pinged(para, seq, payload.clone()));
|
Self::deposit_event(Event::Pinged(para, seq, payload.clone()));
|
||||||
match T::XcmSender::send_xcm(
|
match T::XcmSender::send_xcm(
|
||||||
MultiLocation::X2(Junction::Parent, Junction::Parachain { id: para.into() }),
|
MultiLocation::X2(Junction::Parent, Junction::Parachain(para.into())),
|
||||||
Xcm::Transact {
|
Xcm::Transact {
|
||||||
origin_type: OriginKind::Native,
|
origin_type: OriginKind::Native,
|
||||||
require_weight_at_most: 1_000,
|
require_weight_at_most: 1_000,
|
||||||
|
|||||||
@@ -253,9 +253,9 @@ parameter_types! {
|
|||||||
pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent);
|
pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent);
|
||||||
pub const RococoNetwork: NetworkId = NetworkId::Polkadot;
|
pub const RococoNetwork: NetworkId = NetworkId::Polkadot;
|
||||||
pub RelayChainOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();
|
pub RelayChainOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();
|
||||||
pub Ancestry: MultiLocation = Junction::Parachain {
|
pub Ancestry: MultiLocation = Junction::Parachain(
|
||||||
id: ParachainInfo::parachain_id().into()
|
ParachainInfo::parachain_id().into()
|
||||||
}.into();
|
).into();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
|
/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
|
||||||
@@ -333,7 +333,7 @@ impl Config for XcmConfig {
|
|||||||
type LocationInverter = LocationInverter<Ancestry>;
|
type LocationInverter = LocationInverter<Ancestry>;
|
||||||
type Barrier = Barrier;
|
type Barrier = Barrier;
|
||||||
type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
|
type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
|
||||||
type Trader = FixedRateOfConcreteFungible<WeightPrice>;
|
type Trader = FixedRateOfConcreteFungible<WeightPrice, ()>;
|
||||||
type ResponseHandler = (); // Don't handle responses for now.
|
type ResponseHandler = (); // Don't handle responses for now.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -248,9 +248,9 @@ parameter_types! {
|
|||||||
pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent);
|
pub const RococoLocation: MultiLocation = MultiLocation::X1(Junction::Parent);
|
||||||
pub const RococoNetwork: NetworkId = NetworkId::Polkadot;
|
pub const RococoNetwork: NetworkId = NetworkId::Polkadot;
|
||||||
pub RelayChainOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();
|
pub RelayChainOrigin: Origin = cumulus_pallet_xcm::Origin::Relay.into();
|
||||||
pub Ancestry: MultiLocation = Junction::Parachain {
|
pub Ancestry: MultiLocation = Junction::Parachain(
|
||||||
id: ParachainInfo::parachain_id().into()
|
ParachainInfo::parachain_id().into()
|
||||||
}.into();
|
).into();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
|
/// Type for specifying how a `MultiLocation` can be converted into an `AccountId`. This is used
|
||||||
@@ -328,7 +328,7 @@ impl Config for XcmConfig {
|
|||||||
type LocationInverter = LocationInverter<Ancestry>;
|
type LocationInverter = LocationInverter<Ancestry>;
|
||||||
type Barrier = Barrier;
|
type Barrier = Barrier;
|
||||||
type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
|
type Weigher = FixedWeightBounds<UnitWeightCost, Call>;
|
||||||
type Trader = FixedRateOfConcreteFungible<WeightPrice>;
|
type Trader = FixedRateOfConcreteFungible<WeightPrice, ()>;
|
||||||
type ResponseHandler = (); // Don't handle responses for now.
|
type ResponseHandler = (); // Don't handle responses for now.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user