Skip to content
/ Arena Public

Solidity smart contract for creating tournaments and players to join the tournaments

Notifications You must be signed in to change notification settings

AurelSid/Arena

Repository files navigation

ARENA - A solidity smart contract for gaming tounaments.

This a smart contract coded in soldity to allow wallets(users) to register for owner created tournaments.

Language: Solidity
Framework: Hardhat
Testing: Chai

⚠️ATTENTION!This contract is a working concept but not audited and mainNet deployed ! Use it as reference or inspiration but do NOT use it or deploy it on mainNet.⚠️

Each tournament consists of a structures with basics needed members like the winning price , time , max players etc...feel free to cusotmise your tounaments.
This contract is an ERC20 , creating a custom token for the project , allowing felixibility when working with balances and transfers before withdrawal.
All tests are running , making sur all requirement pass for a robust contract. ✅

Main functions

  • Create a tournament

  • Create players (one per address)

  • Register for a tournament

  • Check tournaments winner (price transfer is automatic)

    Feek free to use this code freely , add modification and make requests to make it better ! 👽 🔥 👍

npx hardhat help
npx hardhat test
npx hardhat node