colm3na / polkastats-v2 Goto Github PK
View Code? Open in Web Editor NEWPolkadot Kusama network statistics
Home Page: https://polkastats.io/
License: GNU General Public License v3.0
Polkadot Kusama network statistics
Home Page: https://polkastats.io/
License: GNU General Public License v3.0
Would be nice to have the possibility to translate PolkaStats to another languages.
We can use nuxt-i18n
to accomplish it.
It would be probably the best way to shorten an address. Would be nice to include in PolkaStats.
We can see this information in https://polkadot.js.org/apps/#/accounts and https://polkascan.io/pre/kusama-cc2/indices/account
And import it when needed.
It should include:
Github link is over the menu button between 992 and 1080 width
ref #45
my validators neither show the dothereum logo nor the dothereum name as provided in the pull request, rather, they display information from my private keybase account. is that intentional?
This is a very useful parameter to include in the validators table.
On the top of the page we could show the total token amount and the total staked amount. Inflation of the network depends on it.
Later in each validator we could show what percentage of the total is staked in that validator.
Add more components again to avoid code duplication.
Would be nice to have a validators table view with search, sorting and pagination features to improve the navigation over the fast increasing number of validators.
Maybe we can implement a switch to change between old and new view, setting new table view as default.
UPDATE: @Bitcoinera is actually making a great job testing and implementing vuetify data tables, so maybe soon we can have this view ready!
We made a new look to the Validator Table.
Now, we need to update all other tables with the new look.
We need to enable Favorites in Phragmen, Nominators and Accounts.
It's important to show kusama node finalized blocks!
We need to add tests to our code.
Cypress is a complete end-to-end testing tool that can cover all our needs.
Use the Juan Leni contribution to add Ledger nano support to polkastats.io
https://medium.com/@jleni/ledger-nano-app-for-kusama-cc2-c198635beb2a
Create two sections in favorites to show both validators and intentions.
Polkadot identity support is currently implemented in:
We need to implement in:
pages/validator/index.vue
)pages/intention/index.vue
)pages/phragmen-candidate/index.vue
)pages/nominator/index.vue
)It would be great if you could add filters in addition to sorting.
Some ideas for filters:
x
sessions)For example, let's say I want to sort by amount at stake, but only for validators with commission less than 30%. First I could filter to only show validators that have less than 30% commission, then I could sort by stake low to high.
All that info is interesting, but it is very annoying that it is shown in all menus and must be closed with the "X" continuously. We need a solution. To give some example solution: Create a section only for this info, get it to close only once for all menus (cookie?)...
The latest offline-phragmen by kiaenigma already have json output so there is no need to keep using the modified version.
https://github.com/kianenigma/offline-phragmen
The output is different so we should do a data transform at backend level or modify the whole implementation. My vote goes to transform the data at backend level so we don't need to change the frontend.
Some users have also asked us that a larger number of them can be shown in the list of validators. Right now the pagination is limited to 10. The idea is to give the possibility to choose that number .. 100 - 200 ...
improve the look of the accounts page
Add support for nominators
Add utility functions module to avoid duplicate code everywhere ;-)
Same as in PolkaStats v1.
PolkaStats should display:
It would be nice to have your favorites always at the top.
This affects the following tables:
-Validators
-Intentions
We want nicknames in nominators, controller and session addresses!
Currently we don't show the current session index, we can also display the block height when next session starts.
We need to replace session by epoch at top.
Send events in every client store mutation to let Google Analytics track it and show the client as active.
When our Kusama block explorer at https://kusama.colmenalabs.org gets fully sync, we should change links from:
blockExplorer: {
block: 'https://polkascan.io/pre/kusama-cc2/block/',
account: 'https://polkascan.io/pre/kusama-cc2/account/'
},
To:
blockExplorer: {
block: 'https://kusama.colmenalabs.org/block/',
account: 'https://kusama.colmenalabs.org/account/'
},
In pages/index.vue
, validator/index.vue
and intention/index.vue
.
This is a perfect example of why we need an app confirg file! :-) Maybe we can finish #17 first to simply add the urls to one_single_config_file XDD.
Would be nice to add an indicator that shows if the validator is selected for the next session.
Add twitter to account info page:
https://polkastats.io/account?accountId=GTzRQPzkcuynHgkEHhsPBFpKdh4sAacVRsnd8vYfPpTMeEY
We are currently collecting this info from each new block:
Next Pending Thing -> Extrinsics
// Subscribe to new blocks and get extrinsics
const unsub = await api.rpc.chain.subscribeNewHeads(async (header) => {
console.log(`Block #${header.number} extrinsics:`);
const blockHash = await api.rpc.chain.getBlockHash(header.number);
getBlock = await api.rpc.chain.getBlock(blockHash);
getBlock.block.extrinsics.forEach((extrinsic, index) => {
console.log(`\t#${index} '${extrinsic.meta.name}'`);
console.log(`\t\t${extrinsic.meta.documentation}`);
});
});
We need to sort the validators based on their total stake.
Validators table is in home and validators pages.
We should extract this table to a component and call this component from pages.
Nickname system is obsolete and we should remove nickname related code in accounts
Bonding information displayed in validators list looks different that the displayed in the individual validator page.
Let's unify the data displayed and show same info in both places.
This extension will enable validators operations within polkastats app
Eslint and Prettier are very useful tools that we should use in our project.
Eslint: Find and fix problems in your JavaScript code.
Prettier: an opinionated code formatter
We can implement a search box to find validators/intentions by:
Ledgers Nano S and X use this code
https://github.com/ZondaX/ledger-polkadot
It could be implemented in polkastats app like this:
We have to review the metrics. There are some strange behaviours
Weekly and monthly go up and down.
https://polkastats.io/validator?accountId=ET9SkhNZhY7KT474vkCEJtAjbgJdaqAGW4beeeUJyDQ3SnA
Daily graph seems broken in all cases.
This code was commented temporally
We need to fix it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.