opensquare-network / subsquare

https://www.subsquare.io
7 stars 6 forks source link

(Feature request) Add call detail for calls within XCM `Transact` #4092

Open seadanda opened 7 months ago

seadanda commented 7 months ago

Currently an XCM Transact appears in the call detail window with just the encoded call data.

It would be nice if this call data could be decoded to give the details of the call that it will execute on the target parachain. Of course the amount of work for this will scale with the number of supported chains, but maybe just supporting system parachains would already be a great start.

Without this, any referendum that includes an XCM Transact will be opaque to many users.

As an example, the referendum to Enable Coretime includes an XCM with four Transact calls which are sent to the coretime chain. These need to be separately decoded to give: configure broker set core count assign pool core start sales

wliyongfeng commented 5 months ago

@seadanda Thanks for this issue and sorry for my late reply. I think it will bring users much convenience when inspecting proposal calls. We didn't assign it a higher priority for several reasons:

We are recently planing to implement treasury spend on assethub which may have similar issues with this. We will look deep into this and implement it in a appropriate time. Thanks.

wliyongfeng commented 1 month ago

Related issue: #4735