Skip to content
Verified contractPartial

BSAFEWhiteList

Address0x075da1974d2c9e07b7ee5de3fd208fc03d363391
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.4.25

 

Same code

Only this contract

 

Details

Compiler
solc 0.4.25+commit.59dbf8f1
Language
solidity
Optimization
No
EVM version
byzantium
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
6,791,255
Creation transaction
0x159c9b2bc7…f051f8d316

BSAFEWhiteList.sol

pragma solidity ^ 0.4 .25;

contract BSAFEWhiteList  {
    
    address public owner;
    
    mapping ( address => bool ) public whitelist;
    mapping ( address => bool ) public blacklist;
    
    event AddressWhiteListed(address _whitelisted);
    event AddressDeWhiteListed(address _dewhitelisted);
    event AddressBlackListed(address _blacklisted);
    event AddressDeBlackListed(address _dewhitelisted);
    
    
    
    modifier onlyOwner {
		require( msg.sender == owner );
		_;
	}
    
   
    constructor(){
        
        owner = msg.sender;
        
    }
   
   
   function whitelistAddress( address _address ) public onlyOwner{
       
       whitelist[ _address ] = true;
       emit AddressWhiteListed( _address);
       
       
   }
   
   
   function blacklistAddress( address _address ) public onlyOwner{
       
       blacklist[ _address ] = true;
       emit AddressBlackListed( _address);
       
   }
   
   
   function dewhitelistAddress( address _address ) public onlyOwner{
       
       whitelist[ _address ] = false;
       emit AddressDeWhiteListed( _address);
       
       
   }
   
   
   function deblacklistAddress( address _address ) public onlyOwner{
       
       blacklist[ _address ] = false;
       emit AddressDeBlackListed( _address);
       
       
   }
   
   
   function checkAddress ( address _address ) constant public returns(bool) {
       
       if ( whitelist [ _address ] == true && blacklist[ _address ] == false ) return true;
       
       return false;
       
   }
   
   
   function changeOwner( address _newowner ) public onlyOwner {
       
       owner = _newowner;
       
   }
   
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "byzantium",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.