Blacklist

Under Review

DOCUMENTSUTILITY

Contract purpose

This is a contract used to make a list of people or groups regarded as unacceptable or untrustworthy and often marked down for punishment or exclusion.

Exposed methods

addToBlacklist lets the owner add an address to the blacklist

parameter nametypedetails
addraddressthe address to be added to the list

removeFromBlacklist lets the owner remove an address to the blacklist

parameter nametypedetails
addraddressthe address to be removed to the list

renounceOwnership Allows the current owner to relinquish control of the contract.

transferOwnership Allows the current owner to transfer control of the contract to a newOwner.

parameter nametypedetails
newOwneraddressthe address to transfer ownership to

isBlacklisted shows the details (number of rooms, price per room and booked rooms) for a hotel from the list

parameter nametypedetails
addraddresscheck if the address is the blacklist

isBlacklisted true if msg.sender is the owner of the contract.

owner returns the owner address

Reviewed by Modex
Buy

Copyright © Modex Marketplace