Getting Started
Smart Contracts
Documentation for Belong's second-generation smart contracts related to the check-in system.
Smart Contracts v2
This section of the repository contains the second-generation smart contracts designed for the check-in system and related hub membership logic within the Belong ecosystem.
View the source code and documentation here:
👉 GitHub — checkin-contracts
🧩 Architecture Overview
The Smart Contracts v2 are modular and built with extensibility in mind.
They define the core logic for hub membership, user verification, and activity check-ins.
Main Components
HubRegistry
- Manages registration and ownership of hubs.
- Keeps track of hub metadata and authorized administrators.
- Provides access control for other contracts interacting with specific hubs.
Membership
- Handles user memberships within hubs.
- Supports joining and leaving hubs, as well as assigning roles.
- Integrates with
HubRegistryfor permission validation.
CheckIn
- Implements the check-in mechanism for events or hubs.
- Verifies user membership and eligibility.
- Emits on-chain events for transparency and analytics.
Utils and Interfaces
- Contain shared utilities and standardized interfaces for interoperability.
- Ensure that external integrations can interact safely with the core contracts.
⚙️ Technical Details
- Language: Solidity
- Framework: Hardhat
- Network Support: EVM-compatible chains (BNB, Polygon, Skale, etc.)
- Version:
v2branch (active development)