feat(service) Add fitbit service for getting the number of steps #61
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.
Fitbit Steps Integration for Reclaim Protocol/Catoff
Overview
This Pull Request introduces a new integration for the Reclaim Protocol/Catoff project, focusing on Fitbit step count data. This integration enables the creation of zero-knowledge proofs for users' walking activities, opening up innovative possibilities for fitness-based challenges and wagers on the Catoff platform.
Features
Potential for Generating 100-500 Proofs
This Fitbit integration has strong potential to generate between 100-500 proofs, meeting the bounty requirements:
Large User Base: Fitbit has millions of active users worldwide. Even a small percentage of Catoff users connecting their Fitbit accounts could easily surpass the 100-proof threshold.
Daily Activity: Step counting is a core feature of Fitbit devices, used daily by most users. This frequent activity provides numerous opportunities for proof generation.
Engaging Use Cases: The proposed challenges (Daily Step Challenge and Weekly Fitness Competition) are designed to encourage regular participation, potentially generating multiple proofs per user per week.
Scalability: The integration can handle multiple proof generations per day per user (e.g., morning and evening step counts), further increasing the proof count.
Social Factor: Fitness challenges often have a social component, which could lead to viral adoption within friend groups or communities using Catoff.
Health Trend: With increasing focus on health and wellness, a Fitbit integration taps into a growing market, likely attracting more users over time.
Versatility: While initially focused on step counts, the integration can be easily expanded to include other Fitbit metrics, potentially increasing user engagement and proof generation.
Automated Proof Generation: The integration can be set up to automatically generate proofs at set intervals or when certain milestones are reached, ensuring consistent proof creation without requiring constant user interaction.
Given these factors, we expect this integration to not only meet the minimum 100-proof requirement but also have the potential to scale well beyond that, possibly reaching the upper limit of 500 proofs as adoption grows.
Fitbit Steps Integration for Reclaim Protocol/Catoff
Use Cases
Implementation Details
fitbitStepsService.js
to handle Fitbit data processingreclaimService.js
to include the new Fitbit integrationconstants.js
to add Fitbit-specific constantsCode Highlights
fitbitStepsService.js