Giter VIP home page Giter VIP logo

skyfire-dao / unicode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 18.61 MB

Skyfire DAO delivers games for distribution events for eg. Liquidity Mining events. You can utilize our contracts and game for your LM event. Skyfire DAO tokens are rewarded to all partner LM events.

Home Page: http://3.84.149.133/public/index.html

License: Creative Commons Zero v1.0 Universal

Shell 0.56% JavaScript 18.93% Solidity 28.29% TypeScript 45.68% HTML 6.54%
ethereum uniswap uniswap-v3 merkletree liquidity-mining gamefi

unicode's Introduction

Unicode - Hackathon

Skyfire DAO delivers games for distribution events for eg. Liquidity Mining events. You can utilize our contracts and game for your LM event. Skyfire DAO tokens are rewarded to all partner LM events. For partnerships, just create a github issue and we will get in touch.

Innovation

Playing a game allows for a better UX for the end user to participate in the Defi ecosystem and game incentives makes it interesting for a wider variety of audience to participate in Liquidity Mining events for example by making use of Uniswap's Staking contract.

We extended the Uniswap's Merkle Distributor contract so that a single contract can be used for multiple epochs or snapshots and this further ensures fairness as the scores of each epoch are provable verifiable on chain.

Sybil Mitigation

We intend to have checks across snapshots so that the leader board distribution does not always favor particular addresses. Additionaly, every partnership gained via buying skyfire DAO tokens allows the partner to create multiple levels and unique challenges to prevent bot farm attacks.

Use Cases

Bob has a DAO and he wants get more people to participate in his community so he runs a Liquidity Mining event using Uniswap's stake contracts.

In order to increase participation, he buys skyfire DAO tokens and integrates the game as an option for his users by connecting the stake contract to the merkle distributor.

How we made it?

We utilize Gamemaker Studio and Uniswap's Merkle Distribution to distribute tokens for different snapshots as per the rewards in the LM program. All game sprites and graphics were created during the hackathon itself. The Uniswap Merkle distribution contract was also integrated and modified.

Deployment details

Site

http://3.84.149.133/public/index.html

Contract

https://rinkeby.etherscan.io/address/0x47455f503Ee95A2E1E800b4fE5199604499f3316#writeContract

How to run

npm install
(create ur own .env file)
npm start run

TODOS

  1. Check whether metamask is connected before game begins
  2. Take a LP token as payment for game to start

Advanced Sample Hardhat Project

This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the ecosystem.

The project comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts. It also comes with a variety of other tools, preconfigured to work with the project code.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix

Etherscan verification

To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.

In this project, copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract:

hardhat run --network ropsten scripts/sample-script.ts

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

Performance optimizations

For faster runs of your tests and scripts, consider skipping ts-node's type checking by setting the environment variable TS_NODE_TRANSPILE_ONLY to 1 in hardhat's environment. For more details see the documentation.

unicode's People

Contributors

beowoofs avatar crypticnfk avatar cryptobugbear avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.