Questions tagged [xcmp]
XCMP (Cross-Chain Message Passing) is a communication format that allows the parachains to exchange messages with other parachains on the same Relay Chain.
63
questions
0
votes
0
answers
25
views
Runtime support for XCM message passing
Can someone help me pinpoint which pallets and APIs are required from a runtime perspective to implement support for passing XCM messages between parachains (if I decide to implement it from scratch) ?...
0
votes
0
answers
12
views
Is NoPriceForMessageDelivery unsafe?
I've seen many instances of cumulus_pallet_xcmp_queue configuring :
type PriceForSiblingDelivery = NoPriceForMessageDelivery<ParaId>;
or
type PriceForSiblingDelivery = ();
I've also seen this ...
1
vote
0
answers
26
views
What should be the proper XCM format?
I'm not sure if these are the right questions to ask, as I'm pretty new to the world of Cross-Consensus Messaging (XCM), but I'm really curious about how to properly create XCM instructions or an XCM ...
1
vote
1
answer
39
views
XCM: messageQueue.Processed
I'm new to the world of Cross-Consensus Messaging (XCM). I'm trying to send an XCM message from Rococo AssetHub to Trappist to transfer funds from an asset that I've created on both chains, but I ...
0
votes
0
answers
14
views
Unfortunately error when submitting transactions in polkadot
In my project when I submit the transaction I'm getting [error: polkadotxcm.filtered]
1
vote
0
answers
79
views
Error TooExpensive when transferring fungible assets between parachains
I'm trying to transfer fungible assets between two parachains.
I'm using Westend relay chain, Westmint as first para and custom parachain as second para.
I launched my setup with zombienet and opened ...
0
votes
0
answers
19
views
xcmpQueue.Fail - NoPermission when I try to execute an XCM extrinsic via proxy
I'm interacting with a smart contract on Astar via XCM message from another chain and through a proxy account with proxy type = "Any".
The XCM message arrives at the smart contract chain but ...
0
votes
1
answer
34
views
How to compose XCM call, which sends xcm message from a normal account on relay to a normal account on parachain(1000), and executes encoded call?
I am attempting to compose an XCM call that sends a message from the relay chain to AssetHub, from one normal account (on Rococo) to the same normal account (on AH), and then executes a call.
Once it ...
2
votes
0
answers
18
views
What's the state of XCMP, and how does it compare to AWM
I'm trying to read about XCMP but documentation is a bit confusing as, 1. It doesn't exist yet, 2. development is hard to follow.
I was mainly curious as to how it compares to AWM, as both seem to (in ...
1
vote
1
answer
46
views
Using ensure_sibling_para results in Origin error
Using the following line results in the error 'Bad Origin' in Runtime call.
let para = ensure_sibling_para(<T as Config>::RuntimeOrigin::from(origin.clone()))?;
I am building a pallet that ...
1
vote
0
answers
29
views
How to implement XCM into Mock.rs for tests in Pallet?
How to implement XCM into Morck.rs for tests in Pallet?
I use XCM in my Lib.rs calls.
I have to implement the following:
type XcmSender = XcmRouter;
type RuntimeOrigin = RuntimeOrigin;
type ...
0
votes
1
answer
36
views
How to construct XCM message that transfers custom encoded call
Suppose we have a message that transfers encoded call that looks as follows:
call = Self::MintNickname.encode().into()
How do we transfer it to another parachain via XCM in Rust snippet?
Another chain ...
1
vote
0
answers
43
views
Writing XCM in lib.rs results in many errors
I am trying to send an XCM message encoding my own pallet call to another chain.
I am struggling to write it in a universal way into lib.rs and I am receiving ton of errors.
These are the packages I ...
1
vote
1
answer
56
views
UnexpectedReponse in XCM when using ReportTransactStatus
I'm having issues when using the ReportTransactStatus in my XCM message as it gives me a UnexpectedResponse in my origin Parachain.
How can I register the matching query in the origin, so when the ...
0
votes
1
answer
42
views
XcmError::TooExpensive When trasfering fungible assets between statemine & trappist parachains with rococo relay chain (limitedReservedTransferAssets)
I'm trying to test transfer of fungible assets from Statemine to Trappist with Rococo relay chain to integrate assets to my custom parachain. First of all, I tried to repeat the steps shown in the ...
1
vote
2
answers
96
views
How to fix the `FailedToTransactAsset("InsufficientBalance")` error?
I already read this post XCM cross-chain transfer error FailedToTransactAsset("InsufficientBalance")? , but nothing helped.
I get the following XCM logs (originates from Parachain 2001):
...
0
votes
0
answers
18
views
When will the xcm-executor implement something on the instr `HrmpNewChannelOpenRequest`?
I want to have some automatic handling for channel opening requests.
I can do this by executing some logic when the relay sends an HrmpNewChannelOpenRequest instruction, but the default xcm-executor ...
2
votes
1
answer
59
views
How to calculate fee xcm message at source chain and destination chain?
I am looking for a way to charge for xcm message.
(I know this topic has been discussed a lot, but I still haven't found my own answer, and haven't written a script to test, so I want to open this ...
2
votes
2
answers
51
views
Where can I find documentation on XCM channels ( HRMP, VMPs). How they actually work?
Although I can read the code and try to bring the pieces together but If I can find the documentation or specification implementation doc on XCM channels,
how they are implemented, how it ensures the ...
2
votes
2
answers
90
views
XcmError "UntrustedReservedLocation" & "TooExpensive" while transfer assets between two parachains (limitedReservedTransferAssets)
I'm trying to integrate stablecoin into parachain.
First of all, I tried to repeat the steps shown in the video (https://www.youtube.com/watch?v=UfxU3hUprKo&t=1182s) with standard settings:
...
2
votes
1
answer
42
views
How does XCMP Queue work?
Is cumulus_pallet_xcmp_queue just an implementation for HRMP (relayed messages b/w sibling parachain) or is it the actual implementation of XCMP (Direct p2p messages b/w sibling parachains) ?
1
vote
1
answer
52
views
Can we modify storages using Cross Chain Message Passing(XCM)?
I am currently working on transferring NFTs from one chain to another using XCM. To accomplish this, I need to remove the NFTs from the storage of the source chain and add them to the storage of ...
5
votes
2
answers
69
views
XCM and block finalisation/revert
What happens if an XCM is sent from blockchain A to blockchain B before finalisation, and then the block on blockchain A is reverted? Is blockchain's B block also reverted?
Is it safe to assume that ...
8
votes
1
answer
210
views
How to verify that the XCM message went through successfully?
I am currently bridging the tokens from one Parachain to another, and I am examining two events to ensure the successful completion of the transaction. The first event is xcmpQueue.Success, which ...
6
votes
1
answer
85
views
What prevents a replay attack in XCM?
I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as send_xcm(). It seems by default, messages are not signed when sent.
If ...
3
votes
1
answer
50
views
What prevents a malicious user to spam large XCM messages?
I've been looking into Cumulus SDK's parachain and XCM handling functions in XcmpQueue to handle XCM protocol functions such as sending an XCM message with send_xcm(). I noticed that there's a message ...
3
votes
0
answers
35
views
Charge a user on both sender and receiver chain of an XCM `Transact` with `OriginKind::Native`
Use case:
Alice submits an extrinsic on chain A which, among other things, sends an XCM message including a Transact operation to chain B.
On chain A, Alice pays for the extrinsic execution. What I am ...
2
votes
1
answer
60
views
How can we bridge our Solochain with other chains within the Polkadot Ecosystem? Should it be a parathread or parachain migration?
How can we bridge our Substrate-based Solochain with other parachains within the Polkadot Ecosystem? Should it be a parathread or parachain migration?
-1
votes
1
answer
80
views
I'm getting XcmPallet.Unreachable error in parity-bridges-common
I'm transferring assets from one chain to another through XCM , it is showing Unreachable. But when i transferring through script in the terminal then also my account balance on one chain is debited ...
0
votes
2
answers
80
views
How can i give instruction through XCM(Send message) function to send a message through parity-bridges-common?
Whenever i send one custom message provided by parity through this command
./target/debug/substrate-relay send-message millau-to-rialto
--source-host localhost
--source-port $MILLAU_PORT
--source-...
1
vote
1
answer
82
views
What is the purpose of Sovereign account? How is the balance of Soverign for a Parachain decided or calculated?
I think that balance of Sovereign account on Relay chain should be total token supply for that parachain?
Basically what's the relation between soverign account balance and parachain?
How does it ...
3
votes
2
answers
150
views
How does the XCVM architecture ensure the absoluteness principle described
Very early on in this specification it says that "XCM is designed around four 'A's:"
One if which is "Absolute: XCM messages are guaranteed to be delivered and interpreted accurately, ...
4
votes
2
answers
412
views
I want to enable Teleport Asset functionality in XCM between two parachains. How should I do it? Also, how do I teleport asset from Para1 to Para2?
My aim is to teleport an asset on parachain1 to parachain2. But I saw in parachain code, that teleport is disable. How do I enable it? I am confused about Teleport in XCM.
Basically, how do I make it ...
0
votes
0
answers
71
views
How long should it take for an xcm message to reach its destination
Given normal conditions, how long would should each of the XCM protocols [HMP, DMP, UMP] take for a message to reach its destination.
For example if i was a parachain and wanted to call a smart ...
0
votes
1
answer
136
views
XCM: How to send assets from the local chain to another via democracy?
I am looking into XCMv2 and given the standard XcmOriginToCallOrigin configs on both chains:
and environment: HydraDX runtime & Acala runtime.
I was able to construct a polkadotXcm.send call to ...
3
votes
1
answer
118
views
I want to send Transact XCM Message with TransferReserveAsset XCM Message from Relay Chain to Parachain
I want to send some extra information ("Call") with the TransferReserveAsset Message. As it has an extra field called xcm:-
TransferReserveAsset { assets: MultiAssets, dest: MultiLocation, ...
5
votes
0
answers
62
views
How to configure XCMP queue drop threshold?
The XCMP queue drops messages if they exceed the limit:
if (count as u32) < drop_threshold {
status[i].message_metadata.push((sent_at, format));
} else {
debug_assert!(
false,
...
3
votes
1
answer
74
views
Clarification needed in substrate xcm docs
I am trying to send funds from parachain B (1001) to parachain A, but the substrate docs do not show completely how to transfer to parachain A (1000) (or it could at least be clearer).
In my case ...
1
vote
1
answer
34
views
Does unused weight from `ReservedXcmpWeight ` flow-over to extrinsics execution
We saw that the Cumulus pallet xcmp-queue has a configuration for ReservedXcmpWeight https://github.com/paritytech/cumulus/blob/polkadot-v0.9.26/pallets/parachain-system/src/lib.rs#L174-L175
The xcmp-...
5
votes
2
answers
182
views
Where to learn about XCM (docs)?
I am trying to learn about LocalAssetTransactor, but can't find much about xcm in general. I know there is a thorough blog post (https://polkadot.network/blog/xcm-the-cross-consensus-message-format/), ...
2
votes
2
answers
127
views
What is GeneralKey used for in MultiLocation for XCM?
Could you explain what is GeneralKey is for in MultiLocation ?
For example:
Asset Name: Karura Native Token
Asset Symbol: KAR
Decimals: 12
existentialDeposit: 0.1
Multiloaction: { parents: 1, ...
0
votes
1
answer
92
views
whats the difference between the two different sovereign account addresses?
There are different sovereign account addresses here, what are the differences?
0
votes
1
answer
79
views
FailedToTransactAsset when trying to establish HRMP when using XCM
Getting error: FailedToTransactAsset
Sender: 2113
Receiver: 2000
Sovereign account of 2113: 5Dt6dpkWPwLaH4BBCKJwjiWrFVAGyYk3tLUabvyn4v7KtESG
(contains ~5 ROC)
This is the call made to make the HRMP ...
1
vote
3
answers
103
views
I can't open a HRMP channel between the parachains
I am testing XCM between parachain 2000 and parachain 2001 while referencing this link, How to open HRMP channels between parachains?.
But I couldn't open a new HRMP channel, I faced the "Barrier&...
0
votes
2
answers
92
views
XTransfer fail with error
I am trying to move relay native currency back to relay chain.
But I got the error and can't figure out what is the problem?
Hey is my call, xcm configuration setting and error.
1
vote
1
answer
187
views
XCM between multiple parachains
I am gonna transfer the customized message which is actually the string in JSON format for representing some information from one parachain to another one.
But I can't find the right functions or ...
0
votes
2
answers
144
views
Is teleport of ROC from Rockmine to my parachain should be used instead of reserve transfer?
I am trying to polkadotXcm.reserveTransferAssets of ROC on from Rockmine to Dali https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-rockmine-rpc.polkadot.io#/extrinsics/decode/...
6
votes
1
answer
209
views
How to avoid impersonation when using DescendOrigin XCM
I'm using Transact to execute an extrinsic from one parachain to another. This extrinsic requires the origin to be a signed account which I'm verifying with ensure_signed.
The way I'm getting a signed ...
0
votes
1
answer
38
views
What is the execution order of the ump message?
I'm working on UMP message development recently, but I'm confused about the order of execution of multiple ump messages within 1 block,
For example the following transactions
https://kusama.subscan.io/...
2
votes
1
answer
143
views
Invalid Incoming XCMP message data
Link to repo
I'm trying to do a reserve-backed transfer from statemint to my own parachain of a token minted with the pallet_assets. I've been using the xcm-emulator that lets me plug in my own ...