Hen0k / Location-Based-Refunding-Smart-Contract

An Ethereum-smart-contract based dApp that verifies the other party in the contract has stayed within a predefined geographical location and handles payment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location-Based-Refunding-Smart-Contract

ContributorsForksStargazersIssuesMIT LicenseLinkedIn

This project is aimed to be used when one party, for example an employer, agrees to pay another party, for example an employee, for being present in a certain geographic area for a certain duration. The employee’s phone sends its GPS location to a smart contract at a certain interval. Based on the pre-agreed contract codified in an Ethereum smart contract, a cryptocurrency payment is executed when all the agreed conditions are met.

If, at any point, the GPS sensor indicates that an employee is outside the range of the agreed GPS area, the contract state will be updated to indicate that it is out of compliance. The GPS data will be gathered from the participant's phone sensor through a companion mobile app. The app will not require much interaction once it is installed. It will send out geo-location data at random hours throughout the day.

Components

Smart-Contract

located at smart-contract This is a smart contract built using Truffle

Mobile-App

located at mobile-app The mobile app is built using React-Native. It is heavily based on this log-rock-blog about accessing geo location data from a phone.

Web/Mobile-App (Admin portal)

located at admin-portal This is the dashboard where the employer would be able to add new coordinates or employees. It is built with React.

Contributors

Contributors list

Made with contrib.rocks.

About

An Ethereum-smart-contract based dApp that verifies the other party in the contract has stayed within a predefined geographical location and handles payment.

License:MIT License


Languages

Language:JavaScript 29.1%Language:Java 27.3%Language:C++ 12.4%Language:Solidity 7.1%Language:Objective-C++ 6.5%Language:Objective-C 4.3%Language:Starlark 3.4%Language:HTML 3.0%Language:Makefile 2.7%Language:Ruby 2.4%Language:CSS 1.8%