ETH Price: $3,328.03 (-3.93%)

Token

CryptoArte (CARTE)
 

Overview

Max Total Supply

9,895 CARTE

Holders

3,415 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 0 Decimals)

Filtered by Token Holder
karmawav.eth
Balance
1 CARTE

Value
$0.00
0xde0cbd5df89bb67ab804db21e9b931bad4200392
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A blockchain art collection and non-fungible token.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoArte

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-07-11
*/

pragma solidity ^0.4.23;

/**
 * @title ERC721 Non-Fungible Token Standard basic interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Basic {
  event Transfer(
    address indexed _from,
    address indexed _to,
    uint256 _tokenId
  );
  event Approval(
    address indexed _owner,
    address indexed _approved,
    uint256 _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 exists(uint256 _tokenId) public view returns (bool _exists);

  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 _data
  )
    public;
}


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Enumerable is ERC721Basic {
  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);
}


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


/**
 * @title ERC-721 Non-Fungible Token Standard, full implementation interface
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
}


/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 *  from ERC721 asset contracts.
 */
contract ERC721Receiver {
  /**
   * @dev Magic value to be returned upon successful reception of an NFT
   *  Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`,
   *  which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
   */
  bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba;

  /**
   * @notice Handle the receipt of an NFT
   * @dev The ERC721 smart contract calls this function on the recipient
   *  after a `safetransfer`. This function MAY throw to revert and reject the
   *  transfer. This function MUST use 50,000 gas or less. Return of other
   *  than the magic value MUST result in the transaction being reverted.
   *  Note: the contract address is always the message sender.
   * @param _from The sending address
   * @param _tokenId The NFT identifier which is being transfered
   * @param _data Additional data with no specified format
   * @return `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`
   */
  function onERC721Received(
    address _from,
    uint256 _tokenId,
    bytes _data
  )
    public
    returns(bytes4);
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting '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;
    }

    c = a * b;
    assert(c / a == b);
    return c;
  }

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

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}

/**
 * Utility library of inline functions on addresses
 */
library AddressUtils {

  /**
   * 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 addr address to check
   * @return whether the target address is a contract
   */
  function isContract(address addr) 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.
    // solium-disable-next-line security/no-inline-assembly
    assembly { size := extcodesize(addr) }
    return size > 0;
  }

}



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

  // Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`
  // which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
  bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba;

  // Mapping from token ID to owner
  mapping (uint256 => address) internal tokenOwner;

  // Mapping from token ID to approved address
  mapping (uint256 => address) internal tokenApprovals;

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

  // Mapping from owner to operator approvals
  mapping (address => mapping (address => bool)) internal operatorApprovals;

  /**
   * @dev Guarantees msg.sender is owner of the given token
   * @param _tokenId uint256 ID of the token to validate its ownership belongs to msg.sender
   */
  modifier onlyOwnerOf(uint256 _tokenId) {
    require(ownerOf(_tokenId) == msg.sender);
    _;
  }

  /**
   * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator
   * @param _tokenId uint256 ID of the token to validate
   */
  modifier canTransfer(uint256 _tokenId) {
    require(isApprovedOrOwner(msg.sender, _tokenId));
    _;
  }

  /**
   * @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 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) public view returns (bool) {
    address owner = tokenOwner[_tokenId];
    return owner != address(0);
  }

  /**
   * @dev Approves another address to transfer the given token ID
   * @dev The zero address indicates there is no approved address.
   * @dev There can only be one approved address per token at a given time.
   * @dev 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));

    if (getApproved(_tokenId) != address(0) || _to != address(0)) {
      tokenApprovals[_tokenId] = _to;
      emit Approval(owner, _to, _tokenId);
    }
  }

  /**
   * @dev Gets the approved address for a token ID, or zero if no address set
   * @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) {
    return tokenApprovals[_tokenId];
  }

  /**
   * @dev Sets or unsets the approval of a given operator
   * @dev 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
   * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible
   * @dev 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
    canTransfer(_tokenId)
  {
    require(_from != address(0));
    require(_to != address(0));

    clearApproval(_from, _tokenId);
    removeTokenFrom(_from, _tokenId);
    addTokenTo(_to, _tokenId);

    emit Transfer(_from, _to, _tokenId);
  }

  /**
   * @dev Safely transfers the ownership of a given token ID to another address
   * @dev 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,uint256,bytes)"))`; otherwise,
   *  the transfer is reverted.
   * @dev 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
    canTransfer(_tokenId)
  {
    // solium-disable-next-line arg-overflow
    safeTransferFrom(_from, _to, _tokenId, "");
  }

  /**
   * @dev Safely transfers the ownership of a given token ID to another address
   * @dev 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,uint256,bytes)"))`; otherwise,
   *  the transfer is reverted.
   * @dev 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 _data
  )
    public
    canTransfer(_tokenId)
  {
    transferFrom(_from, _to, _tokenId);
    // solium-disable-next-line arg-overflow
    require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
  }

  /**
   * @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);
    // Disable solium check because of
    // https://github.com/duaraghav8/Solium/issues/175
    // solium-disable-next-line operator-whitespace
    return (
      _spender == owner ||
      getApproved(_tokenId) == _spender ||
      isApprovedForAll(owner, _spender)
    );
  }

  /**
   * @dev Internal function to mint a new token
   * @dev 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 by the msg.sender
   */
  function _mint(address _to, uint256 _tokenId) internal {
    require(_to != address(0));
    addTokenTo(_to, _tokenId);
    emit Transfer(address(0), _to, _tokenId);
  }

  /**
   * @dev Internal function to burn a specific token
   * @dev Reverts if the token does not exist
   * @param _tokenId uint256 ID of the token being burned by the msg.sender
   */
  function _burn(address _owner, uint256 _tokenId) internal {
    clearApproval(_owner, _tokenId);
    removeTokenFrom(_owner, _tokenId);
    emit Transfer(_owner, address(0), _tokenId);
  }

  /**
   * @dev Internal function to clear current approval of a given token ID
   * @dev Reverts if the given address is not indeed the owner of the token
   * @param _owner owner of the token
   * @param _tokenId uint256 ID of the token to be transferred
   */
  function clearApproval(address _owner, uint256 _tokenId) internal {
    require(ownerOf(_tokenId) == _owner);
    if (tokenApprovals[_tokenId] != address(0)) {
      tokenApprovals[_tokenId] = address(0);
      emit Approval(_owner, address(0), _tokenId);
    }
  }

  /**
   * @dev Internal function to add a token ID to the list of a given address
   * @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 addTokenTo(address _to, uint256 _tokenId) internal {
    require(tokenOwner[_tokenId] == address(0));
    tokenOwner[_tokenId] = _to;
    ownedTokensCount[_to] = ownedTokensCount[_to].add(1);
  }

  /**
   * @dev Internal function to remove a token ID from the list of a given address
   * @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 removeTokenFrom(address _from, uint256 _tokenId) internal {
    require(ownerOf(_tokenId) == _from);
    ownedTokensCount[_from] = ownedTokensCount[_from].sub(1);
    tokenOwner[_tokenId] = address(0);
  }

  /**
   * @dev Internal function to invoke `onERC721Received` on a target address
   * @dev 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 checkAndCallSafeTransfer(
    address _from,
    address _to,
    uint256 _tokenId,
    bytes _data
  )
    internal
    returns (bool)
  {
    if (!_to.isContract()) {
      return true;
    }
    bytes4 retval = ERC721Receiver(_to).onERC721Received(
      _from, _tokenId, _data);
    return (retval == ERC721_RECEIVED);
  }
}


/**
 * @title Full ERC721 Token
 * 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 ERC721Token is ERC721, ERC721BasicToken {
  // Token name
  string internal name_;

  // Token symbol
  string internal symbol_;

  // Mapping from owner to list of owned token IDs
  mapping(address => uint256[]) internal ownedTokens;

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

  // Array with all token ids, used for enumeration
  uint256[] internal allTokens;

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

  // Optional mapping for token URIs
  mapping(uint256 => string) internal tokenURIs;

  /**
   * @dev Constructor function
   */
  constructor(string _name, string _symbol) public {
    name_ = _name;
    symbol_ = _symbol;
  }

  /**
   * @dev Gets the token name
   * @return string representing the token name
   */
  function name() public view returns (string) {
    return name_;
  }

  /**
   * @dev Gets the token symbol
   * @return string representing the token symbol
   */
  function symbol() public view returns (string) {
    return symbol_;
  }

  /**
   * @dev Returns an URI for a given token ID
   * @dev 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) public view returns (string) {
    require(exists(_tokenId));
    return tokenURIs[_tokenId];
  }

  /**
   * @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
   * @dev 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 set the token URI for a given token
   * @dev Reverts if the token ID does not exist
   * @param _tokenId uint256 ID of the token to set its URI
   * @param _uri string URI to assign
   */
  function _setTokenURI(uint256 _tokenId, string _uri) internal {
    require(exists(_tokenId));
    tokenURIs[_tokenId] = _uri;
  }

  /**
   * @dev Internal function to add a token ID to the list of a given address
   * @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 addTokenTo(address _to, uint256 _tokenId) internal {
    super.addTokenTo(_to, _tokenId);
    uint256 length = ownedTokens[_to].length;
    ownedTokens[_to].push(_tokenId);
    ownedTokensIndex[_tokenId] = length;
  }

  /**
   * @dev Internal function to remove a token ID from the list of a given address
   * @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 removeTokenFrom(address _from, uint256 _tokenId) internal {
    super.removeTokenFrom(_from, _tokenId);

    uint256 tokenIndex = ownedTokensIndex[_tokenId];
    uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
    uint256 lastToken = ownedTokens[_from][lastTokenIndex];

    ownedTokens[_from][tokenIndex] = lastToken;
    ownedTokens[_from][lastTokenIndex] = 0;
    // Note that this will handle single-element arrays. In that case, both tokenIndex and lastTokenIndex are going to
    // be zero. Then we can make sure that we will remove _tokenId from the ownedTokens list since we are first swapping
    // the lastToken to the first position, and then dropping the element placed in the last position of the list

    ownedTokens[_from].length--;
    ownedTokensIndex[_tokenId] = 0;
    ownedTokensIndex[lastToken] = tokenIndex;
  }

  /**
   * @dev Internal function to mint a new token
   * @dev 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 by the msg.sender
   */
  function _mint(address _to, uint256 _tokenId) internal {
    super._mint(_to, _tokenId);

    allTokensIndex[_tokenId] = allTokens.length;
    allTokens.push(_tokenId);
  }

  /**
   * @dev Internal function to burn a specific token
   * @dev Reverts if the token does not exist
   * @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);

    // Clear metadata (if any)
    if (bytes(tokenURIs[_tokenId]).length != 0) {
      delete tokenURIs[_tokenId];
    }

    // Reorg all tokens array
    uint256 tokenIndex = allTokensIndex[_tokenId];
    uint256 lastTokenIndex = allTokens.length.sub(1);
    uint256 lastToken = allTokens[lastTokenIndex];

    allTokens[tokenIndex] = lastToken;
    allTokens[lastTokenIndex] = 0;

    allTokens.length--;
    allTokensIndex[_tokenId] = 0;
    allTokensIndex[lastToken] = tokenIndex;
  }

}

/**
 * @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 public owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

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

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    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;
  }
}


/**
 * @title CryptoArte
 * CryptoArte - a non-fungible token smart contract for 
 * paintings from the www.cryptoarte.io collection
 */
contract CryptoArte is ERC721Token, Ownable {

    // Token id to painting image file hash mapping
    mapping (uint256 => uint256) public tokenIdToHash;

    constructor() ERC721Token("CryptoArte", "CARTE") public { }

    /**
    * @dev Mints a token to an address with a tokenURI and tokenHash.
    * @param _to address of the future owner of the token
    * @param _tokenId uint256 token ID (painting number)
    * @param _tokenURI string token metadata URI
    * @param _tokenHash uint256 token image Hash
    */
    function mintTo(address _to, string _tokenURI, uint256 _tokenId, uint256 _tokenHash) public onlyOwner {
        _mint(_to, _tokenId);
        _setTokenURI(_tokenId, _tokenURI);
        tokenIdToHash[_tokenId] = _tokenHash;
    }    

    /**
    * @dev Mints many tokens to an address with their tokenURIs and tokenHashes.
    * @param _to address of the future owner of the tokens
    * @param _tokenIds uint256 array of token IDs (painting numbers)
    * @param _tokenURIPrefix string prefix for token metadata URI
    * @param _tokenHashes uint256 array of token image Hashes
    */
    function mintManyTo(address _to, string _tokenURIPrefix, uint256[] _tokenIds, uint256[] _tokenHashes) public onlyOwner {
        require(_tokenIds.length >= 1);
        require(_tokenIds.length == _tokenHashes.length);

        for (uint i = 0; i < _tokenIds.length; i++) { 
            _mint(_to, _tokenIds[i]);
            _setTokenURI(_tokenIds[i], strConcat(_tokenURIPrefix, uint256Tostr(_tokenIds[i])));
            tokenIdToHash[_tokenIds[i]] = _tokenHashes[i];
        }
    }    

    /**
    * @dev Updates tokenURI for tokenId - to be used to correct errors
    * @dev Throws if the tokenId does not exist
    * @param _tokenId uint256 token ID (painting number)
    * @param _tokenURI string token metadata URI
    */
    function setTokenURI(string _tokenURI, uint256 _tokenId) public onlyOwner {
        _setTokenURI(_tokenId, _tokenURI);
    }    

    /**
    * @dev Updates tokenHash for tokenId - to be used only to correct errors
    * @dev Throws if the tokenId does not exist    
    * @param _tokenId uint256 token ID (painting number)
    * @param _tokenHash uint256 token image Hash
    */
    function setTokenHash(uint256 _tokenHash, uint256 _tokenId) public onlyOwner {
        require(exists(_tokenId));
        tokenIdToHash[_tokenId] = _tokenHash;
    }    
    
    /**
    * @dev Contatenates two strings
    * @param _a string first (left)
    * @param _b string second (right)
    */
    function strConcat(string _a, string _b) internal pure returns (string) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        string memory ab = new string(_ba.length + _bb.length);
        bytes memory bab = bytes(ab);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) bab[k++] = _ba[i];
        for (i = 0; i < _bb.length; i++) bab[k++] = _bb[i];
        return string(bab);
    }

    /**
    * @dev Converts a uint256 to string
    * @param _i uint256 the uint to convert
    */
    function uint256Tostr(uint256 _i) internal pure returns (string) {
        if (_i == 0) return "0";
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len - 1;
        while (_i != 0){
            bstr[k--] = byte(48 + _i % 10);
            _i /= 10;
        }
        return string(bstr);
    }    

}

Contract Security Audit

Contract ABI

[{"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":"_tokenURI","type":"string"},{"name":"_tokenId","type":"uint256"}],"name":"setTokenURI","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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","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":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[{"name":"_tokenHash","type":"uint256"},{"name":"_tokenId","type":"uint256"}],"name":"setTokenHash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"tokenIdToHash","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":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenURI","type":"string"},{"name":"_tokenId","type":"uint256"},{"name":"_tokenHash","type":"uint256"}],"name":"mintTo","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"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenURIPrefix","type":"string"},{"name":"_tokenIds","type":"uint256[]"},{"name":"_tokenHashes","type":"uint256[]"}],"name":"mintManyTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_approved","type":"address"},{"indexed":false,"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"}]

60806040523480156200001157600080fd5b50604080518082018252600a81527f43727970746f417274650000000000000000000000000000000000000000000060208083019182528351808501909452600584527f43415254450000000000000000000000000000000000000000000000000000009084015281519192916200008c91600491620000bd565b508051620000a2906005906020840190620000bd565b5050600b8054600160a060020a031916331790555062000162565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200010057805160ff191683800117855562000130565b8280016001018555821562000130579182015b828111156200013057825182559160200191906001019062000113565b506200013e92915062000142565b5090565b6200015f91905b808211156200013e576000815560010162000149565b90565b61183180620001726000396000f30060806040526004361061013d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610142578063081812fc146101cc578063095ea7b31461020057806309a3beef1461022657806318160ddd1461028157806323b872dd146102a85780632f745c59146102d257806342842e0e146102f65780634f558e79146103205780634f6ccce71461034c5780635418ecdd14610364578063621a1f741461037f5780636352211e1461039757806370a08231146103af578063715018a6146103d05780638da5cb5b146103e557806395d89b41146103fa578063a22cb4651461040f578063b88d4fde14610435578063c87b56dd146104a4578063e7095e97146104bc578063e985e9c51461052c578063f2fde38b14610553578063f6e7298114610574575b600080fd5b34801561014e57600080fd5b5061015761064d565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610191578181015183820152602001610179565b50505050905090810190601f1680156101be5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101d857600080fd5b506101e46004356106e4565b60408051600160a060020a039092168252519081900360200190f35b34801561020c57600080fd5b50610224600160a060020a03600435166024356106ff565b005b34801561023257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261022494369492936024939284019190819084018382808284375094975050933594506107f19350505050565b34801561028d57600080fd5b50610296610816565b60408051918252519081900360200190f35b3480156102b457600080fd5b50610224600160a060020a036004358116906024351660443561081c565b3480156102de57600080fd5b50610296600160a060020a03600435166024356108cb565b34801561030257600080fd5b50610224600160a060020a0360043581169060243516604435610918565b34801561032c57600080fd5b50610338600435610950565b604080519115158252519081900360200190f35b34801561035857600080fd5b5061029660043561096d565b34801561037057600080fd5b506102246004356024356109a2565b34801561038b57600080fd5b506102966004356109de565b3480156103a357600080fd5b506101e46004356109f0565b3480156103bb57600080fd5b50610296600160a060020a0360043516610a1a565b3480156103dc57600080fd5b50610224610a4d565b3480156103f157600080fd5b506101e4610abb565b34801561040657600080fd5b50610157610aca565b34801561041b57600080fd5b50610224600160a060020a03600435166024351515610b2b565b34801561044157600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261022494600160a060020a038135811695602480359092169560443595369560849401918190840183828082843750949750610baf9650505050505050565b3480156104b057600080fd5b50610157600435610bee565b3480156104c857600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610224958335600160a060020a0316953695604494919390910191908190840183828082843750949750508435955050506020909201359150610ca39050565b34801561053857600080fd5b50610338600160a060020a0360043581169060243516610ce2565b34801561055f57600080fd5b50610224600160a060020a0360043516610d10565b34801561058057600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610224958335600160a060020a0316953695604494919390910191908190840183828082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750949750610d339650505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d95780601f106106ae576101008083540402835291602001916106d9565b820191906000526020600020905b8154815290600101906020018083116106bc57829003601f168201915b505050505090505b90565b600090815260016020526040902054600160a060020a031690565b600061070a826109f0565b9050600160a060020a03838116908216141561072557600080fd5b33600160a060020a038216148061074157506107418133610ce2565b151561074c57600080fd5b6000610757836106e4565b600160a060020a03161415806107755750600160a060020a03831615155b156107ec57600082815260016020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03878116918217909255835186815293519093918516927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35b505050565b600b54600160a060020a0316331461080857600080fd5b6108128183610e2d565b5050565b60085490565b806108273382610e60565b151561083257600080fd5b600160a060020a038416151561084757600080fd5b600160a060020a038316151561085c57600080fd5b6108668483610ebf565b6108708483610f6c565b61087a83836110a5565b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b60006108d683610a1a565b82106108e157600080fd5b600160a060020a038316600090815260066020526040902080548390811061090557fe5b9060005260206000200154905092915050565b806109233382610e60565b151561092e57600080fd5b61094a8484846020604051908101604052806000815250610baf565b50505050565b600090815260208190526040902054600160a060020a0316151590565b6000610977610816565b821061098257600080fd5b600880548390811061099057fe5b90600052602060002001549050919050565b600b54600160a060020a031633146109b957600080fd5b6109c281610950565b15156109cd57600080fd5b6000908152600c6020526040902055565b600c6020526000908152604090205481565b600081815260208190526040812054600160a060020a0316801515610a1457600080fd5b92915050565b6000600160a060020a0382161515610a3157600080fd5b50600160a060020a031660009081526002602052604090205490565b600b54600160a060020a03163314610a6457600080fd5b600b54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600b805473ffffffffffffffffffffffffffffffffffffffff19169055565b600b54600160a060020a031681565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d95780601f106106ae576101008083540402835291602001916106d9565b600160a060020a038216331415610b4157600080fd5b336000818152600360209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b81610bba3382610e60565b1515610bc557600080fd5b610bd085858561081c565b610bdc858585856110ee565b1515610be757600080fd5b5050505050565b6060610bf982610950565b1515610c0457600080fd5b6000828152600a602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015610c975780601f10610c6c57610100808354040283529160200191610c97565b820191906000526020600020905b815481529060010190602001808311610c7a57829003601f168201915b50505050509050919050565b600b54600160a060020a03163314610cba57600080fd5b610cc48483611277565b610cce8284610e2d565b6000918252600c6020526040909120555050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205460ff1690565b600b54600160a060020a03163314610d2757600080fd5b610d30816112c6565b50565b600b54600090600160a060020a03163314610d4d57600080fd5b825160011115610d5c57600080fd5b8151835114610d6a57600080fd5b5060005b8251811015610be757610d98858483815181101515610d8957fe5b90602001906020020151611277565b610de18382815181101515610da957fe5b90602001906020020151610ddc86610dd78786815181101515610dc857fe5b90602001906020020151611344565b61144f565b610e2d565b8181815181101515610def57fe5b90602001906020020151600c60008584815181101515610e0b57fe5b6020908102909101810151825281019190915260400160002055600101610d6e565b610e3682610950565b1515610e4157600080fd5b6000828152600a6020908152604090912082516107ec9284019061174d565b600080610e6c836109f0565b905080600160a060020a031684600160a060020a03161480610ea7575083600160a060020a0316610e9c846106e4565b600160a060020a0316145b80610eb75750610eb78185610ce2565b949350505050565b81600160a060020a0316610ed2826109f0565b600160a060020a031614610ee557600080fd5b600081815260016020526040902054600160a060020a031615610812576000818152600160209081526040808320805473ffffffffffffffffffffffffffffffffffffffff1916905580518481529051600160a060020a038616927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35050565b6000806000610f7b858561159e565b600084815260076020908152604080832054600160a060020a0389168452600690925290912054909350610fb690600163ffffffff61163316565b600160a060020a038616600090815260066020526040902080549193509083908110610fde57fe5b90600052602060002001549050806006600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561101e57fe5b6000918252602080832090910192909255600160a060020a038716815260069091526040812080548490811061105057fe5b6000918252602080832090910192909255600160a060020a03871681526006909152604090208054906110879060001983016117cb565b50600093845260076020526040808520859055908452909220555050565b60006110b18383611645565b50600160a060020a039091166000908152600660209081526040808320805460018101825590845282842081018590559383526007909152902055565b60008061110385600160a060020a03166116d4565b1515611112576001915061126e565b84600160a060020a031663f0b9e5ba8786866040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156111aa578181015183820152602001611192565b50505050905090810190601f1680156111d75780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156111f857600080fd5b505af115801561120c573d6000803e3d6000fd5b505050506040513d602081101561122257600080fd5b50517fffffffff0000000000000000000000000000000000000000000000000000000081167ff0b9e5ba0000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b61128182826116dc565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3015550565b600160a060020a03811615156112db57600080fd5b600b54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060600080828185151561138d5760408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201529450611446565b8593505b83156113a857600190920191600a84049350611391565b826040519080825280601f01601f1916602001820160405280156113d6578160200160208202803883390190505b5091505060001982015b851561144257815160001982019160f860020a6030600a8a06010291849190811061140757fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a860495506113e0565b8194505b50505050919050565b606080606080606060008088955087945084518651016040519080825280601f01601f191660200182016040528015611492578160200160208202803883390190505b50935083925060009150600090505b85518110156115175785818151811015156114b857fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156114df57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016114a1565b5060005b845181101561159157848181518110151561153257fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561155957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161151b565b5090979650505050505050565b81600160a060020a03166115b1826109f0565b600160a060020a0316146115c457600080fd5b600160a060020a0382166000908152600260205260409020546115ee90600163ffffffff61163316565b600160a060020a039092166000908152600260209081526040808320949094559181529081905220805473ffffffffffffffffffffffffffffffffffffffff19169055565b60008282111561163f57fe5b50900390565b600081815260208190526040902054600160a060020a03161561166757600080fd5b600081815260208181526040808320805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038716908117909155835260029091529020546116b4906001611740565b600160a060020a0390921660009081526002602052604090209190915550565b6000903b1190565b600160a060020a03821615156116f157600080fd5b6116fb82826110a5565b604080518281529051600160a060020a038416916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b81810182811015610a1457fe5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061178e57805160ff19168380011785556117bb565b828001600101855582156117bb579182015b828111156117bb5782518255916020019190600101906117a0565b506117c79291506117eb565b5090565b8154818355818111156107ec576000838152602090206107ec9181019083015b6106e191905b808211156117c757600081556001016117f15600a165627a7a723058208117f823f2533691b0c868a4d6509200b655b5e613ee5cc07fc727dddeafe79d0029

