-
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 -
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
-
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:
- get wallet balance
- get the price of *
a) link b) bitcoin c) ethereum d) augur e) ripple ...etc
-
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!
-
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.
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
- quote * of * to *
Ex: quote 5 of matic to dai
Ex: quote 10 of chainlink to sushi
Ex: quote 20 of Aave to frax
- 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.
Rinkeby Etherscan
Truflation yoycontract we deployed: https://rinkeby.etherscan.io/address/0xA6D660d289509803FD16D478C5ae8Ef95cCE30BD
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.
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]
Note: This portion of the instructions is for our team. Not intended for hackathon but for future use cases.
-
If anything on frontend has changed, cd into hapticreact and first run:
$ npm run build -
To run the application itself cd into hapticdjango and run:
python3 manage.py runserver -
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.




