-
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
Fabo/1809 update header on send #1830
Merged
Merged
Changes from 124 commits
Commits
Show all changes
132 commits
Select commit
Hold shift + click to select a range
dfe8443
removed several electron references
99e1237
basic sign in working
54b7fb5
added scripts for backend
1b255c1
fixed sign in
24c3063
fied missing tmdataloading on tabparameters
605ab52
update to latest tendermint lib
faboweb 699621a
added ssl cert creation readme
faboweb 88d9f65
use nilyra node
faboweb ac1d988
correct wait for connection on app start
faboweb 80b1132
updated webpack
f608bab
linted
b8c200e
updated webpack dev server to work again
7e2e1d0
import genesis at build time
de40af8
readd google analytics
fe1e864
fied tmfield
65be788
added networks to dev server
5dc8d80
fixed pageview
a9e29b2
reconnect on signin
915a822
Revert "reconnect on signin"
fbcdd2b
fixed bug on LiProposal
224db52
increased timeout for waiting for blocks to proof connection
ba4aefc
Update app/src/renderer/components/common/TmSessionSignIn.vue
fedekunze 1727720
refactor keystore
795579a
fixed keystore issues
1882811
made analytics not global
922fbc7
cleanup package scripts
cb99b90
cleanup deps
b3bd8ac
fixes signin feedback
b99e4c3
enable transactions in prod mode
f2d624b
removed config.toml
50e3131
code cleanup
5b132e5
removed browserified dependencies
1daf718
Merge branch 'fabo/voyager-web' of https://github.com/cosmos/voyager …
634f3bb
several
e1451d2
several tests refactored
a07fe33
several
7c12fb1
several
1d729eb
several
6ce74c3
remove build test
aa89193
override write to clipboard in test
1063a40
more
1a06f3b
override copy to clipboard in test for btncopy
27dfc5a
fixed app menu test
ff1c885
add gos genesis
4108895
added proxy
1b011df
added to start script
daba935
remove logging in prxy
f684107
refactored connection tests
401fd0e
fixed tests
bb47c96
removed network config folder getter script
cb95dd3
refactored tests
29d229d
linted
62b7cef
Merge branch 'fabo/voyager-web' of https://github.com/cosmos/voyager …
5c1f18b
add wallet test
2ad991c
added tests for keystroe and wallet
1589fbd
added salt
58172b0
linted
2e0fd07
remove e2e tests for now
ae15184
Revert "remove e2e tests for now"
301c857
removed dependency ref
9b2f668
Merge remote-tracking branch 'refs/remotes/origin/develop'Conflicts: …
cd10062
changelog
3476070
reenable console error safe guard
ca1bb91
fixed snapshots
533e406
fixed session import
85f9b0c
redo local testnet creation
b265381
switched proxy
35a3b7f
migrate to latest SDK
d237fdf
add new generate_only logic
32b188d
Revert "redo local testnet creation"
e367a42
reenable testnet logic
f806f22
revert to working SDK
2678f3d
better start scripts
6089cee
added skip rebuild
d2d3639
fixed send snapshot
3240ce1
linted
08f7c20
moved to latest SDK
179aefd
make not creating the nodes the default
5f9806b
working gen and post
5541629
working
15f82b9
comments
9763faa
remove mnemonic from wallet
7f2ebf7
stripped console log
d259b4f
fixed lcdClient + tests
8521053
fixed send tests
a1d8da7
fix keystore tests
37b5172
added send tests
6659f24
remove caddy binary
0f2405e
latest working SDK patch
3f17b2b
reenable error handlers
5898084
removed commented lines
088d4d4
removed naviagtor mock
4f2fd77
fix session sign up
2d33ee2
cleanup of config
b3f117e
refactored waiting for node
079258b
made default gas a config value
4f095ca
fixed typo
2e7fa92
a
4abd6a6
refactor of keystore test
65fae41
fixed gas config
9b7d5f6
catch wrong password
0eb93a1
fixed tests
34e6e53
fixed tmformmsg
04dbf70
added coverage for getKey
ab15cdb
ignore some lines from coverage
ea5afba
increase coverage user.js
8d1df58
refactored request postprocessors
5e128b4
ignore coverage for network.js
4be4826
removed more theme
36683fb
added test for main
f98450b
ignore coverage in google analytics script
34957b1
removed more theme stuff
a5188df
disable e2e tests for now
b420490
go with 2 nodes as the third node fails currently
4b9349a
updating header correctly and provide liquidAtoms getter
042d500
Update test/unit/specs/components/governance/PageGovernance.spec.js
fedekunze 1795b46
removed comments
dcea101
fixed pagevalidator test
632d08c
Merge branch 'fabo/1809-update-header-on-send' of https://github.com/…
1ee6a3f
updated tablevalidator jest
20b3558
added coverage
8217e52
Merge remote-tracking branch 'origin/web' into fabo/1809-update-heade…
2115a94
Merge remote-tracking branch 'origin/web' into fabo/1809-update-heade…
8639fa6
Merge remote-tracking branch 'origin/web' into fabo/1809-update-heade…
1b4344b
update balance correct after sending
7ca1ec0
implemented feedback by Karoly
8f12c2c
fixed integration test
3e86327
tally bug
0f62367
fixed serialization of txs
79491bb
fix circleci audit job
sabau badf905
fixed tally prop
faboweb 1e7f117
fixed tests
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,20 @@ export default ({ node }) => { | |
state.balances = balances | ||
state.loading = false | ||
}, | ||
updateWalletBalance(state, balance) { | ||
let updated = false | ||
state.balances = state.balances.map(oldBalance => { | ||
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. ditto |
||
if (oldBalance.denom === balance.denom) { | ||
updated = true | ||
return balance | ||
} | ||
return oldBalance | ||
}) | ||
|
||
if (!updated) { | ||
state.balances.push(balance) | ||
} | ||
}, | ||
setWalletAddress(state, address) { | ||
state.address = address | ||
}, | ||
|
@@ -64,14 +78,6 @@ export default ({ node }) => { | |
commit(`setNonce`, res.sequence) | ||
commit(`setAccountNumber`, res.account_number) | ||
commit(`setWalletBalances`, coins) | ||
for (let coin of coins) { | ||
if ( | ||
coin.denom === rootState.stakingParameters.parameters.bond_denom | ||
) { | ||
commit(`setAtoms`, parseFloat(coin.amount)) | ||
break | ||
} | ||
} | ||
state.loading = false | ||
state.loaded = true | ||
} catch (error) { | ||
|
@@ -83,6 +89,23 @@ export default ({ node }) => { | |
state.error = error | ||
} | ||
}, | ||
async sendCoins( | ||
{ dispatch, commit, state }, | ||
{ receiver, amount, denom, password } | ||
) { | ||
await dispatch(`sendTx`, { | ||
type: `send`, | ||
password, | ||
to: receiver, | ||
amount: [{ denom, amount: amount.toString() }] | ||
}) | ||
|
||
const oldBalance = state.balances.find(balance => balance.denom === denom) | ||
commit(`updateWalletBalance`, { | ||
denom, | ||
amount: oldBalance.amount - amount | ||
}) | ||
}, | ||
async loadDenoms({ commit, state }) { | ||
try { | ||
const { genesis } = await network() | ||
|
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 |
---|---|---|
|
@@ -11,9 +11,10 @@ const proposal = { | |
type: `Text`, | ||
password: `1234567890` | ||
} | ||
const { governanceParameters, stakingParameters } = lcdClientMock.state | ||
const { governanceParameters } = lcdClientMock.state | ||
const depositDenom = governanceParameters.deposit.min_deposit[0].denom | ||
|
||
// TODO: refactor according to new unit test standard | ||
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. <3 |
||
describe(`PageGovernance`, () => { | ||
let wrapper, store | ||
let { mount, localVue } = setup() | ||
|
@@ -25,15 +26,16 @@ describe(`PageGovernance`, () => { | |
let instance = mount(PageGovernance, { | ||
doBefore: ({ store }) => { | ||
store.commit(`setGovParameters`, governanceParameters) | ||
store.commit(`setStakingParameters`, stakingParameters.parameters) | ||
store.commit(`setConnected`, true) | ||
}, | ||
stubs: { | ||
"tm-balance": true | ||
} | ||
}) | ||
wrapper = instance.wrapper | ||
store = instance.store | ||
store.state.user.address = lcdClientMock.addresses[0] | ||
store.dispatch(`updateDelegates`) | ||
store.commit(`setAtoms`, 1337) | ||
}) | ||
|
||
it(`has the expected html structure`, async () => { | ||
|
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.
nice! 💧