Skip to content

Commit

Permalink
Added SetAssetClaimer Instruction to XCM v5 (#5585)
Browse files Browse the repository at this point in the history
Added SetAssetClaimer instruction

---------

Co-authored-by: Francisco Aguirre <[email protected]>
Co-authored-by: command-bot <>
Co-authored-by: Adrian Catangiu <[email protected]>
  • Loading branch information
3 people committed Nov 21, 2024
1 parent 3266ef7 commit 5f7c9d4
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Minimum execution time: 681_000 picoseconds.
Weight::from_parts(735_000, 0)
}
pub fn set_asset_claimer() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 707_000 picoseconds.
Weight::from_parts(749_000, 0)
}
// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
// Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,4 +380,11 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Minimum execution time: 713_000 picoseconds.
Weight::from_parts(776_000, 0)
}
pub fn set_asset_claimer() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 707_000 picoseconds.
Weight::from_parts(749_000, 0)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,11 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Minimum execution time: 798_000 picoseconds.
Weight::from_parts(845_000, 0)
}
pub(crate) fn set_asset_claimer() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 707_000 picoseconds.
Weight::from_parts(749_000, 0)
}
}
3 changes: 3 additions & 0 deletions polkadot/xcm/src/v4/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,9 @@ impl<Call: Decode + GetDispatchInfo> TryFrom<NewInstruction<Call>> for Instructi
SetErrorHandler(xcm) => Self::SetErrorHandler(xcm.try_into()?),
SetAppendix(xcm) => Self::SetAppendix(xcm.try_into()?),
ClearError => Self::ClearError,
SetAssetClaimer { .. } => {
return Err(());
},
ClaimAsset { assets, ticket } => {
let assets = assets.try_into()?;
let ticket = ticket.try_into()?;
Expand Down

0 comments on commit 5f7c9d4

Please sign in to comment.