Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages with detailed stats for each category #240

Closed
1 task
ingria opened this issue May 22, 2023 · 14 comments
Closed
1 task

Pages with detailed stats for each category #240

ingria opened this issue May 22, 2023 · 14 comments
Assignees
Labels
Approved This proposal is approved by the committee Infrastructure Task related to system or technology integration

Comments

@ingria
Copy link

ingria commented May 22, 2023

Summary

Pages with detailed stats for each category

Context

For each of the blockchain entities, we propose to make a separate page with detailed information to ensure real-time monitoring at tonscan.org.

Goals

Create convenient tools for monitoring new transactions, blocks and actual validators.

Deliverables

  1. Validators page, including all actual validators list with their stakes and current status, and also frozen stakes.
  2. Blocks page, with pagination into other blocks and a list of all transactions in the block and real-time monitoring of all actual blocks indicating their workchains, hash and txs count.
  3. Transaction page, with real-time monitoring of all transactions: new tx's, TPS count, average transaction speed and

Definition of Done

  • All pages are working stable and display the above information.

Reward

3000 USD in TON

Oriental Release Date

TBD

@ingria ingria added the footstep This is a TON Footstep issue label May 22, 2023
@Gusarich
Copy link
Collaborator

Can you explain your idea in more details please?

@delovoyhomie delovoyhomie added the Approved This proposal is approved by the committee label May 30, 2023
@alfredonodo
Copy link

Hi,
this footstep is very important to improve the statistics and transparency of TON. I hope to have it as soon as possible.
Thank you

@tonscan
Copy link

tonscan commented Sep 21, 2023

  1. Validators page is now avaliable at https://tonscan.org/validators

  2. We decided to merge the Transactions page and the Blocks page into a single entity since their statistics have a lot of overlap. Now it's avaliable at https://tonscan.org/blocks – as soon as the number of shardchains will increase, the page will change the way it is displayed to a tabbed system.

Example of a specific block page: https://tonscan.org/block/-1:000000000000000:32294312

  • All pages are working stable and display the above information.

Wallet

EQDCH6vT0MvVp0bBYNjoONpkgb51NMPNOJXFQWG54XoIAs5Y

@alfredonodo
Copy link

Hello,
thank you very much for your important result. However, I compared your data with those of other statistics aggregators and there are some inconsistencies:

  • The total number of validators, the stake of the validators and the address of their wallets are different from those of ton whales. I cannot understand why.
  • The estimated APY on the validators page, about 6.2%, is different from that on your main page, about 5.2% (which is in line with that of tontech). I think it is calculated differently.

Thanks

P.S. I cannot copy and paste the list of validator wallets in order to compare them better. Is it an intended server-side block?

@ingria
Copy link
Author

ingria commented Sep 21, 2023

different from that on your main page

We don't have any statistical info on the main page, what page do you mean?

Anyway, 6.2% displayed on the validators page is median apy across currently active validators, while 5.2% on tontech seems to be average.

Is it an intended server-side block

No, it is not intentional. You may check validator list at toncenter

@alfredonodo
Copy link

We don't have any statistical info on the main page, what page do you mean?

Anyway, 6.2% displayed on the validators page is median apy across currently active validators, while 5.2% on tontech seems to be average.

I was referring to this main page of statistics in the staking section where 5.2% APY is reported. If 6.2% is a median and not an average as is usually reported, I think you should specify this otherwise it is misleading.

No, it is not intentional. You may check validator list at toncenter

It is not possible to copy and paste all table columns into that page either manually or programmatically (especially the wallet address column). Is there any reason for this?

Do you know why your list of validators is substantially (completely) different from that of ton whales?

Thank you

@ingria
Copy link
Author

ingria commented Sep 21, 2023

Is there any reason for this?

This is a peculiarity of html rendering - we are using pseudo-elements, which are not interactive in modern browsers. It is possible to get the values programmatically:

console.table(
    Array.from(document.querySelectorAll('.validators-table tr')).slice(1)
        .map((row) => Array.from(row.querySelectorAll('td'))
            .map((cell) => cell.innerText || cell.querySelector('a').href.split('/').at(-1)
        ))
) 

Do you know why your list of validators is substantially (completely) different from that of ton whales

No idea, we'll look into this

@tonscan
Copy link

tonscan commented Sep 21, 2023

Do you know why your list of validators is substantially (completely) different from that of ton whales?

Yeah, we found the problem, get method of the Elector returns the stake value without considering the returned part. So we'll try to get this data in another way soon. Thanks.

@tonscan
Copy link

tonscan commented Sep 24, 2023

Do you know why your list of validators is substantially (completely) different from that of ton whales?

https://tonscan.org/validators

Fixed.

@alfredonodo
Copy link

Do you know why your list of validators is substantially (completely) different from that of ton whales?

https://tonscan.org/validators

Fixed.

Thank you. However, the values are still different from those of the ton whales. In particular, the number of validators and their stakes are different, it could be due to the different time of analysis. Also, there are many wallets that are not listed (I do not know which list is correct). For example, the following wallets should be the same:
Ef8W1vCpA1tr9xr6QSXSxcVSdn1Sm7SYX_PCWQdClaWhales->tonscan
Ef-m2UP6rg1Izra_yzSOvPboEem9d2HFzdWarnuNvrWhales->ton whales->Whale nominators #2
Moreover, in their case the sum of the stakes weight is 98.83%, while in yours it is 46.46%.

@delovoyhomie
Copy link
Collaborator

@tonscan, could you please tell me what's your progress? How much work is left to do?

@delovoyhomie delovoyhomie added Infrastructure Task related to system or technology integration and removed footstep This is a TON Footstep issue labels Oct 13, 2023
@delovoyhomie
Copy link
Collaborator

Rewards sent!

Questbook proposal

@delovoyhomie
Copy link
Collaborator

delovoyhomie commented Oct 25, 2023

To accurately recognize your valuable contributions in our repository, we kindly request you to submit a Pull Request to the Hall of Fame file, providing the wallet address and a link to the bounty with the number.

Please follow these steps:

  1. Fork the repository (if you haven't already).
  2. Edit the Hall of Fame file, commit, and push your changes.
  3. Create a Pull Request from your fork to the main repository, providing the wallet address and a link to the bounty with the number (for example, Pull Request Article: Generation of block random seed #136).

For reference on what your entry should look like, please see the examples of past merged pull requests.

@ingria, thank you for your contribution!

@alfredonodo
Copy link

Do you know why your list of validators is substantially (completely) different from that of ton whales?

https://tonscan.org/validators
Fixed.

Thank you. However, the values are still different from those of the ton whales. In particular, the number of validators and their stakes are different, it could be due to the different time of analysis. Also, there are many wallets that are not listed (I do not know which list is correct). For example, the following wallets should be the same: Ef8W1vCpA1tr9xr6QSXSxcVSdn1Sm7SYX_PCWQdClaWhales->tonscan Ef-m2UP6rg1Izra_yzSOvPboEem9d2HFzdWarnuNvrWhales->ton whales->Whale nominators #2 Moreover, in their case the sum of the stakes weight is 98.83%, while in yours it is 46.46%.

Finally the data between ton whales and tonscan are aligned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved This proposal is approved by the committee Infrastructure Task related to system or technology integration
Projects
None yet
Development

No branches or pull requests

5 participants