Explanation of Contracts - CreoDAMO/CQTSOG-MMORPG GitHub Wiki


1. CryptoQuestTheShardsOfGenesisToken (CQT)

Address: 0xb30837f54924b88294f524d3e13667396d3f3c8a

Role: This ERC20 token serves as the primary in-game currency. Players use CQT to purchase items, pay for services, and participate in various game activities.

Key Functions:

  • Minting and Burning: Allows the creation and destruction of tokens, controlled by the game’s economic policies.
  • Transfers: Standard ERC20 transfer functions for in-game transactions.

2. CryptoQuestTheShardsOfGenesisNFT

Address: 0xc641573148e62d88a2374ffe97391f849cea8ff5

Role: Represents unique in-game assets like characters, weapons, and other collectibles. Each NFT has unique attributes and can be traded or sold in the marketplace.

Key Functions:

  • Minting and Burning: Creates and destroys NFTs as players acquire and use them.
  • Transfer and Approval: Standard ERC721 functions for transferring and approving NFTs.

3. CryptoQuestTheShardsOfGenesisCollectionNFT

Address: 0x5ce6de14eaa1906163c5de4e57302fee8f5d2812

Role: This contract manages collections of NFTs, such as bundles or sets that players can collect for rewards or bonuses.

Key Functions:

  • Minting Collections: Allows the creation of collections of NFTs.
  • Rewards: Distributes rewards based on completed collections.

4. CryptoQuestTheShardsOfGenesisDAO

Address: 0x7c3dddd47c29d213458abf9eb23fe50d95fa5205

Role: Manages community governance, allowing players to vote on game updates, features, and policies.

Key Functions:

  • Proposal Creation: Players can create proposals for changes or new features.
  • Voting: Players vote on proposals, and decisions are executed based on the outcomes.

5. CryptoQuestTheShardsOfGenesisMarketplace

Address: 0xef805704fd13b0122477211895e418cb9c22e103

Role: Facilitates the buying, selling, and trading of NFTs and other in-game assets.

Key Functions:

  • Listing and Bidding: Allows players to list items for sale and place bids.
  • Transactions: Handles the transfer of assets and payments between players.

6. CryptoQuestTheShardsOfGenesisStaking

Address: 0x7ffc728c30192bf6f2f1448e395a8c9f751bc039

Role: Allows players to stake CQT tokens to earn rewards, including interest and exclusive in-game items.

Key Functions:

  • Staking and Unstaking: Players can lock up their tokens for a period to earn rewards.
  • Reward Distribution: Distributes staking rewards based on the amount and duration of the stake.

7. CryptoQuestTheShardsOfGenesisFarming

Address: 0x822475be2d1b53680ceb3da287a7c608fed591a4

Role: Implements farming mechanics where players can earn passive income by cultivating virtual lands and resources.

Key Functions:

  • Resource Management: Players plant, grow, and harvest virtual crops.
  • Yield Distribution: Rewards players based on their farming productivity.

8. CryptoQuestTheShardsOfGenesisMMORPG

Address: 0x251ace49f2b106e0746702986e879e404a76f290

Role: The core game contract managing player interactions, quests, and the overall game logic.

Key Functions:

  • Player Management: Handles player creation, progress tracking, and attributes.
  • Quest Management: Manages quests, including assignment, progress, and rewards.

9. CryptoQuestTheShardsOfGenesisWallet

Address: 0xf60d96cfa71c6fe7fe18ca028041ca7f42b543bd

Role: Manages the storage and transfer of in-game assets securely.

Key Functions:

  • Multi-Signature Transactions: Ensures secure handling of large transactions and game funds.
  • Asset Management: Central repository for game assets, providing security and transparency.

10. CryptoQuestSwap

Address: 0x7132367941b5f058dc68cee2dbcd356fbaa7d5b4

Role: A decentralized exchange (DEX) allowing players to swap CQT tokens and NFTs.

Key Functions:

  • Liquidity Management: Manages liquidity pools for various tokens and assets.
  • Swapping: Facilitates the exchange of tokens and NFTs between players.

How They Work Together

  1. Economy and Transactions:

    • Players use CQT tokens for transactions facilitated by the CryptoQuestTheShardsOfGenesisToken contract.
    • The CryptoQuestSwap contract enables players to exchange tokens and NFTs, providing liquidity and ease of trade.
  2. Asset Ownership:

    • NFTs representing unique items, characters, and land are managed by the CryptoQuestTheShardsOfGenesisNFT and CryptoQuestTheShardsOfGenesisCollectionNFT contracts.
    • These assets can be traded on the CryptoQuestTheShardsOfGenesisMarketplace.
  3. Player Interaction and Governance:

    • Players participate in game governance through the CryptoQuestTheShardsOfGenesisDAO, voting on proposals that influence game development.
    • The CryptoQuestTheShardsOfGenesisMMORPG contract manages the core gameplay, including player attributes, quests, and progression.
  4. Staking and Farming:

    • Players can stake their CQT tokens using the CryptoQuestTheShardsOfGenesisStaking contract to earn rewards.
    • The CryptoQuestTheShardsOfGenesisFarming contract allows players to cultivate virtual lands, earning passive income from their efforts.
  5. Security and Asset Management:

    • The CryptoQuestTheShardsOfGenesisWallet ensures the secure management of game assets and large transactions, providing transparency and security for the entire ecosystem.

Creating an Exciting Gaming Experience

By integrating these smart contracts, CryptoQuest: The Shards of Genesis creates a dynamic and engaging gaming experience:

  • True Ownership: Players have full control over their in-game assets, which are represented as NFTs on the blockchain.
  • Decentralized Economy: The in-game marketplace and swap features ensure a vibrant, player-driven economy.
  • Player Governance: Through the DAO, players have a direct influence on the game’s evolution, fostering a strong community and sense of ownership.
  • Innovative Gameplay: The integration of staking, farming, and unique NFTs adds depth to the gameplay, offering numerous ways to engage and earn within the game world.
  • Secure Transactions: Robust security measures ensure that all transactions and asset management are conducted transparently and safely.

This detailed contract architecture ensures that CryptoQuest: The Shards of Genesis offers an immersive, interactive, and secure gaming experience, leveraging the full potential of blockchain technology.