Skip to content
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

add read total fil transferred from stats #13

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

juliangruber
Copy link
Member

Finally we don't need to keep this updated any more 🥳

Verified

This commit was signed with the committer’s verified signature.
huonw Huon Wilson
@juliangruber juliangruber requested a review from bajtos June 18, 2024 09:24

Verified

This commit was signed with the committer’s verified signature.
huonw Huon Wilson

Verified

This commit was signed with the committer’s verified signature.
huonw Huon Wilson

Verified

This commit was signed with the committer’s verified signature.
huonw Huon Wilson

Verified

This commit was signed with the committer’s verified signature.
huonw Huon Wilson
@juliangruber juliangruber merged commit 76d51ed into main Jun 18, 2024
8 checks passed
@juliangruber juliangruber deleted the add/read-transfers-from-stats branch June 18, 2024 09:32
export const getTransfersFromStats = async (): Promise<bigint> => {
const res = await fetch(
'https://stats.filspark.com/transfers/daily' +
`?from=2024-01-01&to=${new Date().toISOString().split('T')[0]}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have historic transfers up to 06/11/2024, but here you are querying stats from 01/01/2024. There is an overlap of ~5.5 months. Will we count some transfers twice?

I'd prefer to set from=2024-06-12 to make it clear that we want only transfers made after the last manually-recorded historic value.

What do you think? Am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea! #2465a21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants