-
Notifications
You must be signed in to change notification settings - Fork 176
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
profile: display balance breakdown #534
Conversation
Your Render PR Server URL is https://betanet-wallet-pr-534.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server URL is https://near-wallet-pr-534.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
1 similar comment
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
@kcole16 @vgrichina for state stake: I have the storage size ( |
@Patrick1904 no idea either. @nearmax how do we get this? |
@vgrichina I got info from @kcole16 that cost per byte currently is I set this in
|
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
@Patrick1904 I also changed so |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
package.json
Outdated
@@ -7,6 +7,7 @@ | |||
"connected-react-router": "^6.6.0", | |||
"fetch-send-json": "0.0.2", | |||
"js-sha256": "^0.9.0", | |||
"near-api-js": "^0.25.0", | |||
"near-ledger-js": "^0.0.4", | |||
"near-seed-phrase": "^0.0.2", | |||
"nearlib": "^0.22.0", |
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.
nearlib
should be removed
|
||
this.setState({ deletingMethod: method.kind }) | ||
deleteRecoveryMethod(method) | ||
.then(({ error }) => { | ||
if (error) return | ||
loadRecoveryMethods(accountId); |
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.
did this get changed to load recovery methods for current account? not sure how will this play with #580
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.
accountId
param was unnecessary, loadRecoveryMethods
was using current logged account always:
https://github.com/near/near-wallet/pull/534/files/21a8e48a3f8fac0ad033d5640c34a5e72bfe8c21#diff-b3e6d1b5726af892a08cb5d16f807a6cL17
@Patrick1904 actually, the design for this part was different, it should look exactly the same as a mobile version (that's why it was the same component earlier), because we resign of image icons on every page at some point. I think that while you ware changing this part, you used old designs, it was looking like this before your changes: |
This is a good point, and also a bit orthogonal to this PR. I also hope very few users with that much NEAR ever use this wallet 😅 (and then only with Ledger) |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
@marcinbodnar yes the desktop stacking layout looks suboptimal IMO* (as mentioned). I believe @corwinharrell has been tinkering with a new account/profile component design for the nav that solves these issues and looks great. *Desktop: left aligned texts + right aligned component = bad |
One thing I want to question/challenge is the persistent display of a user's balance in the application header. I can understand that the idea behind this is to allow the user to have an idea of their balance at any given moment. That being said, I don't think this makes sense from a security perspective. At any point that you have the application open, anyone can see your balance with a simple glance at your screen. In addition, when I want to |
100% |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
Your Render PR Server at https://near-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl4f8jd5s04rr9uk0. |
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
1 similar comment
Your Render PR Server at https://betanet-wallet-pr-534.onrender.com is now live! View it on your dashboard at https://dashboard.render.com/static/srv-bqfpl478jd5s04rr9ufg. |
@vgrichina @marcinbodnar Outside of navbar balance concerns (will make separate issue), is this ready to merge? |
@kcole16 yes |
@@ -43,8 +42,8 @@ async function getKeyMeta(publicKey) { | |||
|
|||
class Wallet { | |||
constructor() { | |||
this.keyStore = new nearlib.keyStores.BrowserLocalStorageKeyStore(window.localStorage, 'nearlib:keystore:') | |||
const inMemorySigner = new nearlib.InMemorySigner(this.keyStore) | |||
this.keyStore = new nearApiJs.keyStores.BrowserLocalStorageKeyStore(window.localStorage, 'nearlib:keystore:') |
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.
nit: everything here is JS, just nearApi
would be enough )
@Patrick1904 apologies, I think I missed this when you originally posted it. Will continue to think about this while designing for in-progress issue and perhaps there's a low-lift option that offers a better solution. |
#481
Covered in this PR:
amount + locked
instead ofamount
Balance
component return 0 when it's actually 0Not covered in this PR: