xcm-tools icon indicating copy to clipboard operation
xcm-tools copied to clipboard

Consider migration towards PAPI

Open dudo50 opened this issue 1 year ago • 2 comments

As PAPI succeeds PJS libraries, consider migration towards PAPI.

This needs to be done carefully as many projects, that implement us currently also use PJS.

dudo50 avatar Jul 31 '24 07:07 dudo50

Hi there, papi is the way to go for future Dapps IMHO. I wouldn't build anything on polkadot-js/api today if I had to start a new app. I'd be interested in an xcm tool for papi if it was available. Thanks

Tbaut avatar Sep 02 '24 10:09 Tbaut

Hello @Tbaut , we are happy to inform you, that we are migrating to PAPI this month. It is second task in Pipeline so expect this issue to be resolved soon 🙂!

With kind regards, Team ParaSpell✨

dudo50 avatar Sep 02 '24 10:09 dudo50

@Tbaut , happy to inform you, that the full support for PAPI has just rolled out, we will update documentation today by EOD and package should be released within 2 days.

How will it work: You install ParaSpell XCM SDK into your project ✨ You install package you wish to have (Either PJS or PAPI) ✅ You can then use XCM SDK by importing according to package you have:

//PJS
import from “@paraspell/sdk” 

//PAPI
import from “@paraspell/sdk/papi”

✅Functions are 1:1 so existing projects can switch just by reinstalling package from PJS to PAPI and updating imports.

See commit: https://github.com/paraspell/xcm-tools/commit/b3a1e72f11d13b7f43f077bb2f68cb27903cc7cc

dudo50 avatar Oct 29 '24 13:10 dudo50

This is very very good, and also a very good timing.. because I need to do some XCM calls in Multix, that I'm almost done migrating to papi.. and this will allow me to test paraspell xcm tool!

Tbaut avatar Oct 29 '24 15:10 Tbaut

@Tbaut , feel free to contact me through telegram via "Dudo50" and I can assemble group ParaSpell<>Multix, and we can help you with the implementation or in case any issue arises.

With kind regards, Dudo

dudo50 avatar Oct 29 '24 15:10 dudo50