Flowstake
Proof of Activity NetworkFlowStake
A fitness platform that combines exercise with blockchain technology, using Proof of Activity as a Stake. FlowStake enables users to earn cryptocurrency rewards by completing fitness challenges.
Features
Core Features
-
Wallet Integration
- MetaMask support
- Secure transaction handling
- Real-time account updates
-
Strava Integration via Auth0
- Secure OAuth2 authentication
- Activity tracking and verification
- Automated syncing
- Performance metrics
-
Challenge System
- Individual challenges
- Group competitions
- Custom reward structures
- Difficulty levels
User Experience
-
Modern UI/UX
- Responsive design
- Dark mode interface
- Interactive components
- Real-time updates
-
Activity Tracking
- Distance tracking
- Time monitoring
- Performance analytics
- Achievement system
-
Social Features
- Activity sharing
- Community challenges
- Global leaderboard
- Team competitions
Quick Start
# Install dependencies npm install # Set up environment variables cp .env.example .env # Start development server npm run dev # Build for production npm run build # Deploy contracts npm run deploy
Environment Setup
Create .env file with the following variables:
# Supabase VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_ANON_KEY=your_supabase_key # Base Chain PRIVATE_KEY=your_private_key BASE_RPC_URL=https://mainnet.base.org ETHERSCAN_API_KEY=your_etherscan_key # Auth0 VITE_AUTH0_DOMAIN=your_auth0_domain VITE_AUTH0_CLIENT_ID=your_auth0_client_id VITE_AUTH0_CLIENT_SECRET=your_auth0_client_secret VITE_AUTH0_AUDIENCE=your_auth0_audience # Strava (via Auth0) VITE_STRAVA_CLIENT_ID=your_strava_client_id VITE_STRAVA_CLIENT_SECRET=your_strava_client_secret VITE_STRAVA_REDIRECT_URI=your_redirect_uri
Technology Stack
Frontend
-
React 18.3
- TypeScript
- Vite
- React Router
- React Query
- Zustand
-
Authentication
- Auth0 integration
- Wallet signatures
- Strava OAuth2
-
Styling
- Tailwind CSS
- Custom animations
- Responsive layouts
- Dark mode support
-
Web3 Integration
- ethers.js
- MetaMask connectivity
- Smart contract interaction
Backend
-
Database
- Supabase
- PostgreSQL
- Row Level Security
-
Authentication
- Auth0 Rules System
- JWT tokens
- Wallet signatures
- OAuth2 (Strava)
Smart Contracts
- Solidity
- OpenZeppelin
- Hardhat
- Base Chain
Project Structure
flowstake/
├── contracts/ # Smart contracts
│ ├── FlowstakeChallenge.sol
│ └── FSTCrowdsale.sol
├── src/
│ ├── components/ # React components
│ │ ├── auth/ # Authentication components
│ │ ├── auth0/ # Auth0 specific components
│ │ ├── presale/ # Presale components
│ │ └── profile/ # Profile components
│ ├── config/ # Configuration files
│ │ └── auth0/ # Auth0 rules and settings
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility functions
│ │ ├── auth0/ # Auth0 utilities
│ │ ├── supabase/ # Supabase client & helpers
│ │ └── web3/ # Web3 utilities
│ ├── pages/ # Route components
│ ├── providers/ # Context providers
│ ├── stores/ # State management
│ └── types/ # TypeScript types
├── api/ # Backend API
│ ├── routes/ # API routes
│ ├── middleware/ # Express middleware
│ └── services/ # Business logic
└── prisma/ # Database schema
Smart Contracts
FST Token
- Network: Base Chain
- Address:
0xf80d6EC0AF3abe8AFb1C83EC873C8942CC83B24a - Supply: 1,000,000,000 FST
- View on Basescan
Presale Contract
- Network: Base Chain
- Rate: 1 ETH = 1000 FST
- Soft Cap: 1000 ETH
- Min Purchase: 0.01 ETH
- Max Purchase: 100 ETH
- Duration: 30 days
Auth0 Integration
See Auth0 Documentation for detailed setup and configuration.
Key Features
- Secure Strava OAuth2 authentication
- Automated token refresh
- Activity synchronization
- User metadata management
Rules System
- Strava Connection
- Activity Sync
- Token Refresh
Development
Prerequisites
- Node.js 18+
- npm or yarn
- MetaMask wallet
- Auth0 account
- Strava API access
Running Locally
- Install dependencies:
npm install
- Configure environment:
cp .env.example .env # Update .env with your credentials
- Start development server:
npm run dev
Testing
# Run tests npm test # Run tests with coverage npm run test:coverage
Deployment
- Build the application:
npm run build
- Deploy to production:
npm run deploy:prod
Security
- Smart contracts are audited
- Auth0 handles authentication
- Secure wallet connections
- JWT for API authentication
- Rate limiting implemented
- Row Level Security with Supabase
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Connect With Us
License
This project is licensed under the MIT License - see the LICENSE file for details.
Pinned Loading
-
smart-contract-best-practices smart-contract-best-practices Public
Forked from ConsenSysDiligence/smart-contract-best-practices
A guide to smart contract security best practices
HTML
-
photo-attestation photo-attestation Public
Photographic attestation with digital signatures for validation
Python
-
hashed-timelock-contract-ethereum hashed-timelock-contract-ethereum Public
Forked from chatch/hashed-timelock-contract-ethereum
Hashed Timelock Contracts for ETH, ERC20 and ERC721 on Ethereum
JavaScript
-
ProofofActivity ProofofActivity Public
Proof of Activity as a Stake
Repositories
Showing 10 of 70 repositories-
Distributed-Immutable-Activity-Ledger
Public
Distributed Immutable Activity Ledger
Uh oh!
There was an error while loading. Please reload this page.
flowstake/Distributed-Immutable-Activity-Ledger's past year of commit activity 1 0 0 0 Updated Dec 11, 2024 -
helia-examples
Public
Forked from
ipfs/helia-examples
Ready-to-run Helia examples for Node.js and the browser
Uh oh!
There was an error while loading. Please reload this page.
flowstake/helia-examples's past year of commit activity 0 79 0 0 Updated Dec 11, 2024 -
.github
Public
Flowstake - Activity Network Documention
Uh oh!
There was an error while loading. Please reload this page.
flowstake/.github's past year of commit activity 2 0 0 0 Updated Dec 6, 2024 -
mkdocs-material
Public
Forked from
squidfunk/mkdocs-material
Documentation that simply works
Uh oh!
There was an error while loading. Please reload this page.
flowstake/mkdocs-material's past year of commit activity HTML 0 MIT 4,255 0 0 Updated Dec 6, 2024 -
whitepaper
Public
Whitepaper for Flowstake
Uh oh!
There was an error while loading. Please reload this page.
flowstake/whitepaper's past year of commit activity 1 0 0 0 Updated Nov 28, 2024 -
eas-contracts
Public
Forked from
ethereum-attestation-service/eas-contracts
Ethereum Attestation Service https://attest.org
Uh oh!
There was an error while loading. Please reload this page.
flowstake/eas-contracts's past year of commit activity TypeScript 0 MIT 139 0 0 Updated Nov 28, 2024 -
truffle
Public
Forked from
ConsenSys-archive/truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Uh oh!
There was an error while loading. Please reload this page.
flowstake/truffle's past year of commit activity TypeScript 0 MIT 2,445 0 0 Updated Oct 10, 2024 -
web3auth-core-kit-examples
Public
Forked from
Web3Auth/mpc-core-kit-examples
Uh oh!
There was an error while loading. Please reload this page.
flowstake/web3auth-core-kit-examples's past year of commit activity TypeScript 0 MIT 34 0 0 Updated Oct 9, 2024 -
react-native-app-auth
Public
Forked from
FormidableLabs/react-native-app-auth
React native bridge for AppAuth - an SDK for communicating with OAuth2 providers
Uh oh!
There was an error while loading. Please reload this page.
flowstake/react-native-app-auth's past year of commit activity Java 0 MIT 481 0 0 Updated Oct 8, 2024 -
met-irl
Public
Forked from
ethereum-attestation-service/met-irl
Attest to real-life meetings with metIRL
Uh oh!
There was an error while loading. Please reload this page.
flowstake/met-irl's past year of commit activity TypeScript 0 20 0 0 Updated Aug 11, 2024
People
This organization has no public members. You must be a member to see who’s a part of this organization.
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Developer Program Member