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

Enhance support for testnets

Open dudo50 opened this issue 1 year ago • 3 comments

Right now, implementing testnet means, you need to select main net copy of testnet chain eg. (Paseo & Polkadot) and input was endpoint of Paseo. Integrate wider support for testnet, testnets will not have asset checks to enhance flexibility.

dudo50 avatar Oct 16 '24 14:10 dudo50

Does this only support Polkadot and Paseo chains? Also looking to support testnets, at least Paseo and Westend. Doesn't seem to be any advance on this, is there?

71walceli avatar Mar 01 '25 02:03 71walceli

Hey @71walceli , we support testnets the way written in the issue ATM. Select equivalent main net chain, but pass testnet endpoint. This can also be done for receiving chain where you find equivalent mainnet chain, but override its paraid. Something like:

await Builder(testnet chain api)
      .from(RELAY_NODE) //Testnet relay or para node
      .to(NODE/*,customParaId - optional*/)  // Destination Parachain //You can use custom ParachainID eg. .to('Basilisk', 2024)
      .currency({symbol: 'DOT', amount: amount}) //Id or symbol of the asset that is equivalent to main net one on main net sender chain
      .address(address | Multilocation object) // AccountId32 or AccountKey20 address
    /*.xcmVersion(Version.V1/V2/V3/V4)  //Optional parameter for manual override of XCM Version used in call
      .customPallet('Pallet','pallet_function') //Optional parameter for manual override of XCM Pallet and function used in call (If they are named differently on some node but syntax stays the same). Both pallet name and function required. Pallet name must be CamelCase, function name snake_case.*/
      .build()  // Function called to build call

This will allow you to use testnets with PS.

While this isn't yet ideal solution, we had other priority tasks until now. As we see, that this is needed, we will move this higher in priority in our task pipeline and there can be major changes regarding this feature during this month.

One question: Would you be willing to provide us with further feedback regarding what would you like to be able to achieve via testnets? This can help shape the outcome of this feature alot. Thanks in advance! Feel free to contact me on telegram "Dudo50" and we can create 1:1 telegram group between our teams for faster communication.

Thanks!

With kind regards, Team ParaSpell✨

dudo50 avatar Mar 01 '25 08:03 dudo50

What I actually want is to be able to set identity and request judgement across parachains, which I will discuss in another issue, most importantly, pass all the extra params.

71walceli avatar Mar 02 '25 00:03 71walceli