Developers
DevelopersGuides
  • Introducing Bond
    • Introduction
    • Why we build Bond?
    • Roles In Bond Ecosystem
    • Decentralised Relations/Social Graph
    • Architecture
    • Bond Reward Model
      • Leech Principle
      • Barrel Principle
  • Main Concepts
    • Bond Profile
      • Identity
      • Relationships
      • Content
      • Creator Economy
    • Connection
      • Connection NFTs
    • Bond Social Graph
    • Centralities
      • In/Out Degree Centrality
      • Betweenness Centrality
      • Closeness Centrality
      • PageRank Centrality
    • Reward Models
    • Reward Contracts
    • Off-chain Oracles
    • Gasless Mode
    • Cross Chain Messaging and Pay Gas with Bond Token
  • Bond API
    • Introduction
    • API Urls
    • Getting started with GraphQL
    • Authentication
      • Login
      • Refresh JWT
    • Profile
      • Create Profile
      • SetProfileMetadata
    • Connect
      • Connect a profile
      • Disconnect
  • Smart Contracts
    • BondHub
    • MerkelDistributor
    • TokenDeployer
    • SingleStakePoolDeployer
    • LzTokenDeployer
    • LzSingleStakePoolDeployer
  • Bond SDK
    • Bond JS SDK
      • Authenticate
      • Create Profile
      • Connect
  • Bond Nodes
    • Hardware Requirements
    • Set up and Deploy
    • Node Config (TOML)
    • Secrets Config (TOML)
    • Role-Based Access Control (RBAC)
  • References
    • Deployed Contracts
    • Github
Powered by GitBook
On this page
  • Architecture flow
  • Smart Contract Layer
  • Data Availability Layer
  • Off-chain Computation Layer
  • Off-chain Consensus Layer
  1. Introducing Bond

Architecture

PreviousDecentralised Relations/Social GraphNextBond Reward Model

Last updated 1 year ago

Bond operates as a decentralised, cross-chain social incentive protocol, aiming to serve the evolving needs of Web 3.0 projects. At its core, Bond integrates on-chain smart contracts with advanced off-chain Oracle technology, promoting growth in decentralised social spaces.

The architecture is distinguished into three integral layers:

  • Smart Contract Layer: Central to Bond, it records relationships, user identities, content, and diverse reward models directly on the blockchain.

  • Data Availability Layer: This bridges the gap, indexing on-chain changes and offering a streamlined interface for easy blockchain interactions.

  • Application Layer: In this layer, Bond manages projects, materialises various use cases, and integrates off-chain nodes, ensuring efficient operations without compromising on decentralisation.

Together, these layers ensure Bond remains flexible, transparent, and user-centric, catering to a wide range of reward models and decentralised applications.

Architecture flow

Bond seamlessly combines on-chain contracts and off-chain computations, offering an innovative infrastructure for decentralised social incentives in the Web 3.0 era.

Smart Contract Layer

This layer stands as the on-chain bedrock of Bond's architecture, ensuring secure storage and execution of critical functions.

  • Bond Hub: The hub acts as the heart of Bond, where all relationships, user identities, and content are generated and securely recorded on the blockchain.

  • Project Manager: Beyond managing various projects, the Project Manager is the architect behind on-chain use cases. From issuing new tokens to deploying liquidity pools on decentralised exchanges, it is the catalyst for on-chain innovations.

Data Availability Layer

The vigilant layer that keeps tabs on every pulse and action within the smart contract layer.

  • Bond Indexers: These specialised modules diligently monitor and index event logs generated by the smart contracts, ensuring that all on-chain activities are documented and ready for the off-chain computations.

Off-chain Computation Layer

As the analytical core, this layer interprets and evaluates on-chain data to derive actionable insights.

  • This layer fetches the required data directly from the Bond Indexers. Using this data, it then computes social scores for each participant, reflecting their contributions and influence within the network.

Off-chain Consensus Layer

Accuracy and consensus are pivotal for the system's credibility.

  • This layer consolidates the results obtained from the computation layer across different off-chain nodes. Through a rigorous consensus algorithm, a unanimous agreement on the final results is ensured.

  • Following this consensus, the layer employs off-chain reporting to transmit the final result's Merkle root to the Merkle distribution smart contract, thus completing the process with transparency and trust.

distribution: Primarily utilised for efficient reward distribution, ensuring that all participants receive their due incentives in a streamlined manner.

Merkle Tree
Bond Architecture Overview
Architecture Flow