-
Notifications
You must be signed in to change notification settings - Fork 98
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
implemented blocks page #337
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
17fdec5
bring back blockchain.js
jbibla a915929
setup pageblock
jbibla 657819e
cleaning up netmon page
jbibla 3a580f3
improve NiDataEmpty to allow for props, improve NiListItem to show links
jbibla 115a08e
show EmptyBlock message when no transaction data
jbibla aaed2b5
page block title
jbibla 2d70348
add node count to connectivity with TODO
jbibla e202dc5
got monitor / blockchain stats working
jbibla 53636cd
readded the node ip to the node object
faboweb 057049a
removed proposal mutations as they are not used
faboweb 3debcbd
Merge pull request #339 from cosmos/fabo/336-return-the-nodeip
jbibla 132dea6
added user module tests and refactored
faboweb 50d7220
added notification tests
faboweb b30f245
reverted change in NiSession
faboweb ff746e7
fixed sign in tests
faboweb b2d8f1c
fixed node mock being mutable
faboweb 1e13791
added more test coverage
faboweb bd01cdd
fixed tests
faboweb c9e2f23
fixed error in bond page
faboweb 6e8ac23
Added 'delegates' module tests
mappum a7e5218
Remove some unused code in delegation module
mappum d9c93a9
Added delegation module tests
mappum 884a353
Add 'filters' module tests
mappum 9f569df
Added vuex module index tests
mappum 50ad96a
Merge pull request #347 from cosmos/matt/327-vuex-tests
jbibla f5bd78d
Merge branch 'develop' into fabo/325-vuex-tests
jbibla 7cea5a5
Merge pull request #343 from cosmos/fabo/325-vuex-tests
jbibla 8e34853
bring back blockchain.js
jbibla 9e63f10
setup pageblock
jbibla 62aedd8
cleaning up netmon page
jbibla b0c97cc
improve NiDataEmpty to allow for props, improve NiListItem to show links
jbibla 0a1a47a
show EmptyBlock message when no transaction data
jbibla efd4b5f
page block title
jbibla 2850095
add node count to connectivity with TODO
jbibla 32172d7
got monitor / blockchain stats working
jbibla 04f94e1
changes to main block page
jbibla 3ecef8a
Merge branch 'jordan/29-netmon' of github.com:cosmos/cosmos-ui into j…
jbibla 069af6a
switch from monitor to blocks
jbibla 7333b17
not just for devMode anymore!
jbibla 4c476a4
tendermint rpc sockets aren't working right now
jbibla 4d156fc
fix tests
jbibla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import axios from 'axios' | ||
|
||
export default ({ commit, node }) => { | ||
const state = { | ||
urlPrefix: 'https://', | ||
blockchainName: 'gaia-2-dev', | ||
urlSuffix: '-node0.testnets.interblock.io', | ||
status: {}, | ||
abciInfo: {}, | ||
topAvgTxRate: 0 | ||
} | ||
|
||
const mutations = { | ||
setBlockchainName (state, name) { | ||
state.blockchainName = name | ||
}, | ||
setTopAvgTxRate (state, value) { | ||
state.topAvgTxRate = value | ||
}, | ||
getStatus (state) { | ||
let url = state.urlPrefix + state.blockchainName + state.urlSuffix | ||
axios(url + '/status').then((res) => { | ||
state.status = res.data.result | ||
}) | ||
}, | ||
getAbciInfo (state) { | ||
let url = state.urlPrefix + state.blockchainName + state.urlSuffix | ||
axios(url + '/abci_info').then((res) => { | ||
state.abciInfo = res.data.result | ||
}) | ||
} | ||
} | ||
|
||
// function getBlocks () { | ||
// node.rpc.subscribe({ event: 'NewBlockHeader' }, (err, event) => { | ||
// if (err) return console.error('error subscribing to new block headers', err) | ||
// console.log(event) | ||
// }) | ||
// } | ||
// getBlocks() | ||
|
||
setTimeout(() => { | ||
mutations.getStatus(state) | ||
mutations.getAbciInfo(state) | ||
}, 3000) | ||
|
||
return { state, mutations } | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
li-transactions
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should probably show more information at some point, but so should the information in the transactions list.