telosnetwork / open-block-explorer

The Open Block Explorer (OBE) is the first open source block explorer that is designed to support all AntelopeIO-based blockchains.
https://explorer.telos.net
Apache License 2.0
27 stars 22 forks source link

Not all `eosio.*` accounts show up in the search #464

Closed karynemayer closed 7 months ago

karynemayer commented 1 year ago

Overview

Blocked by OBE-indexer release

When searching for accounts through OBE, not all eosio.* accounts are listed, even after typing their full name. Also, if forcing the account on the URL, the following happens:

not returned accounts:

Screen Shot 2023-01-12 at 04 02 09

Steps to reproduce

  1. Use the search bar on the main page to type eosio.
  2. example eosio.savings

    Current behavior

    Screen Shot 2022-11-22 at 18 25 24 Screen Shot 2022-11-22 at 18 25 42 Screen Shot 2022-11-22 at 18 28 11

Expected behavior

All accounts starting with eosio. should be listed, including eosio.token

Additional Notes:

Viterbo commented 1 year ago

There are currently two problems here, one on back-end and the other one on front-end:

1 - The API we are currently using is not returning all expected values:

curl 'https://testnet.telos.net/v1/chain/get_table_by_scope' --data-raw '{"code":"eosio","limit":15,"lower_bound":"eosio","table":"userres","upper_bound":"eosio.zzzzzz"}'

returns:

{
  "rows": [
    {
      "code": "eosio",
      "scope": "eosio.assert",
      "table": "userres",
      "payer": "eosio.assert",
      "count": 1
    },
    {
      "code": "eosio",
      "scope": "eosio.evm",
      "table": "userres",
      "payer": "eosio.evm",
      "count": 1
    },
    {
      "code": "eosio",
      "scope": "eosio.tedp",
      "table": "userres",
      "payer": "eosio.tedp",
      "count": 1
    },
    {
      "code": "eosio",
      "scope": "eosio.time",
      "table": "userres",
      "payer": "eosio.time",
      "count": 1
    }
  ],
  "more": ""
}

which does not include eosio.token nor eosio.msig.

2 - The second problem is that the component HeaderSearch is not handling correctly the responses after each pressed key.

donnyquixotic commented 7 months ago

resolved