project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

Warrlord

Warlord is a game inspired by COC and built around Defi + Account Abstraction + RISC0-ZKVM

Warrlord

Created At

Scaling Ethereum 2024

Project Description

Warlord is a game inspired by Clash of clans. The resources such as gold, elixir in clash of clans are in limited supply, and are difficult to gather. Consider gold, it is difficult to mine, since it takes time and is difficult to acquire through attacks, resembling proof of work. Also, since regularly lot of gold is burnt in building upgrades, its supply is regulated and it can act as a deflationary coin. So, we are providing gamers to play this fun war game along with earning money through proof of work. We have created a liquidity pool, for gamers to swap their crypto for gold and vice versa, and an opportunity for liquidity providing for earning yield over swap transactions. Also, we have created interactive attack on other base opportunities for players. But there is a problem, how can a player prove that he attacked a base, scored a certain percentage of destruction and did not cheat at all? This is where the role of RISC0-ZKVM comes in.

How it's Made

We have used Biconomy to easily onboard users and give them a smart account. This helps them send all transaction gas free. Players gold mines mine coin, and mining rate is currently set at 60 coins/hour. We have created a liquidity pool of gold coin and USDC, for players to swap their tokens and liquidity providers to earn money. Since, COC gold is always in huge demand, it is assured that the value of our gold coin will not crash abruptly. Again used biconomy to batch 3 txs (approval coin 1+ approval coin 2+ add liquidity) to a single tx, so that liquidity provider only has to sign once. Similar things are done for swap. Now back to our problem. How can a player prove that he attacked a base, scored a certain percentage of destruction and did not cheat at all? This is where the role of RISC0-ZKVM comes in. Given a fixed set of troop, defence and building coordinates, their attack rates, damage and hitpoints, simulating an attack is always deterministic, utilizing this fact we have sent these details to RISC0-ZKVM which runs a simulation code and gives a proof of computation, which we can use to prove to the network that we have honestly attacked and computation is correct.

background image mobile

Join the mailing list

Get the latest news and updates