/Banana

Primary LanguageSolidity

Banana Idle Miner

Welcome to Banana Idle Miner, an innovative idle mining game that combines the engaging elements of idle games with the revolutionary potential of blockchain technology. In this game, players use their PC's processing power to mine unique and rare Bananas, each represented as ERC-1155 NFTs, and each ERC-1155 ID is a custom ERC20

We have created a new ERC, the ERC403, which makes it possible for each ERC1155 id to be an ERC20.

The ERC1155 ID 0 is the voting contract, with which the future of the project can be decided, the community can choose:

  • Create new banana ERC20 tokens
  • Choose its icon
  • The type of ERC20 (fee on transfer, rebasing, burning, auto liquidity, etc)
  • Choose and change mining difficulty
  • Etc.

Table of Contents

Introduction

Banana Idle Miner is designed to provide a unique gaming experience where players can earn digital assets through mining. The rarity of the Banana is determined by the complexity of the hashes found during the mining process, creating a fair and engaging reward system.

Features

  • Blockchain Integration: Utilizes Ethereum blockchain to mint and manage ERC-1155 NFTs.
  • Idle Mining: Players use their computing power to mine Banana, with rarity based on hash complexity.
  • Variety of Banana: Includes Normal, Steel, Golden, Crystal and Mystic.
  • Decentralized Marketplace: Trade your Banana on platforms like OpenSea.
  • Each ERC-1155 ID is a custom ERC20

Installation

To run Banana Idle Miner locally, follow these steps:

Clone the Repository:

git clone git@github.com:rotcivegaf/Banana.git
cd Banana/

yarn install yarn dev go to http://localhost:5173/ connect your wallet

Code

Deployments

Bsc Testnet

OPBNB Testnet Network

Usage


  1. Start Mining:
    • This demo currently runs using Rust. You can start the mining process clicking in Start Mining button
    • Adjust the number of cores used for mining in the "Cores" section.
  2. Claim Your Banana:
    • Once you have mined enough, click the "Claim!" button to mint your Banana as ERC-1155 NFTs.
  3. Check Inventory:
    • View your mined Banana in the Banana Contract.

Types of Banana

  • Normal Banana: A plain, smooth white Banana.
  • Steel Banana: A shiny, metallic Banana with a platinum-like appearance.
  • Golden Banana: A golden Banana with a glowing aura.
  • Crystal Banana: A transparent Banana with multicolored reflections.
  • Mystic Banana: An Banana covered in ancient runes, emitting a faint purple glow.

TODO

  • [Front] Inventory page
  • Create independent minters for each erc20, for each erc115 id a different minter could be configured.
  • Each erc1155 id would have an id based on the token, allowing it to have the same id in all chains and to be bridged from one chain to another.
  • Add a zk paymaster to be able to subsidize transactions

Contributing

We welcome contributions from the community! Please follow these steps to contribute:

  1. Fork the Repository: Click the "Fork" button on the top right corner of this repository page.
  2. Create a Branch: Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit Your Changes: Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch: Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request: Open a pull request to the main branch.

License

This project is licensed under the MIT License.