Skip to content

Core-Gaming-Hackathon/contract

Repository files navigation

Baultro: AI-Powered Gaming Platform on Core DAO

Baultro is an AI-powered gaming platform built on Core DAO blockchain that enables players to stake tokens and compete in strategic games with real rewards.

Smart Contracts

This repository contains two Core DAO smart contracts that power the Baultro platform:

  1. BaultroGames - Gaming platform contract for competitive matches and raid pools

  2. BaultroPredictionMarket - Prediction market contract for wagering on game outcomes

Game Modes

Battle Mode

Players attempt to hack into an AI-protected vault using social engineering and strategic conversation.

  • AI security systems resist unauthorized access
  • Players win when they trigger security breach acknowledgment
  • Difficulty levels from Easy to Expert

Love Mode

Players attempt to make an AI with professional boundaries express romantic feelings.

  • AI maintains professional boundaries initially
  • Players build connection through conversation
  • Win condition: getting the AI to express affection

Mystery Mode

The AI guards a secret phrase that players must extract.

  • Players use various strategies to extract information
  • Difficulty increases with how protective the AI is
  • Win by extracting the complete secret phrase

Raid Mode

One player sets up a vault that others try to break into, with fees and rewards.

  • Creator sets vault difficulty and stake
  • Attackers pay escalating fees for attempts
  • Creator earns from failed attempts

Smart Contract Functionality

BaultroGames Contract

  • Create matches with different game modes (battle, love, mystery)
  • Join existing matches by matching stake
  • Resolve match outcomes and distribute winnings
  • Create and manage raid pools
  • Track game statistics and leaderboards

BaultroPredictionMarket Contract

  • Create predictions with multiple options
  • Place bets on outcomes
  • Resolve predictions and distribute winnings
  • Support cross-chain betting functionality

Technical Stack

  • Blockchain: Core DAO (Testnet)
  • Smart Contracts: Solidity 0.8.19
  • Development Environment: Hardhat
  • Frontend: Next.js, React, Tailwind CSS
  • Database: PostgreSQL

Development

To run this project locally:

# Install dependencies
npm install

# Compile contracts
npx hardhat compile

# Deploy to Core DAO Testnet
npx hardhat run scripts/deploy-all.ts --network core-testnet

Configuration

Required environment variables:

  • PRIVATE_KEY: Your wallet private key for deployment
  • CORE_SCAN_API_KEY: Core DAO block explorer API key (optional)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors