← Back to home

WXM Explorer v3

Enhancing the WXM Explorer to allow bounty creation and management.

Screenshots

WXM Explorer v3 screenshot 1
WXM Explorer v3 screenshot 2
WXM Explorer v3 screenshot 3
WXM Explorer v3 screenshot 4

Problem Statement

WXM Explorer V3 is an extension forWXM Explorerwith some additional features such as bounty creation, bounty map and bounty claiming.Changes that I madeFrontend-Added a page for bountiesAdded WalletConnectAdded BountyCells to MapBoxAdded Bounty HeatMap to MapBoxAdded feature to create/contribute to a bounty.Smart Contracts-AddedBountyManager.solIntegrated Chainlink Functions for seamless and secured bounty claiming.

Solution

Bounty FlowBounty Creation- Anyone can connect their wallet in the website and Go to "Bounty View" and click in the region in which they want to create the bounty.Bounty Contribution- Users can also contribute WXM tokens to the existing bounties.Claiming Bounty-Get Bearer token fromWXM APIDownload thisscriptRun the script -node user_request.js "YOUR_BEARER_TOKEN" "YOUR_DEVICE_ID" "YOUR_REGISTERED_WALLET" "YOUR_PRIVATE_KEY" "BOUNTY_ID"Claim Validation-Chainlink Functions make an API call to get the user's device info.It also checks if the device is set up in the eligible bounty region by creating a virtual polygon around the bounty's center.At the end, it checks if the claim request is made by the registered wallet address.Adapting to the current WXM ImplementationThe frontend changes have been made keeping the WXM team’s approach in consideration.This makes it easy to be taken to production just by adding some minor UI fixesThe Chainlink script execution can be added to the API Backend to make the flow more seamlessAn extra layer of bearer token encryption while claiming bounty would make this flow un-breachable

Hackathon

HackFS 2024

2024

Prizes

  • 🏆

    Best Explorer Enhancement or Protocol Use1st place (USD + Weather Station)

    WeatherXM

Contributors