ETH Price: $3,164.02 (+0.90%)

KnownOriginDigitalAsset (KODA)
 

Overview

TokenID

204902

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Discover, buy and collect digital assets of artwork by some of the world's most respected artists, illustrators and creative practitioners.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
KnownOriginDigitalAssetV2

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;

// File: openzeppelin-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: contracts/v2/AccessControl.sol

/**
 * @title Based on OpenZeppelin Whitelist & RBCA contracts
 * @dev The AccessControl contract provides different access for addresses, and provides basic authorization control functions.
 */
contract AccessControl {

  using Roles for Roles.Role;

  uint8 public constant ROLE_KNOWN_ORIGIN = 1;
  uint8 public constant ROLE_MINTER = 2;
  uint8 public constant ROLE_UNDER_MINTER = 3;

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

  address public owner;

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

  modifier onlyIfKnownOrigin() {
    require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN));
    _;
  }

  modifier onlyIfMinter() {
    require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN) || hasRole(msg.sender, ROLE_MINTER));
    _;
  }

  modifier onlyIfUnderMinter() {
    require(msg.sender == owner || hasRole(msg.sender, ROLE_KNOWN_ORIGIN) || hasRole(msg.sender, ROLE_UNDER_MINTER));
    _;
  }

  constructor() public {
    owner = msg.sender;
  }

  ////////////////////////////////////
  // Whitelist/RBCA Derived Methods //
  ////////////////////////////////////

  function addAddressToAccessControl(address _operator, uint8 _role)
  public
  onlyIfKnownOrigin
  {
    roles[_role].add(_operator);
    emit RoleAdded(_operator, _role);
  }

  function removeAddressFromAccessControl(address _operator, uint8 _role)
  public
  onlyIfKnownOrigin
  {
    roles[_role].remove(_operator);
    emit RoleRemoved(_operator, _role);
  }

  function checkRole(address _operator, uint8 _role)
  public
  view
  {
    roles[_role].check(_operator);
  }

  function hasRole(address _operator, uint8 _role)
  public
  view
  returns (bool)
  {
    return roles[_role].has(_operator);
  }

}

// File: openzeppelin-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: openzeppelin-solidity/contracts/ownership/HasNoEther.sol

/**
 * @title Contracts that should not own Ether
 * @author Remco Bloemen <remco@2π.com>
 * @dev This tries to block incoming ether to prevent accidental loss of Ether. Should Ether end up
 * in the contract, it will allow the owner to reclaim this Ether.
 * @notice Ether can still be sent to this contract by:
 * calling functions labeled `payable`
 * `selfdestruct(contract_address)`
 * mining directly to the contract address
 */
contract HasNoEther is Ownable {

  /**
  * @dev Constructor that rejects incoming Ether
  * The `payable` flag is added so we can access `msg.value` without compiler warning. If we
  * leave out payable, then Solidity will allow inheriting contracts to implement a payable
  * constructor. By doing it this way we prevent a payable constructor from working. Alternatively
  * we could use assembly to access msg.value.
  */
  constructor() public payable {
    require(msg.value == 0);
  }

  /**
   * @dev Disallows direct send by setting a default function without the `payable` flag.
   */
  function() external {
  }

  /**
   * @dev Transfer all Ether held by the contract to the owner.
   */
  function reclaimEther() external onlyOwner {
    owner.transfer(address(this).balance);
  }
}

// File: openzeppelin-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: openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() public onlyOwner whenNotPaused {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() public onlyOwner whenPaused {
    paused = false;
    emit Unpause();
  }
}

// File: openzeppelin-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: openzeppelin-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: openzeppelin-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: openzeppelin-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: openzeppelin-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: openzeppelin-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: openzeppelin-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: openzeppelin-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/v2/Strings.sol

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

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

// File: contracts/v2/KnownOriginDigitalAssetV2.sol

// allows for multi-address access controls to different functions


// Prevents stuck ether


// For safe maths operations


// Pause purchasing only in case of emergency/migration


// ERC721


// Utils only


