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
| Layer | Technology |
|---|---|
| Language | Solidity ^0.8.x |
| Framework | Hardhat, OpenZeppelin (upgradeable) |
| Tooling | TypeScript, ethers v5, TypeChain |
| Testing | Mocha / Chai, hardhat-deploy |
Architecture
contracts/
├── core/ # MinerPool, RewardsPool, validators
├── tokens/ # MTC and wrapped token contracts
├── helpers/ # Bridge, roles, blacklist utilities
└── interfaces/ # Shared ABIs for integratorsKey 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.