Code Monkey home page Code Monkey logo

kps-hotncold's Introduction

Welcome to Katy Perry's Hot'n Cold Weather Prediction Market

We are a prediction for the weather, with an intent to deploy against on Rootstock Network. This will bring the hotest weather prediction market to the coolest L2 secured by the largest and most secure blockchain.

Using the product is very simple. Simply connect your wallet, pick a city, a date, and pick whether the high temp will be hotter or colder. At the time of maturity, our weather oracle will update with the correct temperature, and after an arbitration period, the payout will be dispersed to the winning side. That's it!

Instructions to run:

(Assuming you have bun and foundry installed on your system) (1) Install dependencies -- bun i (2) Start the site --> bun dev (3) Start Anvil, in any new terminal window in the root dir enter --> anvil (4) Take the first 5 contract addresses and type out the private key in an .env field Similar to:

PRIVATE_KEY="User1"
USER_1="User2"
USER_2="User3"
USER_3="User4"
USER_4="User5"

(Anvil automatically sets up these test accounts for you on a local rpc) (5) Deploy contracts onto Anvil with foundry: (5a) replace line48 in script/DeployHeatMarket.sol with your metamask RSK address (5b) run the script: forge script --broadcast --via-ir --rpc-url http://localhost:8545 DeployHeatMarket

(6) Go to: http://localhost:5173/ (7) On the website enable local RPC (8) Have fun!

Team:

(1) McKittrick Kaminski --> https://github.com/mckamyk (2) Rashad Haddad --> https://github.com/rashadalh (3) Ash-inthewild --> https://github.com/ash-inthewild

kps-hotncold's People

Contributors

rashadalh avatar mckamyk avatar ash-inthewild 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.