/**
* @title KnownOriginDigitalAsset - V2
*
* http://www.knownorigin.io/
*
* ERC721 compliant digital assets for real-world artwork.
*
* Base NFT Issuance Contract
*
* BE ORIGINAL. BUY ORIGINAL.
*
*/
contract KnownOriginDigitalAssetV2 is
ERC721Token,
AccessControl,
HasNoEther,
Pausable
{
  using SafeMath for uint256;

  ////////////
  // Events //
  ////////////

  // Emitted on purchases from within this contract
  event Purchase(
    uint256 indexed _tokenId,
    uint256 indexed _editionNumber,
    address indexed _buyer,
    uint256 _priceInWei
  );

  // Emitted on every mint
  event Minted(
    uint256 indexed _tokenId,
    uint256 indexed _editionNumber,
    address indexed _buyer
  );

  // Emitted on every edition created
  event EditionCreated(
    uint256 indexed _editionNumber,
    bytes32 indexed _editionData,
    uint256 indexed _editionType
  );

  ////////////////
  // Properties //
  ////////////////

  uint256 constant internal MAX_UINT32 = ~uint32(0);

  string public tokenBaseURI = "https://ipfs.infura.io/ipfs/";

  // simple counter to keep track of the highest edition number used
  uint256 public highestEditionNumber;

  // total wei been processed through the contract
  uint256 public totalPurchaseValueInWei;

  // number of assets minted of any type
  uint256 public totalNumberMinted;

  // number of assets available of any type
  uint256 public totalNumberAvailable;

  // the KO account which can receive commission
  address public koCommissionAccount;

  // Optional commission split can be defined per edition
  mapping(uint256 => CommissionSplit) editionNumberToOptionalCommissionSplit;

  // Simple structure providing an optional commission split per edition purchase
  struct CommissionSplit {
    uint256 rate;
    address recipient;
  }

  // Object for edition details
  struct EditionDetails {
    // Identifiers
    uint256 editionNumber;    // the range e.g. 10000
    bytes32 editionData;      // some data about the edition
    uint256 editionType;      // e.g. 1 = KODA V1, 2 = KOTA, 3 = Bespoke partnership
    // Config
    uint256 startDate;        // date when the edition goes on sale
    uint256 endDate;          // date when the edition is available until
    address artistAccount;    // artists account
    uint256 artistCommission; // base artists commission, could be overridden by external contracts
    uint256 priceInWei;       // base price for edition, could be overridden by external contracts
    string tokenURI;          // IPFS hash - see base URI
    bool active;              // Root control - on/off for the edition
    // Counters
    uint256 totalSupply;      // Total purchases or mints
    uint256 totalAvailable;   // Total number available to be purchased
  }

  // _editionNumber : EditionDetails
  mapping(uint256 => EditionDetails) internal editionNumberToEditionDetails;

  // _tokenId : _editionNumber
  mapping(uint256 => uint256) internal tokenIdToEditionNumber;

  // _editionNumber : [_tokenId, _tokenId]
  mapping(uint256 => uint256[]) internal editionNumberToTokenIds;
  mapping(uint256 => uint256) internal editionNumberToTokenIdIndex;

  // _artistAccount : [_editionNumber, _editionNumber]
  mapping(address => uint256[]) internal artistToEditionNumbers;
  mapping(uint256 => uint256) internal editionNumberToArtistIndex;

  // _editionType : [_editionNumber, _editionNumber]
  mapping(uint256 => uint256[]) internal editionTypeToEditionNumber;
  mapping(uint256 => uint256) internal editionNumberToTypeIndex;

  ///////////////
  // Modifiers //
  ///////////////

  modifier onlyAvailableEdition(uint256 _editionNumber) {
    require(editionNumberToEditionDetails[_editionNumber].totalSupply < editionNumberToEditionDetails[_editionNumber].totalAvailable, "No more editions left to purchase");
    _;
  }

  modifier onlyActiveEdition(uint256 _editionNumber) {
    require(editionNumberToEditionDetails[_editionNumber].active, "Edition not active");
    _;
  }

  modifier onlyRealEdition(uint256 _editionNumber) {
    require(editionNumberToEditionDetails[_editionNumber].editionNumber > 0, "Edition number invalid");
    _;
  }

  modifier onlyValidTokenId(uint256 _tokenId) {
    require(exists(_tokenId), "Token ID does not exist");
    _;
  }

  modifier onlyPurchaseDuringWindow(uint256 _editionNumber) {
    require(editionNumberToEditionDetails[_editionNumber].startDate <= block.timestamp, "Edition not available yet");
    require(editionNumberToEditionDetails[_editionNumber].endDate >= block.timestamp, "Edition no longer available");
    _;
  }

  /*
   * Constructor
   */
  constructor () public payable ERC721Token("KnownOriginDigitalAsset", "KODA") {
    // set commission account to contract creator
    koCommissionAccount = msg.sender;
  }

  /**
   * @dev Creates an active edition from the given configuration
   * @dev Only callable from KO staff/addresses
   */
  function createActiveEdition(
    uint256 _editionNumber,
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalAvailable
  )
  public
  onlyIfKnownOrigin
  returns (bool)
  {
    return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
  }

  /**
   * @dev Creates an inactive edition from the given configuration
   * @dev Only callable from KO staff/addresses
   */
  function createInactiveEdition(
    uint256 _editionNumber,
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalAvailable
  )
  public
  onlyIfKnownOrigin
  returns (bool)
  {
    return _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
  }

  /**
   * @dev Creates an active edition from the given configuration
   * @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
   * @dev Only callable from KO staff/addresses
   */
  function createActivePreMintedEdition(
    uint256 _editionNumber,
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalSupply,
    uint256 _totalAvailable
  )
  public
  onlyIfKnownOrigin
  returns (bool)
  {
    _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, true);
    updateTotalSupply(_editionNumber, _totalSupply);
    return true;
  }

  /**
   * @dev Creates an inactive edition from the given configuration
   * @dev The concept of pre0minted editions means we can 'undermint' token IDS, good for holding back editions from public sale
   * @dev Only callable from KO staff/addresses
   */
  function createInactivePreMintedEdition(
    uint256 _editionNumber,
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalSupply,
    uint256 _totalAvailable
  )
  public
  onlyIfKnownOrigin
  returns (bool)
  {
    _createEdition(_editionNumber, _editionData, _editionType, _startDate, _endDate, _artistAccount, _artistCommission, _priceInWei, _tokenURI, _totalAvailable, false);
    updateTotalSupply(_editionNumber, _totalSupply);
    return true;
  }

  /**
   * @dev Internal factory method for building editions
   */
  function _createEdition(
    uint256 _editionNumber,
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalAvailable,
    bool _active
  )
  internal
  returns (bool)
  {
    // Prevent missing edition number
    require(_editionNumber != 0, "Edition number not provided");

    // Prevent edition number lower than last one used
    require(_editionNumber > highestEditionNumber, "Edition number must be greater than previously used");

    // Check previously edition plus total available is less than new edition number
    require(highestEditionNumber.add(editionNumberToEditionDetails[highestEditionNumber].totalAvailable) < _editionNumber, "Edition number must be greater than previously used plus total available");

    // Prevent missing types
    require(_editionType != 0, "Edition type not provided");

    // Prevent missing token URI
    require(bytes(_tokenURI).length != 0, "Token URI is missing");

    // Prevent empty artists address
    require(_artistAccount != address(0), "Artist account not provided");

    // Prevent invalid commissions
    require(_artistCommission <= 100 && _artistCommission >= 0, "Artist commission cannot be greater than 100 or less than 0");

    // Prevent duplicate editions
    require(editionNumberToEditionDetails[_editionNumber].editionNumber == 0, "Edition already in existence");

    // Default end date to max uint256
    uint256 endDate = _endDate;
    if (_endDate == 0) {
      endDate = MAX_UINT32;
    }

    editionNumberToEditionDetails[_editionNumber] = EditionDetails({
      editionNumber : _editionNumber,
      editionData : _editionData,
      editionType : _editionType,
      startDate : _startDate,
      endDate : endDate,
      artistAccount : _artistAccount,
      artistCommission : _artistCommission,
      priceInWei : _priceInWei,
      tokenURI : _tokenURI,
      totalSupply : 0, // default to all available
      totalAvailable : _totalAvailable,
      active : _active
      });

    // Add to total available count
    totalNumberAvailable = totalNumberAvailable.add(_totalAvailable);

    // Update mappings
    _updateArtistLookupData(_artistAccount, _editionNumber);
    _updateEditionTypeLookupData(_editionType, _editionNumber);

    emit EditionCreated(_editionNumber, _editionData, _editionType);

    // Update the edition pointer if needs be
    highestEditionNumber = _editionNumber;

    return true;
  }

  function _updateEditionTypeLookupData(uint256 _editionType, uint256 _editionNumber) internal {
    uint256 typeEditionIndex = editionTypeToEditionNumber[_editionType].length;
    editionTypeToEditionNumber[_editionType].push(_editionNumber);
    editionNumberToTypeIndex[_editionNumber] = typeEditionIndex;
  }

  function _updateArtistLookupData(address _artistAccount, uint256 _editionNumber) internal {
    uint256 artistEditionIndex = artistToEditionNumbers[_artistAccount].length;
    artistToEditionNumbers[_artistAccount].push(_editionNumber);
    editionNumberToArtistIndex[_editionNumber] = artistEditionIndex;
  }

  /**
   * @dev Public entry point for purchasing an edition
   * @dev Reverts if edition is invalid
   * @dev Reverts if payment not provided in full
   * @dev Reverts if edition is sold out
   * @dev Reverts if edition is not active or available
   */
  function purchase(uint256 _editionNumber)
  public
  payable
  returns (uint256) {
    return purchaseTo(msg.sender, _editionNumber);
  }

  /**
   * @dev Public entry point for purchasing an edition on behalf of someone else
   * @dev Reverts if edition is invalid
   * @dev Reverts if payment not provided in full
   * @dev Reverts if edition is sold out
   * @dev Reverts if edition is not active or available
   */
  function purchaseTo(address _to, uint256 _editionNumber)
  public
  payable
  whenNotPaused
  onlyRealEdition(_editionNumber)
  onlyActiveEdition(_editionNumber)
  onlyAvailableEdition(_editionNumber)
  onlyPurchaseDuringWindow(_editionNumber)
  returns (uint256) {

    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    require(msg.value >= _editionDetails.priceInWei, "Value must be greater than price of edition");

    // Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
    uint256 _tokenId = _nextTokenId(_editionNumber);

    // Create the token
    _mintToken(_to, _tokenId, _editionNumber, _editionDetails.tokenURI);

    // Splice funds and handle commissions
    _handleFunds(_editionNumber, _editionDetails.priceInWei, _editionDetails.artistAccount, _editionDetails.artistCommission);

    // Broadcast purchase
    emit Purchase(_tokenId, _editionNumber, _to, msg.value);

    return _tokenId;
  }

  /**
   * @dev Private (KO only) method for minting editions
   * @dev Payment not needed for this method
   */
  function mint(address _to, uint256 _editionNumber)
  public
  onlyIfMinter
  onlyRealEdition(_editionNumber)
  onlyAvailableEdition(_editionNumber)
  returns (uint256) {
    // Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
    uint256 _tokenId = _nextTokenId(_editionNumber);

    // Create the token
    _mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);

    // Create the token
    return _tokenId;
  }

  /**
   * @dev Private (KO only) method for under minting editions
   * @dev Under minting allows for token IDs to be back filled if total supply is not set to zero by default
   * @dev Payment not needed for this method
   */
  function underMint(address _to, uint256 _editionNumber)
  public
  onlyIfUnderMinter
  onlyRealEdition(_editionNumber)
  returns (uint256) {
    // Under mint token, meaning it takes one from the already sold version
    uint256 _tokenId = _underMintNextTokenId(_editionNumber);

    // If the next tokenId generate is more than the available number, abort as we have reached maximum under mint
    if (_tokenId > _editionNumber.add(editionNumberToEditionDetails[_editionNumber].totalAvailable)) {
      revert("Reached max tokenId, cannot under mint anymore");
    }

    // Create the token
    _mintToken(_to, _tokenId, _editionNumber, editionNumberToEditionDetails[_editionNumber].tokenURI);

    // Create the token
    return _tokenId;
  }

  function _nextTokenId(uint256 _editionNumber) internal returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];

    // Bump number totalSupply
    _editionDetails.totalSupply = _editionDetails.totalSupply.add(1);

    // Construct next token ID e.g. 100000 + 1 = ID of 100001 (this first in the edition set)
    return _editionDetails.editionNumber.add(_editionDetails.totalSupply);
  }

  function _underMintNextTokenId(uint256 _editionNumber) internal returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];

    // For old editions start the counter as edition + 1
    uint256 _tokenId = _editionDetails.editionNumber.add(1);

    // Work your way up until you find a free token based on the new _tokenIdd
    while (exists(_tokenId)) {
      _tokenId = _tokenId.add(1);
    }

    // Bump number totalSupply if we are now over minting new tokens
    if (_tokenId > _editionDetails.editionNumber.add(_editionDetails.totalSupply)) {
      _editionDetails.totalSupply = _editionDetails.totalSupply.add(1);
    }

    return _tokenId;
  }

  function _mintToken(address _to, uint256 _tokenId, uint256 _editionNumber, string _tokenURI) internal {

    // Mint new base token
    super._mint(_to, _tokenId);
    super._setTokenURI(_tokenId, _tokenURI);

    // Maintain mapping for tokenId to edition for lookup
    tokenIdToEditionNumber[_tokenId] = _editionNumber;

    // Get next insert position for edition to token Id mapping
    uint256 currentIndexOfTokenId = editionNumberToTokenIds[_editionNumber].length;

    // Maintain mapping of edition to token array for "edition minted tokens"
    editionNumberToTokenIds[_editionNumber].push(_tokenId);

    // Maintain a position index for the tokenId within the edition number mapping array, used for clean up token burn
    editionNumberToTokenIdIndex[_tokenId] = currentIndexOfTokenId;

    // Record sale volume
    totalNumberMinted = totalNumberMinted.add(1);

    // Emit minted event
    emit Minted(_tokenId, _editionNumber, _to);
  }

  function _handleFunds(uint256 _editionNumber, uint256 _priceInWei, address _artistAccount, uint256 _artistCommission) internal {

    // Extract the artists commission and send it
    uint256 artistPayment = _priceInWei.div(100).mul(_artistCommission);
    if (artistPayment > 0) {
      _artistAccount.transfer(artistPayment);
    }

    // Load any commission overrides
    CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];

    // Apply optional commission structure
    if (commission.rate > 0) {
      uint256 rateSplit = _priceInWei.div(100).mul(commission.rate);
      commission.recipient.transfer(rateSplit);
    }

    // Send remaining eth to KO
    uint256 remainingCommission = msg.value.sub(artistPayment).sub(rateSplit);
    koCommissionAccount.transfer(remainingCommission);

    // Record wei sale value
    totalPurchaseValueInWei = totalPurchaseValueInWei.add(msg.value);
  }

  /**
   * @dev Private (KO only) method for burning tokens which have been created incorrectly
   */
  function burn(uint256 _tokenId) public onlyIfKnownOrigin {

    // Clear from parents
    super._burn(ownerOf(_tokenId), _tokenId);

    // Get hold of the edition for cleanup
    uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];

    // Delete token ID mapping
    delete tokenIdToEditionNumber[_tokenId];

    // Delete tokens associated to the edition - this will leave a gap in the array of zero
    uint256[] storage tokenIdsForEdition = editionNumberToTokenIds[_editionNumber];
    uint256 editionTokenIdIndex = editionNumberToTokenIdIndex[_tokenId];
    delete tokenIdsForEdition[editionTokenIdIndex];
  }

  /**
   * @dev An extension to the default ERC721 behaviour, derived from ERC-875.
   * @dev Allowing for batch transfers from the sender, will fail if from does not own all the tokens
   */
  function batchTransfer(address _to, uint256[] _tokenIds) public {
    for (uint i = 0; i < _tokenIds.length; i++) {
      safeTransferFrom(ownerOf(_tokenIds[i]), _to, _tokenIds[i]);
    }
  }

  /**
   * @dev An extension to the default ERC721 behaviour, derived from ERC-875.
   * @dev Allowing for batch transfers from the provided address, will fail if from does not own all the tokens
   */
  function batchTransferFrom(address _from, address _to, uint256[] _tokenIds) public {
    for (uint i = 0; i < _tokenIds.length; i++) {
      transferFrom(_from, _to, _tokenIds[i]);
    }
  }

  //////////////////
  // Base Updates //
  //////////////////

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

  function updateKoCommissionAccount(address _koCommissionAccount)
  external
  onlyIfKnownOrigin {
    require(_koCommissionAccount != address(0), "Invalid address");
    koCommissionAccount = _koCommissionAccount;
  }

  /////////////////////
  // Edition Updates //
  /////////////////////

  function updateEditionTokenURI(uint256 _editionNumber, string _uri)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].tokenURI = _uri;
  }

  function updatePriceInWei(uint256 _editionNumber, uint256 _priceInWei)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].priceInWei = _priceInWei;
  }

  function updateArtistCommission(uint256 _editionNumber, uint256 _rate)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].artistCommission = _rate;
  }

  function updateArtistsAccount(uint256 _editionNumber, address _artistAccount)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {

    EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];

    uint256 editionArtistIndex = editionNumberToArtistIndex[_editionNumber];

    // Get list of editions old artist works with
    uint256[] storage editionNumbersForArtist = artistToEditionNumbers[_originalEditionDetails.artistAccount];

    // Remove edition from artists lists
    delete editionNumbersForArtist[editionArtistIndex];

    // Add new artists to the list
    uint256 newArtistsEditionIndex = artistToEditionNumbers[_artistAccount].length;
    artistToEditionNumbers[_artistAccount].push(_editionNumber);
    editionNumberToArtistIndex[_editionNumber] = newArtistsEditionIndex;

    // Update the edition
    _originalEditionDetails.artistAccount = _artistAccount;
  }

  function updateEditionType(uint256 _editionNumber, uint256 _editionType)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {

    EditionDetails storage _originalEditionDetails = editionNumberToEditionDetails[_editionNumber];

    // Get list of editions for old type
    uint256[] storage editionNumbersForType = editionTypeToEditionNumber[_originalEditionDetails.editionType];

    // Remove edition from old type list
    uint256 editionTypeIndex = editionNumberToTypeIndex[_editionNumber];
    delete editionNumbersForType[editionTypeIndex];

    // Add new type to the list
    uint256 newTypeEditionIndex = editionTypeToEditionNumber[_editionType].length;
    editionTypeToEditionNumber[_editionType].push(_editionNumber);
    editionNumberToTypeIndex[_editionNumber] = newTypeEditionIndex;

    // Update the edition
    _originalEditionDetails.editionType = _editionType;
  }

  function updateActive(uint256 _editionNumber, bool _active)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].active = _active;
  }

  function updateTotalSupply(uint256 _editionNumber, uint256 _totalSupply)
  public
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    require(tokensOfEdition(_editionNumber).length <= _totalSupply, "Can not lower totalSupply to below the number of tokens already in existence");
    editionNumberToEditionDetails[_editionNumber].totalSupply = _totalSupply;
  }

  function updateTotalAvailable(uint256 _editionNumber, uint256 _totalAvailable)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];

    require(_editionDetails.totalSupply <= _totalAvailable, "Unable to reduce available amount to the below the number totalSupply");

    uint256 originalAvailability = _editionDetails.totalAvailable;
    _editionDetails.totalAvailable = _totalAvailable;
    totalNumberAvailable = totalNumberAvailable.sub(originalAvailability).add(_totalAvailable);
  }

  function updateStartDate(uint256 _editionNumber, uint256 _startDate)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].startDate = _startDate;
  }

  function updateEndDate(uint256 _editionNumber, uint256 _endDate)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    editionNumberToEditionDetails[_editionNumber].endDate = _endDate;
  }

  function updateOptionalCommission(uint256 _editionNumber, uint256 _rate, address _recipient)
  external
  onlyIfKnownOrigin
  onlyRealEdition(_editionNumber) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    uint256 artistCommission = _editionDetails.artistCommission;

    if (_rate > 0) {
      require(_recipient != address(0), "Setting a rate must be accompanied by a valid address");
    }
    require(artistCommission.add(_rate) <= 100, "Cant set commission greater than 100%");

    editionNumberToOptionalCommissionSplit[_editionNumber] = CommissionSplit({rate : _rate, recipient : _recipient});
  }

  ///////////////////
  // Token Updates //
  ///////////////////

  function setTokenURI(uint256 _tokenId, string _uri)
  external
  onlyIfKnownOrigin
  onlyValidTokenId(_tokenId) {
    _setTokenURI(_tokenId, _uri);
  }

  ///////////////////
  // Query Methods //
  ///////////////////

  /**
   * @dev Lookup the edition of the provided token ID
   * @dev Returns 0 if not valid
   */
  function editionOfTokenId(uint256 _tokenId) public view returns (uint256 _editionNumber) {
    return tokenIdToEditionNumber[_tokenId];
  }

  /**
   * @dev Lookup all editions added for the given edition type
   * @dev Returns array of edition numbers, any zero edition ids can be ignore/stripped
   */
  function editionsOfType(uint256 _type) public view returns (uint256[] _editionNumbers) {
    return editionTypeToEditionNumber[_type];
  }

  /**
   * @dev Lookup all editions for the given artist account
   * @dev Returns empty list if not valid
   */
  function artistsEditions(address _artistsAccount) public view returns (uint256[] _editionNumbers) {
    return artistToEditionNumbers[_artistsAccount];
  }

  /**
   * @dev Lookup all tokens minted for the given edition number
   * @dev Returns array of token IDs, any zero edition ids can be ignore/stripped
   */
  function tokensOfEdition(uint256 _editionNumber) public view returns (uint256[] _tokenIds) {
    return editionNumberToTokenIds[_editionNumber];
  }

  /**
   * @dev Lookup all owned tokens for the provided address
   * @dev Returns array of token IDs
   */
  function tokensOf(address _owner) public view returns (uint256[] _tokenIds) {
    return ownedTokens[_owner];
  }

  /**
   * @dev Checks to see if the edition exists, assumes edition of zero is invalid
   */
  function editionExists(uint256 _editionNumber) public view returns (bool) {
    if (_editionNumber == 0) {
      return false;
    }
    EditionDetails storage editionNumber = editionNumberToEditionDetails[_editionNumber];
    return editionNumber.editionNumber == _editionNumber;
  }

  /**
   * @dev Lookup any optional commission split set for the edition
   * @dev Both values will be zero if not present
   */
  function editionOptionalCommission(uint256 _editionNumber) public view returns (uint256 _rate, address _recipient) {
    CommissionSplit storage commission = editionNumberToOptionalCommissionSplit[_editionNumber];
    return (commission.rate, commission.recipient);
  }

  /**
   * @dev Main entry point for looking up edition config/metadata
   * @dev Reverts if invalid edition number provided
   */
  function detailsOfEdition(uint256 editionNumber)
  public view
  onlyRealEdition(editionNumber)
  returns (
    bytes32 _editionData,
    uint256 _editionType,
    uint256 _startDate,
    uint256 _endDate,
    address _artistAccount,
    uint256 _artistCommission,
    uint256 _priceInWei,
    string _tokenURI,
    uint256 _totalSupply,
    uint256 _totalAvailable,
    bool _active
  ) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[editionNumber];
    return (
    _editionDetails.editionData,
    _editionDetails.editionType,
    _editionDetails.startDate,
    _editionDetails.endDate,
    _editionDetails.artistAccount,
    _editionDetails.artistCommission,
    _editionDetails.priceInWei,
    Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI),
    _editionDetails.totalSupply,
    _editionDetails.totalAvailable,
    _editionDetails.active
    );
  }

  /**
   * @dev Lookup a tokens common identifying characteristics
   * @dev Reverts if invalid token ID provided
   */
  function tokenData(uint256 _tokenId)
  public view
  onlyValidTokenId(_tokenId)
  returns (
    uint256 _editionNumber,
    uint256 _editionType,
    bytes32 _editionData,
    string _tokenURI,
    address _owner
  ) {
    uint256 editionNumber = tokenIdToEditionNumber[_tokenId];
    EditionDetails storage editionDetails = editionNumberToEditionDetails[editionNumber];
    return (
    editionNumber,
    editionDetails.editionType,
    editionDetails.editionData,
    tokenURI(_tokenId),
    ownerOf(_tokenId)
    );
  }

  function tokenURI(uint256 _tokenId) public view onlyValidTokenId(_tokenId) returns (string) {
    return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
  }

  function tokenURISafe(uint256 _tokenId) public view returns (string) {
    return Strings.strConcat(tokenBaseURI, tokenURIs[_tokenId]);
  }

  function purchaseDatesToken(uint256 _tokenId) public view returns (uint256 _startDate, uint256 _endDate) {
    uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
    return purchaseDatesEdition(_editionNumber);
  }

  function priceInWeiToken(uint256 _tokenId) public view returns (uint256 _priceInWei) {
    uint256 _editionNumber = tokenIdToEditionNumber[_tokenId];
    return priceInWeiEdition(_editionNumber);
  }

  //////////////////////////
  // Edition config query //
  //////////////////////////

  function editionData(uint256 _editionNumber) public view returns (bytes32) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.editionData;
  }

  function editionType(uint256 _editionNumber) public view returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.editionType;
  }

  function purchaseDatesEdition(uint256 _editionNumber) public view returns (uint256 _startDate, uint256 _endDate) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return (
    _editionDetails.startDate,
    _editionDetails.endDate
    );
  }

  function artistCommission(uint256 _editionNumber) public view returns (address _artistAccount, uint256 _artistCommission) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return (
    _editionDetails.artistAccount,
    _editionDetails.artistCommission
    );
  }

  function priceInWeiEdition(uint256 _editionNumber) public view returns (uint256 _priceInWei) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.priceInWei;
  }

  function tokenURIEdition(uint256 _editionNumber) public view returns (string) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return Strings.strConcat(tokenBaseURI, _editionDetails.tokenURI);
  }

  function editionActive(uint256 _editionNumber) public view returns (bool) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.active;
  }

  function totalRemaining(uint256 _editionNumber) public view returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.totalAvailable.sub(_editionDetails.totalSupply);
  }

  function totalAvailableEdition(uint256 _editionNumber) public view returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.totalAvailable;
  }

  function totalSupplyEdition(uint256 _editionNumber) public view returns (uint256) {
    EditionDetails storage _editionDetails = editionNumberToEditionDetails[_editionNumber];
    return _editionDetails.totalSupply;
  }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_active","type":"bool"}],"name":"updateActive","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_tokenId","type":"uint256"}],"name":"priceInWeiToken","outputs":[{"name":"_priceInWei","type":"uint256"}],"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":false,"inputs":[{"name":"_koCommissionAccount","type":"address"}],"name":"updateKoCommissionAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"InterfaceId_ERC165","outputs":[{"name":"","type":"bytes4"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"editionData","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newBaseURI","type":"string"}],"name":"updateTokenBaseURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_operator","type":"address"},{"name":"_role","type":"uint8"}],"name":"checkRole","outputs":[],"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":"totalPurchaseValueInWei","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"_editionNumber","type":"uint256"},{"name":"_startDate","type":"uint256"}],"name":"updateStartDate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"artistCommission","outputs":[{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"tokenURIEdition","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_editionNumber","type":"uint256"}],"name":"mint","outputs":[{"name":"","type":"uint256"}],"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":"totalNumberAvailable","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_operator","type":"address"},{"name":"_role","type":"uint8"}],"name":"addAddressToAccessControl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"priceInWeiEdition","outputs":[{"name":"_priceInWei","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenBaseURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","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":"_editionNumber","type":"uint256"},{"name":"_rate","type":"uint256"}],"name":"updateArtistCommission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"editionType","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"tokensOf","outputs":[{"name":"_tokenIds","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"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":"_editionNumber","type":"uint256"}],"name":"purchaseDatesEdition","outputs":[{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_artistsAccount","type":"address"}],"name":"artistsEditions","outputs":[{"name":"_editionNumbers","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"totalAvailableEdition","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"koCommissionAccount","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":"editionNumber","type":"uint256"}],"name":"detailsOfEdition","outputs":[{"name":"_editionData","type":"bytes32"},{"name":"_editionType","type":"uint256"},{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"},{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"},{"name":"_priceInWei","type":"uint256"},{"name":"_tokenURI","type":"string"},{"name":"_totalSupply","type":"uint256"},{"name":"_totalAvailable","type":"uint256"},{"name":"_active","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_uri","type":"string"}],"name":"updateEditionTokenURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"tokensOfEdition","outputs":[{"name":"_tokenIds","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_editionNumber","type":"uint256"}],"name":"underMint","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_priceInWei","type":"uint256"}],"name":"updatePriceInWei","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"editionOfTokenId","outputs":[{"name":"_editionNumber","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_editionNumber","type":"uint256"}],"name":"purchaseTo","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionData","type":"bytes32"},{"name":"_editionType","type":"uint256"},{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"},{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"},{"name":"_priceInWei","type":"uint256"},{"name":"_tokenURI","type":"string"},{"name":"_totalAvailable","type":"uint256"}],"name":"createActiveEdition","outputs":[{"name":"","type":"bool"}],"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":"ROLE_MINTER","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_operator","type":"address"},{"name":"_role","type":"uint8"}],"name":"hasRole","outputs":[{"name":"","type":"bool"}],"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":"_operator","type":"address"},{"name":"_role","type":"uint8"}],"name":"removeAddressFromAccessControl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_rate","type":"uint256"},{"name":"_recipient","type":"address"}],"name":"updateOptionalCommission","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ROLE_UNDER_MINTER","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionData","type":"bytes32"},{"name":"_editionType","type":"uint256"},{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"},{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"},{"name":"_priceInWei","type":"uint256"},{"name":"_tokenURI","type":"string"},{"name":"_totalSupply","type":"uint256"},{"name":"_totalAvailable","type":"uint256"}],"name":"createInactivePreMintedEdition","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"reclaimEther","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"highestEditionNumber","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenIds","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionData","type":"bytes32"},{"name":"_editionType","type":"uint256"},{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"},{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"},{"name":"_priceInWei","type":"uint256"},{"name":"_tokenURI","type":"string"},{"name":"_totalSupply","type":"uint256"},{"name":"_totalAvailable","type":"uint256"}],"name":"createActivePreMintedEdition","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_artistAccount","type":"address"}],"name":"updateArtistsAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenData","outputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionType","type":"uint256"},{"name":"_editionData","type":"bytes32"},{"name":"_tokenURI","type":"string"},{"name":"_owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"totalSupplyEdition","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":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"purchaseDatesToken","outputs":[{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"editionActive","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"totalRemaining","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_totalAvailable","type":"uint256"}],"name":"updateTotalAvailable","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ROLE_KNOWN_ORIGIN","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"editionExists","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":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionType","type":"uint256"}],"name":"updateEditionType","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"editionOptionalCommission","outputs":[{"name":"_rate","type":"uint256"},{"name":"_recipient","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_endDate","type":"uint256"}],"name":"updateEndDate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_editionData","type":"bytes32"},{"name":"_editionType","type":"uint256"},{"name":"_startDate","type":"uint256"},{"name":"_endDate","type":"uint256"},{"name":"_artistAccount","type":"address"},{"name":"_artistCommission","type":"uint256"},{"name":"_priceInWei","type":"uint256"},{"name":"_tokenURI","type":"string"},{"name":"_totalAvailable","type":"uint256"}],"name":"createInactiveEdition","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_type","type":"uint256"}],"name":"editionsOfType","outputs":[{"name":"_editionNumbers","type":"uint256[]"}],"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":false,"inputs":[{"name":"_editionNumber","type":"uint256"}],"name":"purchase","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"totalNumberMinted","outputs":[{"name":"","type":"uint256"}],"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":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_editionNumber","type":"uint256"},{"name":"_totalSupply","type":"uint256"}],"name":"updateTotalSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"tokenURISafe","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":true,"name":"_editionNumber","type":"uint256"},{"indexed":true,"name":"_buyer","type":"address"},{"indexed":false,"name":"_priceInWei","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":true,"name":"_editionNumber","type":"uint256"},{"indexed":true,"name":"_buyer","type":"address"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_editionNumber","type":"uint256"},{"indexed":true,"name":"_editionData","type":"bytes32"},{"indexed":true,"name":"_editionType","type":"uint256"}],"name":"EditionCreated","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","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":"operator","type":"address"},{"indexed":false,"name":"role","type":"uint8"}],"name":"RoleAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"role","type":"uint8"}],"name":"RoleRemoved","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"}]

