planetarium / libplanet-explorer-frontend

Libplanet Explorer Frontend
https://explorer.libplanet.io/
MIT License
16 stars 27 forks source link

Auto refresh when block mined #37

Closed limebell closed 4 years ago

limebell commented 4 years ago

It will be great if the main block page is auto refreshed when new block is mined or the chain is swapped.

MaxStalker commented 4 years ago

@limebell I would like to help you with this one :)

MaxStalker commented 4 years ago

Stumbled into some road blocks here. Apparently GraphQL API at http://52.231.65.77:5000/graphql/ is not responding. Wanted to run my own locally, but that one requires BLOCKCHAIN_STORE_PATH - can you tell me what I shall put there?

dahlia commented 4 years ago

@MaxStalker Please try this dummy data: https://send.firefox.com/download/2c48e7b706539261/#A3tl2924DprWW68LhDrtoA. It's dumped from my local node.

MaxStalker commented 4 years ago

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂️ I've encountered several issues with running local version of explorer, unfortunately 😟

longfin commented 4 years ago

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂️

@MaxStalker I'll launch public graphql endpoint. please wait for minutes.

longfin commented 4 years ago

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂️

@MaxStalker I'll launch public graphql endpoint. please wait for minutes.

@MaxStalker Please try this endpoint.

http://52.231.74.24:31235/graphql

MaxStalker commented 4 years ago

Thank you @longfin! This works perfectly ^__^

MaxStalker commented 4 years ago

After I've read through the code I have a feeling that issue is missing some critical points in description :)

limebell commented 4 years ago

After I've read through the code I have a feeling that issue is missing some critical points in description :)

  • how one can check that new block was mined? Shall I setup polling and check if there are new blocks in response and then update the view? Or it's possible to setup subscriptions to specific event?
  • "when the chain is swapped" - is this specific event or? How one can observe it?

@MaxStalker Sorry for late reply. Here's additional description for this issue.

dahlia commented 4 years ago

At present, the easiest way to implement this would be setting up polling IMO? Or we could declare a subscription at GraphQL level, but this needs to change code on libplanet-explorer (which is a .NET project).

MaxStalker commented 4 years ago

Roger. Next one would be - is it possible to speed up block mining? Last one was mined 4 days ago, which a bit hard to track and check that UI updates correctly :) Same for chain swap - any way to test it?

limebell commented 4 years ago

Sorry for inconvenience. Now block explorer is offline and using static blockchain file. We will gonna make it work online, server will be turned off for while 😥

MaxStalker commented 4 years ago

Got it. I think I can mock the response to check that UI is updated properly and then will wait for news from your side ;)

limebell commented 4 years ago

Currently working on explorer, fixed some problems, still suffering on multiple issues :(

We will do our best and notify you as soon as explorer is online.

limebell commented 4 years ago

@MaxStalker Explorer is now online :)

MaxStalker commented 4 years ago

@longfin @limebell Can you bring that GraphQL api back online? :) Can't reach it now :\

longfin commented 4 years ago

@longfin @limebell Can you bring that GraphQL api back online? :) Can't reach it now :\

@MaxStalker I restarted API backend now. please check again.

limebell commented 4 years ago

Closed by #43.