Salmandabbakuti / super-reactive-nfts-r2w3

Stream into a contract and unlock items as amount-streamed rises

Home Page:https://superunlockable-mumbai.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super Unlockable NFTs

Unleash your money-streaming powers with SuperUnlockable collection. You can showcase your financial prowess and level up your character in the world of decentralized gaming. As you meet the required streaming thresholds, you'll gain access to mint these exceptional in-game items. The key? Your item's attributes dynamically respond to your streaming activity. The more you stream, the mightier your in-game item becomes. Wanna Try it out? SuperUnlockable Dapp

Note: To mint/unlock NFTs, you'll need to stream a minimum of 0.01 fDAIx to the SuperUnlockable Contract on Polygon Mumbai. You can get fDAIx by depositing fDAI into your account and then wrapping it to fDAIx on the Superfluid App.

Minting Your Super Powers

Once you've successfully streamed the required amount of fDAIx and minted your SuperUnlockable item, you'll unlock unique in-game powers and abilities. The key? Your item's attributes dynamically respond to your streaming activity. The longer and more consistently you stream, the more powerful your in-game item becomes.

Item Attributes

Your SuperUnlockable item attributes are determined by your streaming data:

Power: The amount of power you gain is based on the duration and consistency of your streaming activity. The longer and more the flowrate, the more powerful your in-game item becomes.

Speed: Your in-game item's speed in the game world is directly proportional to the amount of fDAIx/second you're streaming to the contract.

Age: The age of your in-game character reflects how long you've been actively streaming to the contract.

Screenshots

Stream Widget

Stream To Contract Widget

Items

Items

Getting Started

You can try out the demo here.

Copy the .env.example file to .env and fill in the required environment variables.

  1. Install required dependencies:
npm install
  1. Compile Contracts:
npx hardhat compile
  1. Deploy Contract:
npx hardhat deploy --network base
  1. Start the client application:

Copy the client/.env.example file to client/.env and fill in the required environment variables. Update client/utils/constants.js accordingly if you're using a different network/token or contract address than the default.

```bash
cd client

npm install

npm run dev
  1. Navigate to http://localhost:3000/ in your browser to view the application. Start streaming to the contract to unlock the NFTs.

Demo

Credits & Resources:

Safety

This is experimental software and subject to change over time.

This is a proof of concept and is not ready for production use. It is not audited and has not been tested for security. Use at your own risk. I do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Stream into a contract and unlock items as amount-streamed rises

https://superunlockable-mumbai.vercel.app/

License:MIT License


Languages

Language:JavaScript 69.4%Language:Solidity 24.6%Language:CSS 5.9%