teloscan icon indicating copy to clipboard operation
teloscan copied to clipboard

Feature | Adapt the way we query contract data to display an address field

Open Viterbo opened this issue 1 year ago • 0 comments

Overview

Currently, there are many pages where lists of accounts are displayed using the AddressField component, which makes an independent query of the account to be displayed to find out if it belongs to a contract and extract the data from said contract to display the name in the best possible way. This mechanism, although it works, ends up generating multiple calls to the backend to find out data that could be obtained more efficiently with a single call.

Acceptance Criteria

The AddressField component must be re-implemented in such a way that it does not execute an isolated query to find out the data of a specific account, but rather subscribes to a service that performs a single query once it receives a list of subscribers followed by a pause. The objective is to reduce to a single query the task of obtaining the necessary data to display the names of the addresses that belong to contracts or tokens.

Blocked by https://github.com/telosnetwork/teloscan-indexer/issues/268

Viterbo avatar Aug 06 '24 20:08 Viterbo