Skip to content
Rauf

Genesis Contracts

MetaChain genesis smart contracts — mining, validation, reward pools, and BSC bridging.

September 27, 2023 · Public · Completed · solidity · ethereum · defi · View on GitHub →

Overview

Core on-chain logic for the MetaChain network: block and transaction validation, tiered miner structures (Meta, Macro, Micro), reward distribution, and BSC↔MetaChain bridge contracts for MTC token migration. Documented against the Metatime whitepaper.

Tech Stack

LayerTechnology
LanguageSolidity ^0.8.x
FrameworkHardhat, OpenZeppelin (upgradeable)
ToolingTypeScript, ethers v5, TypeChain
TestingMocha / Chai, hardhat-deploy

Architecture

contracts/
├── core/         # MinerPool, RewardsPool, validators
├── tokens/       # MTC and wrapped token contracts
├── helpers/      # Bridge, roles, blacklist utilities
└── interfaces/   # Shared ABIs for integrators

Key Features

  • Miner tiers — Meta, Macro, and Micro miner contracts with staking and health checks.
  • Reward pools — tiered distribution based on miner actions on MetaChain.
  • Validation — BlockValidator and TxValidator for consensus-style checks.
  • Cross-chain bridge — BSC↔MetaChain migration for MTC tokens.
  • Access control — role-based permissions with MultiSigWallet support.

Resources