Code Monkey home page Code Monkey logo

avalanche-explorer's Introduction

DEPRECATION NOTICE

This project is deprecated, and the Avalanche Explorer is in the process of being migrated to the Subnet Explorer instead. As such, some URLs will redirect to the new explorer experience as it is developed, starting with the Home page and C-Chain page.

Avalanche Explorer

Frontend Vue.js application for displaying Avalanche network activity and blockchains data from the Ortelius indexer and Avalanche-Go client.

Prerequisites

  • Node v14

Installation

  1. yarn install

Development

  1. yarn serve - project runs with hot reloading

When you go to the app on your browser, you might get a warning saying "Site is not secure." This is because we are signing our own SSL Certificates. Please ignore and continue to the website.

The homepage currently redirects to the subnet explorer so to view the app you'll need to go to a specific blockchain url such as: https://localhost:8081/blockchain/11111111111111111111111111111111LpoYY

Configuration

See .env. By default, the Avalanche Explorer interfaces with the Everest test network.

For local development against ortelius and avalanche go, use the docker container setup by the ortelius team. Info can be found here. You can also connect to a local network you setup yourself, install and run instances by following the instructions found in each lib:

Once those are stood up and running, run yarn serve:local the application will use the configs in the .env.hosted file as the base urls for ortelius and avalanche go

Services

When creating http requests, do so from a service abstraction layer. refer to src/service/* for an example. The http layer, models and helpers should all be centralized into this layer.

Known Addresses

The file /src/known_addresses.ts is a dictionary that maps an address to a name. This can be customized freely.

avalanche-explorer's People

Contributors

aaronbuchwald avatar connorch avatar dependabot[bot] avatar dfenstermaker avatar dhrubabasu avatar gergelylovas avatar hiimoliverwang avatar kanatliemre avatar mikeeus avatar nahoc avatar otherpaco avatar plondon avatar rictorlome avatar strictlymomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avalanche-explorer's Issues

Only two digits after floating point

There are only 2 digits after floating point for transaction at Latest transaction section at main page and Transaction section at an address page. This result in additional request to explorer and increase server load.
tmp

Transaction fees not accurate anymore

I noticed since a few days the transaction costs displayed on the cchain explorer are not accurate anymore. In comparison avascan.info displays the correctly:

Selection_371
Selection_370

Any idea what happened?

Explorer does not pick up Deposit & Withdrawal wAVAX ERC20 events

If interacting with WETH-like contracts, deposit and withdrawal operations (mint and burn) are not showing up in the explorer transaction-page. Because of this the ERC20 balance of the address is not modified, and it's out of date.

Tested this on testnet -- tx . I'd expect to see a transfer from the null address/mint event to my address worth 0.52 wAVAX.

The WAVAX contract on testnet seem to emit a Deposit event, which is consistent with the WETH one on the Ethereum network, for example.

function deposit() public payable {
    balanceOf[msg.sender] += msg.value;
    Deposit(msg.sender, msg.value);
}

I suppose adding support for the Deposit and Withdraw ERC20 events would fix the problem.

Genesis block on explorer is incomplete

Not all transactions in the genesis block

https://raw.githubusercontent.com/ava-labs/avalanchego/master/genesis/genesis_mainnet.go

are shown on the avalanche explorer

https://explorer.avax.network/tx/FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z

Example:

			{
				"ethAddr": "0xb3d82b1367d362de99ab59a658165aff520cbd4d",
				"avaxAddr": "X-avax1rnklurqutmqvh9e4gxudd5pa89k47z32dfp49q",
				"initialAmount": 0,
				"unlockSchedule": [
					{
						"amount": 2000000000000,
						"locktime": 1630800000
					}
				]
			},

I tried to find this on the above mentioned explorer page with no result.

I used find (Ctrl + f) with 'avax1rnklurqutmqvh9e4gxudd5pa89k47z32dfp49q'

This is true for a lot of other examples.

Firefox 92.0 64 Bit

Dead link from Metamask to Token Contract

Using Metamask's "View in Explorer" feature (see pic for USDC.e example) to view a token leads to a 404 error. The wrong URL it leads to for this token is:

https://cchain.explorer.avax.network/token/0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664

But it should lead here:

https://cchain.explorer.avax.network/address/0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664/transactions
or
https://cchain.explorer.avax.network/address/0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664

This problem exists for other tokens as well.

Best fix I'd think would just redirect anything going to /token/ --but you guys know best!

Thanks much.
Screenshot 2021-09-09 21:29:24

Completion percentage for pending validators

The completion percentage for a pending validator currently shows up as -29827%. There seems to be a problem with the result returned by getPendingValidators (on the platform side) since the pending validator's start and end time are in the past.

Screen Shot 2020-09-08 at 10 41 27 AM

Expected behavior: should never show a negative percentage completed, perhaps it should either not show completion percentage for pending validators or show zero percent completed for pending validators.

C-Chain import transaction link is wrong

When clicking on the UTXO of a X-Chain export transaction to get to the C-Chain import transaction, snowtrace is opened which cannot display the transaction.

Example: Export TX Import TX

The problem is located in the located in the UtxoTxLinkOutput component as seen in the code below. The link shouldn't point to snowtrace.

get cURL(): string {
return `${
DEFAULT_NETWORK_ID === 1
? cChainExplorerURL
: cChainExplorerURL_test
}/tx/0x${this.txID}`
}

Tx response is not denominated

// TODO: this Big conversion is not denominated bc of dependency on asset lookup

Line 7 of Transaction.ts

amount: stringToBig(output.amount), // TODO: this Big conversion is not denominated bc of dependency on asset lookup

Explorer is ambiguous on dot and comma in values

When the language of the browser is set to one where a "dot" is used as thousand seperator, both seperators are dots.
That is very confusing.

us-US
1,000.234
thousands separator ","
decimal separator "."

de-DE
1.000.234
thousands separator "."
decimal separator "."

"look mom I am a milionare"

The separators should stay at the US-version or the decimal separator should switch to "," in de-DE.

Seen on Firefox 92.0 64 Bit US-us vs DE-de

Example:
https://explorer.avax.network/tx/ViHD7gh1RwLoUzg43HaLKrHu4FfmRzus5mARhMSLkwrt3Zexp

Local Explorer Transactions

Hello,

I'm trying to connect the explorer to my local network , not completely if this part (see image below real avalanche explorer) , is implemented here :

Avax explorer :
Screen Shot 2022-05-26 at 22 44 23

My local explorer :

Screen Shot 2022-05-26 at 22 45 31

Explorer showing wrong balance ?

I moved 50 AVAX into my account, staked 25 , got ~ 25.1 AVAX back 14 days later.

Wallet shows ~ 50.089 "Available (P)"
(Strangely (to me) it says further down "This key does not have a balance")

wallet avax network 2020-10-26 05-50-19 UTC

Explorer stated that I have 74.999 AVAX "Unlocked (X)"
(maybe Explorer got confused, now displaying 50 + 25 = 75 AVAX ?)

Avalanche Explorer 2020-10-26 05-48-50 UTC

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.