CryptoKitties PolkaVM Port

Port for the famous ethereum based dApp CryptoKitties w/ Breeding and Auction smart contract functionality for PolkaVM, tested on Westend Testnet

  • 0 Raised
  • 498 Views
  • 0 Judges

Tags

  • Polkadot

Categories

  • Polkadot $7500

Gallery

Description

CryptoKitties PolkaVM Port is a Web3 project that brings the iconic Ethereum-based decentralized application, CryptoKitties, to the Polkadot ecosystem using PolkaVM. This port replicates the core mechanics of the original dApp, including kitty creation, breeding, and auctions, while adapting the smart contracts to run seamlessly within the PolkaVM environment.

The project includes a full reimplementation of the Breeding and Auction contracts in a Substrate-compatible format, ensuring feature parity and performance on Polkadot's virtual machine. It has been tested extensively on the Westend Testnet, demonstrating compatibility, efficiency, and the feasibility of running legacy Ethereum dApps on PolkaVM.

By bridging Ethereum's dApp legacy with Polkadot's scalable and interoperable infrastructure, this project showcases how widely adopted smart contract applications can evolve beyond the EVM, unlocking new cross-chain potential while maintaining familiar user experiences.

The 4 Major Smart Contracts implemented are:

  1. NFT Ownership
    1. The NFT Ownership feature implements a complete ERC-721 compliant system for managing digital asset ownership, transfers, and approvals.
    2. Prevents transfers to invalid addresses and auction contracts
    3. Compliant Transfer and Approval events
    4. Efficient storage patterns with ownership counters
  2. Role-Based Access Control
    1. The access control system implements a three-tier hierarchical permission structure that governs all administrative operations within the CryptoKitties ecosystem.
    2. CEO (Chief Executive Officer)
          • Role Assignment
          • Contract Upgrades
          • System Unpausing
    3. CFO (Chief Financial Officer)
      • Role Assignment
      • Fund Withdrawal: Financial operations and balance management
    4. COO (Chief Operating Officer)
      • Role Assignment
      • Kitty Creation
    5. Each role has distinct, non-overlapping permissions
    6. System-wide pause capability for security incidents
  3. Breeding (Game Mechanics)
    1. The breeding system implements complex genetic algorithms, cooldown mechanics, and pregnancy tracking to create new kitties with inherited traits from parent cats.
    2. Progressive cooldown periods based on generation
    3. State management for breeding cycles
    4. Auto-birth fees and breeding costs
  4. Auction (Marketplace)
    1. The auction system provides a decentralized marketplace for both kitty sales and breeding services through clock auctions with linear price decay.
    2. Separate systems for ownership and breeding rights
    3. Automated price reduction ensures auction completion
    4. Comprehensive checks for ownership and breeding eligibility
    5. Fee distribution and balance management



The transactions made during the demo and development of the project can be verified using the following links:
User Address: https://blockscout-asset-hub.parity-chains-scw.parity.io/address/0x288135B9c8cC836f360Bb4736f0059F952Be1847
Smart Contract (KittyCore) Address: https://blockscout-asset-hub.parity-chains-scw.parity.io/address/0x339f8428a863767565DfA2e7E089D7993e692493
Transaction Analysis: https://github.com/man-of-code/CryptoKittiesPolkaVM/blob/main/Analysis.md

Github link for the project: https://github.com/man-of-code/CryptoKittiesPolkaVM/