bboynam99 / mafia-Contracts

This repo would contain all the smart contracts for the game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mafia Game Contracts

1. Accounts Contract

  • Deployed Address: 0x4B7c2323Ea4021dBe02AE11259Af54d6E9a0CD80
  • Generates user profile NFTs using ERC721 standard when the user first Registers on the game
  • Allots the Sign Up rewards to the players from our Game Tokens
  • Returns tokenURI at user sign in
  • Deletes profile NFT when user deletes their account

2. Crypto Mafia Coin Contract

  • Deployed Address: 0x91D89b2F9B8cb1873546Ce99E4166AD05264cB76
  • Handles initial minting of Game coins using ERC20 standard
  • Allows accounts contract to give players sign up reward
  • Handles staking of Game coins when player joins the room
  • Allows game master to distribute those coins back as allowance

3. Random Number Generator Contract

4. Address Book Contract

5. Interfaces

Required to have cross contract communication and function calls

About

This repo would contain all the smart contracts for the game


Languages

Language:Solidity 58.9%Language:JavaScript 41.1%