600e805460a060020a60ff021916905560c0604052601c60808190527f68747470733a2f2f697066732e696e667572612e696f2f697066732f0000000060a09081526200005091600f91906200029f565b50604080518082018252601781527f4b6e6f776e4f726967696e4469676974616c41737365740000000000000000006020808301919091528251808401909352600483527f4b4f4441000000000000000000000000000000000000000000000000000000009083015290620000ee7f01ffc9a70000000000000000000000000000000000000000000000000000000064010000000062000232810204565b620001227f80ac58cd0000000000000000000000000000000000000000000000000000000064010000000062000232810204565b620001567f4f558e790000000000000000000000000000000000000000000000000000000064010000000062000232810204565b81516200016b9060059060208501906200029f565b508051620001819060069060208401906200029f565b50620001b67f780e9d630000000000000000000000000000000000000000000000000000000064010000000062000232810204565b620001ea7f5b5e139f0000000000000000000000000000000000000000000000000000000064010000000062000232810204565b5050600c805433600160a060020a03199182168117909255600e8054909116909117905534156200021a57600080fd5b60148054600160a060020a0319163317905562000344565b7fffffffff0000000000000000000000000000000000000000000000000000000080821614156200026257600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002e257805160ff191683800117855562000312565b8280016001018555821562000312579182015b8281111562000312578251825591602001919060010190620002f5565b506200032092915062000324565b5090565b6200034191905b808211156200032057600081556001016200032b565b90565b614ffb80620003546000396000f3006080604052600436106103dc5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146103eb57806304bb1e3d1461042157806306fdde0314610440578063081812fc146104ca578063095ea7b3146104fe5780631534738014610522578063162094c41461054c57806318160ddd14610570578063187d88031461058557806319fa8f50146105a6578063213d6771146105d85780632295ee5b146105f057806323a3ad721461061057806323b872dd146106375780632bbd84e8146106615780632f745c5914610676578063328a2c2d1461069a57806332fd8478146106b5578063385df389146106f05780633f4ba83a1461070857806340c10f191461071d57806342842e0e1461074157806342966c681461076b57806342c7ea5f14610783578063439232581461079857806343bf63e8146107bf5780634e99b800146107d75780634f558e79146107ec5780634f6ccce7146108045780635091f8811461081c578063593af56a146108375780635a3f26721461084f5780635c975abb146108c05780636352211e146108d5578063652edd41146108ed5780636641179e1461091e5780636a0286921461093f5780636e93dbdc1461095757806370a082311461096c578063715018a61461098d57806371c847b2146109a257806375dcb70a14610a965780637a85c02a14610aba5780637d55758f14610ad25780637eb9f04a14610af6578063824eec3b14610b115780638456cb5914610b29578063891407c014610b3e5780638bbb594a14610b555780638da5cb5b14610bda57806392afc33a14610bef57806395a8c58d14610c1a57806395d89b4114610c41578063975347b814610c5657806397e851f614610c7d578063985989d214610ca45780639cd7745714610cb95780639f727c2714610d45578063a22cb46514610d5a578063abf3260f14610d80578063ac3c995214610d95578063ae8a869014610df8578063afa7a25f14610e84578063b4b5b48f14610ea8578063b6f4df3414610f61578063b88d4fde14610f79578063b8f6c21914610fe8578063bbd1e1fc14611000578063bc02844c14611018578063bdcdc0bc14611030578063be46b94c1461104b578063c2b2fb5e14611060578063c87b56dd14611078578063d4f3d6b814611090578063de56a245146110ab578063e6232ba1146110e4578063e65d19ca146110ff578063e7b8d97714611184578063e985e9c51461119c578063efef39a1146111c3578063f1ff3d4b146111ce578063f2fde38b146111e3578063f3993d1114611204578063f8b4ab7a1461126f578063fee7e35d1461128a575b3480156103e857600080fd5b50005b3480156103f757600080fd5b5061040d600160e060020a0319600435166112a2565b604080519115158252519081900360200190f35b34801561042d57600080fd5b5061043e60043560243515156112c1565b005b34801561044c57600080fd5b50610455611363565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561048f578181015183820152602001610477565b50505050905090810190601f1680156104bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104d657600080fd5b506104e26004356113fa565b60408051600160a060020a039092168252519081900360200190f35b34801561050a57600080fd5b5061043e600160a060020a0360043516602435611415565b34801561052e57600080fd5b5061053a6004356114be565b60408051918252519081900360200190f35b34801561055857600080fd5b5061043e6004803590602480359081019101356114df565b34801561057c57600080fd5b5061053a6115a9565b34801561059157600080fd5b5061043e600160a060020a03600435166115af565b3480156105b257600080fd5b506105bb61165b565b60408051600160e060020a03199092168252519081900360200190f35b3480156105e457600080fd5b5061053a60043561167f565b3480156105fc57600080fd5b5061043e6004803560248101910135611694565b34801561061c57600080fd5b5061043e600160a060020a036004351660ff60243516611726565b34801561064357600080fd5b5061043e600160a060020a036004358116906024351660443561174c565b34801561066d57600080fd5b5061053a6117ef565b34801561068257600080fd5b5061053a600160a060020a03600435166024356117f5565b3480156106a657600080fd5b5061043e600435602435611843565b3480156106c157600080fd5b506106cd6004356118d7565b60408051600160a060020a03909316835260208301919091528051918290030190f35b3480156106fc57600080fd5b506104556004356118fe565b34801561071457600080fd5b5061043e611a34565b34801561072957600080fd5b5061053a600160a060020a0360043516602435611aac565b34801561074d57600080fd5b5061043e600160a060020a0360043581169060243516604435611c95565b34801561077757600080fd5b5061043e600435611cb1565b34801561078f57600080fd5b5061053a611d42565b3480156107a457600080fd5b5061043e600160a060020a036004351660ff60243516611d48565b3480156107cb57600080fd5b5061053a600435611dda565b3480156107e357600080fd5b50610455611def565b3480156107f857600080fd5b5061040d600435611e7d565b34801561081057600080fd5b5061053a600435611e9a565b34801561082857600080fd5b5061043e600435602435611ecf565b34801561084357600080fd5b5061053a600435611f63565b34801561085b57600080fd5b50610870600160a060020a0360043516611f78565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108ac578181015183820152602001610894565b505050509050019250505060405180910390f35b3480156108cc57600080fd5b5061040d611fe4565b3480156108e157600080fd5b506104e2600435611ff4565b3480156108f957600080fd5b50610905600435612018565b6040805192835260208301919091528051918290030190f35b34801561092a57600080fd5b50610870600160a060020a0360043516612035565b34801561094b57600080fd5b5061053a60043561209f565b34801561096357600080fd5b506104e26120b4565b34801561097857600080fd5b5061053a600160a060020a03600435166120c3565b34801561099957600080fd5b5061043e6120f6565b3480156109ae57600080fd5b506109ba600435612157565b604051808c600019166000191681526020018b81526020018a815260200189815260200188600160a060020a0316600160a060020a031681526020018781526020018681526020018060200185815260200184815260200183151515158152602001828103825286818151815260200191508051906020019080838360005b83811015610a51578181015183820152602001610a39565b50505050905090810190601f168015610a7e5780820380516001836020036101000a031916815260200191505b509c5050505050505050505050505060405180910390f35b348015610aa257600080fd5b5061043e600480359060248035908101910135612352565b348015610ac657600080fd5b506108706004356123f3565b348015610ade57600080fd5b5061053a600160a060020a0360043516602435612453565b348015610b0257600080fd5b5061043e600435602435612610565b348015610b1d57600080fd5b5061053a6004356126a4565b348015610b3557600080fd5b5061043e6126b6565b61053a600160a060020a0360043516602435612733565b348015610b6157600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e43595369594610124949201919081908401838280828437509497505093359450612afc9350505050565b348015610be657600080fd5b506104e2612b4c565b348015610bfb57600080fd5b50610c04612b5b565b6040805160ff9092168252519081900360200190f35b348015610c2657600080fd5b5061040d600160a060020a036004351660ff60243516612b60565b348015610c4d57600080fd5b50610455612b89565b348015610c6257600080fd5b5061043e600160a060020a036004351660ff60243516612bea565b348015610c8957600080fd5b5061043e600435602435600160a060020a0360443516612c7c565b348015610cb057600080fd5b50610c04612e7f565b348015610cc557600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e4359536959461012494920191908190840183828082843750949750508435955050506020909201359150612e849050565b348015610d5157600080fd5b5061043e612ee2565b348015610d6657600080fd5b5061043e600160a060020a03600435166024351515612f36565b348015610d8c57600080fd5b5061053a612fba565b348015610da157600080fd5b5060408051602060046024803582810135848102808701860190975280865261043e968435600160a060020a031696369660449591949091019291829185019084908082843750949750612fc09650505050505050565b348015610e0457600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e43595369594610124949201919081908401838280828437509497505084359550505060209092013591506130159050565b348015610e9057600080fd5b5061043e600435600160a060020a0360243516613056565b348015610eb457600080fd5b50610ec0600435613186565b604080518681526020808201879052918101859052600160a060020a038316608082015260a06060820181815285519183019190915284519192909160c084019186019080838360005b83811015610f22578181015183820152602001610f0a565b50505050905090810190601f168015610f4f5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b348015610f6d57600080fd5b5061053a600435613248565b348015610f8557600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261043e94600160a060020a03813581169560248035909216956044359536956084940191819084018382808284375094975061325d9650505050505050565b348015610ff457600080fd5b5061090560043561327f565b34801561100c57600080fd5b5061040d6004356132a3565b34801561102457600080fd5b5061053a6004356132bb565b34801561103c57600080fd5b5061043e6004356024356132e2565b34801561105757600080fd5b50610c0461345a565b34801561106c57600080fd5b5061040d60043561345f565b34801561108457600080fd5b50610455600435613487565b34801561109c57600080fd5b5061043e6004356024356135e2565b3480156110b757600080fd5b506110c36004356136f0565b60408051928352600160a060020a0390911660208301528051918290030190f35b3480156110f057600080fd5b5061043e600435602435613716565b34801561110b57600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e435953695946101249492019190819084018382808284375094975050933594506137aa9350505050565b34801561119057600080fd5b506108706004356137eb565b3480156111a857600080fd5b5061040d600160a060020a036004358116906024351661384b565b61053a600435613879565b3480156111da57600080fd5b5061053a613885565b3480156111ef57600080fd5b5061043e600160a060020a036004351661388b565b34801561121057600080fd5b50604080516020600460443581810135838102808601850190965280855261043e958335600160a060020a0390811696602480359092169636969560649592949301928291850190849080828437509497506138ab9650505050505050565b34801561127b57600080fd5b5061043e6004356024356138e1565b34801561129657600080fd5b50610455600435613a22565b600160e060020a03191660009081526020819052604090205460ff1690565b600c54600160a060020a03163314806112e057506112e0336001612b60565b15156112eb57600080fd5b60008281526016602052604081205483911061133f576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b50600091825260166020526040909120600901805460ff1916911515919091179055565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113ef5780601f106113c4576101008083540402835291602001916113ef565b820191906000526020600020905b8154815290600101906020018083116113d257829003601f168201915b505050505090505b90565b600090815260026020526040902054600160a060020a031690565b600061142082611ff4565b9050600160a060020a03838116908216141561143b57600080fd5b33600160a060020a03821614806114575750611457813361384b565b151561146257600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152601760205260408120546114d681611dda565b91505b50919050565b600c54600160a060020a03163314806114fe57506114fe336001612b60565b151561150957600080fd5b8261151381611e7d565b1515611569576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b6115a38484848080601f01602080910402602001604051908101604052809392919081815260200183838082843750613b1d945050505050565b50505050565b60095490565b600c54600160a060020a03163314806115ce57506115ce336001612b60565b15156115d957600080fd5b600160a060020a0381161515611639576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60148054600160a060020a031916600160a060020a0392909216919091179055565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b60009081526016602052604090206001015490565b600c54600160a060020a03163314806116b357506116b3336001612b60565b15156116be57600080fd5b801515611715576040805160e560020a62461bcd02815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b611721600f8383614e45565b505050565b60ff81166000908152600d60205260409020611748908363ffffffff613b5016565b5050565b6117563382613b65565b151561176157600080fd5b600160a060020a038316151561177657600080fd5b600160a060020a038216151561178b57600080fd5b6117958382613bc4565b61179f8382613c26565b6117a98282613d2d565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60115481565b6000611800836120c3565b821061180b57600080fd5b600160a060020a038316600090815260076020526040902080548390811061182f57fe5b906000526020600020015490505b92915050565b600c54600160a060020a03163314806118625750611862336001612b60565b151561186d57600080fd5b6000828152601660205260408120548391106118c1576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060030155565b60009081526016602052604090206005810154600690910154600160a060020a0390911691565b600081815260166020908152604091829020600f80548451601f6002600019610100600186161502019093169290920491820185900485028101850190955280855260609492936114d69392919083018282801561199d5780601f106119725761010080835404028352916020019161199d565b820191906000526020600020905b81548152906001019060200180831161198057829003601f168201915b5050505060088401805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152935090830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b820191906000526020600020905b815481529060010190602001808311611a0d57829003601f168201915b5050505050613d76565b600e54600160a060020a03163314611a4b57600080fd5b600e5460a060020a900460ff161515611a6357600080fd5b600e805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600c546000908190600160a060020a0316331480611ad05750611ad0336001612b60565b80611ae15750611ae1336002612b60565b1515611aec57600080fd5b600083815260166020526040812054849110611b40576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000848152601660205260409020600b810154600a90910154859111611bd6576040805160e560020a62461bcd02815260206004820152602160248201527f4e6f206d6f72652065646974696f6e73206c65667420746f207075726368617360448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b611bdf85613dab565b6000868152601660209081526040918290206008018054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152939650611c8b938a9388938b939190830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b5050505050613de7565b5090949350505050565b611721838383602060405190810160405280600081525061325d565b600c5460009081908190600160a060020a0316331480611cd75750611cd7336001612b60565b1515611ce257600080fd5b611cf4611cee85611ff4565b85613e94565b50505060008181526017602090815260408083208054908490558084526018835281842085855260199093529220548154829082908110611d3157fe5b600091825260208220015550505050565b60135481565b600c54600160a060020a0316331480611d675750611d67336001612b60565b1515611d7257600080fd5b60ff81166000908152600d60205260409020611d94908363ffffffff613f8e16565b6040805160ff831681529051600160a060020a038416917f0ed8a6a6a166243876472f7a8610b62c1a76c67911642d39ff34ead38105534f919081900360200190a25050565b60009081526016602052604090206007015490565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611e755780601f10611e4a57610100808354040283529160200191611e75565b820191906000526020600020905b815481529060010190602001808311611e5857829003601f168201915b505050505081565b600090815260016020526040902054600160a060020a0316151590565b6000611ea46115a9565b8210611eaf57600080fd5b6009805483908110611ebd57fe5b90600052602060002001549050919050565b600c54600160a060020a0316331480611eee5750611eee336001612b60565b1515611ef957600080fd5b600082815260166020526040812054839110611f4d576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060060155565b60009081526016602052604090206002015490565b600160a060020a038116600090815260076020908152604091829020805483518184028101840190945280845260609392830182828015611fd857602002820191906000526020600020905b815481526020019060010190808311611fc4575b50505050509050919050565b600e5460a060020a900460ff1681565b600081815260016020526040812054600160a060020a031680151561183d57600080fd5b600090815260166020526040902060038101546004909101549091565b600160a060020a0381166000908152601a6020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b6000908152601660205260409020600b015490565b601454600160a060020a031681565b6000600160a060020a03821615156120da57600080fd5b50600160a060020a031660009081526003602052604090205490565b600e54600160a060020a0316331461210d57600080fd5b600e54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600e8054600160a060020a0319169055565b600080600080600080600060606000806000808c600060166000838152602001908152602001600020600001541115156121c9576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b601660008f8152602001908152602001600020915081600101548260020154836003015484600401548560050160009054906101000a9004600160a060020a03168660060154876007015461230f600f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156122ad5780601f10612282576101008083540402835291602001916122ad565b820191906000526020600020905b81548152906001019060200180831161229057829003601f168201915b5050505060088c01805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152935090830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b89600a01548a600b01548b60090160009054906101000a900460ff169c509c509c509c509c509c509c509c509c509c509c50505091939597999b90929496989a50565b600c54600160a060020a03163314806123715750612371336001612b60565b151561237c57600080fd5b6000838152601660205260408120548491106123d0576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b60008481526016602052604090206123ec906008018484614e45565b5050505050565b600081815260186020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b600c546000908190600160a060020a03163314806124775750612477336001612b60565b806124885750612488336003612b60565b151561249357600080fd5b6000838152601660205260408120548491106124e7576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6124f084613fb3565b6000858152601660205260409020600b015490925061251690859063ffffffff61403e16565b821115612593576040805160e560020a62461bcd02815260206004820152602e60248201527f52656163686564206d617820746f6b656e49642c2063616e6e6f7420756e646560448201527f72206d696e7420616e796d6f7265000000000000000000000000000000000000606482015290519081900360840190fd5b60008481526016602090815260409182902060080180548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845261260893899387938a939091830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b509392505050565b600c54600160a060020a031633148061262f575061262f336001612b60565b151561263a57600080fd5b60008281526016602052604081205483911061268e576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060070155565b60009081526017602052604090205490565b600e54600160a060020a031633146126cd57600080fd5b600e5460a060020a900460ff16156126e457600080fd5b600e805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600e546000908190819060a060020a900460ff161561275157600080fd5b6000848152601660205260408120548591106127a5576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600085815260166020526040902060090154859060ff161515612812576040805160e560020a62461bcd02815260206004820152601260248201527f45646974696f6e206e6f74206163746976650000000000000000000000000000604482015290519081900360640190fd5b6000868152601660205260409020600b810154600a909101548791116128a8576040805160e560020a62461bcd02815260206004820152602160248201527f4e6f206d6f72652065646974696f6e73206c65667420746f207075726368617360448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000878152601660205260409020600301548790421015612913576040805160e560020a62461bcd02815260206004820152601960248201527f45646974696f6e206e6f7420617661696c61626c652079657400000000000000604482015290519081900360640190fd5b60008181526016602052604090206004015442111561297c576040805160e560020a62461bcd02815260206004820152601b60248201527f45646974696f6e206e6f206c6f6e67657220617661696c61626c650000000000604482015290519081900360640190fd5b60008881526016602052604090206007810154909650341015612a0f576040805160e560020a62461bcd02815260206004820152602b60248201527f56616c7565206d7573742062652067726561746572207468616e20707269636560448201527f206f662065646974696f6e000000000000000000000000000000000000000000606482015290519081900360840190fd5b612a1888613dab565b600887018054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152939850612a81938d938a938e93830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b612aac8887600701548860050160009054906101000a9004600160a060020a0316896006015461404b565b88600160a060020a031688867f145e2ff612f82ecb64f13b28a0e2825f8fd3dba6d6fbbdec265aa58800014c3d346040518082815260200191505060405180910390a45092979650505050505050565b600c54600090600160a060020a0316331480612b1e5750612b1e336001612b60565b1515612b2957600080fd5b612b3d8b8b8b8b8b8b8b8b8b8b600161419f565b9b9a5050505050505050505050565b600e54600160a060020a031681565b600281565b60ff81166000908152600d60205260408120612b82908463ffffffff6146f916565b9392505050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113ef5780601f106113c4576101008083540402835291602001916113ef565b600c54600160a060020a0316331480612c095750612c09336001612b60565b1515612c1457600080fd5b60ff81166000908152600d60205260409020612c36908363ffffffff61471816565b6040805160ff831681529051600160a060020a038416917f3824b64a1e23d936b458f4e31445c664d2bc9c14e842407917cbc100b0236a2f919081900360200190a25050565b600c546000908190600160a060020a0316331480612ca05750612ca0336001612b60565b1515612cab57600080fd5b600085815260166020526040812054869110612cff576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600086815260166020526040812060068101549094509250851115612da457600160a060020a0384161515612da4576040805160e560020a62461bcd02815260206004820152603560248201527f53657474696e6720612072617465206d757374206265206163636f6d70616e6960448201527f656420627920612076616c696420616464726573730000000000000000000000606482015290519081900360840190fd5b6064612db6838763ffffffff61403e16565b1115612e32576040805160e560020a62461bcd02815260206004820152602560248201527f43616e742073657420636f6d6d697373696f6e2067726561746572207468616e60448201527f2031303025000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b5050604080518082018252938452600160a060020a03928316602080860191825260009687526015905294209251835550915160019091018054600160a060020a03191691909216179055565b600381565b600c54600090600160a060020a0316331480612ea65750612ea6336001612b60565b1515612eb157600080fd5b612ec58c8c8c8c8c8c8c8c8c8b600061419f565b50612ed08c846138e1565b5060019b9a5050505050505050505050565b600e54600160a060020a03163314612ef957600080fd5b600e54604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015612f33573d6000803e3d6000fd5b50565b600160a060020a038216331415612f4c57600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60105481565b60005b81518110156117215761300d612fef8383815181101515612fe057fe5b90602001906020020151611ff4565b848484815181101515612ffe57fe5b90602001906020020151611c95565b600101612fc3565b600c54600090600160a060020a03163314806130375750613037336001612b60565b151561304257600080fd5b612ec58c8c8c8c8c8c8c8c8c8b600161419f565b600c54600090819081908190600160a060020a031633148061307e575061307e336001612b60565b151561308957600080fd5b6000868152601660205260408120548791106130dd576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000878152601660209081526040808320601b8352818420546005820154600160a060020a03168552601a90935292208054929750909550935083908590811061312357fe5b60009182526020808320909101829055600160a060020a03909716808252601a88526040808320805460018101825590845289842081018b9055998352601b909852969020969096555050506005018054600160a060020a031916909117905550565b6000806000606060008060008761319c81611e7d565b15156131f2576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b600089815260176020908152604080832054808452601690925290912060028101546001820154929550909350849161322a8c613487565b6132338d611ff4565b939d929c50909a509850909650945050505050565b6000908152601660205260409020600a015490565b61326884848461174c565b6132748484848461473a565b15156115a357600080fd5b600081815260176020526040812054819061329981612018565b9250925050915091565b60009081526016602052604090206009015460ff1690565b6000818152601660205260408120600a810154600b8201546114d69163ffffffff6148a716565b600c546000908190600160a060020a03163314806133065750613306336001612b60565b151561331157600080fd5b600084815260166020526040812054859110613365576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000858152601660205260409020600a81015490935084101561341e576040805160e560020a62461bcd02815260206004820152604560248201527f556e61626c6520746f2072656475636520617661696c61626c6520616d6f756e60448201527f7420746f207468652062656c6f7720746865206e756d62657220746f74616c5360648201527f7570706c79000000000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b600b8301805490859055601354909250613450908590613444908563ffffffff6148a716565b9063ffffffff61403e16565b6013555050505050565b600181565b60008082151561347257600091506114d9565b50506000818152601660205260409020541490565b60608161349381611e7d565b15156134e9576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b600f8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526114d693909290918301828280156135765780601f1061354b57610100808354040283529160200191613576565b820191906000526020600020905b81548152906001019060200180831161355957829003601f168201915b5050506000878152600b60209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815294509250830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b600c54600090819081908190600160a060020a031633148061360a575061360a336001612b60565b151561361557600080fd5b600086815260166020526040812054879110613669576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600087815260166020908152604080832060028101548452601c83528184208b8552601d909352922054815492975090955093508490849081106136a957fe5b60009182526020808320909101829055878252601c81526040808320805460018101825590845282842081018b9055998352601d9091529020969096555050506002015550565b600090815260156020526040902080546001909101549091600160a060020a0390911690565b600c54600160a060020a03163314806137355750613735336001612b60565b151561374057600080fd5b600082815260166020526040812054839110613794576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060040155565b600c54600090600160a060020a03163314806137cc57506137cc336001612b60565b15156137d757600080fd5b612b3d8b8b8b8b8b8b8b8b8b8b600061419f565b6000818152601c6020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600061183d3383612733565b60125481565b600e54600160a060020a031633146138a257600080fd5b612f33816148b9565b60005b81518110156115a3576138d9848484848151811015156138ca57fe5b9060200190602002015161174c565b6001016138ae565b600c54600160a060020a03163314806139005750613900336001612b60565b151561390b57600080fd5b60008281526016602052604081205483911061395f576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b81613969846123f3565b511115613a0c576040805160e560020a62461bcd02815260206004820152604c60248201527f43616e206e6f74206c6f77657220746f74616c537570706c7920746f2062656c60448201527f6f7720746865206e756d626572206f6620746f6b656e7320616c72656164792060648201527f696e206578697374656e63650000000000000000000000000000000000000000608482015290519081900360a40190fd5b50600091825260166020526040909120600a0155565b600f805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815260609361183d9391929091830182828015613ab15780601f10613a8657610100808354040283529160200191613ab1565b820191906000526020600020905b815481529060010190602001808311613a9457829003601f168201915b5050506000868152600b60209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815294509250830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b613b2682611e7d565b1515613b3157600080fd5b6000828152600b60209081526040909120825161172192840190614ec3565b613b5a82826146f9565b151561174857600080fd5b600080613b7183611ff4565b905080600160a060020a031684600160a060020a03161480613bac575083600160a060020a0316613ba1846113fa565b600160a060020a0316145b80613bbc5750613bbc818561384b565b949350505050565b81600160a060020a0316613bd782611ff4565b600160a060020a031614613bea57600080fd5b600081815260026020526040902054600160a060020a0316156117485760009081526002602052604090208054600160a060020a031916905550565b6000806000613c35858561492a565b600084815260086020908152604080832054600160a060020a0389168452600790925290912054909350613c7090600163ffffffff6148a716565b600160a060020a038616600090815260076020526040902080549193509083908110613c9857fe5b90600052602060002001549050806007600087600160a060020a0316600160a060020a0316815260200190815260200160002084815481101515613cd857fe5b6000918252602080832090910192909255600160a060020a0387168152600790915260409020805490613d0f906000198301614f31565b50600093845260086020526040808520859055908452909220555050565b6000613d3983836149b3565b50600160a060020a039091166000908152600760209081526040808320805460018101825590845282842081018590559383526008909152902055565b604080516020818101835260008083528351808301855281815284519283019094528152606092612b82928692869290614a36565b6000818152601660205260408120600a810154613dcf90600163ffffffff61403e16565b600a820181905581546114d69163ffffffff61403e16565b6000613df38585614c97565b613dfd8483613b1d565b506000838152601760209081526040808320859055848352601882528083208054600180820183559185528385208101889055878552601990935292208190556012549091613e52919063ffffffff61403e16565b601255604051600160a060020a03861690849086907f259eb7b480b3d449f506927269e4665c83c69e4cd797143eaa8f84632dc7a02b90600090a45050505050565b6000806000613ea38585614ce6565b6000848152600b60205260409020546002600019610100600184161502019091160415613ee1576000848152600b60205260408120613ee191614f55565b6000848152600a6020526040902054600954909350613f0790600163ffffffff6148a716565b9150600982815481101515613f1857fe5b9060005260206000200154905080600984815481101515613f3557fe5b60009182526020822001919091556009805484908110613f5157fe5b6000918252602090912001556009805490613f70906000198301614f31565b506000938452600a6020526040808520859055908452909220555050565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600081815260166020526040812080548290613fd690600163ffffffff61403e16565b90505b613fe281611e7d565b15613fff57613ff881600163ffffffff61403e16565b9050613fd9565b600a82015482546140159163ffffffff61403e16565b811115612b8257600a82015461403290600163ffffffff61403e16565b600a8301559392505050565b8181018281101561183d57fe5b60008080806140718561406589606463ffffffff614d3616565b9063ffffffff614d4b16565b935060008411156140b457604051600160a060020a0387169085156108fc029086906000818181858888f193505050501580156140b2573d6000803e3d6000fd5b505b6000888152601560205260408120805490945011156141235782546140e49061406589606463ffffffff614d3616565b6001840154604051919350600160a060020a03169083156108fc029084906000818181858888f19350505050158015614121573d6000803e3d6000fd5b505b61414382614137348763ffffffff6148a716565b9063ffffffff6148a716565b601454604051919250600160a060020a03169082156108fc029083906000818181858888f1935050505015801561417e573d6000803e3d6000fd5b50601154614192903463ffffffff61403e16565b6011555050505050505050565b6000808c15156141f9576040805160e560020a62461bcd02815260206004820152601b60248201527f45646974696f6e206e756d626572206e6f742070726f76696465640000000000604482015290519081900360640190fd5b6010548d11614278576040805160e560020a62461bcd02815260206004820152603360248201527f45646974696f6e206e756d626572206d7573742062652067726561746572207460448201527f68616e2070726576696f75736c79207573656400000000000000000000000000606482015290519081900360840190fd5b6010546000818152601660205260409020600b01548e9161429e9163ffffffff61403e16565b1061433f576040805160e560020a62461bcd02815260206004820152604860248201527f45646974696f6e206e756d626572206d7573742062652067726561746572207460448201527f68616e2070726576696f75736c79207573656420706c757320746f74616c206160648201527f7661696c61626c65000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b8a1515614396576040805160e560020a62461bcd02815260206004820152601960248201527f45646974696f6e2074797065206e6f742070726f766964656400000000000000604482015290519081900360640190fd5b845115156143ee576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e20555249206973206d697373696e67000000000000000000000000604482015290519081900360640190fd5b600160a060020a038816151561444e576040805160e560020a62461bcd02815260206004820152601b60248201527f417274697374206163636f756e74206e6f742070726f76696465640000000000604482015290519081900360640190fd5b60648711158015614460575060008710155b15156144dc576040805160e560020a62461bcd02815260206004820152603b60248201527f41727469737420636f6d6d697373696f6e2063616e6e6f74206265206772656160448201527f746572207468616e20313030206f72206c657373207468616e20300000000000606482015290519081900360840190fd5b60008d81526016602052604090205415614540576040805160e560020a62461bcd02815260206004820152601c60248201527f45646974696f6e20616c726561647920696e206578697374656e636500000000604482015290519081900360640190fd5b5087801515614550575063ffffffff5b610180604051908101604052808e81526020018d6000191681526020018c81526020018b815260200182815260200189600160a060020a0316815260200188815260200187815260200186815260200184151581526020016000815260200185815250601660008f8152602001908152602001600020600082015181600001556020820151816001019060001916905560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c0820151816006015560e0820151816007015561010082015181600801908051906020019061465c929190614ec3565b5061012082015160098201805460ff1916911515919091179055610140820151600a82015561016090910151600b9091015560135461469b908561403e565b6013556146a8888e614d74565b6146b28b8e614db0565b6040518b908d908f907ff702f09ce66e1a7f60e909cfb5b6400ce4967f4fd691158bd96066cb89c5c07890600090a450505060109990995550600198975050505050505050565b600160a060020a03166000908152602091909152604090205460ff1690565b600160a060020a0316600090815260209190915260409020805460ff19169055565b60008061474f85600160a060020a0316614de2565b151561475e576001915061489e565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b838110156147f15781810151838201526020016147d9565b50505050905090810190601f16801561481e5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561484057600080fd5b505af1158015614854573d6000803e3d6000fd5b505050506040513d602081101561486a57600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b6000828211156148b357fe5b50900390565b600160a060020a03811615156148ce57600080fd5b600e54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e8054600160a060020a031916600160a060020a0392909216919091179055565b81600160a060020a031661493d82611ff4565b600160a060020a03161461495057600080fd5b600160a060020a03821660009081526003602052604090205461497a90600163ffffffff6148a716565b600160a060020a039092166000908152600360209081526040808320949094559181526001909152208054600160a060020a0319169055565b600081815260016020526040902054600160a060020a0316156149d557600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054614a169161403e565b600160a060020a0390921660009081526003602052604090209190915550565b6060806060806060806060806000808e98508d97508c96508b95508a94508451865188518a518c51010101016040519080825280601f01601f191660200182016040528015614a8f578160200160208202803883390190505b50935083925060009150600090505b8851811015614afc578881815181101515614ab557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614adc57fe5b906020010190600160f860020a031916908160001a905350600101614a9e565b5060005b8751811015614b5e578781815181101515614b1757fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614b3e57fe5b906020010190600160f860020a031916908160001a905350600101614b00565b5060005b8651811015614bc0578681815181101515614b7957fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614ba057fe5b906020010190600160f860020a031916908160001a905350600101614b62565b5060005b8551811015614c22578581815181101515614bdb57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614c0257fe5b906020010190600160f860020a031916908160001a905350600101614bc4565b5060005b8451811015614c84578481815181101515614c3d57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614c6457fe5b906020010190600160f860020a031916908160001a905350600101614c26565b50909d9c50505050505050505050505050565b614ca18282614dea565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af015550565b614cf08282613bc4565b614cfa8282613c26565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008183811515614d4357fe5b049392505050565b6000821515614d5c5750600061183d565b50818102818382811515614d6c57fe5b041461183d57fe5b600160a060020a039091166000908152601a6020908152604080832080546001810182559084528284208101859055938352601b909152902055565b6000918252601c6020908152604080842080546001810182559085528285208101849055928452601d90915290912055565b6000903b1190565b600160a060020a0382161515614dff57600080fd5b614e098282613d2d565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614e865782800160ff19823516178555614eb3565b82800160010185558215614eb3579182015b82811115614eb3578235825591602001919060010190614e98565b50614ebf929150614f95565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614f0457805160ff1916838001178555614eb3565b82800160010185558215614eb3579182015b82811115614eb3578251825591602001919060010190614f16565b81548183558181111561172157600083815260209020611721918101908301614f95565b50805460018160011615610100020316600290046000825580601f10614f7b5750612f33565b601f016020900490600052602060002090810190612f3391905b6113f791905b80821115614ebf5760008155600101614f9b560045646974696f6e206e756d62657220696e76616c696400000000000000000000a165627a7a72305820272427b61dd8fbf37f4f51431678493be80b8429c37345467ac5e840d1dceca50029

