Git Product home page Git Product logo

explorer_ui's Introduction

Aion Explorer - User Interface

What's Here?

This repository hosts all user interface components for the Aion Blockchain Explorer service, hosted by the OAN.

Features:

  1. See high-level statistics about the Aion network.
  2. Real-time list of blocks and transactions.
  3. List and detail retrieval of blocks, accounts, contracts, tokens & transactions.
  4. Search for blocks, accounts, contracts, tokens & transactions.
  5. See graphs showing different historical activities on the blockchain.

Deployment:

Instructions on deployment can be found here!

Explore the wiki for technical documentation and to start developing!

Networks

Mainnet Amity Testnet Tetryon Testnet Mastery Testnet

explorer_ui's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

explorer_ui's Issues

Feature request: support building frontend on Windows

yarn build fails on Windows with the following error:

P:\docs\repos\aion\aion_explorer\user-interface>yarn build
yarn run v1.5.1
warning You are using Node "7.7.3" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
$ npm run build-css && NODE_PATH=src/js react-scripts build

> [email protected] build-css P:\docs\repos\aion\aion_explorer\user-interface> gulp css

[18:43:46] Using gulpfile P:\docs\repos\aion\aion_explorer\user-interface\gulpfile.js
[18:43:46] Starting 'css'...
[18:43:46] Finished 'css' after 427 ms
'NODE_PATH' is not recognized as an internal or external command,
operable program or batch file.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: C:\\WINDOWS\\system32\\cmd.exe
Arguments: /d /s /c npm run build-css && NODE_PATH=src\\js react-scripts build
Directory: P:\\docs\\repos\\aion\\aion_explorer\\user-interface
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "P:\\docs\\repos\\aion\\aion_explorer\\user-interface\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It seems that setting environmental variables is different on Windows.

Pending transactions chart

Expose pending transactions through java api (implemented in web3 api)
Time-series graph in user interface.

java api perf: optimize block retrieval from kernel (hitting blake2b, Trie) - 100%cpu thread on poll

