Comments (9)
I assume blockchain stores the information about mined coins by each node
should we assume that this information is available from backend and we can just request it?
from tari.
question pending about "all" and "yearly" filters
answer included in description
from tari.
There are 2 ways of getting "blocks mined" information:
- By querying UTXOs that are both coinbase UTXOs and are mined / confirmed. (This gets you history)
- By signing up for notifications. We currently only allow notifications via a shell script, but are looking into piping the events directly to the Tauri FE (This gets you live events)
from tari.
@alex1307 - We should add Tauri commands that make this a simple call. The FE should not be wrangling this data.
Bear in mind that the historical events call is somewhat expensive, so some discussion on the API would serve us well.
How often will you be requesting the full history?
Can we assume the FE caches previous calls, so we can return new changes since a given timestamp?
from tari.
since I don't think historical data ever changes in blockchain, it wouldn't hurt us to save the data somewhere
is it possible to make an API that would return results with daily resolution, called for specific windows, e.g. from=2022-04-01&to=2022-04-30
?
FE could then save the results internally and make sure never to call for that window again (assuming the window is in the past)
and then when the user changes filters on the statistics view, and we don't have data to show to them, we would call the api for missing windows?
I don't know how the UTXO is queried and how expensive this API is, so all suggestions are welcome.
from tari.
@CjS77 @alex1307 do you have any new info on this?
from tari.
@alex1307 is still busy with this.
from tari.
ok, I'll put backend integration on hold and wait till we get any info on the interface (y)
from tari.
backend contract: GET method from=<Date>&to=<Date>&interval='monthly'|'yearly'|'all'
interval is optional, if not provided, data will be returned with values per day
if it is provided, it will combine data yearly
-> values per month, all
-> values per year
UPDATE:
frontend will listen on transaction events and store them in sqlite (after #46 implements it)
from tari.
Related Issues (20)
- [BaseNode] Check if base node is already synced HOT 2
- [BaseNode] Sync Block - synced_items is not being increased
- Docker - start service error: The designated workspace, default, already exists HOT 1
- ErrorBoundary - UI improvements HOT 1
- Status endpoint whether blocks are already synced
- Issues from #397
- Updated field in image_info
- [Onboarding] Pull docker images - handle server and no_space errors
- Wallet events stream error HOT 1
- Tari container - wallet password is not updated until the app restart HOT 1
- Re-export Lottie dark dots animation
- Refactor main.rs/main function due to Clippy's too_many_lines
- Check base node sync"after" onboarding too
- Add online cargo to check if user is online/offline
- BaseNode sync - wait until stream is ready
- RUSTSEC-2022-0048: xml-rs is Unmaintained
- RUSTSEC-2021-0139: ansi_term is Unmaintained
- RUSTSEC-2021-0141: dotenv is Unmaintained
- RUSTSEC-2021-0144: traitobject is Unmaintained
- RUSTSEC-2019-0039: typemap is Unmaintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tari.