ETH Price: $3,508.57 (+14.28%)
Gas: 43 Gwei

Token

BlockCities (BKC)
 

Overview

Max Total Supply

3,232 BKC

Holders

636

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
Maker: Dai Stablecoin
Balance
1 BKC
0x6B175474E89094C44Da98b954EedeAC495271d0F
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Collect & build rare digital buildings

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BlockCities

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-04-02
*/

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @return the address of the owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner());
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0));
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev give an account access to this role
     */
    function add(Role storage role, address account) internal {
        require(account != address(0));
        require(!has(role, account));

        role.bearer[account] = true;
    }

    /**
     * @dev remove an account's access to this role
     */
    function remove(Role storage role, address account) internal {
        require(account != address(0));
        require(has(role, account));

        role.bearer[account] = false;
    }

    /**
     * @dev check if an account has this role
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0));
        return role.bearer[account];
    }
}

// File: openzeppelin-solidity/contracts/access/roles/WhitelistAdminRole.sol

pragma solidity ^0.5.0;


/**
 * @title WhitelistAdminRole
 * @dev WhitelistAdmins are responsible for assigning and removing Whitelisted accounts.
 */
contract WhitelistAdminRole {
    using Roles for Roles.Role;

    event WhitelistAdminAdded(address indexed account);
    event WhitelistAdminRemoved(address indexed account);

    Roles.Role private _whitelistAdmins;

    constructor () internal {
        _addWhitelistAdmin(msg.sender);
    }

    modifier onlyWhitelistAdmin() {
        require(isWhitelistAdmin(msg.sender));
        _;
    }

    function isWhitelistAdmin(address account) public view returns (bool) {
        return _whitelistAdmins.has(account);
    }

    function addWhitelistAdmin(address account) public onlyWhitelistAdmin {
        _addWhitelistAdmin(account);
    }

    function renounceWhitelistAdmin() public {
        _removeWhitelistAdmin(msg.sender);
    }

    function _addWhitelistAdmin(address account) internal {
        _whitelistAdmins.add(account);
        emit WhitelistAdminAdded(account);
    }

    function _removeWhitelistAdmin(address account) internal {
        _whitelistAdmins.remove(account);
        emit WhitelistAdminRemoved(account);
    }
}

// File: openzeppelin-solidity/contracts/access/roles/WhitelistedRole.sol

pragma solidity ^0.5.0;



/**
 * @title WhitelistedRole
 * @dev Whitelisted accounts have been approved by a WhitelistAdmin to perform certain actions (e.g. participate in a
 * crowdsale). This role is special in that the only accounts that can add it are WhitelistAdmins (who can also remove
 * it), and not Whitelisteds themselves.
 */
contract WhitelistedRole is WhitelistAdminRole {
    using Roles for Roles.Role;

    event WhitelistedAdded(address indexed account);
    event WhitelistedRemoved(address indexed account);

    Roles.Role private _whitelisteds;

    modifier onlyWhitelisted() {
        require(isWhitelisted(msg.sender));
        _;
    }

    function isWhitelisted(address account) public view returns (bool) {
        return _whitelisteds.has(account);
    }

    function addWhitelisted(address account) public onlyWhitelistAdmin {
        _addWhitelisted(account);
    }

    function removeWhitelisted(address account) public onlyWhitelistAdmin {
        _removeWhitelisted(account);
    }

    function renounceWhitelisted() public {
        _removeWhitelisted(msg.sender);
    }

    function _addWhitelisted(address account) internal {
        _whitelisteds.add(account);
        emit WhitelistedAdded(account);
    }

    function _removeWhitelisted(address account) internal {
        _whitelisteds.remove(account);
        emit WhitelistedRemoved(account);
    }
}

// File: contracts/libs/Strings.sol

pragma solidity ^0.5.0;

