ETH Price: $1,992.26 (-1.81%)

Contract

0x15820072729d045EC5232ba3bd060ec5Df38E09a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...197930322024-05-04 0:01:59327 days ago1714780919IN
LORDLESS: Tavern NFT
0 ETH0.000158646.41709332
Set Approval For...165574212023-02-04 19:11:23781 days ago1675537883IN
LORDLESS: Tavern NFT
0 ETH0.0006843325.60947678
Set Approval For...165574112023-02-04 19:09:23781 days ago1675537763IN
LORDLESS: Tavern NFT
0 ETH0.0006708127.13449124
Set Approval For...164142342023-01-15 19:17:35801 days ago1673810255IN
LORDLESS: Tavern NFT
0 ETH0.0005031720.35331124
Set Approval For...160406982022-11-24 15:20:59853 days ago1669303259IN
LORDLESS: Tavern NFT
0 ETH0.0003312913.4010178
Set Approval For...158815382022-11-02 9:47:35876 days ago1667382455IN
LORDLESS: Tavern NFT
0 ETH0.0002527410.22330111
Set Approval For...157278182022-10-11 22:21:59897 days ago1665526919IN
LORDLESS: Tavern NFT
0 ETH0.0013420528.83036853
Transfer From156426072022-09-30 0:34:59909 days ago1664498099IN
LORDLESS: Tavern NFT
0 ETH0.0014914213.97681185
Set Approval For...151593252022-07-17 9:18:33984 days ago1658049513IN
LORDLESS: Tavern NFT
0 ETH0.0002827211.43597778
Set Approval For...138796752021-12-26 8:18:061187 days ago1640506686IN
LORDLESS: Tavern NFT
0 ETH0.0022670248.61315617
Set Approval For...130569812021-08-19 17:10:441315 days ago1629393044IN
LORDLESS: Tavern NFT
0 ETH0.0030904466.27029939
Set Approval For...130502492021-08-18 16:20:391316 days ago1629303639IN
LORDLESS: Tavern NFT
0 ETH0.01094358234.66968327
Transfer From127224622021-06-28 12:12:121368 days ago1624882332IN
LORDLESS: Tavern NFT
0 ETH0.0003272711
Transfer From127224512021-06-28 12:09:341368 days ago1624882174IN
LORDLESS: Tavern NFT
0 ETH0.0003629312.19870367
Transfer From127223802021-06-28 11:55:321368 days ago1624881332IN
LORDLESS: Tavern NFT
0 ETH0.0003598512.1
Transfer From127223752021-06-28 11:54:121368 days ago1624881252IN
LORDLESS: Tavern NFT
0 ETH0.0007478612.1
Transfer From127223722021-06-28 11:53:591368 days ago1624881239IN
LORDLESS: Tavern NFT
0 ETH0.0009859713.2
Transfer From127223712021-06-28 11:53:491368 days ago1624881229IN
LORDLESS: Tavern NFT
0 ETH0.0011432113.2
Transfer From127223702021-06-28 11:53:391368 days ago1624881219IN
LORDLESS: Tavern NFT
0 ETH0.0011361212.1
Set Approval For...125883082021-06-07 15:52:001388 days ago1623081120IN
LORDLESS: Tavern NFT
0 ETH0.0006995115
Set Approval For...124869692021-05-22 22:59:541404 days ago1621724394IN
LORDLESS: Tavern NFT
0 ETH0.0015389233
Set Approval For...124524322021-05-17 14:28:241409 days ago1621261704IN
LORDLESS: Tavern NFT
0 ETH0.0031244767
Set Approval For...123510632021-05-01 22:34:011425 days ago1619908441IN
LORDLESS: Tavern NFT
0 ETH0.0013990230
Set Approval For...120487712021-03-16 9:09:311472 days ago1615885771IN
LORDLESS: Tavern NFT
0 ETH0.00553074122.00000145
Set Approval For...119409172021-02-27 18:22:331488 days ago1614450153IN
LORDLESS: Tavern NFT
0 ETH0.00503207111
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TavernNFTs

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-09-04
*/

pragma solidity ^0.4.24;

/**
 * @title TavernNFTs - LORDLESS tavern NFTs Contract
 * TavernNFTs records the relationship of Tavern ownership.
 * 
 * ████████╗  █████╗  ██╗   ██╗ ███████╗ ██████╗  ███╗   ██╗ ███╗   ██╗ ███████╗ ████████╗ ███████╗ ██╗
 * ╚══██╔══╝ ██╔══██╗ ██║   ██║ ██╔════╝ ██╔══██╗ ████╗  ██║ ████╗  ██║ ██╔════╝ ╚══██╔══╝ ██╔════╝ ██║
 *    ██║    ███████║ ██║   ██║ █████╗   ██████╔╝ ██╔██╗ ██║ ██╔██╗ ██║ █████╗      ██║    ███████╗ ██║
 *    ██║    ██╔══██║ ╚██╗ ██╔╝ ██╔══╝   ██╔══██╗ ██║╚██╗██║ ██║╚██╗██║ ██╔══╝      ██║    ╚════██║ ╚═╝
 *    ██║    ██║  ██║  ╚████╔╝  ███████╗ ██║  ██║ ██║ ╚████║ ██║ ╚████║ ██║         ██║    ███████║ ██╗
 *    ╚═╝    ╚═╝  ╚═╝   ╚═══╝   ╚══════╝ ╚═╝  ╚═╝ ╚═╝  ╚═══╝ ╚═╝  ╚═══╝ ╚═╝         ╚═╝    ╚══════╝ ╚═╝
 *
 * ---
 * POWERED BY
 * ╦   ╔═╗ ╦═╗ ╔╦╗ ╦   ╔═╗ ╔═╗ ╔═╗      ╔╦╗ ╔═╗ ╔═╗ ╔╦╗
 * ║   ║ ║ ╠╦╝  ║║ ║   ║╣  ╚═╗ ╚═╗       ║  ║╣  ╠═╣ ║║║
 * ╩═╝ ╚═╝ ╩╚═ ═╩╝ ╩═╝ ╚═╝ ╚═╝ ╚═╝       ╩  ╚═╝ ╩ ╩ ╩ ╩
 * game at https://lordless.io
 * code at https://github.com/lordlessio
 */

