Skip to content

Arbo is a game which involves taking care of the environment

License

Notifications You must be signed in to change notification settings

shaddamciv/arbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARBO

ARBO a game in which you get back digitally for nurturing the environment. All profits will be used to buy toucan carbon credits

Design of the game

Folder structure

  1. hardhat -> Smart contract code
  2. ARBO -> The Gamemaker game
  3. assets -> Images for the repo
  4. middleware -> Public/Permisonless backend code that allows for maintaining cache information for speedy game processing

How the game works

A tree(NFT token) is planted by the NFT contract [seed time, growth in cm(0), max growth(random, capped)] A user creates/updates the flow, based on the growth input from oracle [time, growth in cm = multiplier X flowrate(capped)]

Gameplay

  1. We utilize the concept of prisoner's dilemma.

  2. As a user you can water the ARBO with a gnome.

  3. Watering and growing the tree entitles you to a gardener fee, If no 10xers and if you have not stopped watering when the tree is grown.

  4. "10X watering" is possible, the user who does 10X his/her last watering rate stands a chance to win everyone's flow and the ARBO as a NFT.

  5. For redemption for a NFT, fees will be deducted from 10xer

In the case 4 happens all gnomes who are not 10xers lose any and all winnings.

All excess fees and profit will be used for funding the next round and for retiring carbon credits.

As a winner I can redeem the NFT and claim outflow by paying a fee. The fee goes 5% to protocol, 95% to other players.

Deployed Address

Mumbai Polygon V1 - Used for Demo video https://mumbai.polygonscan.com/address/0xaa19610d44b7ef574faeeca5e1a77d4bb7d8b8c2

Mumbai Polygon V2

  1. The tree address is - 0x24cC5458323Ba7F82E5de48D2D5A4363d586077E
  2. The Tellor oracle address 0xf753e8F555c3E624100337B0438878f375bc0053

Optimism

  1. The tree address is - 0x7d363EA1F74C5323730c130d9d37d336C860079A
  2. The winner address is - 0xe97A434341f839079d15543008F98Aad016d5d64

Reference Libraries used

  1. We used https://github.com/relaycc/relay for the xmtp chat client
  2. We used graph-client/javascript-cjs for the graph-relayer module

Tests

cd hardhat npx hardhat test test/Tree.ts

About

Arbo is a game which involves taking care of the environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages