Skip to content

aeyshubh/lens-Phite2

Repository files navigation

Lens Phite V2 with On-Chain Notifications , Score Nft and Super Powers .

image

  • [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) notif

  • 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 . nft

  • 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 .

  • Polygon Consumer Contract .

  • Phala Dashboard

  • If your score is greater and Your Powers are good Enough, you win. stats

The winner's score is updated in a Unique Nft with onChain Score ,and everytime a user wins,the score is updated .

Instructions :

This is a RainbowKit + wagmi + Next.js project bootstrapped with create-rainbowkit.

Getting Started

First, Install packages:

npm install

run server :

npm run dev

Open http://localhost:3000 with your browser to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages