harmony-one / ethhmy-bridge.frontend

Ethereum<>Harmony two way bridge (trusted version) - frontend part
25 stars 62 forks source link

Bridge dashboard with full statistics #121

Closed hhio618 closed 2 years ago

hhio618 commented 2 years ago

Description

Implemented using this subgraph: https://github.com/harmony-analytics/horizon-bridge-subgraph

gupadhyaya commented 2 years ago

@hhio618 is this work complete? after yarn build and yarn dev, the page http://localhost:3000/analytics simply crashes. can you provide more instructions on how to test your work? thanks.

hhio618 commented 2 years ago

Hi @gupadhyaya, yeah we tested it locally! but, it's a few days that the subgraph from here: "https://github.com/harmony-one/horizon-bridge-subgraph" stopped working due to an RPC error and neither the https://graph.t.hmny.io/subgraphs/name/bmgalego/bridge-subgraph nor my local graph deployment not working! (the subgraph can't record any data because of that error)

gupadhyaya commented 2 years ago
Screen Shot 2021-08-24 at 2 11 27 PM

after pointing to local bridge subgraph, it is showing up now. will review the submission. note that there is another submission and we will pick the best one. will try to reward the second best with some prize if the efforts are substantial. thanks for your submission.

hhio618 commented 2 years ago

@gupadhyaya We finally get the subgraph to work again, looks like there was something wrong with our graph-node setup! We added these few changes @gupadhyaya to the dashboard: 1- total transaction fee (w/ avg fee) 2- Daily volume change (percentage) per assets 3- Also we added the capabilities to capture BSC/ETH transactions when the corresponding sub-graph is provided via the predefined environment variables. WhatsApp Image 2021-08-26 at 11 49 30 AM