Skip to content

DecoratedWings/HapticDao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 
 
 

Repository files navigation

HapticDao

home

Instructions For Judges for Chainlink Hackathon 2022:

  1. We are hosting the react application via Moralis: https://hlwxa0g0qo9f.usemoralis.com/ --> Can test running application here :) If you encounter any issues please let us know. Dashboard, DAO, and Truflation require you to be on Rinkeby network.

    Alternatively, you may clone the repository and cd into hapticdao/hapticreact, then just like any other react project:

    $ npm install
    
    $ npm run start
    
  2. IMPORTANT!!!!!!!! Make sure you have metamask in your browser, otherwise some pages will not appear! Dashboard, DAO, and Truflation use Rinkeby network. DEX uses Polygon mainnet, but will prompt users to switch chains automatically if they forget to switch from Rinkeby. Also make sure to login with the login button on our UI, we use Moralis to authenticate individual's Metamask

  3. Dashboard

    dashboard

    We are using Rinkeby chanlink price feeds. Make sure your metamask chain is rinkeby. There is a limited offering of tokens on rinkeby, and from that offering we chose the most popular ones for now.

    Verbal Commands:

    1. get wallet balance
    2. get the price of *

    a) link b) bitcoin c) ethereum d) augur e) ripple ...etc

  1. DAO

    dao

    DAO is pretty straightforward. You can add or vote on proposals. You will see cards be added to the page once the transaction is complete so refresh the page. Voting or Adding proposals will charge 0.01 ether on Rinkeby network. Make sure you are connected to Rinkeby network!


  1. Truflation

    truflation

    Can view latest inflation data. Our keeper that runs a 5 minute sync can be found here: https://keepers.chain.link/rinkeby/568 If you need our team to fund the keeper, please let us know.


  1. DEX

    dex

You will be automatically prompted to switch to matic mainnet. Moralis OneInch plugin requires mainnet to be used. We have elected to use solely polygon mainnet for now. OneInch has a limited number of token addresses it supports on each network. Once again we selected the most popular from that limited list for this iteration.

Verbal Commands

  1. quote * of * to *

Ex: quote 5 of matic to dai
Ex: quote 10 of chainlink to sushi
Ex: quote 20 of Aave to frax


  1. swap * of * to *

Ex: swap 5 of matic to dai
Ex: swap 10 of dai to link
Ex: swap 3 of Aave to sushi

Please note that it is probably better to use smaller amounts of currency as this is on matic mainnet and costs real money. In the console tooling you can view that addresses and verbal transcripts are picked up properly. If you receive a 400 in the request to OneInch (in the console) it is most likely due to insufficient funds. Navigate to the network tab and select that request to see proof of this.

For Uniswap: we did not add any special functionality here. It is literally just uniswap.

LINKS

Rinkeby Etherscan
Truflation yoycontract we deployed: https://rinkeby.etherscan.io/address/0xA6D660d289509803FD16D478C5ae8Ef95cCE30BD

DAO Contract: https://rinkeby.etherscan.io/address/0x49bf054e5dc02998ecd4c31f94cab38821c5983f#readContract

Truflation Keepers Contract for Categories: https://rinkeby.etherscan.io/address/0xaE02354d16019b1A6dA8c2E184Fe9903cEacD785#writeContract

Please note for the keepers contract we were instructed by Truflation team to use placeholder functions until they make the API available.

Final Notes:

For any questions or concerns please reach out to me or our team on devpost: https://devpost.com/software/hapticdao

Or at our email: [email protected]




Running The Application To Include Python backend -> NOT HACKATHON RELATED


Note: This portion of the instructions is for our team. Not intended for hackathon but for future use cases.


  1. If anything on frontend has changed, cd into hapticreact and first run:

    $ npm run build
    
  2. To run the application itself cd into hapticdjango and run:

    python3 manage.py runserver
    
  3. To test vibrations on mobile device:
    i) Determine IP address of machine you are running the app on
    ii) Grab the port you are running the react app on
    iii) On your mobile browser: search <IP_ADDRESS>:


Please Note that you must have a metamask wallet for certain pages to appear. Otherwise you will only see a blank page.

About

Haptics enabled Dapp that has additional accessibility features for those with disabilities. The focus group is for those who are visually impaired or blind, however we hope to serve all groups with as many forthcoming features as possible. The goal of this project is to allow for true inclusivity and accessibility in the DeFi/blockchain space.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors