CryptoRaggies
  • 👋Welcome to Raggiepedia
  • Overview
    • ⭐What is CryptoRaggies?
    • 💟Vision & Values
    • 👥The Team
    • 🤝Partnership & Collabs
    • 🌳The Ecosystem
      • 😻Raggie NFTs
      • 🙉Plushie NFTs
      • 🪙RaggieCoin ($RAG)
    • 👕Raggie Merchandise
  • Utilities
    • 📈Tokenomics - $RAG
    • 🛍️RagAlley - Marketplace & Auction House
      • How to list my NFT in Marketplace?
      • How to start an On-Chain Auction?
        • How do auctions here work?
        • What are some best auction practices?
      • Need a Customised Marketplace and Auction House solution?
    • 🗺️RaggieWorld
      • Login (Desktop)
      • Login on iOS Safari
      • Install as an App (PWA) on iOS
      • Connect Discord
      • RaggieChat (Messenger)
      • Stash Trade (P2P Trading)
      • Moggie Raids (In-Chat Game)
      • Crafter's Nook (Crafting Platform)
      • Staking
      • Soul Land (Perma-Staking)
      • RaggieStore (Buy & Mint)
      • RaggieShrine (Burn and Raffle)
      • Raggie Rehoming Centre
      • Achievement System
      • Ragsters University
      • Patch Notes
        • 6 Nov 2023 (Latest)
        • 10 Oct 2023
        • 5 Oct 2023
        • 4 Oct 2023
        • 15 Sep 2023
        • 11 Sep 2023
        • 7 Sep 2023
        • 27 Aug 2023
        • 26 Aug 2023
        • 24 Aug 2023
    • 👛RaggiePurrse - Wallet
    • 🎮Gaming
      • 🌌RaggieRun
    • 😸Special Edition Raggies
  • Services
    • 📙Introduction - RaggieMart System
    • 🗃️Marketplace/Auction House Solution
    • 🗃️Minting Solution
    • 🗃️Airdrop Solution
    • 💼Clients / Portfolio
      • Zombie Chains - Hoarder's Collections
      • Inmates
        • The Tech
  • Soul & Soulbound Token (SBT)
    • 📗Introduction - Revolutionising On-Chain Identification
      • Understanding Your Soul: Your Unique Digital Passport
      • Decoding Soulbound Tokens: Entries in Your Diary
      • Discover Your Soul ID: Your Unique Blockchain Nametag
      • How Soul and SBT Technology Benefits the Community
    • ⚙️Developer's Protocol: Souls and Soulbound Tokens
      • Interacting with Souls
      • Implementing Soulbound Tokens (SBTs)
      • Conclusion
    • 📃Whitepaper
      • Understanding Souls and SBTs
      • Technical Overview
      • Conclusion
    • ❓FAQs
  • 🎉Anniversary 2023 (Ended)
    • ℹ️Get Ready!
    • 🔎Wallet Hunt
    • 📌Mint Annie 2023 NFT
    • 🎨Fan Art Competition
    • 🗣️Socialise and Win
    • 🎮MogFight - RaggieRun
      • Prizes, Activities & Rules
      • How to play RaggieRun?
    • 🏪RaggieStore Promotion
    • 🎟️VasilRaggie Raffle
    • ⚔️RaggieChat Raid (RaggieWorld)
Powered by GitBook
On this page
  • Background
  • Solution Proposed
  1. Services
  2. Clients / Portfolio

Zombie Chains - Hoarder's Collections

The first on-chain PvP tournament system powered by Plutus V2 smart contracts on Cardano. Players can participate in 1v1 battles or tournaments with up to 32 players!

PreviousClients / PortfolioNextInmates

Last updated 1 year ago

Background

Zombie Chains, part of Hoarder's Collection, planned to build a PvP battle and tournament system on Cardano utilising their existing NFT collections - Zombie Chains, Zombie Hunters, Zombie Fight Club Aliens and Zombie Fight Club Fight Cards.

The requirement was a system that takes in NFT trait attributes in a transparent and fair manner, and simulate fights between players, with the chance of winning determined by the difference in NFT strength score between the players. This needs to be built to support 1v1 battles, and a grand tournament system of up to 32 players. Ideally the fees sent in by players should be held in a smart contract without single ownership.

Solution Proposed

We agreed on the team's requirement of holding player fees in a smart contract without single ownership, and proposed a solution to build this system. The battle and tournament systems were built separately, each featuring a system comprising of 4 interacting parameterised smart contracts, taking advantage of Cardano's eUTxO model and the composability of transactions to execute each battle and tournament.

For the battle system (1 vs 1 Battle), we opted to use a single smart contract system initialised by a Battle Admin Wallet which contributes a seed UTxO to mint a thread token to kickstart the system. The whole system comprises of:

  • Thread token minting contract

  • Oracle token minting contract

  • Oracle token holding contract

  • Battle wager holding contract

These 4 smart contracts work alongside each other to generate results and publish them onchain for each battle, and to release the correct rewards for each player depending on battle result.

For the tournament system, we chose to use a dynamic set of parameterised smart contracts, resulting in a unique set of 4 smart contracts for each tournament. All the tournament parameters, including buy-in price, buy-in currency, prizes etc, are entered into the smart contract system as parameters and therefore, every tournament will have a unique set of smart contract byte code.

This system comprises of:

  • Tournament main contract

  • Tournament slot id token minting contract

  • Tournament tag token minting contract

  • Tournament oracle token minting contract

The intricate interplay of these smart contracts ensures that each slot within the tournament can only be occupied once, and that every participant's strength score is verified, preventing foulplay. The tag token is particularly designed to work with the oracle minting contract such that the oracle minting contract must consume 2 tag tokens every time it mints a set of fight outcome, resulting in fight outcomes that will only ever be minted once, ensuring fairness and eliminating ambiguity.

This system is powered by a Tournament Gamemaster Wallet which deploys all 4 contracts on-chain using its own ADA upfront, then re-coups the ADA from the tournament participants' entry fee while orchestrating the minting of oracle tokens and advancement of players from round to round. This ensures a perpetually sustainable system powered by fair and transparent fees, producing reliable and definite results for each fight.

💼
Page cover image
Battle System (1 vs 1 Battle)
Our AI storytelling system transforms battles into whimsical spectacles, seamlessly blending fantasy and reality. After each clash, a personalised touch awaits with an AI-generated image crafted based on player's name, turning victories into unique masterpieces. It's not just a game; it's a journey where technology meets creativity, offering a truly immersive and unforgettable gaming experience.
Comprehensive tournament layout
Only admins have the option to create a tournament
The 32 players tournament board. Players will be randomly assigned to their brackets. Once the tournament has been filled up, it will start automatically. Players will not have to claim their win/lost, all pay-outs are automated.
Click on the brackets and players can see the results.
Class Weight and Strength Score displayed together with the NFTs.
Detailed ZC' NFTs trait attributes can be found in
https://zombiechains.cryptoraggies.io/
https://zombiechains.weirdoznft.io/zombiechains