-
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
fedekunze/1464 li governance txs #1481
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6a7c55d
Add gov txs to history
d9f88d8
CHANGELOG
1e47516
Merge branch 'develop' into fedekunze/1464-li-gov-tx
fedekunze aa37f34
Merge branch 'develop' into fedekunze/1464-li-gov-tx
faboweb 4ccc119
Merge branch 'develop' of https://github.com/cosmos/voyager into fede…
24ed90f
Query gov submit proposals and deposit txs
faef6ea
mock LCD tests
42b3c74
fix tests
ffbec6a
typos
7eb51c2
snapshot
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
2 changes: 1 addition & 1 deletion
2
app/src/renderer/components/governance/PageProposalsNewText.vue
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 |
---|---|---|
|
@@ -4,12 +4,13 @@ export default ({ node }) => { | |
let emptyState = { | ||
loading: false, | ||
wallet: [], // {height, result: { gas, tags }, tx: { type, value: { fee: { amount: [{denom, amount}], gas}, msg: {type, inputs, outputs}}, signatures} }} | ||
staking: [] | ||
staking: [], | ||
governance: [] | ||
} | ||
let state = JSON.parse(JSON.stringify(emptyState)) | ||
|
||
// properties under which txs of different categories are store | ||
const txCategories = [`staking`, `wallet`] | ||
// properties under which txs of different categories are stored | ||
const txCategories = [`staking`, `wallet`, `governance`] | ||
|
||
let mutations = { | ||
setWalletTxs(state, txs) { | ||
|
@@ -18,6 +19,9 @@ export default ({ node }) => { | |
setStakingTxs(state, txs) { | ||
state.staking = txs | ||
}, | ||
setGovernanceTxs(state, txs) { | ||
state.governance = txs | ||
}, | ||
setHistoryLoading(state, loading) { | ||
state.loading = loading | ||
}, | ||
|
@@ -47,10 +51,13 @@ export default ({ node }) => { | |
const stakingTxs = await dispatch(`getTx`, `staking`) | ||
commit(`setStakingTxs`, stakingTxs) | ||
|
||
const governanceTxs = await dispatch(`getTx`, `governance`) | ||
commit(`setGovernanceTxs`, governanceTxs) | ||
|
||
const walletTxs = await dispatch(`getTx`, `wallet`) | ||
commit(`setWalletTxs`, walletTxs) | ||
|
||
const allTxs = stakingTxs.concat(walletTxs) | ||
const allTxs = stakingTxs.concat(governanceTxs.concat(walletTxs)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🐱 within a 🐱 😆 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, sadly |
||
await dispatch(`enrichTransactions`, { | ||
transactions: allTxs | ||
}) | ||
|
@@ -69,6 +76,9 @@ export default ({ node }) => { | |
case `staking`: | ||
response = await node.getDelegatorTxs(address) | ||
break | ||
case `governance`: | ||
response = await node.getGovernanceTxs(address) | ||
break | ||
case `wallet`: | ||
response = await node.txs(address) | ||
break | ||
|
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.
is this on purpose?
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.
yeah