// File: node_modules/zeppelin-solidity/contracts/access/rbac/Roles.sol

/**
 * @title Roles
 * @author Francisco Giordano (@frangio)
 * @dev Library for managing addresses assigned to a Role.
 * See RBAC.sol for example usage.
 */
library Roles {
  struct Role {
    mapping (address => bool) bearer;
  }

  /**
   * @dev give an address access to this role
   */
  function add(Role storage _role, address _addr)
    internal
  {
    _role.bearer[_addr] = true;
  }

  /**
   * @dev remove an address' access to this role
   */
  function remove(Role storage _role, address _addr)
    internal
  {
    _role.bearer[_addr] = false;
  }

  /**
   * @dev check if an address has this role
   * // reverts
   */
  function check(Role storage _role, address _addr)
    internal
    view
  {
    require(has(_role, _addr));
  }

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

// File: node_modules/zeppelin-solidity/contracts/access/rbac/RBAC.sol

/**
 * @title RBAC (Role-Based Access Control)
 * @author Matt Condon (@Shrugs)
 * @dev Stores and provides setters and getters for roles and addresses.
 * Supports unlimited numbers of roles and addresses.
 * See //contracts/mocks/RBACMock.sol for an example of usage.
 * This RBAC method uses strings to key roles. It may be beneficial
 * for you to write your own implementation of this interface using Enums or similar.
 */
contract RBAC {
  using Roles for Roles.Role;

  mapping (string => Roles.Role) private roles;

  event RoleAdded(address indexed operator, string role);
  event RoleRemoved(address indexed operator, string role);

  /**
   * @dev reverts if addr does not have role
   * @param _operator address
   * @param _role the name of the role
   * // reverts
   */
  function checkRole(address _operator, string _role)
    public
    view
  {
    roles[_role].check(_operator);
  }

  /**
   * @dev determine if addr has role
   * @param _operator address
   * @param _role the name of the role
   * @return bool
   */
  function hasRole(address _operator, string _role)
    public
    view
    returns (bool)
  {
    return roles[_role].has(_operator);
  }

  /**
   * @dev add a role to an address
   * @param _operator address
   * @param _role the name of the role
   */
  function addRole(address _operator, string _role)
    internal
  {
    roles[_role].add(_operator);
    emit RoleAdded(_operator, _role);
  }

  /**
   * @dev remove a role from an address
   * @param _operator address
   * @param _role the name of the role
   */
  function removeRole(address _operator, string _role)
    internal
  {
    roles[_role].remove(_operator);
    emit RoleRemoved(_operator, _role);
  }

  /**
   * @dev modifier to scope access to a single role (uses msg.sender as addr)
   * @param _role the name of the role
   * // reverts
   */
  modifier onlyRole(string _role)
  {
    checkRole(msg.sender, _role);
    _;
  }

  /**
   * @dev modifier to scope access to a set of roles (uses msg.sender as addr)
   * @param _roles the names of the roles to scope access to
   * // reverts
   *
   * @TODO - when solidity supports dynamic arrays as arguments to modifiers, provide this
   *  see: https://github.com/ethereum/solidity/issues/2467
   */
  // modifier onlyRoles(string[] _roles) {
  //     bool hasAnyRole = false;
  //     for (uint8 i = 0; i < _roles.length; i++) {
  //         if (hasRole(msg.sender, _roles[i])) {
  //             hasAnyRole = true;
  //             break;
  //         }
  //     }

  //     require(hasAnyRole);

  //     _;
  // }
}

// File: node_modules/zeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @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.
   * @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 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;
  }
}

// File: node_modules/zeppelin-solidity/contracts/ownership/Superuser.sol

/**
 * @title Superuser
 * @dev The Superuser contract defines a single superuser who can transfer the ownership
 * of a contract to a new address, even if he is not the owner.
 * A superuser can transfer his role to a new address.
 */
