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.
-
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:
- Minting available at https://minerunner.netvrk.co.
- 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.
-
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.
The following contracts are deployed on the Ethereum Mainnet and Polygon networks:
-
NTVRK:
-
Cash In:
-
Cash Out (Polygon): 0xb1eBca91C5384A6ff126311328C64286265d849e
-
Axe (Polygon): 0x12fA9232Ff110fAD4FBB3dc25F5197419ee3bA13
- 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.
-
Clone the Repository:
git clone https://github.com/Netvrk/minerunner-contracts.git
-
Navigate to the Project Directory:
cd minerunner-contracts -
Install Dependencies:
npm install
-
Compile the Contracts:
npx hardhat compile
-
Run Tests:
npx hardhat test -
Deploy the Contracts:
npx hardhat run scripts/axe.ts --network sepolia