status-desktop/devuser_guide
Eric Mastro 0b0a542828 fix: loading of wallet history, display of tx datetime
Fixes: #2539.

Transaction history is now correctly being fetched from status-go as per mobile. Firstly, when accounts are added (ie as watch accounts), `wallet_checkRecentHistory` must be called first so that the status-go db is populated. After that, `wallet_getTransfersByAddress` can be called. On app load, when we run the `initBalance` logic, we are calling `wallet_getTransfersByAddress`, asking for the last 20 transactions with the `loadMore` parameter set to false. When the user navigates to the Wallet > History tab, they can then click “Load More” to fetch more transactions from status-go. Once the number of transactions returns false below the expected amount, the remaining transactions to fetch have been exhausted and the “Load More” button is disabled.

feat: add non-archival node warning to the UI to indicate to the user that they may not have complete results

feat: set active account to the added account
Once an account is added to the wallet, that newly added account is selected as the active account.

1. The “load more” button is active when new transactions that aren’t already displayed are returned from `wallet_getTransfersByAddress`. This is the only way to enable or disable the “Load more” button as status-go is not able to return information regarding whether or not there are more transactions to be fetched. The downside to this is that lets say the last page of transactions is returned, but there are no more pages left. These returned txs are not currently displayed, so the “load more” button will still be enabled. However, the next click of the button will return 0 results, thus disabling it. It’s effectively an extra click to get to the disabled state.
2. For more information on how the `toBlock` parameter operates for the `wallet_getTransfersForAddress` RPC call, see https://notes.status.im/XmENTrVRRaqhwE4gK0m8Mg?view.
2021-06-10 10:47:03 +10:00
..
archetypes initial user guide & dev docs 2021-05-07 16:12:12 -04:00
assets initial user guide & dev docs 2021-05-07 16:12:12 -04:00
config list methods for status go 2021-06-01 18:03:19 -04:00
content fix: loading of wallet history, display of tx datetime 2021-06-10 10:47:03 +10:00
data initial user guide & dev docs 2021-05-07 16:12:12 -04:00
images initial user guide & dev docs 2021-05-07 16:12:12 -04:00
layouts add qml api docs 2021-05-21 12:29:34 -04:00
static feat: edit community channels 2021-06-09 10:19:26 +10:00
.editorconfig initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.eslintignore initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.eslintrc.json initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.gitignore initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.markdownlint.json initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.markdownlintignore initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.npmrc initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.stylelintignore initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.stylelintrc.json initial user guide & dev docs 2021-05-07 16:12:12 -04:00
.versionrc.json add qml api docs 2021-05-21 12:29:34 -04:00
LICENSE initial user guide & dev docs 2021-05-07 16:12:12 -04:00
README.md docs(pins): add user docs for Pins 2021-05-26 12:12:05 -04:00
babel.config.js initial user guide & dev docs 2021-05-07 16:12:12 -04:00
package-lock.json initial user guide & dev docs 2021-05-07 16:12:12 -04:00
package.json initial user guide & dev docs 2021-05-07 16:12:12 -04:00
theme.toml initial user guide & dev docs 2021-05-07 16:12:12 -04:00

README.md

npm install
npx hugo server

Navigate to http://localhost:1313