{"id":24512433,"url":"https://github.com/btc415/mining-token-contract","last_synced_at":"2025-04-14T08:37:47.682Z","repository":{"id":261193486,"uuid":"883554569","full_name":"BTC415/Mining-Token-contract","owner":"BTC415","description":"A sophisticated ERC20 token implementation with mining rewards functionality built on the Ethereum blockchain. It provides a capped token supply, automatic mining rewards for block validation, and owner-specific functions for parameter management.","archived":false,"fork":false,"pushed_at":"2024-11-06T09:08:20.000Z","size":166,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T17:34:45.869Z","etag":null,"topics":["coinbase","erc20","smart-contracts","token"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BTC415.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-05T07:05:22.000Z","updated_at":"2025-04-03T07:26:23.000Z","dependencies_parsed_at":"2024-11-05T08:30:17.265Z","dependency_job_id":null,"html_url":"https://github.com/BTC415/Mining-Token-contract","commit_stats":null,"previous_names":["btc415/mining-token-contract"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FMining-Token-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FMining-Token-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FMining-Token-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BTC415%2FMining-Token-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BTC415","download_url":"https://codeload.github.com/BTC415/Mining-Token-contract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248847034,"owners_count":21171082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coinbase","erc20","smart-contracts","token"],"created_at":"2025-01-22T00:46:56.128Z","updated_at":"2025-04-14T08:37:47.651Z","avatar_url":"https://github.com/BTC415.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mining Token Contract (MNT)\n\nA sophisticated ERC20 token implementation with mining rewards functionality built on the Ethereum blockchain.\n\n## Features\n\n- **Capped Supply**: Token has a maximum supply limit defined at deployment\n- **Mining Rewards**: Miners receive automatic token rewards for block validation\n- **Ownership Control**: Contract includes owner-specific functions for parameter management\n- **Decimal Support**: Full decimal support (18 decimals) for token operations\n- **Initial Supply**: 50,000,000 tokens minted to deployer at contract creation\n- **Adjustable Block Rewards**: Owner can modify mining reward amounts\n\n## Technical Details\n\n### Token Specifications\n- Name: MiningToken\n- Symbol: MNT\n- Decimals: 18\n- Initial Supply: 50,000,000 MNT\n- Supply Cap: Defined at deployment\n\n### Smart Contract Architecture\n\nThe contract inherits from:\n- `ERC20Capped`: Implements maximum supply cap functionality\n- `Ownable`: Provides ownership control mechanisms\n- `ERC20`: Base token implementation\n\n### Key Functions\n\n1. **Constructor**\n   - Sets token cap and initial mining reward\n   - Mints initial supply to contract deployer\n\n2. **Mining Reward System**\n   - Automatic reward distribution to miners\n   - Anti-manipulation checks for miner rewards\n   - Configurable reward amounts\n\n3. **Administrative Functions**\n   - `setBlockReward`: Allows owner to adjust mining rewards\n   - Protected minting with cap validation\n\n## Usage\n\n1. Deploy the contract with parameters:\n   - `cap_`: Maximum token supply\n   - `reward_`: Initial block mining reward\n\n2. Miners automatically receive rewards when processing transactions\n\n3. Contract owner can adjust mining rewards using `setBlockReward`\n\n## Security Features\n\n- Supply cap enforcement\n- Protected minting mechanism\n- Miner reward validation\n- Owner-only administrative functions\n\n## Dependencies\n\n- OpenZeppelin Contracts v4.x\n  - ERC20\n  - ERC20Capped\n  - Ownable\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtc415%2Fmining-token-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtc415%2Fmining-token-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtc415%2Fmining-token-contract/lists"}