Apps: to understand how and where see the remaining days of a democracy lock

Created on 28 Aug 2020  路  10Comments  路  Source: polkadot-js/apps

in this moment i can't find any info to calculate the remaining days for a democracy lock ( in any sections or js), the only info that i found is the tx creation date.
It should be very helpfull to have this info on account section near the lock info or js to do that.

<support>

Most helpful comment

On the account, there is not really anything the UI can do, the info it has is the following -

  • {"Direct":{"votes":[],"delegations":{"votes":0,"capital":0},"prior":[0,0]}} - the votes made, from here expired votes (which will show) can be used to unlock, there is no info
  • [{"id":"0x64656d6f63726163","amount":"0xffffffffffffffffffffffffffffffff","reasons":"Misc"}] - the balances locks, democracy is full locked

So called democracy.unlock(target) on that account, as suggested before. https://polkascan.io/kusama/transaction/0x3d65c9046e8e3025811d158563a6de72a76b502d06a51ebc0fedb43d76e311c1

That is the only solution, there is no help that UI or anything else can give on the ancient votes. Anyhting going forward will have unlocking countdown and unlock option in the menu. (Since the above lock came from pre-migration to the current version)

All 10 comments

Definitely useful IMO!

Related: I tried to help @dbpatty to find the lock end time using API query api.derive.democracy.locks but no luck, as it returns an empty array.

It shows on the UI -

image

(There is a gap where for delegated accounts it doesn't show, no an intentional miss, just missed)

i have this:
image

On which chain? Edgeware I'm assuming? (Since Edgeware has the old logic, is is really difficult to actually extract the details fully. in the same way as done on any of the recent chains. Once upgraded to a more recent Substrate the lock countdowns will become available, the democracy module has changed rapidly since that version)

EDIT: I swear, I am going blind. It is Kusama above. For "everything" locks, those are still from the previous generation - which has the same issue a Edgeware.

For those - call extrinsics.unlock in extrinsics manually. It should be expired by now to should just unlock everything. Any recent votes will be of the current types which doesn't lock the full balance, but rather that as supplied. (The current voting has in-menu unlock support and countdowns to when they are available)

Do you have a specific address for me? Can check against that one if it is possible to detect these old/previous-generation locks and make a menu entry available.

it is kusama, I'll send to you riot , the address is not mine.

done

On the account, there is not really anything the UI can do, the info it has is the following -

  • {"Direct":{"votes":[],"delegations":{"votes":0,"capital":0},"prior":[0,0]}} - the votes made, from here expired votes (which will show) can be used to unlock, there is no info
  • [{"id":"0x64656d6f63726163","amount":"0xffffffffffffffffffffffffffffffff","reasons":"Misc"}] - the balances locks, democracy is full locked

So called democracy.unlock(target) on that account, as suggested before. https://polkascan.io/kusama/transaction/0x3d65c9046e8e3025811d158563a6de72a76b502d06a51ebc0fedb43d76e311c1

That is the only solution, there is no help that UI or anything else can give on the ancient votes. Anyhting going forward will have unlocking countdown and unlock option in the menu. (Since the above lock came from pre-migration to the current version)

Closing, the UI sadly has no additional info here on the old locks. However, for anybody else facing this on ancient votes, try democracy.unlock(target) (callable by anybody, as above, doesn't need to be the actual account)

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.

Was this page helpful?
0 / 5 - 0 ratings