contract Superuser is Ownable, RBAC {
  string public constant ROLE_SUPERUSER = "superuser";

  constructor () public {
    addRole(msg.sender, ROLE_SUPERUSER);
  }

  /**
   * @dev Throws if called by any account that's not a superuser.
   */
  modifier onlySuperuser() {
    checkRole(msg.sender, ROLE_SUPERUSER);
    _;
  }

  modifier onlyOwnerOrSuperuser() {
    require(msg.sender == owner || isSuperuser(msg.sender));
    _;
  }

  /**
   * @dev getter to determine if address has superuser role
   */
  function isSuperuser(address _addr)
    public
    view
    returns (bool)
  {
    return hasRole(_addr, ROLE_SUPERUSER);
  }

  /**
   * @dev Allows the current superuser to transfer his role to a newSuperuser.
   * @param _newSuperuser The address to transfer ownership to.
   */
  function transferSuperuser(address _newSuperuser) public onlySuperuser {
    require(_newSuperuser != address(0));
    removeRole(msg.sender, ROLE_SUPERUSER);
    addRole(_newSuperuser, ROLE_SUPERUSER);
  }

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

// File: node_modules/zeppelin-solidity/contracts/introspection/ERC165.sol

/**
 * @title ERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface ERC165 {

  /**
   * @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: node_modules/zeppelin-solidity/contracts/introspection/SupportsInterfaceWithLookup.sol

/**
 * @title SupportsInterfaceWithLookup
 * @author Matt Condon (@shrugs)
 * @dev Implements ERC165 using a lookup table.
 */
contract SupportsInterfaceWithLookup is ERC165 {

  bytes4 public constant InterfaceId_ERC165 = 0x01ffc9a7;
  /**
   * 0x01ffc9a7 ===
   *   bytes4(keccak256('supportsInterface(bytes4)'))
   */

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

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

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

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

// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Basic.sol

/**
 * @title ERC721 Non-Fungible Token Standard basic interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Basic is ERC165 {

  bytes4 internal constant InterfaceId_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)'))
   */

  bytes4 internal constant InterfaceId_ERC721Exists = 0x4f558e79;
  /*
   * 0x4f558e79 ===
   *   bytes4(keccak256('exists(uint256)'))
   */

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

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

  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 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;
}

// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721.sol

/**
 * @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() external view returns (string _name);
  function symbol() external 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 {
}

// File: node_modules/zeppelin-solidity/contracts/AddressUtils.sol

/**
 * 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;
  }

}

// File: node_modules/zeppelin-solidity/contracts/math/SafeMath.sol

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

// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol

/**
 * @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,address,uint256,bytes)"))`,
   *  which can be also obtained as `ERC721Receiver(0).onERC721Received.selector`
   */
  bytes4 internal constant ERC721_RECEIVED = 0x150b7a02;

  /**
   * @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. Return of other than the magic value MUST result in the
   * transaction being reverted.
   * Note: the 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 _data
  )
    public
    returns(bytes4);
}

// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721BasicToken.sol

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {

  using SafeMath for uint256;
  using AddressUtils for address;

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

  // 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;

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

  /**
   * @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
   * 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
   * @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
   * 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));
    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
   * 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
  {
    // solium-disable-next-line arg-overflow
    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 _data
  )
    public
  {
    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
   * 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
   * 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
   * 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);
    }
  }

  /**
   * @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
   * 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(
      msg.sender, _from, _tokenId, _data);
    return (retval == ERC721_RECEIVED);
  }
}

// File: node_modules/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol

/**
 * @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 SupportsInterfaceWithLookup, ERC721BasicToken, ERC721 {

  // 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;

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

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

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

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

    // To prevent a gap in the array, we store the last token in the index of the token to delete, and
    // then delete the last slot.
    uint256 tokenIndex = ownedTokensIndex[_tokenId];
    uint256 lastTokenIndex = ownedTokens[_from].length.sub(1);
    uint256 lastToken = ownedTokens[_from][lastTokenIndex];

    ownedTokens[_from][tokenIndex] = lastToken;
    // This also deletes the contents at the last position of the array
    ownedTokens[_from].length--;

    // 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

    ownedTokensIndex[_tokenId] = 0;
    ownedTokensIndex[lastToken] = tokenIndex;
  }

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

}

// File: contracts/nft/ITavernNFTs.sol

contract ITavernNFTs is ERC721 {
  function setTavernContract(address tavern) external;
  function mint(address to, uint256 tokenId) public;
  function batchMint(address[] tos, uint256[] tokenIds) external;
  function burn(uint256 tokenId) public;
  function setTokenURI(uint256 tokenId, string uri) public;
  function tavern(uint256 tokenId) external view returns (uint256, int, int, uint8, uint256);

  /* Events */

  event SetTavernContract (
    address tavern
  );

}

// File: contracts/nft/TavernNFTs.sol


interface TavernInterface {
  function tavern(uint256 tokenId) external view returns (uint256, int, int, uint8, uint256);
}

contract TavernNFTs is ERC721Token, Superuser, ITavernNFTs {
  constructor(string name, string symbol) public
    ERC721Token(name, symbol)
  { }

  TavernInterface public tavernContract;
  uint16 public constant MAX_SUPPLY = 4000;  // Tavern MAX SUPPLY

  /**
   * @dev set the Tavern contract address
   * @return tavern Tavern contract address
   */
  function setTavernContract(address tavern) onlySuperuser external {
    tavernContract = TavernInterface(tavern);
    emit SetTavernContract(tavern);
  }
  
  function mint(address to, uint256 tokenId) onlySuperuser public {
    require(tokenId < MAX_SUPPLY);
    super._mint(to, tokenId);
  }

  function batchMint(address[] tos, uint256[] tokenIds) onlySuperuser external {
    uint256 i = 0;
    while (i < tokenIds.length) {
      super._mint(tos[i], tokenIds[i]);
      i += 1;
    }
  }

  function burn(uint256 tokenId) onlySuperuser public {
    super._burn(ownerOf(tokenId), tokenId);
  }
  
  /**
   * @dev Future use on ipfs or other decentralized storage platforms
   */
  function setTokenURI(uint256 _tokenId, string _uri) onlyOwnerOrSuperuser public {
    super._setTokenURI(_tokenId, _uri);
  }

  /**
   * @dev get a Tavern's infomation 
   * @param tokenId tokenId
   * @return uint256 Tavern's construction time
   * @return int Tavern's longitude value 
   * @return int Tavern's latitude value
   * @return uint8 Tavern's popularity
   * @return uint256 Tavern's activeness
   */
  function tavern(uint256 tokenId) external view returns (uint256, int, int, uint8, uint256){
    return tavernContract.tavern(tokenId);
  }

}

