polkadot-js / api

Promise and RxJS APIs around Polkadot and Substrate based chains via RPC calls. It is dynamically generated based on what the Substrate runtime provides in terms of metadata.
Apache License 2.0
1.06k stars 350 forks source link

Staking Menu Missing #4775

Closed AurevoirXavier closed 2 years ago

AurevoirXavier commented 2 years ago

https://polkadot.js.org/apps/?rpc=wss://rpc.darwinia.network#/explorer

Might be similar to https://github.com/polkadot-js/api/issues/4740.

main.a6ce5405.js:19 Unable to create PalletStakingIndividualExposure type, disabling staking route
jacogr commented 2 years ago

It is on the apps UI itself. Sadly staking for non-known-shape Exposures is completely broken. In this case -

  1. Nominees lists are not working at all
  2. The staking.bond transaction on that chain is unusable with extra params

So the UI now has explicit checks to ensure it only works with known shaped types and extrinsics which was driven by this logged issue.

The alternative is that I need to continue chasing breakages and dealing with issue for unknown types that are not available in the editor and that I cannot test against any networks. This adds a massive amount of overhead to my life, basically touch staking and something somewhere breaks since it is not like-Substrate.

The upside on having these checks is that the staking code can now be whipped into shape and greatly simplified since it deals with only knowns and no unknowns.

polkadot-js-bot commented 2 years ago

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.