-
Notifications
You must be signed in to change notification settings - Fork 20
Mining Stats Module #125
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
Merged
Merged
Mining Stats Module #125
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Rename locale filter to locale-round - Add locale filter wich uses a string method
- Change raw data by filtered data
- Add dots - Add json - Add csv
|
This pull request introduces 1 alert when merging 33b980a into 1847101 - view on LGTM.com new alerts:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mining Module
1. Included dependencies
{ "dependencies": { "chart.js": "^2.9.4", "chartjs-plugin-datalabels": "^0.7.0", "vue-chartjs": "^3.5.1", "vue-dialog-drag": "^0.1.29" }, "optionalDependencies": { "bufferutil": "^4.0.3", "utf-8-validate": "^5.0.5" } }2. Initial State
3. Mining Socket
Socket Plugin
(src/store/plugins/miningSocketPlugin.js)Socket endpoint env variable
4. Mock Socket Data
test/__mocks__/difficultyOverTime.jsontest/__mocks__/hashrataDistributionOverTime.jsontest/__mocks__/hashrateDistribution.jsontest/__mocks__/lastBtcBlocks.jsontest/__mocks__/lastRskBlocks.jsontest/__mocks__/rskOverBtcHashrate.jsontest/__mocks__/summary.jsonSummary
Difficulty Over Time
Hashrate Distribution Over Time
Hashrate Distribution
Last BTC Blocks
Last RSK Blocks
RSK Over BTC Hashrate Over Time
5. Mapping socket data to chart data
(src/lib/js/mining)These mapping functions basically take raw websocket data from store for a specific time range ("hour", "day", "week") and map the data to appropriate format for
ChartJScomponent.6. Config
(src/filters/NumberFilters.js)In mining tables (LastRskBlocks, LastBtcBlocks) show
N/Astring if socket data doesn't exist for a specific cellMining Entity
(
src/config/entities/mining)Field Types
7. External Link in Data Field
(src/components/DataField.vue)8. Mining Page Component