Contract Security Audit

Contract ABI

API
[{"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":true,"inputs":[{"name":"_operator","type":"address"},{"name":"_role","type":"string"}],"name":"checkRole","outputs":[],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_uri","type":"string"}],"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":true,"inputs":[],"name":"InterfaceId_ERC165","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_operator","type":"address"},{"name":"_role","type":"string"}],"name":"hasRole","outputs":[{"name":"","type":"bool"}],"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":true,"inputs":[],"name":"MAX_SUPPLY","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tavern","type":"address"}],"name":"setTavernContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","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":[],"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":"_newSuperuser","type":"address"}],"name":"transferSuperuser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tos","type":"address[]"},{"name":"tokenIds","type":"uint256[]"}],"name":"batchMint","outputs":[],"payable":false,"stateMutability":"nonpayable","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":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"tavern","outputs":[{"name":"","type":"uint256"},{"name":"","type":"int256"},{"name":"","type":"int256"},{"name":"","type":"uint8"},{"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":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_addr","type":"address"}],"name":"isSuperuser","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":"tavernContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","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":true,"inputs":[],"name":"ROLE_SUPERUSER","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"name","type":"string"},{"name":"symbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tavern","type":"address"}],"name":"SetTavernContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"role","type":"string"}],"name":"RoleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"role","type":"string"}],"name":"RoleRemoved","type":"event"},{"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":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"}]