library Strings {

    // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        uint i = 0;
        for (i = 0; i < _ba.length; i++) {
            babcde[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            babcde[k++] = _bb[i];
        }
        for (i = 0; i < _bc.length; i++) {
            babcde[k++] = _bc[i];
        }
        for (i = 0; i < _bd.length; i++) {
            babcde[k++] = _bd[i];
        }
        for (i = 0; i < _be.length; i++) {
            babcde[k++] = _be[i];
        }
        return string(babcde);
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
        return strConcat(_a, _b, "", "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, "", "");
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }
}

// File: contracts/IBlockCitiesCreator.sol

pragma solidity ^0.5.0;

interface IBlockCitiesCreator {
    function createBuilding(
        uint256 _exteriorColorway,
        uint256 _backgroundColorway,
        uint256 _city,
        uint256 _building,
        uint256 _base,
        uint256 _body,
        uint256 _roof,
        uint256 _special,
        address _architect
    ) external returns (uint256 _tokenId);
}

// File: openzeppelin-solidity/contracts/introspection/IERC165.sol

pragma solidity ^0.5.0;

/**
 * @title IERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface IERC165 {
    /**
     * @notice Query if a contract implements an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @dev Interface identification is specified in ERC-165. This function
     * uses less than 30,000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721.sol

pragma solidity ^0.5.0;


/**
 * @title ERC721 Non-Fungible Token Standard basic interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    function balanceOf(address owner) public view returns (uint256 balance);
    function ownerOf(uint256 tokenId) public view returns (address owner);

    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);

    function transferFrom(address from, address to, uint256 tokenId) public;
    function safeTransferFrom(address from, address to, uint256 tokenId) public;

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a `safeTransfer`. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
library SafeMath {
    /**
    * @dev Multiplies two unsigned integers, reverts on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
    * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
    * @dev Adds two unsigned integers, reverts on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
    * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/utils/Address.sol

pragma solidity ^0.5.0;

/**
 * Utility library of inline functions on addresses
 */
library Address {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

// File: openzeppelin-solidity/contracts/introspection/ERC165.sol

pragma solidity ^0.5.0;


/**
 * @title ERC165
 * @author Matt Condon (@shrugs)
 * @dev Implements ERC165 using a lookup table.
 */
contract ERC165 is IERC165 {
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
    /**
     * 0x01ffc9a7 ===
     *     bytes4(keccak256('supportsInterface(bytes4)'))
     */

    /**
     * @dev a mapping of interface id to whether or not it's supported
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev A contract implementing SupportsInterfaceWithLookup
     * implement ERC165 itself
     */
    constructor () internal {
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev implement supportsInterface(bytes4) using a lookup table
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev internal method for registering an interface
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff);
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol

pragma solidity ^0.5.0;






/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721 is ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from token ID to owner
    mapping (uint256 => address) private _tokenOwner;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to number of owned token
    mapping (address => uint256) private _ownedTokensCount;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    /*
     * 0x80ac58cd ===
     *     bytes4(keccak256('balanceOf(address)')) ^
     *     bytes4(keccak256('ownerOf(uint256)')) ^
     *     bytes4(keccak256('approve(address,uint256)')) ^
     *     bytes4(keccak256('getApproved(uint256)')) ^
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) ^
     *     bytes4(keccak256('isApprovedForAll(address,address)')) ^
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
     */

    constructor () public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0));
        return _ownedTokensCount[owner];
    }

    /**
     * @dev Gets the owner of the specified token ID
     * @param tokenId uint256 ID of the token to query the owner of
     * @return owner address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(owner != address(0));
        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = ownerOf(tokenId);
        require(to != owner);
        require(msg.sender == owner || isApprovedForAll(owner, msg.sender));

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId));
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != msg.sender);
        _operatorApprovals[msg.sender][to] = approved;
        emit ApprovalForAll(msg.sender, to, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address
     * Usage of this method is discouraged, use `safeTransferFrom` whenever possible
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function transferFrom(address from, address to, uint256 tokenId) public {
        require(_isApprovedOrOwner(msg.sender, tokenId));

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     *
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        transferFrom(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data));
    }

    /**
     * @dev Returns whether the specified token exists
     * @param tokenId uint256 ID of the token to query the existence of
     * @return whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     *    is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0));
        require(!_exists(tokenId));

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(ownerOf(tokenId) == owner);

        _clearApproval(tokenId);

        _ownedTokensCount[owner] = _ownedTokensCount[owner].sub(1);
        _tokenOwner[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        require(ownerOf(tokenId) == from);
        require(to != address(0));

        _clearApproval(tokenId);

        _ownedTokensCount[from] = _ownedTokensCount[from].sub(1);
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke `onERC721Received` on a target address
     * The call is not executed if the target address is not a contract
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }

        bytes4 retval = IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data);
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Private function to clear current approval of a given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol

pragma solidity ^0.5.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol

pragma solidity ^0.5.0;




/**
 * @title ERC-721 Non-Fungible Token with optional enumeration extension logic
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
    /**
     * 0x780e9d63 ===
     *     bytes4(keccak256('totalSupply()')) ^
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
     *     bytes4(keccak256('tokenByIndex(uint256)'))
     */

    /**
     * @dev Constructor function
     */
    constructor () public {
        // register the supported interface to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner));
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(index < totalSupply());
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
        return _ownedTokens[owner];
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        _ownedTokensIndex[tokenId] = _ownedTokens[to].length;
        _ownedTokens[to].push(tokenId);
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occcupied by
        // lasTokenId, or just over the end of the array if the token was the last one).
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length.sub(1);
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol

pragma solidity ^0.5.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721Metadata is IERC721 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: contracts/erc721/ERC721MetadataWithoutTokenUri.sol

pragma solidity ^0.5.0;




contract ERC721MetadataWithoutTokenUri is ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
    /**
     * 0x5b5e139f ===
     *     bytes4(keccak256('name()')) ^
     *     bytes4(keccak256('symbol()')) ^
     *     bytes4(keccak256('tokenURI(uint256)'))
     */

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

    /**
     * @dev Gets the token name
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);
    }
}

// File: contracts/erc721/CustomERC721Full.sol

pragma solidity ^0.5.0;




/**
 * @title Full ERC721 Token without token URI as this is handled in the base contract
 *
 * This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract CustomERC721Full is ERC721, ERC721Enumerable, ERC721MetadataWithoutTokenUri {
    constructor (string memory name, string memory symbol) public ERC721MetadataWithoutTokenUri(name, symbol) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

// File: contracts/BlockCities.sol

pragma solidity ^0.5.0;






contract BlockCities is CustomERC721Full, WhitelistedRole, IBlockCitiesCreator {
    using SafeMath for uint256;

    string public tokenBaseURI = "";

    event BuildingMinted(
        uint256 indexed _tokenId,
        address indexed _to,
        address indexed _architect
    );

    uint256 public totalBuildings = 0;
    uint256 public tokenIdPointer = 0;

    struct Building {
        uint256 exteriorColorway;
        uint256 backgroundColorway;
        uint256 city;
        uint256 building;
        uint256 base;
        uint256 body;
        uint256 roof;
        uint256 special;
        address architect;
    }

    mapping(uint256 => Building) internal buildings;

    constructor (string memory _tokenBaseURI) public CustomERC721Full("BlockCities", "BKC") {
        super.addWhitelisted(msg.sender);
        tokenBaseURI = _tokenBaseURI;
    }

    function createBuilding(
        uint256 _exteriorColorway,
        uint256 _backgroundColorway,
        uint256 _city,
        uint256 _building,
        uint256 _base,
        uint256 _body,
        uint256 _roof,
        uint256 _special,
        address _architect
    )
    public onlyWhitelisted returns (uint256 _tokenId) {
        uint256 tokenId = tokenIdPointer.add(1);

        // reset token pointer
        tokenIdPointer = tokenId;

        // create building
        buildings[tokenId] = Building({
            exteriorColorway : _exteriorColorway,
            backgroundColorway : _backgroundColorway,
            city : _city,
            building: _building,
            base : _base,
            body : _body,
            roof : _roof,
            special: _special,
            architect : _architect
            });

        totalBuildings = totalBuildings.add(1);

        // mint the actual token magic
        _mint(_architect, tokenId);

        emit BuildingMinted(tokenId, _architect, _architect);

        return tokenId;
    }

    /**
     * @dev Returns an URI for a given token ID
     * Throws if the token ID does not exist. May return an empty string.
     * @param tokenId uint256 ID of the token to query
     */
    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId));
        return Strings.strConcat(tokenBaseURI, Strings.uint2str(tokenId));
    }

    function attributes(uint256 _tokenId) public view returns (
        uint256 _exteriorColorway,
        uint256 _backgroundColorway,
        uint256 _city,
        uint256 _building,
        uint256 _base,
        uint256 _body,
        uint256 _roof,
        uint256 _special,
        address _architect
    ) {
        require(_exists(_tokenId), "Token ID not found");
        Building storage building = buildings[_tokenId];

        return (
        building.exteriorColorway,
        building.backgroundColorway,
        building.city,
        building.building,
        building.base,
        building.body,
        building.roof,
        building.special,
        building.architect
        );
    }

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        return _tokensOfOwner(owner);
    }

    function burn(uint256 _tokenId) public onlyWhitelisted returns (bool) {
        _burn(_tokenId);

        delete buildings[_tokenId];

        return true;
    }

    function updateTokenBaseURI(string memory _newBaseURI) public onlyWhitelisted {
        require(bytes(_newBaseURI).length != 0, "Base URI invalid");
        tokenBaseURI = _newBaseURI;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newBaseURI","type":"string"}],"name":"updateTokenBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenIdPointer","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBuildings","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceWhitelistAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenBaseURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addWhitelistAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_exteriorColorway","type":"uint256"},{"name":"_backgroundColorway","type":"uint256"},{"name":"_city","type":"uint256"},{"name":"_building","type":"uint256"},{"name":"_base","type":"uint256"},{"name":"_body","type":"uint256"},{"name":"_roof","type":"uint256"},{"name":"_special","type":"uint256"},{"name":"_architect","type":"address"}],"name":"createBuilding","outputs":[{"name":"_tokenId","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isWhitelistAdmin","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"attributes","outputs":[{"name":"_exteriorColorway","type":"uint256"},{"name":"_backgroundColorway","type":"uint256"},{"name":"_city","type":"uint256"},{"name":"_building","type":"uint256"},{"name":"_base","type":"uint256"},{"name":"_body","type":"uint256"},{"name":"_roof","type":"uint256"},{"name":"_special","type":"uint256"},{"name":"_architect","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_tokenBaseURI","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":true,"name":"_to","type":"address"},{"indexed":true,"name":"_architect","type":"address"}],"name":"BuildingMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistedAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistedRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistAdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistAdminRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"approved","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"}]

60a06040819052600060808190526200001b91600d9162000463565b506000600e556000600f553480156200003357600080fd5b506040516200261a3803806200261a833981018060405260208110156200005957600080fd5b8101908080516401000000008111156200007257600080fd5b820160208101848111156200008657600080fd5b8151640100000000811182820187101715620000a157600080fd5b5050604080518082018252600b81527f426c6f636b4369746965730000000000000000000000000000000000000000006020808301919091528251808401909352600383527f424b4300000000000000000000000000000000000000000000000000000000009083015291945090925090508181620001497f01ffc9a70000000000000000000000000000000000000000000000000000000064010000000062000265810204565b6200017d7f80ac58cd0000000000000000000000000000000000000000000000000000000064010000000062000265810204565b620001b17f780e9d630000000000000000000000000000000000000000000000000000000064010000000062000265810204565b8151620001c690600990602085019062000463565b508051620001dc90600a90602084019062000463565b50620002117f5b5e139f0000000000000000000000000000000000000000000000000000000064010000000062000265810204565b505050506200022f33620002d2640100000000026401000000009004565b620002483364010000000062000b3d6200032482021704565b80516200025d90600d90602084019062000463565b505062000508565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200029557600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b620002ed600b82640100000000620018086200035b82021704565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b6200033833640100000000620003b6810204565b15156200034457600080fd5b6200035881640100000000620003d9810204565b50565b600160a060020a03811615156200037157600080fd5b6200038682826401000000006200042b810204565b156200039157600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000620003d3600b836401000000006200144a6200042b82021704565b92915050565b620003f4600c82640100000000620018086200035b82021704565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b6000600160a060020a03821615156200044357600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004a657805160ff1916838001178555620004d6565b82800160010185558215620004d6579182015b82811115620004d6578251825591602001919060010190620004b9565b50620004e4929150620004e8565b5090565b6200050591905b80821115620004e45760008155600101620004ef565b90565b61210280620005186000396000f3fe60806040526004361061018a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461018f57806306fdde03146101ec578063081812fc14610276578063095ea7b3146102bc57806310154bad146102f757806318160ddd1461032a5780632295ee5b1461035157806323b872dd14610404578063291d9549146104475780632f745c591461047a5780633af32abf146104b35780633b3a1a7a146104e65780633ba5c722146104fb57806342842e0e1461051057806342966c68146105535780634c5a628c1461057d5780634e99b800146105925780634f6ccce7146105a75780636352211e146105d157806370a08231146105fb5780637362d9c81461062e5780638462151c1461066157806390708008146106e457806395d89b4114610749578063a22cb4651461075e578063b88d4fde14610799578063bb5f747b1461086c578063c87b56dd1461089f578063d05dcc6a146108c9578063d6cd947314610943578063e985e9c514610958575b600080fd5b34801561019b57600080fd5b506101d8600480360360208110156101b257600080fd5b50357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916610993565b604080519115158252519081900360200190f35b3480156101f857600080fd5b506102016109cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023b578181015183820152602001610223565b50505050905090810190601f1680156102685780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028257600080fd5b506102a06004803603602081101561029957600080fd5b5035610a62565b60408051600160a060020a039092168252519081900360200190f35b3480156102c857600080fd5b506102f5600480360360408110156102df57600080fd5b50600160a060020a038135169060200135610a94565b005b34801561030357600080fd5b506102f56004803603602081101561031a57600080fd5b5035600160a060020a0316610b3d565b34801561033657600080fd5b5061033f610b5d565b60408051918252519081900360200190f35b34801561035d57600080fd5b506102f56004803603602081101561037457600080fd5b81019060208101813564010000000081111561038f57600080fd5b8201836020820111156103a157600080fd5b803590602001918460018302840111640100000000831117156103c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b63945050505050565b34801561041057600080fd5b506102f56004803603606081101561042757600080fd5b50600160a060020a03813581169160208101359091169060400135610bfd565b34801561045357600080fd5b506102f56004803603602081101561046a57600080fd5b5035600160a060020a0316610c22565b34801561048657600080fd5b5061033f6004803603604081101561049d57600080fd5b50600160a060020a038135169060200135610c3f565b3480156104bf57600080fd5b506101d8600480360360208110156104d657600080fd5b5035600160a060020a0316610c8c565b3480156104f257600080fd5b5061033f610ca5565b34801561050757600080fd5b5061033f610cab565b34801561051c57600080fd5b506102f56004803603606081101561053357600080fd5b50600160a060020a03813581169160208101359091169060400135610cb1565b34801561055f57600080fd5b506101d86004803603602081101561057657600080fd5b5035610ccd565b34801561058957600080fd5b506102f5610d45565b34801561059e57600080fd5b50610201610d50565b3480156105b357600080fd5b5061033f600480360360208110156105ca57600080fd5b5035610dde565b3480156105dd57600080fd5b506102a0600480360360208110156105f457600080fd5b5035610e13565b34801561060757600080fd5b5061033f6004803603602081101561061e57600080fd5b5035600160a060020a0316610e37565b34801561063a57600080fd5b506102f56004803603602081101561065157600080fd5b5035600160a060020a0316610e6a565b34801561066d57600080fd5b506106946004803603602081101561068457600080fd5b5035600160a060020a0316610e87565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156106d05781810151838201526020016106b8565b505050509050019250505060405180910390f35b3480156106f057600080fd5b5061033f600480360361012081101561070857600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135600160a060020a0316610ee8565b34801561075557600080fd5b50610201611031565b34801561076a57600080fd5b506102f56004803603604081101561078157600080fd5b50600160a060020a0381351690602001351515611092565b3480156107a557600080fd5b506102f5600480360360808110156107bc57600080fd5b600160a060020a038235811692602081013590911691604082013591908101906080810160608201356401000000008111156107f757600080fd5b82018360208201111561080957600080fd5b8035906020019184600183028401116401000000008311171561082b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611116945050505050565b34801561087857600080fd5b506101d86004803603602081101561088f57600080fd5b5035600160a060020a031661113e565b3480156108ab57600080fd5b50610201600480360360208110156108c257600080fd5b5035611151565b3480156108d557600080fd5b506108f3600480360360208110156108ec57600080fd5b5035611207565b60408051998a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e0840152600160a060020a031661010083015251908190036101200190f35b34801561094f57600080fd5b506102f56112e8565b34801561096457600080fd5b506101d86004803603604081101561097b57600080fd5b50600160a060020a03813581169160200135166112f1565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19811660009081526020819052604090205460ff165b919050565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a575780601f10610a2c57610100808354040283529160200191610a57565b820191906000526020600020905b815481529060010190602001808311610a3a57829003601f168201915b505050505090505b90565b6000610a6d8261131f565b1515610a7857600080fd5b50600090815260026020526040902054600160a060020a031690565b6000610a9f82610e13565b9050600160a060020a038381169082161415610aba57600080fd5b33600160a060020a0382161480610ad65750610ad681336112f1565b1515610ae157600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b463361113e565b1515610b5157600080fd5b610b5a8161133c565b50565b60075490565b610b6c33610c8c565b1515610b7757600080fd5b80511515610be657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b8051610bf990600d90602084019061201e565b5050565b610c073382611384565b1515610c1257600080fd5b610c1d8383836113e3565b505050565b610c2b3361113e565b1515610c3657600080fd5b610b5a81611402565b6000610c4a83610e37565b8210610c5557600080fd5b600160a060020a0383166000908152600560205260409020805483908110610c7957fe5b9060005260206000200154905092915050565b6000610c9f600c8363ffffffff61144a16565b92915050565b600f5481565b600e5481565b610c1d8383836020604051908101604052806000815250611116565b6000610cd833610c8c565b1515610ce357600080fd5b610cec82611481565b5060009081526010602052604081208181556001808201839055600282018390556003820183905560048201839055600582018390556006820183905560078201929092556008018054600160a060020a031916905590565b610d4e33611493565b565b600d805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dd65780601f10610dab57610100808354040283529160200191610dd6565b820191906000526020600020905b815481529060010190602001808311610db957829003601f168201915b505050505081565b6000610de8610b5d565b8210610df357600080fd5b6007805483908110610e0157fe5b90600052602060002001549050919050565b600081815260016020526040812054600160a060020a0316801515610c9f57600080fd5b6000600160a060020a0382161515610e4e57600080fd5b50600160a060020a031660009081526003602052604090205490565b610e733361113e565b1515610e7e57600080fd5b610b5a816114db565b6060610e9282611523565b805480602002602001604051908101604052809291908181526020018280548015610edc57602002820191906000526020600020905b815481526020019060010190808311610ec8575b50505050509050919050565b6000610ef333610c8c565b1515610efe57600080fd5b600f54600090610f1590600163ffffffff61153d16565b600f81905560408051610120810182528d815260208082018e81528284018e8152606084018e8152608085018e815260a086018e815260c087018e815260e088018e8152600160a060020a038e81166101008b0190815260008d81526010909a529a9098209851895595516001808a019190915594516002890155925160038801559051600487015551600586015551600685015590516007840155925160089092018054600160a060020a03191692909116919091179055600e54919250610fde919061153d565b600e55610feb8382611556565b604051600160a060020a03841690819083907f90ac329ea07c00bb85a3b33470a0318e5d1a5e181fd50431248bc3c75069527790600090a49a9950505050505050505050565b600a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a575780601f10610a2c57610100808354040283529160200191610a57565b600160a060020a0382163314156110a857600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b611121848484610bfd565b61112d84848484611573565b151561113857600080fd5b50505050565b6000610c9f600b8363ffffffff61144a16565b606061115c8261131f565b151561116757600080fd5b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610c9f93909290918301828280156111f45780601f106111c9576101008083540402835291602001916111f4565b820191906000526020600020905b8154815290600101906020018083116111d757829003601f168201915b5050505050611202846116ef565b6117d3565b600080600080600080600080600061121e8a61131f565b151561128b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f6b656e204944206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b5050506000968752505060106020525050604090922080546001820154600283015460038401546004850154600586015460068701546007880154600890980154969a9599509397509195909491939091600160a060020a031690565b610d4e33611402565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600090815260016020526040902054600160a060020a0316151590565b61134d600c8263ffffffff61180816565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b60008061139083610e13565b905080600160a060020a031684600160a060020a031614806113cb575083600160a060020a03166113c084610a62565b600160a060020a0316145b806113db57506113db81856112f1565b949350505050565b6113ee838383611856565b6113f88382611965565b610c1d8282611a5c565b611413600c8263ffffffff611a9a16565b604051600160a060020a038216907f270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b690600090a250565b6000600160a060020a038216151561146157600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b610b5a61148d82610e13565b82611ae6565b6114a4600b8263ffffffff611a9a16565b604051600160a060020a038216907f0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e16590600090a250565b6114ec600b8263ffffffff61180816565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b600160a060020a0316600090815260056020526040902090565b60008282018381101561154f57600080fd5b9392505050565b6115608282611af0565b61156a8282611a5c565b610bf981611ba4565b600061158784600160a060020a0316611be8565b1515611595575060016113db565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015611628578181015183820152602001611610565b50505050905090810190601f1680156116555780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561167757600080fd5b505af115801561168b573d6000803e3d6000fd5b505050506040513d60208110156116a157600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a020000000000000000000000000000000000000000000000000000000014915050949350505050565b6060811515611732575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526109c6565b8160005b811561174a57600101600a82049150611736565b6060816040519080825280601f01601f191660200182016040528015611777576020820181803883390190505b50905060001982015b85156117ca57815160001982019160f860020a6030600a8a0601029184919081106117a757fe5b906020010190600160f860020a031916908160001a905350600a86049550611780565b50949350505050565b60408051602081810183526000808352835180830185528181528451928301909452815260609261154f928692869290611bf0565b600160a060020a038116151561181d57600080fd5b611827828261144a565b1561183157600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b82600160a060020a031661186982610e13565b600160a060020a03161461187c57600080fd5b600160a060020a038216151561189157600080fd5b61189a81611e45565b600160a060020a0383166000908152600360205260409020546118c490600163ffffffff611e8016565b600160a060020a0380851660009081526003602052604080822093909355908416815220546118fa90600163ffffffff61153d16565b600160a060020a03808416600081815260036020908152604080832095909555858252600190528381208054600160a060020a031916831790559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a03821660009081526005602052604081205461198f90600163ffffffff611e8016565b600083815260066020526040902054909150808214611a2c57600160a060020a03841660009081526005602052604081208054849081106119cc57fe5b90600052602060002001549050806005600087600160a060020a0316600160a060020a0316815260200190815260200160002083815481101515611a0c57fe5b600091825260208083209091019290925591825260069052604090208190555b600160a060020a0384166000908152600560205260409020805490611a5590600019830161209c565b5050505050565b600160a060020a0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600160a060020a0381161515611aaf57600080fd5b611ab9828261144a565b1515611ac457600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b610bf98282611e95565b600160a060020a0382161515611b0557600080fd5b611b0e8161131f565b15611b1857600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054611b599161153d565b600160a060020a0383166000818152600360205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000903b1190565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015611c44576020820181803883390190505b509050806000805b8851811015611caa578881815181101515611c6357fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611c8a57fe5b906020010190600160f860020a031916908160001a905350600101611c4c565b5060005b8751811015611d0c578781815181101515611cc557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611cec57fe5b906020010190600160f860020a031916908160001a905350600101611cae565b5060005b8651811015611d6e578681815181101515611d2757fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611d4e57fe5b906020010190600160f860020a031916908160001a905350600101611d10565b5060005b8551811015611dd0578581815181101515611d8957fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611db057fe5b906020010190600160f860020a031916908160001a905350600101611d72565b5060005b8451811015611e32578481815181101515611deb57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611e1257fe5b906020010190600160f860020a031916908160001a905350600101611dd4565b50909d9c50505050505050505050505050565b600081815260026020526040902054600160a060020a031615610b5a5760009081526002602052604090208054600160a060020a0319169055565b600082821115611e8f57600080fd5b50900390565b611e9f8282611ec1565b611ea98282611965565b600081815260066020526040812055610bf981611f80565b81600160a060020a0316611ed482610e13565b600160a060020a031614611ee757600080fd5b611ef081611e45565b600160a060020a038216600090815260036020526040902054611f1a90600163ffffffff611e8016565b600160a060020a038316600081815260036020908152604080832094909455848252600190528281208054600160a060020a03191690559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600754600090611f9790600163ffffffff611e8016565b60008381526008602052604081205460078054939450909284908110611fb957fe5b9060005260206000200154905080600783815481101515611fd657fe5b6000918252602080832090910192909255828152600890915260409020829055600780549061200990600019830161209c565b50505060009182525060086020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061205f57805160ff191683800117855561208c565b8280016001018555821561208c579182015b8281111561208c578251825591602001919060010190612071565b506120989291506120bc565b5090565b815481835581811115610c1d57600083815260209020610c1d9181019083015b610a5f91905b8082111561209857600081556001016120c256fea165627a7a723058203c1843e58e7de922cdefd48ed1d0a2473517362d3a3c178206af70de7291204300290000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004868747470733a2f2f75732d63656e7472616c312d626c6f636b2d6369746965732e636c6f756466756e6374696f6e732e6e65742f6170692f6e6574776f726b2f312f746f6b656e2f000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061018a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a7811461018f57806306fdde03146101ec578063081812fc14610276578063095ea7b3146102bc57806310154bad146102f757806318160ddd1461032a5780632295ee5b1461035157806323b872dd14610404578063291d9549146104475780632f745c591461047a5780633af32abf146104b35780633b3a1a7a146104e65780633ba5c722146104fb57806342842e0e1461051057806342966c68146105535780634c5a628c1461057d5780634e99b800146105925780634f6ccce7146105a75780636352211e146105d157806370a08231146105fb5780637362d9c81461062e5780638462151c1461066157806390708008146106e457806395d89b4114610749578063a22cb4651461075e578063b88d4fde14610799578063bb5f747b1461086c578063c87b56dd1461089f578063d05dcc6a146108c9578063d6cd947314610943578063e985e9c514610958575b600080fd5b34801561019b57600080fd5b506101d8600480360360208110156101b257600080fd5b50357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916610993565b604080519115158252519081900360200190f35b3480156101f857600080fd5b506102016109cb565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023b578181015183820152602001610223565b50505050905090810190601f1680156102685780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561028257600080fd5b506102a06004803603602081101561029957600080fd5b5035610a62565b60408051600160a060020a039092168252519081900360200190f35b3480156102c857600080fd5b506102f5600480360360408110156102df57600080fd5b50600160a060020a038135169060200135610a94565b005b34801561030357600080fd5b506102f56004803603602081101561031a57600080fd5b5035600160a060020a0316610b3d565b34801561033657600080fd5b5061033f610b5d565b60408051918252519081900360200190f35b34801561035d57600080fd5b506102f56004803603602081101561037457600080fd5b81019060208101813564010000000081111561038f57600080fd5b8201836020820111156103a157600080fd5b803590602001918460018302840111640100000000831117156103c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b63945050505050565b34801561041057600080fd5b506102f56004803603606081101561042757600080fd5b50600160a060020a03813581169160208101359091169060400135610bfd565b34801561045357600080fd5b506102f56004803603602081101561046a57600080fd5b5035600160a060020a0316610c22565b34801561048657600080fd5b5061033f6004803603604081101561049d57600080fd5b50600160a060020a038135169060200135610c3f565b3480156104bf57600080fd5b506101d8600480360360208110156104d657600080fd5b5035600160a060020a0316610c8c565b3480156104f257600080fd5b5061033f610ca5565b34801561050757600080fd5b5061033f610cab565b34801561051c57600080fd5b506102f56004803603606081101561053357600080fd5b50600160a060020a03813581169160208101359091169060400135610cb1565b34801561055f57600080fd5b506101d86004803603602081101561057657600080fd5b5035610ccd565b34801561058957600080fd5b506102f5610d45565b34801561059e57600080fd5b50610201610d50565b3480156105b357600080fd5b5061033f600480360360208110156105ca57600080fd5b5035610dde565b3480156105dd57600080fd5b506102a0600480360360208110156105f457600080fd5b5035610e13565b34801561060757600080fd5b5061033f6004803603602081101561061e57600080fd5b5035600160a060020a0316610e37565b34801561063a57600080fd5b506102f56004803603602081101561065157600080fd5b5035600160a060020a0316610e6a565b34801561066d57600080fd5b506106946004803603602081101561068457600080fd5b5035600160a060020a0316610e87565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156106d05781810151838201526020016106b8565b505050509050019250505060405180910390f35b3480156106f057600080fd5b5061033f600480360361012081101561070857600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e0810135906101000135600160a060020a0316610ee8565b34801561075557600080fd5b50610201611031565b34801561076a57600080fd5b506102f56004803603604081101561078157600080fd5b50600160a060020a0381351690602001351515611092565b3480156107a557600080fd5b506102f5600480360360808110156107bc57600080fd5b600160a060020a038235811692602081013590911691604082013591908101906080810160608201356401000000008111156107f757600080fd5b82018360208201111561080957600080fd5b8035906020019184600183028401116401000000008311171561082b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611116945050505050565b34801561087857600080fd5b506101d86004803603602081101561088f57600080fd5b5035600160a060020a031661113e565b3480156108ab57600080fd5b50610201600480360360208110156108c257600080fd5b5035611151565b3480156108d557600080fd5b506108f3600480360360208110156108ec57600080fd5b5035611207565b60408051998a5260208a0198909852888801969096526060880194909452608087019290925260a086015260c085015260e0840152600160a060020a031661010083015251908190036101200190f35b34801561094f57600080fd5b506102f56112e8565b34801561096457600080fd5b506101d86004803603604081101561097b57600080fd5b50600160a060020a03813581169160200135166112f1565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19811660009081526020819052604090205460ff165b919050565b60098054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a575780601f10610a2c57610100808354040283529160200191610a57565b820191906000526020600020905b815481529060010190602001808311610a3a57829003601f168201915b505050505090505b90565b6000610a6d8261131f565b1515610a7857600080fd5b50600090815260026020526040902054600160a060020a031690565b6000610a9f82610e13565b9050600160a060020a038381169082161415610aba57600080fd5b33600160a060020a0382161480610ad65750610ad681336112f1565b1515610ae157600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610b463361113e565b1515610b5157600080fd5b610b5a8161133c565b50565b60075490565b610b6c33610c8c565b1515610b7757600080fd5b80511515610be657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b8051610bf990600d90602084019061201e565b5050565b610c073382611384565b1515610c1257600080fd5b610c1d8383836113e3565b505050565b610c2b3361113e565b1515610c3657600080fd5b610b5a81611402565b6000610c4a83610e37565b8210610c5557600080fd5b600160a060020a0383166000908152600560205260409020805483908110610c7957fe5b9060005260206000200154905092915050565b6000610c9f600c8363ffffffff61144a16565b92915050565b600f5481565b600e5481565b610c1d8383836020604051908101604052806000815250611116565b6000610cd833610c8c565b1515610ce357600080fd5b610cec82611481565b5060009081526010602052604081208181556001808201839055600282018390556003820183905560048201839055600582018390556006820183905560078201929092556008018054600160a060020a031916905590565b610d4e33611493565b565b600d805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dd65780601f10610dab57610100808354040283529160200191610dd6565b820191906000526020600020905b815481529060010190602001808311610db957829003601f168201915b505050505081565b6000610de8610b5d565b8210610df357600080fd5b6007805483908110610e0157fe5b90600052602060002001549050919050565b600081815260016020526040812054600160a060020a0316801515610c9f57600080fd5b6000600160a060020a0382161515610e4e57600080fd5b50600160a060020a031660009081526003602052604090205490565b610e733361113e565b1515610e7e57600080fd5b610b5a816114db565b6060610e9282611523565b805480602002602001604051908101604052809291908181526020018280548015610edc57602002820191906000526020600020905b815481526020019060010190808311610ec8575b50505050509050919050565b6000610ef333610c8c565b1515610efe57600080fd5b600f54600090610f1590600163ffffffff61153d16565b600f81905560408051610120810182528d815260208082018e81528284018e8152606084018e8152608085018e815260a086018e815260c087018e815260e088018e8152600160a060020a038e81166101008b0190815260008d81526010909a529a9098209851895595516001808a019190915594516002890155925160038801559051600487015551600586015551600685015590516007840155925160089092018054600160a060020a03191692909116919091179055600e54919250610fde919061153d565b600e55610feb8382611556565b604051600160a060020a03841690819083907f90ac329ea07c00bb85a3b33470a0318e5d1a5e181fd50431248bc3c75069527790600090a49a9950505050505050505050565b600a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a575780601f10610a2c57610100808354040283529160200191610a57565b600160a060020a0382163314156110a857600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b611121848484610bfd565b61112d84848484611573565b151561113857600080fd5b50505050565b6000610c9f600b8363ffffffff61144a16565b606061115c8261131f565b151561116757600080fd5b600d8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610c9f93909290918301828280156111f45780601f106111c9576101008083540402835291602001916111f4565b820191906000526020600020905b8154815290600101906020018083116111d757829003601f168201915b5050505050611202846116ef565b6117d3565b600080600080600080600080600061121e8a61131f565b151561128b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f6b656e204944206e6f7420666f756e640000000000000000000000000000604482015290519081900360640190fd5b5050506000968752505060106020525050604090922080546001820154600283015460038401546004850154600586015460068701546007880154600890980154969a9599509397509195909491939091600160a060020a031690565b610d4e33611402565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600090815260016020526040902054600160a060020a0316151590565b61134d600c8263ffffffff61180816565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b60008061139083610e13565b905080600160a060020a031684600160a060020a031614806113cb575083600160a060020a03166113c084610a62565b600160a060020a0316145b806113db57506113db81856112f1565b949350505050565b6113ee838383611856565b6113f88382611965565b610c1d8282611a5c565b611413600c8263ffffffff611a9a16565b604051600160a060020a038216907f270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b690600090a250565b6000600160a060020a038216151561146157600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b610b5a61148d82610e13565b82611ae6565b6114a4600b8263ffffffff611a9a16565b604051600160a060020a038216907f0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e16590600090a250565b6114ec600b8263ffffffff61180816565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b600160a060020a0316600090815260056020526040902090565b60008282018381101561154f57600080fd5b9392505050565b6115608282611af0565b61156a8282611a5c565b610bf981611ba4565b600061158784600160a060020a0316611be8565b1515611595575060016113db565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015611628578181015183820152602001611610565b50505050905090810190601f1680156116555780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561167757600080fd5b505af115801561168b573d6000803e3d6000fd5b505050506040513d60208110156116a157600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a020000000000000000000000000000000000000000000000000000000014915050949350505050565b6060811515611732575060408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201526109c6565b8160005b811561174a57600101600a82049150611736565b6060816040519080825280601f01601f191660200182016040528015611777576020820181803883390190505b50905060001982015b85156117ca57815160001982019160f860020a6030600a8a0601029184919081106117a757fe5b906020010190600160f860020a031916908160001a905350600a86049550611780565b50949350505050565b60408051602081810183526000808352835180830185528181528451928301909452815260609261154f928692869290611bf0565b600160a060020a038116151561181d57600080fd5b611827828261144a565b1561183157600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b82600160a060020a031661186982610e13565b600160a060020a03161461187c57600080fd5b600160a060020a038216151561189157600080fd5b61189a81611e45565b600160a060020a0383166000908152600360205260409020546118c490600163ffffffff611e8016565b600160a060020a0380851660009081526003602052604080822093909355908416815220546118fa90600163ffffffff61153d16565b600160a060020a03808416600081815260036020908152604080832095909555858252600190528381208054600160a060020a031916831790559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a03821660009081526005602052604081205461198f90600163ffffffff611e8016565b600083815260066020526040902054909150808214611a2c57600160a060020a03841660009081526005602052604081208054849081106119cc57fe5b90600052602060002001549050806005600087600160a060020a0316600160a060020a0316815260200190815260200160002083815481101515611a0c57fe5b600091825260208083209091019290925591825260069052604090208190555b600160a060020a0384166000908152600560205260409020805490611a5590600019830161209c565b5050505050565b600160a060020a0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600160a060020a0381161515611aaf57600080fd5b611ab9828261144a565b1515611ac457600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b610bf98282611e95565b600160a060020a0382161515611b0557600080fd5b611b0e8161131f565b15611b1857600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054611b599161153d565b600160a060020a0383166000818152600360205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000903b1190565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f191660200182016040528015611c44576020820181803883390190505b509050806000805b8851811015611caa578881815181101515611c6357fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611c8a57fe5b906020010190600160f860020a031916908160001a905350600101611c4c565b5060005b8751811015611d0c578781815181101515611cc557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611cec57fe5b906020010190600160f860020a031916908160001a905350600101611cae565b5060005b8651811015611d6e578681815181101515611d2757fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611d4e57fe5b906020010190600160f860020a031916908160001a905350600101611d10565b5060005b8551811015611dd0578581815181101515611d8957fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611db057fe5b906020010190600160f860020a031916908160001a905350600101611d72565b5060005b8451811015611e32578481815181101515611deb57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515611e1257fe5b906020010190600160f860020a031916908160001a905350600101611dd4565b50909d9c50505050505050505050505050565b600081815260026020526040902054600160a060020a031615610b5a5760009081526002602052604090208054600160a060020a0319169055565b600082821115611e8f57600080fd5b50900390565b611e9f8282611ec1565b611ea98282611965565b600081815260066020526040812055610bf981611f80565b81600160a060020a0316611ed482610e13565b600160a060020a031614611ee757600080fd5b611ef081611e45565b600160a060020a038216600090815260036020526040902054611f1a90600163ffffffff611e8016565b600160a060020a038316600081815260036020908152604080832094909455848252600190528281208054600160a060020a03191690559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600754600090611f9790600163ffffffff611e8016565b60008381526008602052604081205460078054939450909284908110611fb957fe5b9060005260206000200154905080600783815481101515611fd657fe5b6000918252602080832090910192909255828152600890915260409020829055600780549061200990600019830161209c565b50505060009182525060086020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061205f57805160ff191683800117855561208c565b8280016001018555821561208c579182015b8281111561208c578251825591602001919060010190612071565b506120989291506120bc565b5090565b815481835581811115610c1d57600083815260209020610c1d9181019083015b610a5f91905b8082111561209857600081556001016120c256fea165627a7a723058203c1843e58e7de922cdefd48ed1d0a2473517362d3a3c178206af70de729120430029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004868747470733a2f2f75732d63656e7472616c312d626c6f636b2d6369746965732e636c6f756466756e6374696f6e732e6e65742f6170692f6e6574776f726b2f312f746f6b656e2f000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenBaseURI (string): https://us-central1-block-cities.cloudfunctions.net/api/network/1/token/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000048
Arg [2] : 68747470733a2f2f75732d63656e7472616c312d626c6f636b2d636974696573
Arg [3] : 2e636c6f756466756e6374696f6e732e6e65742f6170692f6e6574776f726b2f
Arg [4] : 312f746f6b656e2f000000000000000000000000000000000000000000000000


Swarm Source

bzzr://3c1843e58e7de922cdefd48ed1d0a2473517362d3a3c178206af70de72912043
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.