"pool-5-thread-2" #30 prio=5 os_prio=0 tid=0x00007f903c015000 nid=0x18b78 runnable [0x00007f9055bcb000]
java.lang.Thread.State: RUNNABLE
at org.aion.crypto.hash.Blake2bNative.blake256(Native Method)
at org.aion.crypto.HashUtil.blake256Native(HashUtil.java:236)
at org.aion.crypto.HashUtil.h256(HashUtil.java:104)
at org.aion.mcf.trie.TrieImpl.insert(TrieImpl.java:351)
at org.aion.mcf.trie.TrieImpl.insert(TrieImpl.java:347)
at org.aion.mcf.trie.TrieImpl.insertOrDelete(TrieImpl.java:269)
at org.aion.mcf.trie.TrieImpl.update(TrieImpl.java:199)
- locked <0x00007f969b64fc80> (a org.aion.mcf.trie.Cache)
at org.aion.zero.impl.types.AionBlock.parseTxs(AionBlock.java:329)
at org.aion.zero.impl.types.AionBlock.parseTxs(AionBlock.java:335)
at org.aion.zero.impl.types.AionBlock.parseRLP(AionBlock.java:129)
- locked <0x00007f969b480d78> (a org.aion.zero.impl.types.AionBlock)
at org.aion.zero.impl.types.AionBlock.getTransactionsList(AionBlock.java:235)
at org.aion.zero.impl.AionBlockchainImpl.getTransactionInfo(AionBlockchainImpl.java:323)
at org.aion.zero.impl.AionBlockchainImpl.getTransactionInfo(AionBlockchainImpl.java:93)
at org.aion.api.server.pb.ApiAion0.lambda$getRsp_getBlockDetails$11(ApiAion0.java:1528)
at org.aion.api.server.pb.ApiAion0$$Lambda$67/650511773.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept([email protected]/ReferencePipeline.java:195)
at java.util.stream.ReferencePipeline$2$1.accept([email protected]/ReferencePipeline.java:177)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining([email protected]/ArrayList.java:1494)
at java.util.stream.AbstractPipeline.copyInto([email protected]/AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto([email protected]/AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceTask.doLeaf([email protected]/ReduceOps.java:952)
at java.util.stream.ReduceOps$ReduceTask.doLeaf([email protected]/ReduceOps.java:926)
at java.util.stream.AbstractTask.compute([email protected]/AbstractTask.java:316)
at java.util.concurrent.CountedCompleter.exec([email protected]/CountedCompleter.java:747)
at java.util.concurrent.ForkJoinTask.doExec([email protected]/ForkJoinTask.java:283)
at java.util.concurrent.ForkJoinTask.doInvoke([email protected]/ForkJoinTask.java:395)
at java.util.concurrent.ForkJoinTask.invoke([email protected]/ForkJoinTask.java:725)
at java.util.stream.ReduceOps$ReduceOp.evaluateParallel([email protected]/ReduceOps.java:919)
at java.util.stream.AbstractPipeline.evaluate([email protected]/AbstractPipeline.java:233)
at java.util.stream.ReferencePipeline.collect([email protected]/ReferencePipeline.java:511)
at org.aion.api.server.pb.ApiAion0.getRsp_getBlockDetails(ApiAion0.java:1561)
at org.aion.api.server.pb.ApiAion0.process(ApiAion0.java:1261)
at org.aion.api.server.zmq.HdlrZmq.process(HdlrZmq.java:61)
at org.aion.api.server.zmq.ProtocolProcessor.workerRun(ProtocolProcessor.java:265)
at org.aion.api.server.zmq.ProtocolProcessor.lambda$run$1(ProtocolProcessor.java:110)
at org.aion.api.server.zmq.ProtocolProcessor$$Lambda$47/928634128.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:641)
at java.lang.Thread.run([email protected]/Thread.java:844)

Account gone / reset

I'm not sure whether this is a dashboard issue or something else, so if not I can repost the issue in the appropriate repo.

My kernel version 0.1.14 was mining for about a week when it branched off of the main chain somewhere during the weekend. Just now I upgraded to 0.1.15 and noticed my account was missing from the dashboard. As there were some issues with 0.1.15 I reverted back to 0.1.14, resynced from block 300000. My account came back on the dashboard after that.

However, the number of blocks mined was totally reset. The dashboard showed 0 (it has increased since then). Before I had more than 300 blocks mined on that account.

Feature Request: Value and TxFee columns for Transaction Lists

Transaction values are nested within Transaction Details page, would be great to see these two values within Transaction Lists as their own columns:

Block # | Timestamp | Transaction Hash | From Address | -> | To Address | Value | TxFee

"Home > Account Details"
"Home > Transactions"
"Home > Blocks > Block Details"

Note, TxFee terminology vs Nrg Consumed; open for input here.

package com.aion.dashboard.config does not exist

When trying to build dashboard-api I get the following error:

Error:(17, 33) java: package com.aion.dashboard.config does not exist
Error:(618, 25) java: cannot find symbol
  symbol:   class Config
  location: class com.aion.dashboard.controller.Dashboard
Error:(618, 41) java: cannot find symbol
  symbol:   variable Config
  location: class com.aion.dashboard.controller.Dashboard

How do you read account balance?

It's pretty confusing.

screenshot from 2018-03-06 11-50-17

From the web3 console I get this:

aion-127.0.0.1:8545> web3.fromWei(eth.getBalance(eth.coinbase)).toString()
'15784.92923611103487682'

Which seems like a lot more logical number to me.

Typos on Homepage

LOVE the dashboard/explorer! Here's just a few little typos I've stumbled across:
"Latest" and "Difficulty"
screen shot 2018-03-06 at 4 52 07 pm
screen shot 2018-03-06 at 4 52 18 pm

Unsure of how bounty works-- if there's one for this-- 0xc338eddDc7C624e9BD2B6162fb7ecda904A81ce1 thanks! :)

List navigation in URL

Currently when navigating through a list, such as the blocks, the URL doesn't reflect what page you are on. So there's no ?page=4 for instance. This makes you jump back all the way to the start when going back from another page, which makes me have to click all the way through to the page I want to be at again.

Change link behaviour

Can you please (please), use tags for links instead of ?

Currently I find it very annoying that I can't open links in new tabs when navigating through the explorer. Using elements is not the right way to go for links at all imo.

Download option bug: timestamp

when you download transactions for any wallet from dashboard, the "timestamp" column is not right, it's something else, not time related

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.