60806040523480156200001157600080fd5b506040516200215e3803806200215e833981016040528051602082015190820191018181620000697f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000620001cd810204565b6200009d7f80ac58cd00000000000000000000000000000000000000000000000000000000640100000000620001cd810204565b620000d17f4f558e7900000000000000000000000000000000000000000000000000000000640100000000620001cd810204565b8151620000e690600590602085019062000385565b508051620000fc90600690602084019062000385565b50620001317f780e9d6300000000000000000000000000000000000000000000000000000000640100000000620001cd810204565b620001657f5b5e139f00000000000000000000000000000000000000000000000000000000640100000000620001cd810204565b5050600c8054600160a060020a0319163390811790915560408051808201909152600981527f73757065727573657200000000000000000000000000000000000000000000006020820152620001c591906401000000006200023a810204565b50506200042a565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620001fd57600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b620002b682600d836040518082805190602001908083835b60208310620002735780518252601f19909201916020918201910162000252565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505064010000000062000360810262001ba21704565b81600160a060020a03167fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b700489826040518080602001828103825283818151815260200191508051906020019080838360005b838110156200032157818101518382015260200162000307565b50505050905090810190601f1680156200034f5780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003c857805160ff1916838001178555620003f8565b82800160010185558215620003f8579182015b82811115620003f8578251825591602001919060010190620003db565b50620004069291506200040a565b5090565b6200042791905b8082111562000406576000815560010162000411565b90565b611d24806200043a6000396000f3006080604052600436106101ab5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146101b057806306fdde03146101e6578063081812fc14610270578063095ea7b3146102a45780630988ca8c146102ca578063162094c41461033157806318160ddd1461038f57806319fa8f50146103b6578063217fe6c6146103e857806323b872dd1461044f5780632f745c591461047957806332cb6b0c1461049d57806334955a2b146104c957806340c10f19146104ea57806342842e0e1461050e57806342966c68146105385780634f558e79146105505780634f6ccce71461056857806357c393fa146105805780636352211e146105a157806368573107146105b957806370a08231146105e5578063715018a6146106065780638da5cb5b1461061b57806395d89b4114610630578063a22cb46514610645578063acb461df1461066b578063b88d4fde146106b1578063bceee05e14610720578063c87b56dd14610741578063c8ceae1214610759578063e985e9c51461076e578063ebb4f48414610795578063f2fde38b146107aa575b600080fd5b3480156101bc57600080fd5b506101d2600160e060020a0319600435166107cb565b604080519115158252519081900360200190f35b3480156101f257600080fd5b506101fb6107ea565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027c57600080fd5b50610288600435610881565b60408051600160a060020a039092168252519081900360200190f35b3480156102b057600080fd5b506102c8600160a060020a036004351660243561089c565b005b3480156102d657600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526102c8958335600160a060020a03169536956044949193909101919081908401838280828437509497506109459650505050505050565b34801561033d57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526102c89583359536956044949193909101919081908401838280828437509497506109b39650505050505050565b34801561039b57600080fd5b506103a46109e5565b60408051918252519081900360200190f35b3480156103c257600080fd5b506103cb6109eb565b60408051600160e060020a03199092168252519081900360200190f35b3480156103f457600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101d2958335600160a060020a0316953695604494919390910191908190840183828082843750949750610a0f9650505050505050565b34801561045b57600080fd5b506102c8600160a060020a0360043581169060243516604435610a82565b34801561048557600080fd5b506103a4600160a060020a0360043516602435610b25565b3480156104a957600080fd5b506104b2610b72565b6040805161ffff9092168252519081900360200190f35b3480156104d557600080fd5b506102c8600160a060020a0360043516610b78565b3480156104f657600080fd5b506102c8600160a060020a0360043516602435610bf9565b34801561051a57600080fd5b506102c8600160a060020a0360043581169060243516604435610c3e565b34801561054457600080fd5b506102c8600435610c5f565b34801561055c57600080fd5b506101d2600435610ca1565b34801561057457600080fd5b506103a4600435610cbe565b34801561058c57600080fd5b506102c8600160a060020a0360043516610cf3565b3480156105ad57600080fd5b50610288600435610d8f565b3480156105c557600080fd5b506102c86024600480358281019290820135918135918201910135610db9565b3480156105f157600080fd5b506103a4600160a060020a0360043516610e3c565b34801561061257600080fd5b506102c8610e6f565b34801561062757600080fd5b50610288610ed0565b34801561063c57600080fd5b506101fb610edf565b34801561065157600080fd5b506102c8600160a060020a03600435166024351515610f40565b34801561067757600080fd5b50610683600435610fc4565b6040805195865260208601949094528484019290925260ff1660608401526080830152519081900360a00190f35b3480156106bd57600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526102c894600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506110969650505050505050565b34801561072c57600080fd5b506101d2600160a060020a03600435166110be565b34801561074d57600080fd5b506101fb6004356110ed565b34801561076557600080fd5b506102886111a2565b34801561077a57600080fd5b506101d2600160a060020a03600435811690602435166111b1565b3480156107a157600080fd5b506101fb6111df565b3480156107b657600080fd5b506102c8600160a060020a0360043516611204565b600160e060020a03191660009081526020819052604090205460ff1690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108765780601f1061084b57610100808354040283529160200191610876565b820191906000526020600020905b81548152906001019060200180831161085957829003601f168201915b505050505090505b90565b600090815260026020526040902054600160a060020a031690565b60006108a782610d8f565b9050600160a060020a0383811690821614156108c257600080fd5b33600160a060020a03821614806108de57506108de81336111b1565b15156108e957600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109af82600d836040518082805190602001908083835b6020831061097b5780518252601f19909201916020918201910161095c565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611235565b5050565b600c54600160a060020a03163314806109d057506109d0336110be565b15156109db57600080fd5b6109af828261124a565b60095490565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b6000610a7b83600d846040518082805190602001908083835b60208310610a475780518252601f199092019160209182019101610a28565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505061127d565b9392505050565b610a8c338261129c565b1515610a9757600080fd5b600160a060020a0383161515610aac57600080fd5b600160a060020a0382161515610ac157600080fd5b610acb83826112fb565b610ad5838261135d565b610adf8282611464565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610b3083610e3c565b8210610b3b57600080fd5b600160a060020a0383166000908152600760205260409020805483908110610b5f57fe5b9060005260206000200154905092915050565b610fa081565b610ba533604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b600e8054600160a060020a038316600160a060020a0319909116811790915560408051918252517f1318c71f755ca9fa5d23f5279c1157d06a0fec7c93c82bead5ce77c87d4cf1069181900360200190a150565b610c2633604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b610fa08110610c3457600080fd5b6109af82826114ad565b610c5a8383836020604051908101604052806000815250611096565b505050565b610c8c33604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b610c9e610c9882610d8f565b826114fc565b50565b600090815260016020526040902054600160a060020a0316151590565b6000610cc86109e5565b8210610cd357600080fd5b6009805483908110610ce157fe5b90600052602060002001549050919050565b610d2033604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b600160a060020a0381161515610d3557600080fd5b610d6233604080519081016040528060098152602001600080516020611cd98339815191528152506115f6565b610c9e81604080519081016040528060098152602001600080516020611cd9833981519152815250611707565b600081815260016020526040812054600160a060020a0316801515610db357600080fd5b92915050565b6000610de833604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b5060005b81811015610e3557610e2d858583818110610e0357fe5b90506020020135600160a060020a03168484848181101515610e2157fe5b905060200201356114ad565b600101610dec565b5050505050565b6000600160a060020a0382161515610e5357600080fd5b50600160a060020a031660009081526003602052604090205490565b600c54600160a060020a03163314610e8657600080fd5b600c54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600c8054600160a060020a0319169055565b600c54600160a060020a031681565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108765780601f1061084b57610100808354040283529160200191610876565b600160a060020a038216331415610f5657600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6000806000806000600e60009054906101000a9004600160a060020a0316600160a060020a031663acb461df876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082815260200191505060a060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505050506040513d60a081101561106d57600080fd5b508051602082015160408301516060840151608090940151929a91995097509195509350915050565b6110a1848484610a82565b6110ad848484846117d9565b15156110b857600080fd5b50505050565b6000610db382604080519081016040528060098152602001600080516020611cd9833981519152815250610a0f565b60606110f882610ca1565b151561110357600080fd5b6000828152600b602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b50505050509050919050565b600e54600160a060020a031681565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6040805180820190915260098152600080516020611cd9833981519152602082015281565b600c54600160a060020a03163314806112215750611221336110be565b151561122c57600080fd5b610c9e81611946565b61123f828261127d565b15156109af57600080fd5b61125382610ca1565b151561125e57600080fd5b6000828152600b602090815260409091208251610c5a92840190611bdc565b600160a060020a03166000908152602091909152604090205460ff1690565b6000806112a883610d8f565b905080600160a060020a031684600160a060020a031614806112e3575083600160a060020a03166112d884610881565b600160a060020a0316145b806112f357506112f381856111b1565b949350505050565b81600160a060020a031661130e82610d8f565b600160a060020a03161461132157600080fd5b600081815260026020526040902054600160a060020a0316156109af5760009081526002602052604090208054600160a060020a031916905550565b600080600061136c85856119b7565b600084815260086020908152604080832054600160a060020a03891684526007909252909120549093506113a790600163ffffffff611a4016565b600160a060020a0386166000908152600760205260409020805491935090839081106113cf57fe5b90600052602060002001549050806007600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561140f57fe5b6000918252602080832090910192909255600160a060020a0387168152600790915260409020805490611446906000198301611c5a565b50600093845260086020526040808520859055908452909220555050565b60006114708383611a52565b50600160a060020a039091166000908152600760209081526040808320805460018101825590845282842081018590559383526008909152902055565b6114b78282611ad5565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af015550565b600080600061150b8585611b30565b6000848152600b60205260409020546002600019610100600184161502019091160415611549576000848152600b6020526040812061154991611c7e565b6000848152600a602052604090205460095490935061156f90600163ffffffff611a4016565b915060098281548110151561158057fe5b906000526020600020015490508060098481548110151561159d57fe5b600091825260208220019190915560098054849081106115b957fe5b60009182526020909120015560098054906115d8906000198301611c5a565b506000938452600a6020526040808520859055908452909220555050565b61166082600d836040518082805190602001908083835b6020831061162c5780518252601f19909201916020918201910161160d565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611b80565b81600160a060020a03167fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a826040518080602001828103825283818151815260200191508051906020019080838360005b838110156116c95781810151838201526020016116b1565b50505050905090810190601f1680156116f65780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b61177182600d836040518082805190602001908083835b6020831061173d5780518252601f19909201916020918201910161171e565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611ba2565b81600160a060020a03167fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982604051808060200182810382528381815181526020019150805190602001908083836000838110156116c95781810151838201526020016116b1565b6000806117ee85600160a060020a0316611bc7565b15156117fd576001915061193d565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015611890578181015183820152602001611878565b50505050905090810190601f1680156118bd5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156118df57600080fd5b505af11580156118f3573d6000803e3d6000fd5b505050506040513d602081101561190957600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b600160a060020a038116151561195b57600080fd5b600c54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c8054600160a060020a031916600160a060020a0392909216919091179055565b81600160a060020a03166119ca82610d8f565b600160a060020a0316146119dd57600080fd5b600160a060020a038216600090815260036020526040902054611a0790600163ffffffff611a4016565b600160a060020a039092166000908152600360209081526040808320949094559181526001909152208054600160a060020a0319169055565b600082821115611a4c57fe5b50900390565b600081815260016020526040902054600160a060020a031615611a7457600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054611ab591611bcf565b600160a060020a0390921660009081526003602052604090209190915550565b600160a060020a0382161515611aea57600080fd5b611af48282611464565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611b3a82826112fb565b611b44828261135d565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600160a060020a0316600090815260209190915260409020805460ff19169055565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000903b1190565b81810182811015610db357fe5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611c1d57805160ff1916838001178555611c4a565b82800160010185558215611c4a579182015b82811115611c4a578251825591602001919060010190611c2f565b50611c56929150611cbe565b5090565b815481835581811115610c5a57600083815260209020610c5a918101908301611cbe565b50805460018160011615610100020316600290046000825580601f10611ca45750610c9e565b601f016020900490600052602060002090810190610c9e91905b61087e91905b80821115611c565760008155600101611cc456007375706572757365720000000000000000000000000000000000000000000000a165627a7a72305820337e6641dc10378495684f54a291745bf3858c48a91440dce6ae99dfdb7fabe1002900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a54617665726e204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000654617665726e0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ab5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146101b057806306fdde03146101e6578063081812fc14610270578063095ea7b3146102a45780630988ca8c146102ca578063162094c41461033157806318160ddd1461038f57806319fa8f50146103b6578063217fe6c6146103e857806323b872dd1461044f5780632f745c591461047957806332cb6b0c1461049d57806334955a2b146104c957806340c10f19146104ea57806342842e0e1461050e57806342966c68146105385780634f558e79146105505780634f6ccce71461056857806357c393fa146105805780636352211e146105a157806368573107146105b957806370a08231146105e5578063715018a6146106065780638da5cb5b1461061b57806395d89b4114610630578063a22cb46514610645578063acb461df1461066b578063b88d4fde146106b1578063bceee05e14610720578063c87b56dd14610741578063c8ceae1214610759578063e985e9c51461076e578063ebb4f48414610795578063f2fde38b146107aa575b600080fd5b3480156101bc57600080fd5b506101d2600160e060020a0319600435166107cb565b604080519115158252519081900360200190f35b3480156101f257600080fd5b506101fb6107ea565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561023557818101518382015260200161021d565b50505050905090810190601f1680156102625780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561027c57600080fd5b50610288600435610881565b60408051600160a060020a039092168252519081900360200190f35b3480156102b057600080fd5b506102c8600160a060020a036004351660243561089c565b005b3480156102d657600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526102c8958335600160a060020a03169536956044949193909101919081908401838280828437509497506109459650505050505050565b34801561033d57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526102c89583359536956044949193909101919081908401838280828437509497506109b39650505050505050565b34801561039b57600080fd5b506103a46109e5565b60408051918252519081900360200190f35b3480156103c257600080fd5b506103cb6109eb565b60408051600160e060020a03199092168252519081900360200190f35b3480156103f457600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101d2958335600160a060020a0316953695604494919390910191908190840183828082843750949750610a0f9650505050505050565b34801561045b57600080fd5b506102c8600160a060020a0360043581169060243516604435610a82565b34801561048557600080fd5b506103a4600160a060020a0360043516602435610b25565b3480156104a957600080fd5b506104b2610b72565b6040805161ffff9092168252519081900360200190f35b3480156104d557600080fd5b506102c8600160a060020a0360043516610b78565b3480156104f657600080fd5b506102c8600160a060020a0360043516602435610bf9565b34801561051a57600080fd5b506102c8600160a060020a0360043581169060243516604435610c3e565b34801561054457600080fd5b506102c8600435610c5f565b34801561055c57600080fd5b506101d2600435610ca1565b34801561057457600080fd5b506103a4600435610cbe565b34801561058c57600080fd5b506102c8600160a060020a0360043516610cf3565b3480156105ad57600080fd5b50610288600435610d8f565b3480156105c557600080fd5b506102c86024600480358281019290820135918135918201910135610db9565b3480156105f157600080fd5b506103a4600160a060020a0360043516610e3c565b34801561061257600080fd5b506102c8610e6f565b34801561062757600080fd5b50610288610ed0565b34801561063c57600080fd5b506101fb610edf565b34801561065157600080fd5b506102c8600160a060020a03600435166024351515610f40565b34801561067757600080fd5b50610683600435610fc4565b6040805195865260208601949094528484019290925260ff1660608401526080830152519081900360a00190f35b3480156106bd57600080fd5b50604080516020601f6064356004818101359283018490048402850184019095528184526102c894600160a060020a0381358116956024803590921695604435953695608494019181908401838280828437509497506110969650505050505050565b34801561072c57600080fd5b506101d2600160a060020a03600435166110be565b34801561074d57600080fd5b506101fb6004356110ed565b34801561076557600080fd5b506102886111a2565b34801561077a57600080fd5b506101d2600160a060020a03600435811690602435166111b1565b3480156107a157600080fd5b506101fb6111df565b3480156107b657600080fd5b506102c8600160a060020a0360043516611204565b600160e060020a03191660009081526020819052604090205460ff1690565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108765780601f1061084b57610100808354040283529160200191610876565b820191906000526020600020905b81548152906001019060200180831161085957829003601f168201915b505050505090505b90565b600090815260026020526040902054600160a060020a031690565b60006108a782610d8f565b9050600160a060020a0383811690821614156108c257600080fd5b33600160a060020a03821614806108de57506108de81336111b1565b15156108e957600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109af82600d836040518082805190602001908083835b6020831061097b5780518252601f19909201916020918201910161095c565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611235565b5050565b600c54600160a060020a03163314806109d057506109d0336110be565b15156109db57600080fd5b6109af828261124a565b60095490565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b6000610a7b83600d846040518082805190602001908083835b60208310610a475780518252601f199092019160209182019101610a28565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209291505061127d565b9392505050565b610a8c338261129c565b1515610a9757600080fd5b600160a060020a0383161515610aac57600080fd5b600160a060020a0382161515610ac157600080fd5b610acb83826112fb565b610ad5838261135d565b610adf8282611464565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610b3083610e3c565b8210610b3b57600080fd5b600160a060020a0383166000908152600760205260409020805483908110610b5f57fe5b9060005260206000200154905092915050565b610fa081565b610ba533604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b600e8054600160a060020a038316600160a060020a0319909116811790915560408051918252517f1318c71f755ca9fa5d23f5279c1157d06a0fec7c93c82bead5ce77c87d4cf1069181900360200190a150565b610c2633604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b610fa08110610c3457600080fd5b6109af82826114ad565b610c5a8383836020604051908101604052806000815250611096565b505050565b610c8c33604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b610c9e610c9882610d8f565b826114fc565b50565b600090815260016020526040902054600160a060020a0316151590565b6000610cc86109e5565b8210610cd357600080fd5b6009805483908110610ce157fe5b90600052602060002001549050919050565b610d2033604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b600160a060020a0381161515610d3557600080fd5b610d6233604080519081016040528060098152602001600080516020611cd98339815191528152506115f6565b610c9e81604080519081016040528060098152602001600080516020611cd9833981519152815250611707565b600081815260016020526040812054600160a060020a0316801515610db357600080fd5b92915050565b6000610de833604080519081016040528060098152602001600080516020611cd9833981519152815250610945565b5060005b81811015610e3557610e2d858583818110610e0357fe5b90506020020135600160a060020a03168484848181101515610e2157fe5b905060200201356114ad565b600101610dec565b5050505050565b6000600160a060020a0382161515610e5357600080fd5b50600160a060020a031660009081526003602052604090205490565b600c54600160a060020a03163314610e8657600080fd5b600c54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600c8054600160a060020a0319169055565b600c54600160a060020a031681565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108765780601f1061084b57610100808354040283529160200191610876565b600160a060020a038216331415610f5657600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6000806000806000600e60009054906101000a9004600160a060020a0316600160a060020a031663acb461df876040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082815260200191505060a060405180830381600087803b15801561104357600080fd5b505af1158015611057573d6000803e3d6000fd5b505050506040513d60a081101561106d57600080fd5b508051602082015160408301516060840151608090940151929a91995097509195509350915050565b6110a1848484610a82565b6110ad848484846117d9565b15156110b857600080fd5b50505050565b6000610db382604080519081016040528060098152602001600080516020611cd9833981519152815250610a0f565b60606110f882610ca1565b151561110357600080fd5b6000828152600b602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156111965780601f1061116b57610100808354040283529160200191611196565b820191906000526020600020905b81548152906001019060200180831161117957829003601f168201915b50505050509050919050565b600e54600160a060020a031681565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b6040805180820190915260098152600080516020611cd9833981519152602082015281565b600c54600160a060020a03163314806112215750611221336110be565b151561122c57600080fd5b610c9e81611946565b61123f828261127d565b15156109af57600080fd5b61125382610ca1565b151561125e57600080fd5b6000828152600b602090815260409091208251610c5a92840190611bdc565b600160a060020a03166000908152602091909152604090205460ff1690565b6000806112a883610d8f565b905080600160a060020a031684600160a060020a031614806112e3575083600160a060020a03166112d884610881565b600160a060020a0316145b806112f357506112f381856111b1565b949350505050565b81600160a060020a031661130e82610d8f565b600160a060020a03161461132157600080fd5b600081815260026020526040902054600160a060020a0316156109af5760009081526002602052604090208054600160a060020a031916905550565b600080600061136c85856119b7565b600084815260086020908152604080832054600160a060020a03891684526007909252909120549093506113a790600163ffffffff611a4016565b600160a060020a0386166000908152600760205260409020805491935090839081106113cf57fe5b90600052602060002001549050806007600087600160a060020a0316600160a060020a031681526020019081526020016000208481548110151561140f57fe5b6000918252602080832090910192909255600160a060020a0387168152600790915260409020805490611446906000198301611c5a565b50600093845260086020526040808520859055908452909220555050565b60006114708383611a52565b50600160a060020a039091166000908152600760209081526040808320805460018101825590845282842081018590559383526008909152902055565b6114b78282611ad5565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af015550565b600080600061150b8585611b30565b6000848152600b60205260409020546002600019610100600184161502019091160415611549576000848152600b6020526040812061154991611c7e565b6000848152600a602052604090205460095490935061156f90600163ffffffff611a4016565b915060098281548110151561158057fe5b906000526020600020015490508060098481548110151561159d57fe5b600091825260208220019190915560098054849081106115b957fe5b60009182526020909120015560098054906115d8906000198301611c5a565b506000938452600a6020526040808520859055908452909220555050565b61166082600d836040518082805190602001908083835b6020831061162c5780518252601f19909201916020918201910161160d565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611b80565b81600160a060020a03167fd211483f91fc6eff862467f8de606587a30c8fc9981056f051b897a418df803a826040518080602001828103825283818151815260200191508051906020019080838360005b838110156116c95781810151838201526020016116b1565b50505050905090810190601f1680156116f65780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b61177182600d836040518082805190602001908083835b6020831061173d5780518252601f19909201916020918201910161171e565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611ba2565b81600160a060020a03167fbfec83d64eaa953f2708271a023ab9ee82057f8f3578d548c1a4ba0b5b70048982604051808060200182810382528381815181526020019150805190602001908083836000838110156116c95781810151838201526020016116b1565b6000806117ee85600160a060020a0316611bc7565b15156117fd576001915061193d565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b83811015611890578181015183820152602001611878565b50505050905090810190601f1680156118bd5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b1580156118df57600080fd5b505af11580156118f3573d6000803e3d6000fd5b505050506040513d602081101561190957600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b600160a060020a038116151561195b57600080fd5b600c54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600c8054600160a060020a031916600160a060020a0392909216919091179055565b81600160a060020a03166119ca82610d8f565b600160a060020a0316146119dd57600080fd5b600160a060020a038216600090815260036020526040902054611a0790600163ffffffff611a4016565b600160a060020a039092166000908152600360209081526040808320949094559181526001909152208054600160a060020a0319169055565b600082821115611a4c57fe5b50900390565b600081815260016020526040902054600160a060020a031615611a7457600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054611ab591611bcf565b600160a060020a0390921660009081526003602052604090209190915550565b600160a060020a0382161515611aea57600080fd5b611af48282611464565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b611b3a82826112fb565b611b44828261135d565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600160a060020a0316600090815260209190915260409020805460ff19169055565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b6000903b1190565b81810182811015610db357fe5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611c1d57805160ff1916838001178555611c4a565b82800160010185558215611c4a579182015b82811115611c4a578251825591602001919060010190611c2f565b50611c56929150611cbe565b5090565b815481835581811115610c5a57600083815260209020610c5a918101908301611cbe565b50805460018160011615610100020316600290046000825580601f10611ca45750610c9e565b601f016020900490600052602060002090810190610c9e91905b61087e91905b80821115611c565760008155600101611cc456007375706572757365720000000000000000000000000000000000000000000000a165627a7a72305820337e6641dc10378495684f54a291745bf3858c48a91440dce6ae99dfdb7fabe10029

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000a54617665726e204e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000654617665726e0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Tavern NFT
Arg [1] : symbol (string): Tavern

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 54617665726e204e465400000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 54617665726e0000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://337e6641dc10378495684f54a291745bf3858c48a91440dce6ae99dfdb7fabe1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

LORDLESS is a fantasy game where you rule your Tavern.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.