Deployed Bytecode

0x60806040526004361061013d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610142578063081812fc146101cc578063095ea7b31461020057806309a3beef1461022657806318160ddd1461028157806323b872dd146102a85780632f745c59146102d257806342842e0e146102f65780634f558e79146103205780634f6ccce71461034c5780635418ecdd14610364578063621a1f741461037f5780636352211e1461039757806370a08231146103af578063715018a6146103d05780638da5cb5b146103e557806395d89b41146103fa578063a22cb4651461040f578063b88d4fde14610435578063c87b56dd146104a4578063e7095e97146104bc578063e985e9c51461052c578063f2fde38b14610553578063f6e7298114610574575b600080fd5b34801561014e57600080fd5b5061015761064d565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610191578181015183820152602001610179565b50505050905090810190601f1680156101be5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101d857600080fd5b506101e46004356106e4565b60408051600160a060020a039092168252519081900360200190f35b34801561020c57600080fd5b50610224600160a060020a03600435166024356106ff565b005b34801561023257600080fd5b506040805160206004803580820135601f810184900484028501840190955284845261022494369492936024939284019190819084018382808284375094975050933594506107f19350505050565b34801561028d57600080fd5b50610296610816565b60408051918252519081900360200190f35b3480156102b457600080fd5b50610224600160a060020a036004358116906024351660443561081c565b3480156102de57600080fd5b50610296600160a060020a03600435166024356108cb565b34801561030257600080fd5b50610224600160a060020a0360043581169060243516604435610918565b34801561032c57600080fd5b50610338600435610950565b604080519115158252519081900360200190f35b34801561035857600080fd5b5061029660043561096d565b34801561037057600080fd5b506102246004356024356109a2565b34801561038b57600080fd5b506102966004356109de565b3480156103a357600080fd5b506101e46004356109f0565b3480156103bb57600080fd5b50610296600160a060020a0360043516610a1a565b3480156103dc57600080fd5b50610224610a4d565b3480156103f157600080fd5b506101e4610abb565b34801561040657600080fd5b50610157610aca565b34801561041b57600080fd5b50610224600160a060020a03600435166024351515610b2b565b34801561044157600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261022494600160a060020a038135811695602480359092169560443595369560849401918190840183828082843750949750610baf9650505050505050565b3480156104b057600080fd5b50610157600435610bee565b3480156104c857600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610224958335600160a060020a0316953695604494919390910191908190840183828082843750949750508435955050506020909201359150610ca39050565b34801561053857600080fd5b50610338600160a060020a0360043581169060243516610ce2565b34801561055f57600080fd5b50610224600160a060020a0360043516610d10565b34801561058057600080fd5b5060408051602060046024803582810135601f8101859004850286018501909652858552610224958335600160a060020a0316953695604494919390910191908190840183828082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750506040805187358901803560208181028481018201909552818452989b9a998901989297509082019550935083925085019084908082843750949750610d339650505050505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d95780601f106106ae576101008083540402835291602001916106d9565b820191906000526020600020905b8154815290600101906020018083116106bc57829003601f168201915b505050505090505b90565b600090815260016020526040902054600160a060020a031690565b600061070a826109f0565b9050600160a060020a03838116908216141561072557600080fd5b33600160a060020a038216148061074157506107418133610ce2565b151561074c57600080fd5b6000610757836106e4565b600160a060020a03161415806107755750600160a060020a03831615155b156107ec57600082815260016020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03878116918217909255835186815293519093918516927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35b505050565b600b54600160a060020a0316331461080857600080fd5b6108128183610e2d565b5050565b60085490565b806108273382610e60565b151561083257600080fd5b600160a060020a038416151561084757600080fd5b600160a060020a038316151561085c57600080fd5b6108668483610ebf565b6108708483610f6c565b61087a83836110a5565b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a350505050565b60006108d683610a1a565b82106108e157600080fd5b600160a060020a038316600090815260066020526040902080548390811061090557fe5b9060005260206000200154905092915050565b806109233382610e60565b151561092e57600080fd5b61094a8484846020604051908101604052806000815250610baf565b50505050565b600090815260208190526040902054600160a060020a0316151590565b6000610977610816565b821061098257600080fd5b600880548390811061099057fe5b90600052602060002001549050919050565b600b54600160a060020a031633146109b957600080fd5b6109c281610950565b15156109cd57600080fd5b6000908152600c6020526040902055565b600c6020526000908152604090205481565b600081815260208190526040812054600160a060020a0316801515610a1457600080fd5b92915050565b6000600160a060020a0382161515610a3157600080fd5b50600160a060020a031660009081526002602052604090205490565b600b54600160a060020a03163314610a6457600080fd5b600b54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600b805473ffffffffffffffffffffffffffffffffffffffff19169055565b600b54600160a060020a031681565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106d95780601f106106ae576101008083540402835291602001916106d9565b600160a060020a038216331415610b4157600080fd5b336000818152600360209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b81610bba3382610e60565b1515610bc557600080fd5b610bd085858561081c565b610bdc858585856110ee565b1515610be757600080fd5b5050505050565b6060610bf982610950565b1515610c0457600080fd5b6000828152600a602090815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015610c975780601f10610c6c57610100808354040283529160200191610c97565b820191906000526020600020905b815481529060010190602001808311610c7a57829003601f168201915b50505050509050919050565b600b54600160a060020a03163314610cba57600080fd5b610cc48483611277565b610cce8284610e2d565b6000918252600c6020526040909120555050565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205460ff1690565b600b54600160a060020a03163314610d2757600080fd5b610d30816112c6565b50565b600b54600090600160a060020a03163314610d4d57600080fd5b825160011115610d5c57600080fd5b8151835114610d6a57600080fd5b5060005b8251811015610be757610d98858483815181101515610d8957fe5b90602001906020020151611277565b610de18382815181101515610da957fe5b90602001906020020151610ddc86610dd78786815181101515610dc857fe5b90602001906020020151611344565b61144f565b610e2d565b8181815181101515610def57fe5b90602001906020020151600c60008584815181101515610e0b57fe5b6020908102909101810151825281019190915260400160002055600101610d6e565b610e3682610950565b1515610e4157600080fd5b6000828152600a6020908152604090912082516107ec9284019061174d565b600080610e6c836109f0565b905080600160a060020a031684600160a060020a03161480610ea7575083600160a060020a0316610e9c846106e4565b600160a060020a0316145b80610eb75750610eb78185610ce2565b949350505050565b81600160a060020a0316610ed2826109f0565b600160a060020a031614610ee557600080fd5b600081815260016020526040902054600160a060020a031615610812576000818152600160209081526040808320805473ffffffffffffffffffffffffffffffffffffffff1916905580518481529051600160a060020a038616927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35050565b6000806000610f7b858561159e565b600084815260076020908152604080832054600160a060020a0389168452600690925290912054909350610fb690600163ffffffff61163316565b600160a060020a038616600090815260066020526040902080549193509083908110610fde57fe5b90600052602060002001549050806006600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561101e57fe5b6000918252602080832090910192909255600160a060020a038716815260069091526040812080548490811061105057fe5b6000918252602080832090910192909255600160a060020a03871681526006909152604090208054906110879060001983016117cb565b50600093845260076020526040808520859055908452909220555050565b60006110b18383611645565b50600160a060020a039091166000908152600660209081526040808320805460018101825590845282842081018590559383526007909152902055565b60008061110385600160a060020a03166116d4565b1515611112576001915061126e565b84600160a060020a031663f0b9e5ba8786866040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156111aa578181015183820152602001611192565b50505050905090810190601f1680156111d75780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156111f857600080fd5b505af115801561120c573d6000803e3d6000fd5b505050506040513d602081101561122257600080fd5b50517fffffffff0000000000000000000000000000000000000000000000000000000081167ff0b9e5ba0000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b61128182826116dc565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3015550565b600160a060020a03811615156112db57600080fd5b600b54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6060600080828185151561138d5760408051808201909152600181527f300000000000000000000000000000000000000000000000000000000000000060208201529450611446565b8593505b83156113a857600190920191600a84049350611391565b826040519080825280601f01601f1916602001820160405280156113d6578160200160208202803883390190505b5091505060001982015b851561144257815160001982019160f860020a6030600a8a06010291849190811061140757fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a860495506113e0565b8194505b50505050919050565b606080606080606060008088955087945084518651016040519080825280601f01601f191660200182016040528015611492578160200160208202803883390190505b50935083925060009150600090505b85518110156115175785818151811015156114b857fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156114df57fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506001016114a1565b5060005b845181101561159157848181518110151561153257fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561155957fe5b9060200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060010161151b565b5090979650505050505050565b81600160a060020a03166115b1826109f0565b600160a060020a0316146115c457600080fd5b600160a060020a0382166000908152600260205260409020546115ee90600163ffffffff61163316565b600160a060020a039092166000908152600260209081526040808320949094559181529081905220805473ffffffffffffffffffffffffffffffffffffffff19169055565b60008282111561163f57fe5b50900390565b600081815260208190526040902054600160a060020a03161561166757600080fd5b600081815260208181526040808320805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038716908117909155835260029091529020546116b4906001611740565b600160a060020a0390921660009081526002602052604090209190915550565b6000903b1190565b600160a060020a03821615156116f157600080fd5b6116fb82826110a5565b604080518281529051600160a060020a038416916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b81810182811015610a1457fe5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061178e57805160ff19168380011785556117bb565b828001600101855582156117bb579182015b828111156117bb5782518255916020019190600101906117a0565b506117c79291506117eb565b5090565b8154818355818111156107ec576000838152602090206107ec9181019083015b6106e191905b808211156117c757600081556001016117f15600a165627a7a723058208117f823f2533691b0c868a4d6509200b655b5e613ee5cc07fc727dddeafe79d0029

Swarm Source

bzzr://8117f823f2533691b0c868a4d6509200b655b5e613ee5cc07fc727dddeafe79d
Loading...
Loading
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.