paritytech / polkadot-sdk

The Parity Polkadot Blockchain SDK
https://polkadot.network/
1.88k stars 687 forks source link

Runtime API to execute XCM #486

Closed xlc closed 5 months ago

xlc commented 1 year ago

We would like to dry run XCM and it is hard to do without a runtime API for this.

Chopsticks now implements the ability to dispatch XCM but the implementation is hacky that depends on inner details of ump pallet. https://github.com/AcalaNetwork/chopsticks/blob/master/src/xcm/upward.ts

It will be great if polkadot runtime offers the ability to dry run XCM directly.

IkerAlus commented 5 months ago

isn't this covered by https://github.com/paritytech/polkadot-sdk/pull/3872 ?

acatangiu commented 5 months ago

Yes it is. Implemented in #3872, refined in https://github.com/paritytech/polkadot-sdk/pull/4621, added to test runtimes in https://github.com/paritytech/polkadot-sdk/pull/4634. 👍