Copyright (c) 2025 The Bitcoin Corporation Ltd
UK Company Number: 16735102
Registered in England and Wales
This repository contains smart contracts that form the economic backbone of the Bitcoin OS ecosystem. By contributing to this repository, you agree to the terms outlined in our Contributor Agreement.
Contributors to this repository earn $bContracts tokens - representing ownership in the smart contract infrastructure that powers the entire Bitcoin Corporation ecosystem.
| Contribution Type | $bContracts Reward | Description |
|---|---|---|
| New Contract Template | 500-2000 | Create reusable contract templates |
| Security Audit | 1000-5000 | Find and fix security vulnerabilities |
| Gas Optimization | 100-500 | Optimize contract efficiency |
| Bug Fix | 50-200 | Fix contract bugs |
| Documentation | 20-100 | Improve contract documentation |
| Test Coverage | 50-200 | Add comprehensive tests |
bitcoin-contracts/
βββ src/
β βββ contracts/ # BSV/sCrypt smart contracts
β β βββ TokenFactory.ts # Creates new app tokens
β β βββ AtomicSwap.ts # Token exchange mechanism
β β βββ DeveloperReward.ts # Auto-rewards for contributors
β β βββ Treasury.ts # Treasury management
β β βββ AppToken.ts # Template for app tokens
β βββ oracles/ # External data providers
β β βββ GitHubOracle.ts # Verifies PR merges
β βββ utils/ # Helper functions
β βββ TokenUtils.ts # Token manipulation helpers
βββ scripts/ # Deployment and integration
βββ test/ # Contract tests
βββ dist/ # Compiled contracts
βββ docs/ # Documentation
These BSV smart contracts enable:
- Automated Token Distribution - Contributors get tokens instantly upon PR merge
- Multi-Token Economy - Each app has its own token ($bMusic, $bWriter, etc.)
- Atomic Swaps - Trustless exchange between any tokens in the ecosystem
- Revenue Sharing - Automatic distribution of profits to token holders
- Decentralized Governance - Token holders control the ecosystem
- Unlimited Scaling - Leveraging BSV's unbounded block size
- Minimal Transaction Costs - BSV's ultra-low fees enable micro-transactions
- Node.js >= 18
- Git
- BSV wallet (for receiving tokens)
- sCrypt CLI tools
git clone https://github.com/bitcoin-corp/bitcoin-contracts.git
cd bitcoin-contracts
npm install# Install dependencies
npm install
# Compile sCrypt contracts
npm run compile
# Run tests
npm test
# Generate private key for deployment
npm run genprivkey
# Deploy to BSV testnet
npm run deploy- Purpose: Governance and revenue share from all contracts
- Total Supply: 1,000,000,000 (1 billion) tokens
- Distribution: Automated via GitHub Actions from treasury
- Revenue: 5% of all token swaps go to $bContracts holders
- Scarcity: Fixed supply ensures value appreciation
$bCorp (Master)
β
$bOS (Platform)
β
$bContracts (Infrastructure)
β
App Tokens ($bMusic, $bWriter, etc.)
We welcome contributions! Here's how to earn $bContracts:
- Fork this repository
- Create your feature branch (
git checkout -b feature/AmazingContract) - Commit your changes (
git commit -m 'Add AmazingContract') - Push to the branch (
git push origin feature/AmazingContract) - Open a Pull Request
- Receive $bContracts tokens upon merge!
See CONTRIBUTING.md for detailed guidelines.
- All contracts are open source for transparency
- Security audits rewarded with bonus tokens
- Bug bounty program: Up to 5000 $bContracts
- Multi-sig deployment process
- Upgradeable proxy pattern for fixes
- Repository setup
- Core contracts implementation
- $bContracts token deployment
- GitHub Actions integration
- Deploy all app tokens
- Atomic swap implementation
- Revenue sharing contracts
- DAO governance launch
- Cross-chain bridges
- Advanced DeFi features
- Staking mechanisms
- Yield generation
This project is licensed under the Open BSV License Version 4 - see the LICENSE file for details.
- β Open Source: All contracts must remain open source
- β Attribution: Credit The Bitcoin Corporation Ltd
- β Token Rights: Contributors earn $bContracts tokens
- β Commercial Use: Allowed with attribution
- β Closed Forks: Cannot make proprietary versions
- Organization: github.com/bitcoin-corp
- Main OS: github.com/bitcoin-corp/bitcoin-os
- Website: bitcoin-os.vercel.app
- Company: The Bitcoin Corporation Ltd
- Token Dashboard: Coming Soon
- The Bitcoin Corporation Ltd - Project Owner
- Contributors - $bContracts token holders
- You - Future contributor and token holder!
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND. The Bitcoin Corporation Ltd shall not be liable for any damages arising from the use of these contracts. Users are responsible for their own security audits and due diligence.
By using these contracts, you acknowledge that:
- Tokens have no guaranteed value
- Smart contracts may contain bugs
- You use at your own risk
- Regulatory compliance is your responsibility
Every line of code = $bContracts tokens
Every contribution = Ownership
Every developer = Shareholder
This is not just open source.
This is Open Source 2.0 - where developers are owners.
Β© 2025 The Bitcoin Corporation Ltd - Building the future of Bitcoin
Company No. 16735102 | England and Wales