paritytech / txwrapper-core

Tools for FRAME chain builders to publish chain specific offline transaction generation libraries.
https://paritytech.github.io/txwrapper-core/
Apache License 2.0
77 stars 28 forks source link

Update "assetHubPolkadot" example and remove Trappist #392

Open IkerAlus opened 2 months ago

IkerAlus commented 2 months ago

Since last month, the Trappist project has been archived and deprecated. We are still using it for the "assetHubPolkadot" example. We should update this example and simply cover how to construct a transaction on Polkadot Asset Hub paying fees with a asset with an existing liquidity pool (for example USDT). In other words, like the current assetHubKusama example but simpler.

muddlebee commented 1 month ago

@IkerAlus can I take this up? as per my understanding I have to update the "assetHubPolkadot" example to be similar to assetHubKusama example right? Can I use westend assetHub testnet instead of zombienet which is used here? 👀 I think this will be more convenient to run the examples

bee344 commented 3 weeks ago

Hi @muddlebee , if you wish to make a PR for this, you are more than welcome to do so! You could use the live testnet to run the example, but you'd need to input the seed for a valid account with funds, which may be not so good, that's why we prefer to use zombienet. It would be simmilar to the KAH example, but you wouldn't need to add a liquidity pool. You can totally do it, but it's not necessary. The main changes would be to update the specName and make sure the format of the assetId to pay the fees is an object instead of just a string or number.

If you can manage to do it it would be awesome, just let me know if you have any doubts or if you prefer not to take this :)