Skip to content

BlueCrypto/Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueScan

This repo contains a Solidity smart contract that allows for scan requests to be made using multiple different payment models. Once a scan request is made, a registered worker can retrieve the scan request job, process the request, and submit his results. All results are stored within the smart contract itself.

Administration

Administrators can only be managed by the owner. Their addresses are managed using the addAuthorizedAdmin and removeAuthorizedAdmin methods. Administrators are responsible for the following.

  1. Management of the available payment methods (tokens) and their exchange / holding rates.
  2. Management of the available scan workers.
  3. Management of the available score types within a scan result.

Workers

Workers can only be managed by administrators. Their addresses are managed using the addWorker and removeWorker methods. Works are responsible for the following.

  1. Listening for the ScanResultSubmitted events and retrieve jobs.
  2. Proccessing of said job and submitting the results.

Testing

To run the test suite for the BlueScan contract, run the following.

npm install
truffle develop
test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published