Whitelist

Under Review

UTILITYTOOLSDOCUMENTS

Contract purpose

This is a contract used to make a list of people or groups regarded as acceptable or trustworthy.

Exposed methods

addToWhitelist lets the owner add an address to the whitelist

parameter nametypedetails
addraddressthe address to be added to the list

removeFromWhitelist lets the owner remove an address to the whitelist

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

isWhitelisted 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 whitelist

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

owner returns the owner address

Reviewed by Modex
Buy

Copyright © Modex Marketplace