pshenmic / platform-explorer

Dash Platform explorer
https://platform-explorer.vercel.app
8 stars 3 forks source link

Fetch Identity balance from DAPI GRPC #227

Closed owl352 closed 2 months ago

owl352 commented 2 months ago

Issue

At the moment we have the identity balance only in the indexer DB, but we should get it from Platform GRPC, to make it more precise.

Things done

New DAPI class has been created that allows you to retrieve identity information. The grpc methods for getting identity data were studied and analyzed (getIdentityBalance drops error on binary deserialization). Also some analyze on getIdentity which give to us non-linear dependence of response time on grpc server:

Also, the tests have been updated to work correctly with the new class. In addition, we had to edit a search method At the moment, sorting by balance still works based on values from the indexer database

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-explorer-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 3:56pm
platform-explorer-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 3:56pm
platform-explorer-zham ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 3:56pm