Skip to content

iaverypadberg/NFT-Hunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT-Hunt

We create a website to better display what we are trying to accompmlish.

Website: https://zahifarah.github.io/nft-hunt/

Note: As a group, this is the first time any of us have tried to develop a dapp. A lot of time was spend watching videos, learning solidity, and mapping out what we should aim for as a final product. We set our sights pretty high and definitely did not achieve exaclty what we set out to do. Instead, we learned a whole lot about the strucuture of dapps and the approach we would take next time we tackle something like this.

Hardhat: A lot of time was spent researching how to implement the chainlink oracle in hardhat, but that did not come to fruition. However, we did write a smart contract in hardhat that checks a longitude and latitude to see if it is in the specified location. The real bummer is that we were not able to put it all together for a final product. Next year!

Our idea is to create a real world NFT hunt.

NFT Creator can place an NFT somewhere on the map.

NFT hunter can search for NFT's on the map.

Rules: Users will travel to predetermined locations to collect NFT’s representing those areas. The corresponding NFT will cost some eth.

The only way to aquire one of these NFT's is to be in the predetermined location.

If the user would like to purchase the NFT, they can initiate the smart contract using the eth in their wallet.

Initial Steps

After looking into the two leading decentralized geolocation projects, XYO and FOAM, it is obvious that the space has some serious development issues. Both of these projects are plagued by their inability to produce a dynamic location. This severely limits the usability of the network and renders it almost useless for our purposes.

As a temporary solution it is going to be best to use GPS data from a user’s phone. This would look like the following: A user walks up to a predetermined location. The user sends its location data to an oracle. The oracle sends the GPS data to the smart contract presiding over that area. If the users phone gps data is within the acceptable latitude/longitude combination, they will be given the oppotunity to purchase the NFT.

Other Ideas: Use VRF to generate NFT’s on different parts on the planet. One could be generated for every square mile.

Can increase NFT generation based on density of population in those areas.

Takes a certain amount of time for that NFT to become purchasable in that location again. Include a map showing where the NFT is located and show distance from current user location.

Testing Steps:

  1. Copy and paste the Get Location file into remix.
  2. Compile and run the contract on the Kovan testnet.
  3. This contract will need eth and link funding via metamask.
  4. Link Faucet: https://kovan.chain.link/
  5. Eth Faucet: https://faucet.kovan.network/ (You will need to login with github for this one)
  6. Make sure you select the right contract.
  7. After the contract has been created, you should immediately send 1 link to the contract. This will ensure that when you hit "Request Latitude" button the chainlink oracle is being paid.
  8. Accpet the transaction.
  9. Wait 30 seconds
  10. Hit the Latitude button. It should be 2 :)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors