near / near-explorer

NEAR blockchain explorer
https://explorer.near.org/
Apache License 2.0
85 stars 55 forks source link

Customizable pages for contracts #304

Open ilblackdragon opened 4 years ago

ilblackdragon commented 4 years ago

We will have many different contract standards and each has interesting details that would be great to show in the explorer. Ideally, we want contributions in the form of new page types for new standards. For example:

To enable that, we need to make https://explorer.nearprotocol.com/accounts/near page customizable depending on the type of the account/contract. We already have this depending if there is contract or not - but we should make it more flexible. And then create contribution requests with different types.

frol commented 4 years ago

@ilblackdragon Do we only want this client-side, meaning that we won't be able to index the data, but it will be easier to implement in pure JS on the client side fetching the data on demand right from the page. For the delegation, we plan to implement an indexer (using Network Indexer /cc @khorolets) specifically for delegation, i.e. we will have a special nearcore node that will follow the network and collect the delegation events and index them into a DB (so far I was thinking to bake it into the Explorer Indexer, but given this new input, I think we can have it as a completely separate Indexer, so we are going to run two nearcore nodes for Explorer).