Deployed Bytecode

0x6080604052600436106103dc5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301ffc9a781146103eb57806304bb1e3d1461042157806306fdde0314610440578063081812fc146104ca578063095ea7b3146104fe5780631534738014610522578063162094c41461054c57806318160ddd14610570578063187d88031461058557806319fa8f50146105a6578063213d6771146105d85780632295ee5b146105f057806323a3ad721461061057806323b872dd146106375780632bbd84e8146106615780632f745c5914610676578063328a2c2d1461069a57806332fd8478146106b5578063385df389146106f05780633f4ba83a1461070857806340c10f191461071d57806342842e0e1461074157806342966c681461076b57806342c7ea5f14610783578063439232581461079857806343bf63e8146107bf5780634e99b800146107d75780634f558e79146107ec5780634f6ccce7146108045780635091f8811461081c578063593af56a146108375780635a3f26721461084f5780635c975abb146108c05780636352211e146108d5578063652edd41146108ed5780636641179e1461091e5780636a0286921461093f5780636e93dbdc1461095757806370a082311461096c578063715018a61461098d57806371c847b2146109a257806375dcb70a14610a965780637a85c02a14610aba5780637d55758f14610ad25780637eb9f04a14610af6578063824eec3b14610b115780638456cb5914610b29578063891407c014610b3e5780638bbb594a14610b555780638da5cb5b14610bda57806392afc33a14610bef57806395a8c58d14610c1a57806395d89b4114610c41578063975347b814610c5657806397e851f614610c7d578063985989d214610ca45780639cd7745714610cb95780639f727c2714610d45578063a22cb46514610d5a578063abf3260f14610d80578063ac3c995214610d95578063ae8a869014610df8578063afa7a25f14610e84578063b4b5b48f14610ea8578063b6f4df3414610f61578063b88d4fde14610f79578063b8f6c21914610fe8578063bbd1e1fc14611000578063bc02844c14611018578063bdcdc0bc14611030578063be46b94c1461104b578063c2b2fb5e14611060578063c87b56dd14611078578063d4f3d6b814611090578063de56a245146110ab578063e6232ba1146110e4578063e65d19ca146110ff578063e7b8d97714611184578063e985e9c51461119c578063efef39a1146111c3578063f1ff3d4b146111ce578063f2fde38b146111e3578063f3993d1114611204578063f8b4ab7a1461126f578063fee7e35d1461128a575b3480156103e857600080fd5b50005b3480156103f757600080fd5b5061040d600160e060020a0319600435166112a2565b604080519115158252519081900360200190f35b34801561042d57600080fd5b5061043e60043560243515156112c1565b005b34801561044c57600080fd5b50610455611363565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561048f578181015183820152602001610477565b50505050905090810190601f1680156104bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104d657600080fd5b506104e26004356113fa565b60408051600160a060020a039092168252519081900360200190f35b34801561050a57600080fd5b5061043e600160a060020a0360043516602435611415565b34801561052e57600080fd5b5061053a6004356114be565b60408051918252519081900360200190f35b34801561055857600080fd5b5061043e6004803590602480359081019101356114df565b34801561057c57600080fd5b5061053a6115a9565b34801561059157600080fd5b5061043e600160a060020a03600435166115af565b3480156105b257600080fd5b506105bb61165b565b60408051600160e060020a03199092168252519081900360200190f35b3480156105e457600080fd5b5061053a60043561167f565b3480156105fc57600080fd5b5061043e6004803560248101910135611694565b34801561061c57600080fd5b5061043e600160a060020a036004351660ff60243516611726565b34801561064357600080fd5b5061043e600160a060020a036004358116906024351660443561174c565b34801561066d57600080fd5b5061053a6117ef565b34801561068257600080fd5b5061053a600160a060020a03600435166024356117f5565b3480156106a657600080fd5b5061043e600435602435611843565b3480156106c157600080fd5b506106cd6004356118d7565b60408051600160a060020a03909316835260208301919091528051918290030190f35b3480156106fc57600080fd5b506104556004356118fe565b34801561071457600080fd5b5061043e611a34565b34801561072957600080fd5b5061053a600160a060020a0360043516602435611aac565b34801561074d57600080fd5b5061043e600160a060020a0360043581169060243516604435611c95565b34801561077757600080fd5b5061043e600435611cb1565b34801561078f57600080fd5b5061053a611d42565b3480156107a457600080fd5b5061043e600160a060020a036004351660ff60243516611d48565b3480156107cb57600080fd5b5061053a600435611dda565b3480156107e357600080fd5b50610455611def565b3480156107f857600080fd5b5061040d600435611e7d565b34801561081057600080fd5b5061053a600435611e9a565b34801561082857600080fd5b5061043e600435602435611ecf565b34801561084357600080fd5b5061053a600435611f63565b34801561085b57600080fd5b50610870600160a060020a0360043516611f78565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108ac578181015183820152602001610894565b505050509050019250505060405180910390f35b3480156108cc57600080fd5b5061040d611fe4565b3480156108e157600080fd5b506104e2600435611ff4565b3480156108f957600080fd5b50610905600435612018565b6040805192835260208301919091528051918290030190f35b34801561092a57600080fd5b50610870600160a060020a0360043516612035565b34801561094b57600080fd5b5061053a60043561209f565b34801561096357600080fd5b506104e26120b4565b34801561097857600080fd5b5061053a600160a060020a03600435166120c3565b34801561099957600080fd5b5061043e6120f6565b3480156109ae57600080fd5b506109ba600435612157565b604051808c600019166000191681526020018b81526020018a815260200189815260200188600160a060020a0316600160a060020a031681526020018781526020018681526020018060200185815260200184815260200183151515158152602001828103825286818151815260200191508051906020019080838360005b83811015610a51578181015183820152602001610a39565b50505050905090810190601f168015610a7e5780820380516001836020036101000a031916815260200191505b509c5050505050505050505050505060405180910390f35b348015610aa257600080fd5b5061043e600480359060248035908101910135612352565b348015610ac657600080fd5b506108706004356123f3565b348015610ade57600080fd5b5061053a600160a060020a0360043516602435612453565b348015610b0257600080fd5b5061043e600435602435612610565b348015610b1d57600080fd5b5061053a6004356126a4565b348015610b3557600080fd5b5061043e6126b6565b61053a600160a060020a0360043516602435612733565b348015610b6157600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e43595369594610124949201919081908401838280828437509497505093359450612afc9350505050565b348015610be657600080fd5b506104e2612b4c565b348015610bfb57600080fd5b50610c04612b5b565b6040805160ff9092168252519081900360200190f35b348015610c2657600080fd5b5061040d600160a060020a036004351660ff60243516612b60565b348015610c4d57600080fd5b50610455612b89565b348015610c6257600080fd5b5061043e600160a060020a036004351660ff60243516612bea565b348015610c8957600080fd5b5061043e600435602435600160a060020a0360443516612c7c565b348015610cb057600080fd5b50610c04612e7f565b348015610cc557600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e4359536959461012494920191908190840183828082843750949750508435955050506020909201359150612e849050565b348015610d5157600080fd5b5061043e612ee2565b348015610d6657600080fd5b5061043e600160a060020a03600435166024351515612f36565b348015610d8c57600080fd5b5061053a612fba565b348015610da157600080fd5b5060408051602060046024803582810135848102808701860190975280865261043e968435600160a060020a031696369660449591949091019291829185019084908082843750949750612fc09650505050505050565b348015610e0457600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e43595369594610124949201919081908401838280828437509497505084359550505060209092013591506130159050565b348015610e9057600080fd5b5061043e600435600160a060020a0360243516613056565b348015610eb457600080fd5b50610ec0600435613186565b604080518681526020808201879052918101859052600160a060020a038316608082015260a06060820181815285519183019190915284519192909160c084019186019080838360005b83811015610f22578181015183820152602001610f0a565b50505050905090810190601f168015610f4f5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b348015610f6d57600080fd5b5061053a600435613248565b348015610f8557600080fd5b50604080516020601f60643560048181013592830184900484028501840190955281845261043e94600160a060020a03813581169560248035909216956044359536956084940191819084018382808284375094975061325d9650505050505050565b348015610ff457600080fd5b5061090560043561327f565b34801561100c57600080fd5b5061040d6004356132a3565b34801561102457600080fd5b5061053a6004356132bb565b34801561103c57600080fd5b5061043e6004356024356132e2565b34801561105757600080fd5b50610c0461345a565b34801561106c57600080fd5b5061040d60043561345f565b34801561108457600080fd5b50610455600435613487565b34801561109c57600080fd5b5061043e6004356024356135e2565b3480156110b757600080fd5b506110c36004356136f0565b60408051928352600160a060020a0390911660208301528051918290030190f35b3480156110f057600080fd5b5061043e600435602435613716565b34801561110b57600080fd5b5060408051602060046101043581810135601f810184900484028501840190955284845261040d94823594602480359560443595606435956084359560a435600160a060020a03169560c4359560e435953695946101249492019190819084018382808284375094975050933594506137aa9350505050565b34801561119057600080fd5b506108706004356137eb565b3480156111a857600080fd5b5061040d600160a060020a036004358116906024351661384b565b61053a600435613879565b3480156111da57600080fd5b5061053a613885565b3480156111ef57600080fd5b5061043e600160a060020a036004351661388b565b34801561121057600080fd5b50604080516020600460443581810135838102808601850190965280855261043e958335600160a060020a0390811696602480359092169636969560649592949301928291850190849080828437509497506138ab9650505050505050565b34801561127b57600080fd5b5061043e6004356024356138e1565b34801561129657600080fd5b50610455600435613a22565b600160e060020a03191660009081526020819052604090205460ff1690565b600c54600160a060020a03163314806112e057506112e0336001612b60565b15156112eb57600080fd5b60008281526016602052604081205483911061133f576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b50600091825260166020526040909120600901805460ff1916911515919091179055565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113ef5780601f106113c4576101008083540402835291602001916113ef565b820191906000526020600020905b8154815290600101906020018083116113d257829003601f168201915b505050505090505b90565b600090815260026020526040902054600160a060020a031690565b600061142082611ff4565b9050600160a060020a03838116908216141561143b57600080fd5b33600160a060020a03821614806114575750611457813361384b565b151561146257600080fd5b6000828152600260205260408082208054600160a060020a031916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152601760205260408120546114d681611dda565b91505b50919050565b600c54600160a060020a03163314806114fe57506114fe336001612b60565b151561150957600080fd5b8261151381611e7d565b1515611569576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b6115a38484848080601f01602080910402602001604051908101604052809392919081815260200183838082843750613b1d945050505050565b50505050565b60095490565b600c54600160a060020a03163314806115ce57506115ce336001612b60565b15156115d957600080fd5b600160a060020a0381161515611639576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b60148054600160a060020a031916600160a060020a0392909216919091179055565b7f01ffc9a70000000000000000000000000000000000000000000000000000000081565b60009081526016602052604090206001015490565b600c54600160a060020a03163314806116b357506116b3336001612b60565b15156116be57600080fd5b801515611715576040805160e560020a62461bcd02815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b611721600f8383614e45565b505050565b60ff81166000908152600d60205260409020611748908363ffffffff613b5016565b5050565b6117563382613b65565b151561176157600080fd5b600160a060020a038316151561177657600080fd5b600160a060020a038216151561178b57600080fd5b6117958382613bc4565b61179f8382613c26565b6117a98282613d2d565b8082600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60115481565b6000611800836120c3565b821061180b57600080fd5b600160a060020a038316600090815260076020526040902080548390811061182f57fe5b906000526020600020015490505b92915050565b600c54600160a060020a03163314806118625750611862336001612b60565b151561186d57600080fd5b6000828152601660205260408120548391106118c1576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060030155565b60009081526016602052604090206005810154600690910154600160a060020a0390911691565b600081815260166020908152604091829020600f80548451601f6002600019610100600186161502019093169290920491820185900485028101850190955280855260609492936114d69392919083018282801561199d5780601f106119725761010080835404028352916020019161199d565b820191906000526020600020905b81548152906001019060200180831161198057829003601f168201915b5050505060088401805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152935090830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b820191906000526020600020905b815481529060010190602001808311611a0d57829003601f168201915b5050505050613d76565b600e54600160a060020a03163314611a4b57600080fd5b600e5460a060020a900460ff161515611a6357600080fd5b600e805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600c546000908190600160a060020a0316331480611ad05750611ad0336001612b60565b80611ae15750611ae1336002612b60565b1515611aec57600080fd5b600083815260166020526040812054849110611b40576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000848152601660205260409020600b810154600a90910154859111611bd6576040805160e560020a62461bcd02815260206004820152602160248201527f4e6f206d6f72652065646974696f6e73206c65667420746f207075726368617360448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b611bdf85613dab565b6000868152601660209081526040918290206008018054835160026001831615610100026000190190921691909104601f8101849004840282018401909452838152939650611c8b938a9388938b939190830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b820191906000526020600020905b815481529060010190602001808311611c6457829003601f168201915b5050505050613de7565b5090949350505050565b611721838383602060405190810160405280600081525061325d565b600c5460009081908190600160a060020a0316331480611cd75750611cd7336001612b60565b1515611ce257600080fd5b611cf4611cee85611ff4565b85613e94565b50505060008181526017602090815260408083208054908490558084526018835281842085855260199093529220548154829082908110611d3157fe5b600091825260208220015550505050565b60135481565b600c54600160a060020a0316331480611d675750611d67336001612b60565b1515611d7257600080fd5b60ff81166000908152600d60205260409020611d94908363ffffffff613f8e16565b6040805160ff831681529051600160a060020a038416917f0ed8a6a6a166243876472f7a8610b62c1a76c67911642d39ff34ead38105534f919081900360200190a25050565b60009081526016602052604090206007015490565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015611e755780601f10611e4a57610100808354040283529160200191611e75565b820191906000526020600020905b815481529060010190602001808311611e5857829003601f168201915b505050505081565b600090815260016020526040902054600160a060020a0316151590565b6000611ea46115a9565b8210611eaf57600080fd5b6009805483908110611ebd57fe5b90600052602060002001549050919050565b600c54600160a060020a0316331480611eee5750611eee336001612b60565b1515611ef957600080fd5b600082815260166020526040812054839110611f4d576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060060155565b60009081526016602052604090206002015490565b600160a060020a038116600090815260076020908152604091829020805483518184028101840190945280845260609392830182828015611fd857602002820191906000526020600020905b815481526020019060010190808311611fc4575b50505050509050919050565b600e5460a060020a900460ff1681565b600081815260016020526040812054600160a060020a031680151561183d57600080fd5b600090815260166020526040902060038101546004909101549091565b600160a060020a0381166000908152601a6020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b6000908152601660205260409020600b015490565b601454600160a060020a031681565b6000600160a060020a03821615156120da57600080fd5b50600160a060020a031660009081526003602052604090205490565b600e54600160a060020a0316331461210d57600080fd5b600e54604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a2600e8054600160a060020a0319169055565b600080600080600080600060606000806000808c600060166000838152602001908152602001600020600001541115156121c9576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b601660008f8152602001908152602001600020915081600101548260020154836003015484600401548560050160009054906101000a9004600160a060020a03168660060154876007015461230f600f8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156122ad5780601f10612282576101008083540402835291602001916122ad565b820191906000526020600020905b81548152906001019060200180831161229057829003601f168201915b5050505060088c01805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152935090830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b89600a01548a600b01548b60090160009054906101000a900460ff169c509c509c509c509c509c509c509c509c509c509c50505091939597999b90929496989a50565b600c54600160a060020a03163314806123715750612371336001612b60565b151561237c57600080fd5b6000838152601660205260408120548491106123d0576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b60008481526016602052604090206123ec906008018484614e45565b5050505050565b600081815260186020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b600c546000908190600160a060020a03163314806124775750612477336001612b60565b806124885750612488336003612b60565b151561249357600080fd5b6000838152601660205260408120548491106124e7576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6124f084613fb3565b6000858152601660205260409020600b015490925061251690859063ffffffff61403e16565b821115612593576040805160e560020a62461bcd02815260206004820152602e60248201527f52656163686564206d617820746f6b656e49642c2063616e6e6f7420756e646560448201527f72206d696e7420616e796d6f7265000000000000000000000000000000000000606482015290519081900360840190fd5b60008481526016602090815260409182902060080180548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845261260893899387938a939091830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b509392505050565b600c54600160a060020a031633148061262f575061262f336001612b60565b151561263a57600080fd5b60008281526016602052604081205483911061268e576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060070155565b60009081526017602052604090205490565b600e54600160a060020a031633146126cd57600080fd5b600e5460a060020a900460ff16156126e457600080fd5b600e805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600e546000908190819060a060020a900460ff161561275157600080fd5b6000848152601660205260408120548591106127a5576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600085815260166020526040902060090154859060ff161515612812576040805160e560020a62461bcd02815260206004820152601260248201527f45646974696f6e206e6f74206163746976650000000000000000000000000000604482015290519081900360640190fd5b6000868152601660205260409020600b810154600a909101548791116128a8576040805160e560020a62461bcd02815260206004820152602160248201527f4e6f206d6f72652065646974696f6e73206c65667420746f207075726368617360448201527f6500000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6000878152601660205260409020600301548790421015612913576040805160e560020a62461bcd02815260206004820152601960248201527f45646974696f6e206e6f7420617661696c61626c652079657400000000000000604482015290519081900360640190fd5b60008181526016602052604090206004015442111561297c576040805160e560020a62461bcd02815260206004820152601b60248201527f45646974696f6e206e6f206c6f6e67657220617661696c61626c650000000000604482015290519081900360640190fd5b60008881526016602052604090206007810154909650341015612a0f576040805160e560020a62461bcd02815260206004820152602b60248201527f56616c7565206d7573742062652067726561746572207468616e20707269636560448201527f206f662065646974696f6e000000000000000000000000000000000000000000606482015290519081900360840190fd5b612a1888613dab565b600887018054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152939850612a81938d938a938e93830182828015611c815780601f10611c5657610100808354040283529160200191611c81565b612aac8887600701548860050160009054906101000a9004600160a060020a0316896006015461404b565b88600160a060020a031688867f145e2ff612f82ecb64f13b28a0e2825f8fd3dba6d6fbbdec265aa58800014c3d346040518082815260200191505060405180910390a45092979650505050505050565b600c54600090600160a060020a0316331480612b1e5750612b1e336001612b60565b1515612b2957600080fd5b612b3d8b8b8b8b8b8b8b8b8b8b600161419f565b9b9a5050505050505050505050565b600e54600160a060020a031681565b600281565b60ff81166000908152600d60205260408120612b82908463ffffffff6146f916565b9392505050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156113ef5780601f106113c4576101008083540402835291602001916113ef565b600c54600160a060020a0316331480612c095750612c09336001612b60565b1515612c1457600080fd5b60ff81166000908152600d60205260409020612c36908363ffffffff61471816565b6040805160ff831681529051600160a060020a038416917f3824b64a1e23d936b458f4e31445c664d2bc9c14e842407917cbc100b0236a2f919081900360200190a25050565b600c546000908190600160a060020a0316331480612ca05750612ca0336001612b60565b1515612cab57600080fd5b600085815260166020526040812054869110612cff576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600086815260166020526040812060068101549094509250851115612da457600160a060020a0384161515612da4576040805160e560020a62461bcd02815260206004820152603560248201527f53657474696e6720612072617465206d757374206265206163636f6d70616e6960448201527f656420627920612076616c696420616464726573730000000000000000000000606482015290519081900360840190fd5b6064612db6838763ffffffff61403e16565b1115612e32576040805160e560020a62461bcd02815260206004820152602560248201527f43616e742073657420636f6d6d697373696f6e2067726561746572207468616e60448201527f2031303025000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b5050604080518082018252938452600160a060020a03928316602080860191825260009687526015905294209251835550915160019091018054600160a060020a03191691909216179055565b600381565b600c54600090600160a060020a0316331480612ea65750612ea6336001612b60565b1515612eb157600080fd5b612ec58c8c8c8c8c8c8c8c8c8b600061419f565b50612ed08c846138e1565b5060019b9a5050505050505050505050565b600e54600160a060020a03163314612ef957600080fd5b600e54604051600160a060020a0390911690303180156108fc02916000818181858888f19350505050158015612f33573d6000803e3d6000fd5b50565b600160a060020a038216331415612f4c57600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b60105481565b60005b81518110156117215761300d612fef8383815181101515612fe057fe5b90602001906020020151611ff4565b848484815181101515612ffe57fe5b90602001906020020151611c95565b600101612fc3565b600c54600090600160a060020a03163314806130375750613037336001612b60565b151561304257600080fd5b612ec58c8c8c8c8c8c8c8c8c8b600161419f565b600c54600090819081908190600160a060020a031633148061307e575061307e336001612b60565b151561308957600080fd5b6000868152601660205260408120548791106130dd576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000878152601660209081526040808320601b8352818420546005820154600160a060020a03168552601a90935292208054929750909550935083908590811061312357fe5b60009182526020808320909101829055600160a060020a03909716808252601a88526040808320805460018101825590845289842081018b9055998352601b909852969020969096555050506005018054600160a060020a031916909117905550565b6000806000606060008060008761319c81611e7d565b15156131f2576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b600089815260176020908152604080832054808452601690925290912060028101546001820154929550909350849161322a8c613487565b6132338d611ff4565b939d929c50909a509850909650945050505050565b6000908152601660205260409020600a015490565b61326884848461174c565b6132748484848461473a565b15156115a357600080fd5b600081815260176020526040812054819061329981612018565b9250925050915091565b60009081526016602052604090206009015460ff1690565b6000818152601660205260408120600a810154600b8201546114d69163ffffffff6148a716565b600c546000908190600160a060020a03163314806133065750613306336001612b60565b151561331157600080fd5b600084815260166020526040812054859110613365576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b6000858152601660205260409020600a81015490935084101561341e576040805160e560020a62461bcd02815260206004820152604560248201527f556e61626c6520746f2072656475636520617661696c61626c6520616d6f756e60448201527f7420746f207468652062656c6f7720746865206e756d62657220746f74616c5360648201527f7570706c79000000000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b600b8301805490859055601354909250613450908590613444908563ffffffff6148a716565b9063ffffffff61403e16565b6013555050505050565b600181565b60008082151561347257600091506114d9565b50506000818152601660205260409020541490565b60608161349381611e7d565b15156134e9576040805160e560020a62461bcd02815260206004820152601760248201527f546f6b656e20494420646f6573206e6f74206578697374000000000000000000604482015290519081900360640190fd5b600f8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526114d693909290918301828280156135765780601f1061354b57610100808354040283529160200191613576565b820191906000526020600020905b81548152906001019060200180831161355957829003601f168201915b5050506000878152600b60209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815294509250830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b600c54600090819081908190600160a060020a031633148061360a575061360a336001612b60565b151561361557600080fd5b600086815260166020526040812054879110613669576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b600087815260166020908152604080832060028101548452601c83528184208b8552601d909352922054815492975090955093508490849081106136a957fe5b60009182526020808320909101829055878252601c81526040808320805460018101825590845282842081018b9055998352601d9091529020969096555050506002015550565b600090815260156020526040902080546001909101549091600160a060020a0390911690565b600c54600160a060020a03163314806137355750613735336001612b60565b151561374057600080fd5b600082815260166020526040812054839110613794576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b5060009182526016602052604090912060040155565b600c54600090600160a060020a03163314806137cc57506137cc336001612b60565b15156137d757600080fd5b612b3d8b8b8b8b8b8b8b8b8b8b600061419f565b6000818152601c6020908152604091829020805483518184028101840190945280845260609392830182828015611fd85760200282019190600052602060002090815481526020019060010190808311611fc45750505050509050919050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600061183d3383612733565b60125481565b600e54600160a060020a031633146138a257600080fd5b612f33816148b9565b60005b81518110156115a3576138d9848484848151811015156138ca57fe5b9060200190602002015161174c565b6001016138ae565b600c54600160a060020a03163314806139005750613900336001612b60565b151561390b57600080fd5b60008281526016602052604081205483911061395f576040805160e560020a62461bcd0281526020600482015260166024820152600080516020614fb0833981519152604482015290519081900360640190fd5b81613969846123f3565b511115613a0c576040805160e560020a62461bcd02815260206004820152604c60248201527f43616e206e6f74206c6f77657220746f74616c537570706c7920746f2062656c60448201527f6f7720746865206e756d626572206f6620746f6b656e7320616c72656164792060648201527f696e206578697374656e63650000000000000000000000000000000000000000608482015290519081900360a40190fd5b50600091825260166020526040909120600a0155565b600f805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815260609361183d9391929091830182828015613ab15780601f10613a8657610100808354040283529160200191613ab1565b820191906000526020600020905b815481529060010190602001808311613a9457829003601f168201915b5050506000868152600b60209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815294509250830182828015611a2a5780601f106119ff57610100808354040283529160200191611a2a565b613b2682611e7d565b1515613b3157600080fd5b6000828152600b60209081526040909120825161172192840190614ec3565b613b5a82826146f9565b151561174857600080fd5b600080613b7183611ff4565b905080600160a060020a031684600160a060020a03161480613bac575083600160a060020a0316613ba1846113fa565b600160a060020a0316145b80613bbc5750613bbc818561384b565b949350505050565b81600160a060020a0316613bd782611ff4565b600160a060020a031614613bea57600080fd5b600081815260026020526040902054600160a060020a0316156117485760009081526002602052604090208054600160a060020a031916905550565b6000806000613c35858561492a565b600084815260086020908152604080832054600160a060020a0389168452600790925290912054909350613c7090600163ffffffff6148a716565b600160a060020a038616600090815260076020526040902080549193509083908110613c9857fe5b90600052602060002001549050806007600087600160a060020a0316600160a060020a0316815260200190815260200160002084815481101515613cd857fe5b6000918252602080832090910192909255600160a060020a0387168152600790915260409020805490613d0f906000198301614f31565b50600093845260086020526040808520859055908452909220555050565b6000613d3983836149b3565b50600160a060020a039091166000908152600760209081526040808320805460018101825590845282842081018590559383526008909152902055565b604080516020818101835260008083528351808301855281815284519283019094528152606092612b82928692869290614a36565b6000818152601660205260408120600a810154613dcf90600163ffffffff61403e16565b600a820181905581546114d69163ffffffff61403e16565b6000613df38585614c97565b613dfd8483613b1d565b506000838152601760209081526040808320859055848352601882528083208054600180820183559185528385208101889055878552601990935292208190556012549091613e52919063ffffffff61403e16565b601255604051600160a060020a03861690849086907f259eb7b480b3d449f506927269e4665c83c69e4cd797143eaa8f84632dc7a02b90600090a45050505050565b6000806000613ea38585614ce6565b6000848152600b60205260409020546002600019610100600184161502019091160415613ee1576000848152600b60205260408120613ee191614f55565b6000848152600a6020526040902054600954909350613f0790600163ffffffff6148a716565b9150600982815481101515613f1857fe5b9060005260206000200154905080600984815481101515613f3557fe5b60009182526020822001919091556009805484908110613f5157fe5b6000918252602090912001556009805490613f70906000198301614f31565b506000938452600a6020526040808520859055908452909220555050565b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600081815260166020526040812080548290613fd690600163ffffffff61403e16565b90505b613fe281611e7d565b15613fff57613ff881600163ffffffff61403e16565b9050613fd9565b600a82015482546140159163ffffffff61403e16565b811115612b8257600a82015461403290600163ffffffff61403e16565b600a8301559392505050565b8181018281101561183d57fe5b60008080806140718561406589606463ffffffff614d3616565b9063ffffffff614d4b16565b935060008411156140b457604051600160a060020a0387169085156108fc029086906000818181858888f193505050501580156140b2573d6000803e3d6000fd5b505b6000888152601560205260408120805490945011156141235782546140e49061406589606463ffffffff614d3616565b6001840154604051919350600160a060020a03169083156108fc029084906000818181858888f19350505050158015614121573d6000803e3d6000fd5b505b61414382614137348763ffffffff6148a716565b9063ffffffff6148a716565b601454604051919250600160a060020a03169082156108fc029083906000818181858888f1935050505015801561417e573d6000803e3d6000fd5b50601154614192903463ffffffff61403e16565b6011555050505050505050565b6000808c15156141f9576040805160e560020a62461bcd02815260206004820152601b60248201527f45646974696f6e206e756d626572206e6f742070726f76696465640000000000604482015290519081900360640190fd5b6010548d11614278576040805160e560020a62461bcd02815260206004820152603360248201527f45646974696f6e206e756d626572206d7573742062652067726561746572207460448201527f68616e2070726576696f75736c79207573656400000000000000000000000000606482015290519081900360840190fd5b6010546000818152601660205260409020600b01548e9161429e9163ffffffff61403e16565b1061433f576040805160e560020a62461bcd02815260206004820152604860248201527f45646974696f6e206e756d626572206d7573742062652067726561746572207460448201527f68616e2070726576696f75736c79207573656420706c757320746f74616c206160648201527f7661696c61626c65000000000000000000000000000000000000000000000000608482015290519081900360a40190fd5b8a1515614396576040805160e560020a62461bcd02815260206004820152601960248201527f45646974696f6e2074797065206e6f742070726f766964656400000000000000604482015290519081900360640190fd5b845115156143ee576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e20555249206973206d697373696e67000000000000000000000000604482015290519081900360640190fd5b600160a060020a038816151561444e576040805160e560020a62461bcd02815260206004820152601b60248201527f417274697374206163636f756e74206e6f742070726f76696465640000000000604482015290519081900360640190fd5b60648711158015614460575060008710155b15156144dc576040805160e560020a62461bcd02815260206004820152603b60248201527f41727469737420636f6d6d697373696f6e2063616e6e6f74206265206772656160448201527f746572207468616e20313030206f72206c657373207468616e20300000000000606482015290519081900360840190fd5b60008d81526016602052604090205415614540576040805160e560020a62461bcd02815260206004820152601c60248201527f45646974696f6e20616c726561647920696e206578697374656e636500000000604482015290519081900360640190fd5b5087801515614550575063ffffffff5b610180604051908101604052808e81526020018d6000191681526020018c81526020018b815260200182815260200189600160a060020a0316815260200188815260200187815260200186815260200184151581526020016000815260200185815250601660008f8152602001908152602001600020600082015181600001556020820151816001019060001916905560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a815481600160a060020a030219169083600160a060020a0316021790555060c0820151816006015560e0820151816007015561010082015181600801908051906020019061465c929190614ec3565b5061012082015160098201805460ff1916911515919091179055610140820151600a82015561016090910151600b9091015560135461469b908561403e565b6013556146a8888e614d74565b6146b28b8e614db0565b6040518b908d908f907ff702f09ce66e1a7f60e909cfb5b6400ce4967f4fd691158bd96066cb89c5c07890600090a450505060109990995550600198975050505050505050565b600160a060020a03166000908152602091909152604090205460ff1690565b600160a060020a0316600090815260209190915260409020805460ff19169055565b60008061474f85600160a060020a0316614de2565b151561475e576001915061489e565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03898116602485015260448401889052608060648501908152875160848601528751918a169463150b7a0294938c938b938b93909160a490910190602085019080838360005b838110156147f15781810151838201526020016147d9565b50505050905090810190601f16801561481e5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b15801561484057600080fd5b505af1158015614854573d6000803e3d6000fd5b505050506040513d602081101561486a57600080fd5b5051600160e060020a031981167f150b7a020000000000000000000000000000000000000000000000000000000014925090505b50949350505050565b6000828211156148b357fe5b50900390565b600160a060020a03811615156148ce57600080fd5b600e54604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600e8054600160a060020a031916600160a060020a0392909216919091179055565b81600160a060020a031661493d82611ff4565b600160a060020a03161461495057600080fd5b600160a060020a03821660009081526003602052604090205461497a90600163ffffffff6148a716565b600160a060020a039092166000908152600360209081526040808320949094559181526001909152208054600160a060020a0319169055565b600081815260016020526040902054600160a060020a0316156149d557600080fd5b60008181526001602081815260408084208054600160a060020a031916600160a060020a0388169081179091558452600390915290912054614a169161403e565b600160a060020a0390921660009081526003602052604090209190915550565b6060806060806060806060806000808e98508d97508c96508b95508a94508451865188518a518c51010101016040519080825280601f01601f191660200182016040528015614a8f578160200160208202803883390190505b50935083925060009150600090505b8851811015614afc578881815181101515614ab557fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614adc57fe5b906020010190600160f860020a031916908160001a905350600101614a9e565b5060005b8751811015614b5e578781815181101515614b1757fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614b3e57fe5b906020010190600160f860020a031916908160001a905350600101614b00565b5060005b8651811015614bc0578681815181101515614b7957fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614ba057fe5b906020010190600160f860020a031916908160001a905350600101614b62565b5060005b8551811015614c22578581815181101515614bdb57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614c0257fe5b906020010190600160f860020a031916908160001a905350600101614bc4565b5060005b8451811015614c84578481815181101515614c3d57fe5b90602001015160f860020a900460f860020a028383806001019450815181101515614c6457fe5b906020010190600160f860020a031916908160001a905350600101614c26565b50909d9c50505050505050505050505050565b614ca18282614dea565b600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af015550565b614cf08282613bc4565b614cfa8282613c26565b6040518190600090600160a060020a038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60008183811515614d4357fe5b049392505050565b6000821515614d5c5750600061183d565b50818102818382811515614d6c57fe5b041461183d57fe5b600160a060020a039091166000908152601a6020908152604080832080546001810182559084528284208101859055938352601b909152902055565b6000918252601c6020908152604080842080546001810182559085528285208101849055928452601d90915290912055565b6000903b1190565b600160a060020a0382161515614dff57600080fd5b614e098282613d2d565b6040518190600160a060020a038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614e865782800160ff19823516178555614eb3565b82800160010185558215614eb3579182015b82811115614eb3578235825591602001919060010190614e98565b50614ebf929150614f95565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614f0457805160ff1916838001178555614eb3565b82800160010185558215614eb3579182015b82811115614eb3578251825591602001919060010190614f16565b81548183558181111561172157600083815260209020611721918101908301614f95565b50805460018160011615610100020316600290046000825580601f10614f7b5750612f33565b601f016020900490600052602060002090810190612f3391905b6113f791905b80821115614ebf5760008155600101614f9b560045646974696f6e206e756d62657220696e76616c696400000000000000000000a165627a7a72305820272427b61dd8fbf37f4f51431678493be80b8429c37345467ac5e840d1dceca50029

Swarm Source

bzzr://272427b61dd8fbf37f4f51431678493be80b8429c37345467ac5e840d1dceca5
Loading...
Loading
Loading...
Loading
[ 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.