platform icon indicating copy to clipboard operation
platform copied to clipboard

Query for requesting contested resource vote state in batch

Open pshenmic opened this issue 1 year ago • 0 comments

Current Behavior

On the Platform Explorer, we need to show correct state of the identity DPNS name (locked or not), and it involves invoking a getContestedResourceVoteState for each name identity has. That's couple of request per identity. Things get worse on the lists, like transactions or data contracts, because almost all platform entities has owner field and we need to check that, that adds up a lot of requests to the Drive

Expected Behavior

It would be really cool to be able to get info about contested resources in batch, like if you could pass an array of index values in the request. I think it would work for now (we only check certain data contract and at certain index name, DPNS)

Possible Solution

Alternatives Considered

Additional Context

pshenmic avatar Nov 30 '24 17:11 pshenmic