Wanted People List

Under Review

TOOLSDOCUMENTS

Contract purpose

Contract that manages a list of wanted people

Contract parameters

sysmanager : address of the system manager

Exposed methods and variables

addPerson : allows the manager to introduce a new person in the list

parameter nametypedetails
_ssnintegerthe social security number of the wanted person
_namestringthe name of the person
_lastAddressstringthe address where the person was last seen
_lastSeenDateintegerthe time when the person was last seen (unix epoch time)

personCaught : called by the manager to mark a person as caught

parameter nametypedetails
_ssnintegerthe social security number of the wanted person

personSeen : called by someone who has seen the person

parameter nametypedetails
_ssnintegerthe social security number of the wanted person
_wherestringthe address where the person was seen now
_whenintegerthe time when the person was seen now (unix epoch time)

getPersonDetails : returns the details about a person

parameter nametypedetails
_ssnintegerthe social security number of the person

isPersonCaught : returns true if the person was caught or false if he/she is still free

parameter nametypedetails
_ssnintegerthe social security number of the person
Reviewed by Modex
Buy

Copyright © Modex Marketplace