-
[Youtube Demo](https://youtu.be/LESljBVa3OQ)
-
It's a Onchain Game in which your lens State acts as your score.
-
After Every Match a Notification is sent about the Match Result into the Push Channel about the winner)
-
-- Channel Address of Live Push Channel(https://staging.push.org/)(0x0dDda6871f1216D7EF56722167652e4F881d74Aa)
-
The Notification includes the Winner's Name,his Special power and his Score.
-
Now Lens Phite comes with Special Powers and Attacks fetched from API created by me through Phala Network .
-
We are storing Attack Data Off-Chain to save storage and cost and then getting it on-Chain to perform various operations.
-
A game of Stats vs Stats for 2 Lens profiles to compete with the stat total they have on their Lens profile
-
Your total score depends on :
- Your Posts
- Your Following
- Your Followers
-
You will be selecting one Nature of your character:
- Earth , Water , Fire , Nature.
-
You can have 3 scores to Fight your opponent in the Fight.
- Attack 1,Attack 2, Attack 3
-
We are fetching above data from a Lens oracle deployed on Phala Network with Lens Api and a Private Api created by me to store Off Chain Data..
-
A consumer contract is deployed on Polygon-Mumbai to fetch data from Lens Oracle .
-
If your score is greater and Your Powers are good Enough, you win.
The winner's score is updated in a Unique Nft with onChain Score ,and everytime a user wins,the score is updated .
- OpenSea-Collection of Nfts : (https://testnets.opensea.io/collection/chain-battles-275)
- [On-Chain Nft as Score Proof of Winning]
- The opponent is selected randomly .
This is a RainbowKit + wagmi + Next.js project bootstrapped with create-rainbowkit
.
First, Install packages:
npm install
run server :
npm run dev
Open http://localhost:3000 with your browser to see the result.