Skip to content

Repository files navigation

Minerunner

Overview

MineRunner is a blockchain-based game combining DeFi elements with gameplay, enabling players to earn, trade, and manage in-game assets securely. Smart contracts power its economy: the Axe contract mints assets earned in-game, the CashIn contract allows token purchases, and the CashOut contract enables withdrawals of $NETVR tokens for earned Metacrite, seamlessly bridging gaming and real-world value.

Contracts

Axe Contract

  • Description:

    • Represents an in-game asset in MineRunner.
    • Players can earn and mint Axe tokens by completing in-game activities.
    • Purpose: Tokenize game items for use or trade.
  • Minting:

CashIn Contract

  • Description:
    • Enables players to purchase MineRunner in-game tokens using external tokens.
  • Usage:
    • Tokens purchased can be used inside the game for items, upgrades, or other utilities.
    • Ensures smooth conversion from external cryptocurrency to in-game currency.

CashOut Contract

  • Description:

    • Allows players to withdraw $NETVR tokens in exchange for Metacrite earned in MineRunner.
  • Functionality:

    • Verifies cash-out requests to avoid duplicates.
    • Transfers $NETVR tokens to the player’s wallet based on their Metacrite balance.
    • Bridges in-game rewards with real-world value.

Deployed Contracts

The following contracts are deployed on the Ethereum Mainnet and Polygon networks:

Getting Started

Prerequisites

  • Node.js: Ensure you have Node.js installed. You can download it from here.
  • Hardhat: A development environment to compile, deploy, test, and debug your Ethereum software.

Installation

  1. Clone the Repository:

    git clone https://github.com/Netvrk/minerunner-contracts.git
  2. Navigate to the Project Directory:

     cd minerunner-contracts
  3. Install Dependencies:

    npm install
  4. Compile the Contracts:

    npx hardhat compile
  5. Run Tests:

    npx hardhat test
  6. Deploy the Contracts:

    npx hardhat run scripts/axe.ts --network sepolia

About

MineRunner is a blockchain-based game that integrates DeFi elements, allowing players to earn, trade, and manage in-game assets securely. Its economy is powered by smart contracts, enabling asset minting, token purchases, and withdrawals of $NETVR tokens for earned Metacrite, seamlessly connecting gaming with real-world value.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages