ETH Price: $3,384.75 (-1.54%)
Gas: 1 Gwei

Token

Unique One (UNE)
 

Overview

Max Total Supply

773 UNE

Holders

284

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 UNE
0xd4924261323DAc5fAAD8524864d35D43d7190F92
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MintableToken

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : MintableToken.sol
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of NFTs in `owner`'s account.
     */
    function balanceOf(address owner) public view returns (uint256 balance);

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    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 safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

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

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

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

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

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;
    using Counters for Counters.Counter;

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

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

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

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

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

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

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

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _ownedTokensCount[owner].current();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return 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), "ERC721: owner query for nonexistent token");

        return owner;
    }

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

        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

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

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

        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 != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][to] = approved;
        emit ApprovalForAll(_msgSender(), 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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transferFrom(from, to, tokenId);
    }

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

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-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 _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransferFrom(from, to, tokenId, _data);
    }

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

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

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

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * 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.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * 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.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

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

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to].increment();

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

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

        _clearApproval(tokenId);

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

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

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

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

        _clearApproval(tokenId);

        _ownedTokensCount[from].decrement();
        _ownedTokensCount[to].increment();

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * This is an internal detail of the `ERC721` contract and its use is deprecated.
     * @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 bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ));
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == _ERC721_RECEIVED);
        }
    }

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns a specific ERC721 token.
     * @param tokenId uint256 id of the ERC721 token to be burned.
     */
    function burn(uint256 tokenId) public {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

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

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

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

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

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

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

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

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

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        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(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

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

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

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

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

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

library StringLibrary {
    using UintLibrary for uint256;

    function append(string memory _a, string memory _b) internal pure returns (string memory) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory bab = new bytes(_ba.length + _bb.length);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) bab[k++] = _ba[i];
        for (uint i = 0; i < _bb.length; i++) bab[k++] = _bb[i];
        return string(bab);
    }

    function append(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory bbb = new bytes(_ba.length + _bb.length + _bc.length);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) bbb[k++] = _ba[i];
        for (uint i = 0; i < _bb.length; i++) bbb[k++] = _bb[i];
        for (uint i = 0; i < _bc.length; i++) bbb[k++] = _bc[i];
        return string(bbb);
    }

    function recover(string memory message, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        bytes memory msgBytes = bytes(message);
        bytes memory fullMessage = concat(
            bytes("\x19Ethereum Signed Message:\n"),
            bytes(msgBytes.length.toString()),
            msgBytes,
            new bytes(0), new bytes(0), new bytes(0), new bytes(0)
        );
        return ecrecover(keccak256(fullMessage), v, r, s);
    }

    function concat(bytes memory _ba, bytes memory _bb, bytes memory _bc, bytes memory _bd, bytes memory _be, bytes memory _bf, bytes memory _bg) internal pure returns (bytes memory) {
        bytes memory resultBytes = new bytes(_ba.length + _bb.length + _bc.length + _bd.length + _be.length + _bf.length + _bg.length);
        uint k = 0;
        for (uint i = 0; i < _ba.length; i++) resultBytes[k++] = _ba[i];
        for (uint i = 0; i < _bb.length; i++) resultBytes[k++] = _bb[i];
        for (uint i = 0; i < _bc.length; i++) resultBytes[k++] = _bc[i];
        for (uint i = 0; i < _bd.length; i++) resultBytes[k++] = _bd[i];
        for (uint i = 0; i < _be.length; i++) resultBytes[k++] = _be[i];
        for (uint i = 0; i < _bf.length; i++) resultBytes[k++] = _bf[i];
        for (uint i = 0; i < _bg.length; i++) resultBytes[k++] = _bg[i];
        return resultBytes;
    }
    
    function getAddress(bytes memory generatedBytes, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        bytes memory msgBytes = generatedBytes;
        bytes memory fullMessage = concat(
            bytes("\x19Ethereum Signed Message:\n"),
            bytes(msgBytes.length.toString()),
            msgBytes,
            new bytes(0), new bytes(0), new bytes(0), new bytes(0)
        );
        return ecrecover(keccak256(fullMessage), v, r, s);
    }
}

contract HasContractURI is ERC165 {

    string public contractURI;

    /*
     * bytes4(keccak256('contractURI()')) == 0xe8a3d485
     */
    bytes4 private constant _INTERFACE_ID_CONTRACT_URI = 0xe8a3d485;

    constructor(string memory _contractURI) public {
        contractURI = _contractURI;
        _registerInterface(_INTERFACE_ID_CONTRACT_URI);
    }

    /**
     * @dev Internal function to set the contract URI
     * @param _contractURI string URI prefix to assign
     */
    function _setContractURI(string memory _contractURI) internal {
        contractURI = _contractURI;
    }
}

contract HasTokenURI {
    using StringLibrary for string;

    //Token URI prefix
    string public tokenURIPrefix;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    constructor(string memory _tokenURIPrefix) public {
        tokenURIPrefix = _tokenURIPrefix;
    }

    /**
     * @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) internal view returns (string memory) {
        return tokenURIPrefix.append(_tokenURIs[tokenId]);
    }

    /**
     * @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 memory uri) internal {
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Internal function to set the token URI prefix.
     * @param _tokenURIPrefix string URI prefix to assign
     */
    function _setTokenURIPrefix(string memory _tokenURIPrefix) internal {
        tokenURIPrefix = _tokenURIPrefix;
    }

    function _clearTokenURI(uint256 tokenId) internal {
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

contract HasSecondarySaleFees is ERC165 {

    event SecondarySaleFees(uint256 tokenId, address[] recipients, uint[] bps);

    /*
     * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f
     * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb
     *
     * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584
     */
    bytes4 private constant _INTERFACE_ID_FEES = 0xb7799584;

    constructor() public {
        _registerInterface(_INTERFACE_ID_FEES);
    }

    function getFeeRecipients(uint256 id) public view returns (address payable[] memory);
    function getFeeBps(uint256 id) public view returns (uint[] memory);
}

/**
 * @title Full ERC721 Token with support for tokenURIPrefix
 * 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://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721Base is HasSecondarySaleFees, ERC721, HasContractURI, HasTokenURI, ERC721Enumerable {
    // Token name
    string public name;

    // Token symbol
    string public symbol;

    struct Fee {
        address payable recipient;
        uint256 value;
    }

    // id => fees
    mapping (uint256 => Fee[]) public fees;

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

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

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

    function getFeeRecipients(uint256 id) public view returns (address payable[] memory) {
        Fee[] memory _fees = fees[id];
        address payable[] memory result = new address payable[](_fees.length);
        for (uint i = 0; i < _fees.length; i++) {
            result[i] = _fees[i].recipient;
        }
        return result;
    }

    function getFeeBps(uint256 id) public view returns (uint[] memory) {
        Fee[] memory _fees = fees[id];
        uint[] memory result = new uint[](_fees.length);
        for (uint i = 0; i < _fees.length; i++) {
            result[i] = _fees[i].value;
        }
        return result;
    }

    function _mint(address to, uint256 tokenId, Fee[] memory _fees) internal {
        _mint(to, tokenId);
        address[] memory recipients = new address[](_fees.length);
        uint[] memory bps = new uint[](_fees.length);
        for (uint i = 0; i < _fees.length; i++) {
            require(_fees[i].recipient != address(0x0), "Recipient should be present");
            require(_fees[i].value != 0, "Fee value should be positive");
            fees[tokenId].push(_fees[i]);
            recipients[i] = _fees[i].recipient;
            bps[i] = _fees[i].value;
        }
        if (_fees.length > 0) {
            emit SecondarySaleFees(tokenId, recipients, bps);
        }
    }

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

    /**
     * @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 memory uri) internal {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        super._setTokenURI(tokenId, uri);
    }

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

/**
 * @title MintableToken
 * @dev anyone can mint token.
 */
contract MintableToken is Ownable, IERC721, IERC721Metadata, ERC721Burnable, ERC721Base {

    constructor (string memory name, string memory symbol, address newOwner, string memory contractURI, string memory tokenURIPrefix) public ERC721Base(name, symbol, contractURI, tokenURIPrefix) {
        _registerInterface(bytes4(keccak256('MINT_WITH_ADDRESS')));
        transferOwnership(newOwner);
    }

    function mint(uint256 tokenId, uint8 v, bytes32 r, bytes32 s, Fee[] memory _fees, string memory tokenURI) public {
        require(owner() == StringLibrary.getAddress(abi.encodePacked(this, tokenId), v, r, s), "owner should sign tokenId");
        _mint(msg.sender, tokenId, _fees);
        _setTokenURI(tokenId, tokenURI);
    }

    function setTokenURIPrefix(string memory tokenURIPrefix) public onlyOwner {
        _setTokenURIPrefix(tokenURIPrefix);
    }

    function setContractURI(string memory contractURI) public onlyOwner {
        _setContractURI(contractURI);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"newOwner","type":"address"},{"internalType":"string","name":"contractURI","type":"string"},{"internalType":"string","name":"tokenURIPrefix","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"recipients","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"name":"SecondarySaleFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"fees","outputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct ERC721Base.Fee[]","name":"_fees","type":"tuple[]"},{"internalType":"string","name":"tokenURI","type":"string"}],"name":"mint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"tokenURIPrefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenURIPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200395838038062003958833981016040819052620000349162000431565b84848383808260006200004f6001600160e01b03620001d216565b600080546001600160a01b0319166001600160a01b03831690811782556040519293509160008051602062003938833981519152908290a350620000a36301ffc9a760e01b6001600160e01b03620001d716565b620000be632dde656160e21b6001600160e01b03620001d716565b620000d96380ac58cd60e01b6001600160e01b03620001d716565b8051620000ee90600690602084019062000320565b506200010a63e8a3d48560e01b6001600160e01b03620001d716565b5080516200012090600790602084019062000320565b506200013e905063780e9d6360e01b6001600160e01b03620001d716565b83516200015390600d90602087019062000320565b5082516200016990600e90602086019062000320565b5062000185635b5e139f60e01b6001600160e01b03620001d716565b50505050620001b36040516200019b90620005ff565b6040519081900390206001600160e01b03620001d716565b620001c7836001600160e01b036200023516565b5050505050620006fb565b335b90565b6001600160e01b031980821614156200020d5760405162461bcd60e51b815260040162000204906200061e565b60405180910390fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b620002486001600160e01b036200027e16565b620002675760405162461bcd60e51b8152600401620002049062000630565b6200027b816001600160e01b03620002ad16565b50565b600080546001600160a01b03166200029e6001600160e01b03620001d216565b6001600160a01b031614905090565b6001600160a01b038116620002d65760405162461bcd60e51b815260040162000204906200060c565b600080546040516001600160a01b03808516939216916000805160206200393883398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200036357805160ff191683800117855562000393565b8280016001018555821562000393579182015b828111156200039357825182559160200191906001019062000376565b50620003a1929150620003a5565b5090565b620001d491905b80821115620003a15760008155600101620003ac565b8051620003cf81620006e4565b92915050565b600082601f830112620003e757600080fd5b8151620003fe620003f88262000669565b62000642565b915080825260208301602083018583830111156200041b57600080fd5b62000428838284620006b1565b50505092915050565b600080600080600060a086880312156200044a57600080fd5b85516001600160401b038111156200046157600080fd5b6200046f88828901620003d5565b95505060208601516001600160401b038111156200048c57600080fd5b6200049a88828901620003d5565b9450506040620004ad88828901620003c2565b93505060608601516001600160401b03811115620004ca57600080fd5b620004d888828901620003d5565b92505060808601516001600160401b03811115620004f557600080fd5b6200050388828901620003d5565b9150509295509295909350565b60006200051f60268362000691565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b600062000569601c8362000691565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000815260200192915050565b6000620005a460208362000691565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000620005df6011836200069a565b704d494e545f574954485f4144445245535360781b815260110192915050565b6000620003cf82620005d0565b60208082528101620003cf8162000510565b60208082528101620003cf816200055a565b60208082528101620003cf8162000595565b6040518181016001600160401b03811182821017156200066157600080fd5b604052919050565b60006001600160401b038211156200068057600080fd5b506020601f91909101601f19160190565b90815260200190565b919050565b60006001600160a01b038216620003cf565b60005b83811015620006ce578181015183820152602001620006b4565b83811115620006de576000848401525b50505050565b620006ef816200069f565b81146200027b57600080fd5b61322d806200070b6000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103c9578063e8a3d485146103dc578063e985e9c5146103e4578063f2fde38b146103f7576101cf565b8063a22cb4651461037b578063b88d4fde1461038e578063b9c4d9fb146103a1578063c0ac9983146103c1576101cf565b80638f32d59b116100de5780638f32d59b14610345578063938e3d7b1461034d57806395d89b411461036057806399e0dd7c14610368576101cf565b806370a0823114610322578063715018a6146103355780638da5cb5b1461033d576101cf565b80632f745c59116101715780634f6ccce71161014b5780634f6ccce7146102c85780636308f1cd146102db5780636352211e146102fc578063672a94001461030f576101cf565b80632f745c591461028f57806342842e0e146102a257806342966c68146102b5576101cf565b8063095ea7b3116101ad578063095ea7b3146102325780630ebd4c7f1461024757806318160ddd1461026757806323b872dd1461027c576101cf565b806301ffc9a7146101d457806306fdde03146101fd578063081812fc14610212575b600080fd5b6101e76101e23660046123d8565b61040a565b6040516101f49190612e7d565b60405180910390f35b61020561042d565b6040516101f49190612ec9565b610225610220366004612449565b6104bb565b6040516101f49190612dee565b6102456102403660046123a8565b610507565b005b61025a610255366004612449565b6105ec565b6040516101f49190612e6c565b61026f6106df565b6040516101f4919061305a565b61024561028a3660046122b2565b6106e6565b61026f61029d3660046123a8565b610723565b6102456102b03660046122b2565b610784565b6102456102c3366004612449565b61079f565b61026f6102d6366004612449565b6107d2565b6102ee6102e9366004612467565b610819565b6040516101f4929190612e40565b61022561030a366004612449565b61085c565b61024561031d366004612486565b610891565b61026f61033036600461225a565b610912565b61024561095b565b6102256109c9565b6101e76109d8565b61024561035b366004612414565b6109fc565b610205610a29565b610245610376366004612414565b610a84565b610245610389366004612378565b610ab1565b61024561039c3660046122ff565b610b7f565b6103b46103af366004612449565b610bbe565b6040516101f49190612e5b565b610205610cb6565b6102056103d7366004612449565b610d11565b610205610d41565b6101e76103f2366004612278565b610d9c565b61024561040536600461225a565b610dca565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600d805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b820191906000526020600020905b81548152906001019060200180831161049657829003601f168201915b505050505081565b60006104c682610df7565b6104eb5760405162461bcd60e51b81526004016104e290612faa565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006105128261085c565b9050806001600160a01b0316836001600160a01b031614156105465760405162461bcd60e51b81526004016104e290612ffa565b806001600160a01b0316610558610e14565b6001600160a01b031614806105745750610574816103f2610e14565b6105905760405162461bcd60e51b81526004016104e290612f6a565b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b8282101561065e576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610616565b50505050905060608151604051908082528060200260200182016040528015610691578160200160208202803883390190505b50905060005b82518110156106d7578281815181106106ac57fe5b6020026020010151602001518282815181106106c457fe5b6020908102919091010152600101610697565b509392505050565b600b545b90565b6106f76106f1610e14565b82610e18565b6107135760405162461bcd60e51b81526004016104e29061300a565b61071e838383610e9d565b505050565b600061072e83610912565b821061074c5760405162461bcd60e51b81526004016104e290612eea565b6001600160a01b038316600090815260096020526040902080548390811061077057fe5b906000526020600020015490505b92915050565b61071e83838360405180602001604052806000815250610b7f565b6107aa6106f1610e14565b6107c65760405162461bcd60e51b81526004016104e29061304a565b6107cf81610ebc565b50565b60006107dc6106df565b82106107fa5760405162461bcd60e51b81526004016104e29061301a565b600b828154811061080757fe5b90600052602060002001549050919050565b600f602052816000526040600020818154811061083257fe5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b6000818152600260205260408120546001600160a01b03168061077e5760405162461bcd60e51b81526004016104e290612f8a565b6108be30876040516020016108a7929190612dc8565b604051602081830303815290604052868686610ece565b6001600160a01b03166108cf6109c9565b6001600160a01b0316146108f55760405162461bcd60e51b81526004016104e290612f5a565b610900338784610fab565b61090a86826111d0565b505050505050565b60006001600160a01b03821661093a5760405162461bcd60e51b81526004016104e290612f7a565b6001600160a01b038216600090815260046020526040902061077e90611203565b6109636109d8565b61097f5760405162461bcd60e51b81526004016104e290612fca565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166109ed610e14565b6001600160a01b031614905090565b610a046109d8565b610a205760405162461bcd60e51b81526004016104e290612fca565b6107cf81611207565b600e805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b610a8c6109d8565b610aa85760405162461bcd60e51b81526004016104e290612fca565b6107cf8161121a565b610ab9610e14565b6001600160a01b0316826001600160a01b03161415610aea5760405162461bcd60e51b81526004016104e290612f3a565b8060056000610af7610e14565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b3b610e14565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b739190612e7d565b60405180910390a35050565b610b90610b8a610e14565b83610e18565b610bac5760405162461bcd60e51b81526004016104e29061300a565b610bb88484848461122d565b50505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b82821015610c30576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610be8565b50505050905060608151604051908082528060200260200182016040528015610c63578160200160208202803883390190505b50905060005b82518110156106d757828181518110610c7e57fe5b602002602001015160000151828281518110610c9657fe5b6001600160a01b0390921660209283029190910190910152600101610c69565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b6060610d1c82610df7565b610d385760405162461bcd60e51b81526004016104e290612fea565b61077e82611260565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610dd26109d8565b610dee5760405162461bcd60e51b81526004016104e290612fca565b6107cf8161139b565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000610e2382610df7565b610e3f5760405162461bcd60e51b81526004016104e290612f4a565b6000610e4a8361085c565b9050806001600160a01b0316846001600160a01b03161480610e855750836001600160a01b0316610e7a846104bb565b6001600160a01b0316145b80610e955750610e958185610d9c565b949350505050565b610ea883838361141c565b610eb28382611522565b61071e8282611610565b6107cf610ec88261085c565b8261164e565b600060608590506060610f476040518060400160405280601a81526020017f19457468657265756d205369676e6564204d6573736167653a0a000000000000815250610f1a8451611661565b60408051600080825260208201818152828401828152606084019283526080840190945288939091611722565b90506001818051906020012087878760405160008152602001604052604051610f739493929190612e8b565b6020604051602081039080840390855afa158015610f95573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b610fb583836119c8565b60608151604051908082528060200260200182016040528015610fe2578160200160208202803883390190505b50905060608251604051908082528060200260200182016040528015611012578160200160208202803883390190505b50905060005b83518110156111855760006001600160a01b031684828151811061103857fe5b6020026020010151600001516001600160a01b0316141561106b5760405162461bcd60e51b81526004016104e29061303a565b83818151811061107757fe5b602002602001015160200151600014156110a35760405162461bcd60e51b81526004016104e290612eda565b6000858152600f6020526040902084518590839081106110bf57fe5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b03909216919091178155910151910155835184908290811061111657fe5b60200260200101516000015183828151811061112e57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505083818151811061115a57fe5b60200260200101516020015182828151811061117257fe5b6020908102919091010152600101611018565b508251156111c9577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b28483836040516111c093929190613068565b60405180910390a15b5050505050565b6111d982610df7565b6111f55760405162461bcd60e51b81526004016104e290612fba565b6111ff82826119e5565b5050565b5490565b80516111ff906006906020840190612005565b80516111ff906007906020840190612005565b611238848484610e9d565b61124484848484611a04565b610bb85760405162461bcd60e51b81526004016104e290612efa565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815260609361077e939192918301828280156112fa5780601f106112cf576101008083540402835291602001916112fa565b820191906000526020600020905b8154815290600101906020018083116112dd57829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156113885780601f1061135d57610100808354040283529160200191611388565b820191906000526020600020905b81548152906001019060200180831161136b57829003601f168201915b5050505050611b3e90919063ffffffff16565b6001600160a01b0381166113c15760405162461bcd60e51b81526004016104e290612f0a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661142f8261085c565b6001600160a01b0316146114555760405162461bcd60e51b81526004016104e290612fda565b6001600160a01b03821661147b5760405162461bcd60e51b81526004016104e290612f2a565b61148481611c33565b6001600160a01b03831660009081526004602052604090206114a590611c6e565b6001600160a01b03821660009081526004602052604090206114c690611c85565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604081205461154c90600163ffffffff611c8e16565b6000838152600a60205260409020549091508082146115e7576001600160a01b038416600090815260096020526040812080548490811061158957fe5b906000526020600020015490508060096000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106115c757fe5b6000918252602080832090910192909255918252600a9052604090208190555b6001600160a01b03841660009081526009602052604090208054906111c9906000198301612083565b6001600160a01b0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b6116588282611cd7565b6111ff81611d03565b60608161168657506040805180820190915260018152600360fc1b6020820152610428565b8160005b811561169e57600101600a8204915061168a565b6060816040519080825280601f01601f1916602001820160405280156116cb576020820181803883390190505b50905060001982015b851561171957600a860660300160f81b828280600190039350815181106116f757fe5b60200101906001600160f81b031916908160001a905350600a860495506116d4565b50949350505050565b60608082518451865188518a518c518e510101010101016040519080825280601f01601f191660200182016040528015611763576020820181803883390190505b5090506000805b8a518110156117bb578a818151811061177f57fe5b602001015160f81c60f81b83838060010194508151811061179c57fe5b60200101906001600160f81b031916908160001a90535060010161176a565b5060005b8951811015611810578981815181106117d457fe5b602001015160f81c60f81b8383806001019450815181106117f157fe5b60200101906001600160f81b031916908160001a9053506001016117bf565b5060005b88518110156118655788818151811061182957fe5b602001015160f81c60f81b83838060010194508151811061184657fe5b60200101906001600160f81b031916908160001a905350600101611814565b5060005b87518110156118ba5787818151811061187e57fe5b602001015160f81c60f81b83838060010194508151811061189b57fe5b60200101906001600160f81b031916908160001a905350600101611869565b5060005b865181101561190f578681815181106118d357fe5b602001015160f81c60f81b8383806001019450815181106118f057fe5b60200101906001600160f81b031916908160001a9053506001016118be565b5060005b85518110156119645785818151811061192857fe5b602001015160f81c60f81b83838060010194508151811061194557fe5b60200101906001600160f81b031916908160001a905350600101611913565b5060005b84518110156119b95784818151811061197d57fe5b602001015160f81c60f81b83838060010194508151811061199a57fe5b60200101906001600160f81b031916908160001a905350600101611968565b50909998505050505050505050565b6119d28282611d41565b6119dc8282611610565b6111ff81611e08565b6000828152600860209081526040909120825161071e92840190612005565b6000611a18846001600160a01b0316611e4c565b611a2457506001610e95565b600060606001600160a01b038616630a85bd0160e11b611a42610e14565b898888604051602401611a589493929190612dfc565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611a969190612dbc565b6000604051808303816000865af19150503d8060008114611ad3576040519150601f19603f3d011682016040523d82523d6000602084013e611ad8565b606091505b509150915081611b0a57805115611af25780518082602001fd5b60405162461bcd60e51b81526004016104e290612efa565b600081806020019051611b2091908101906123f6565b6001600160e01b031916630a85bd0160e11b149350610e9592505050565b6060808390506060839050606081518351016040519080825280601f01601f191660200182016040528015611b7a576020820181803883390190505b5090506000805b8451811015611bd257848181518110611b9657fe5b602001015160f81c60f81b838380600101945081518110611bb357fe5b60200101906001600160f81b031916908160001a905350600101611b81565b5060005b8351811015611c2757838181518110611beb57fe5b602001015160f81c60f81b838380600101945081518110611c0857fe5b60200101906001600160f81b031916908160001a905350600101611bd6565b50909695505050505050565b6000818152600360205260409020546001600160a01b0316156107cf57600090815260036020526040902080546001600160a01b0319169055565b8054611c8190600163ffffffff611c8e16565b9055565b80546001019055565b6000611cd083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e85565b9392505050565b611ce18282611eb1565b611ceb8282611522565b6000818152600a60205260408120556111ff81611f69565b60008181526008602052604090205460026000196101006001841615020190911604156107cf5760008181526008602052604081206107cf916120a7565b6001600160a01b038216611d675760405162461bcd60e51b81526004016104e290612f9a565b611d7081610df7565b15611d8d5760405162461bcd60e51b81526004016104e290612f1a565b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611dcc90611c85565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610e95575050151592915050565b60008184841115611ea95760405162461bcd60e51b81526004016104e29190612ec9565b505050900390565b816001600160a01b0316611ec48261085c565b6001600160a01b031614611eea5760405162461bcd60e51b81526004016104e29061302a565b611ef381611c33565b6001600160a01b0382166000908152600460205260409020611f1490611c6e565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b54600090611f8090600163ffffffff611c8e16565b6000838152600c6020526040812054600b8054939450909284908110611fa257fe5b9060005260206000200154905080600b8381548110611fbd57fe5b6000918252602080832090910192909255828152600c90915260409020829055600b805490611ff0906000198301612083565b505050600091825250600c6020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204657805160ff1916838001178555612073565b82800160010185558215612073579182015b82811115612073578251825591602001919060010190612058565b5061207f9291506120e7565b5090565b81548183558181111561071e5760008381526020902061071e9181019083016120e7565b50805460018160011615610100020316600290046000825580601f106120cd57506107cf565b601f0160209004906000526020600020908101906107cf91905b6106e391905b8082111561207f57600081556001016120ed565b803561077e816131b2565b600082601f83011261211d57600080fd5b813561213061212b826130c3565b61309c565b9150818183526020840193506020810190508385604084028201111561215557600080fd5b60005b83811015612183578161216b8882612208565b84525060209092019160409190910190600101612158565b5050505092915050565b803561077e816131c6565b803561077e816131cf565b803561077e816131d8565b805161077e816131d8565b600082601f8301126121ca57600080fd5b81356121d861212b826130e4565b915080825260208301602083018583830111156121f457600080fd5b6121ff838284613159565b50505092915050565b60006040828403121561221a57600080fd5b612224604061309c565b905060006122328484612101565b825250602061224384848301612198565b60208301525092915050565b803561077e816131e1565b60006020828403121561226c57600080fd5b6000610e958484612101565b6000806040838503121561228b57600080fd5b60006122978585612101565b92505060206122a885828601612101565b9150509250929050565b6000806000606084860312156122c757600080fd5b60006122d38686612101565b93505060206122e486828701612101565b92505060406122f586828701612198565b9150509250925092565b6000806000806080858703121561231557600080fd5b60006123218787612101565b945050602061233287828801612101565b935050604061234387828801612198565b925050606085013567ffffffffffffffff81111561236057600080fd5b61236c878288016121b9565b91505092959194509250565b6000806040838503121561238b57600080fd5b60006123978585612101565b92505060206122a88582860161218d565b600080604083850312156123bb57600080fd5b60006123c78585612101565b92505060206122a885828601612198565b6000602082840312156123ea57600080fd5b6000610e9584846121a3565b60006020828403121561240857600080fd5b6000610e9584846121ae565b60006020828403121561242657600080fd5b813567ffffffffffffffff81111561243d57600080fd5b610e95848285016121b9565b60006020828403121561245b57600080fd5b6000610e958484612198565b6000806040838503121561247a57600080fd5b60006123c78585612198565b60008060008060008060c0878903121561249f57600080fd5b60006124ab8989612198565b96505060206124bc89828a0161224f565b95505060406124cd89828a01612198565b94505060606124de89828a01612198565b935050608087013567ffffffffffffffff8111156124fb57600080fd5b61250789828a0161210c565b92505060a087013567ffffffffffffffff81111561252457600080fd5b61253089828a016121b9565b9150509295509295509295565b6000612549838361255d565b505060200190565b6000612549838361266a565b6125668161311f565b82525050565b600061257782613112565b6125818185613116565b935061258c8361310c565b8060005b838110156125ba5781516125a4888261253d565b97506125af8361310c565b925050600101612590565b509495945050505050565b60006125d082613112565b6125da8185613116565b93506125e58361310c565b8060005b838110156125ba5781516125fd888261253d565b97506126088361310c565b9250506001016125e9565b600061261e82613112565b6126288185613116565b93506126338361310c565b8060005b838110156125ba57815161264b8882612551565b97506126568361310c565b925050600101612637565b6125668161312a565b612566816106e3565b600061267e82613112565b6126888185613116565b9350612698818560208601613165565b6126a1816131a2565b9093019392505050565b60006126b682613112565b6126c08185610428565b93506126d0818560208601613165565b9290920192915050565b6125666126e68261314e565b613191565b60006126f8601c83613116565b7f4665652076616c75652073686f756c6420626520706f73697469766500000000815260200192915050565b6000612731602b83613116565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061277e603283613116565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006127d2602683613116565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b600061281a601c83613116565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612853602483613116565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612899601983613116565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006128d2602c83613116565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612920601983613116565b7f6f776e65722073686f756c64207369676e20746f6b656e496400000000000000815260200192915050565b6000612959603883613116565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006129b8602a83613116565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612a04602983613116565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612a4f602083613116565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612a88602c83613116565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612ad6602c83613116565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612b24602083613116565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612b5d602983613116565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612ba8602f83613116565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612bf9602183613116565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612c3c603183613116565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612c8f602c83613116565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000612cdd602583613116565b7f4552433732313a206275726e206f6620746f6b656e2074686174206973206e6f8152643a1037bbb760d91b602082015260400192915050565b6000612d24601b83613116565b7f526563697069656e742073686f756c642062652070726573656e740000000000815260200192915050565b6000612d5d603083613116565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b612566612dae826106e3565b6106e3565b61256681613148565b6000611cd082846126ab565b6000612dd482856126da565b601482019150612de48284612da2565b5060200192915050565b6020810161077e828461255d565b60808101612e0a828761255d565b612e17602083018661255d565b612e24604083018561266a565b8181036060830152612e368184612673565b9695505050505050565b60408101612e4e828561255d565b611cd0602083018461266a565b60208082528101611cd081846125c5565b60208082528101611cd08184612613565b6020810161077e8284612661565b60808101612e99828761266a565b612ea66020830186612db3565b612eb3604083018561266a565b612ec0606083018461266a565b95945050505050565b60208082528101611cd08184612673565b6020808252810161077e816126eb565b6020808252810161077e81612724565b6020808252810161077e81612771565b6020808252810161077e816127c5565b6020808252810161077e8161280d565b6020808252810161077e81612846565b6020808252810161077e8161288c565b6020808252810161077e816128c5565b6020808252810161077e81612913565b6020808252810161077e8161294c565b6020808252810161077e816129ab565b6020808252810161077e816129f7565b6020808252810161077e81612a42565b6020808252810161077e81612a7b565b6020808252810161077e81612ac9565b6020808252810161077e81612b17565b6020808252810161077e81612b50565b6020808252810161077e81612b9b565b6020808252810161077e81612bec565b6020808252810161077e81612c2f565b6020808252810161077e81612c82565b6020808252810161077e81612cd0565b6020808252810161077e81612d17565b6020808252810161077e81612d50565b6020810161077e828461266a565b60608101613076828661266a565b8181036020830152613088818561256c565b90508181036040830152612ec08184612613565b60405181810167ffffffffffffffff811182821017156130bb57600080fd5b604052919050565b600067ffffffffffffffff8211156130da57600080fd5b5060209081020190565b600067ffffffffffffffff8211156130fb57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b600061077e8261313c565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061077e8261311f565b82818337506000910152565b60005b83811015613180578181015183820152602001613168565b83811115610bb85750506000910152565b600061077e82600061077e826131ac565b601f01601f191690565b60601b90565b6131bb8161311f565b81146107cf57600080fd5b6131bb8161312a565b6131bb816106e3565b6131bb8161312f565b6131bb8161314856fea365627a7a72315820e7ade09d745ae4b82a837251abede878c77232051371a80dcc78557395b737516c6578706572696d656e74616cf564736f6c634300051000408be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000089719871a8cb594ac43ca347d20a936dba20af9b00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000a556e69717565204f6e65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003554e45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000122f636f6e74726163744d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f697066732e696e667572612e696f2f697066732f00000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a0823111610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103c9578063e8a3d485146103dc578063e985e9c5146103e4578063f2fde38b146103f7576101cf565b8063a22cb4651461037b578063b88d4fde1461038e578063b9c4d9fb146103a1578063c0ac9983146103c1576101cf565b80638f32d59b116100de5780638f32d59b14610345578063938e3d7b1461034d57806395d89b411461036057806399e0dd7c14610368576101cf565b806370a0823114610322578063715018a6146103355780638da5cb5b1461033d576101cf565b80632f745c59116101715780634f6ccce71161014b5780634f6ccce7146102c85780636308f1cd146102db5780636352211e146102fc578063672a94001461030f576101cf565b80632f745c591461028f57806342842e0e146102a257806342966c68146102b5576101cf565b8063095ea7b3116101ad578063095ea7b3146102325780630ebd4c7f1461024757806318160ddd1461026757806323b872dd1461027c576101cf565b806301ffc9a7146101d457806306fdde03146101fd578063081812fc14610212575b600080fd5b6101e76101e23660046123d8565b61040a565b6040516101f49190612e7d565b60405180910390f35b61020561042d565b6040516101f49190612ec9565b610225610220366004612449565b6104bb565b6040516101f49190612dee565b6102456102403660046123a8565b610507565b005b61025a610255366004612449565b6105ec565b6040516101f49190612e6c565b61026f6106df565b6040516101f4919061305a565b61024561028a3660046122b2565b6106e6565b61026f61029d3660046123a8565b610723565b6102456102b03660046122b2565b610784565b6102456102c3366004612449565b61079f565b61026f6102d6366004612449565b6107d2565b6102ee6102e9366004612467565b610819565b6040516101f4929190612e40565b61022561030a366004612449565b61085c565b61024561031d366004612486565b610891565b61026f61033036600461225a565b610912565b61024561095b565b6102256109c9565b6101e76109d8565b61024561035b366004612414565b6109fc565b610205610a29565b610245610376366004612414565b610a84565b610245610389366004612378565b610ab1565b61024561039c3660046122ff565b610b7f565b6103b46103af366004612449565b610bbe565b6040516101f49190612e5b565b610205610cb6565b6102056103d7366004612449565b610d11565b610205610d41565b6101e76103f2366004612278565b610d9c565b61024561040536600461225a565b610dca565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b600d805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b820191906000526020600020905b81548152906001019060200180831161049657829003601f168201915b505050505081565b60006104c682610df7565b6104eb5760405162461bcd60e51b81526004016104e290612faa565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006105128261085c565b9050806001600160a01b0316836001600160a01b031614156105465760405162461bcd60e51b81526004016104e290612ffa565b806001600160a01b0316610558610e14565b6001600160a01b031614806105745750610574816103f2610e14565b6105905760405162461bcd60e51b81526004016104e290612f6a565b60008281526003602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b8282101561065e576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610616565b50505050905060608151604051908082528060200260200182016040528015610691578160200160208202803883390190505b50905060005b82518110156106d7578281815181106106ac57fe5b6020026020010151602001518282815181106106c457fe5b6020908102919091010152600101610697565b509392505050565b600b545b90565b6106f76106f1610e14565b82610e18565b6107135760405162461bcd60e51b81526004016104e29061300a565b61071e838383610e9d565b505050565b600061072e83610912565b821061074c5760405162461bcd60e51b81526004016104e290612eea565b6001600160a01b038316600090815260096020526040902080548390811061077057fe5b906000526020600020015490505b92915050565b61071e83838360405180602001604052806000815250610b7f565b6107aa6106f1610e14565b6107c65760405162461bcd60e51b81526004016104e29061304a565b6107cf81610ebc565b50565b60006107dc6106df565b82106107fa5760405162461bcd60e51b81526004016104e29061301a565b600b828154811061080757fe5b90600052602060002001549050919050565b600f602052816000526040600020818154811061083257fe5b6000918252602090912060029091020180546001909101546001600160a01b039091169250905082565b6000818152600260205260408120546001600160a01b03168061077e5760405162461bcd60e51b81526004016104e290612f8a565b6108be30876040516020016108a7929190612dc8565b604051602081830303815290604052868686610ece565b6001600160a01b03166108cf6109c9565b6001600160a01b0316146108f55760405162461bcd60e51b81526004016104e290612f5a565b610900338784610fab565b61090a86826111d0565b505050505050565b60006001600160a01b03821661093a5760405162461bcd60e51b81526004016104e290612f7a565b6001600160a01b038216600090815260046020526040902061077e90611203565b6109636109d8565b61097f5760405162461bcd60e51b81526004016104e290612fca565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600080546001600160a01b03166109ed610e14565b6001600160a01b031614905090565b610a046109d8565b610a205760405162461bcd60e51b81526004016104e290612fca565b6107cf81611207565b600e805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b610a8c6109d8565b610aa85760405162461bcd60e51b81526004016104e290612fca565b6107cf8161121a565b610ab9610e14565b6001600160a01b0316826001600160a01b03161415610aea5760405162461bcd60e51b81526004016104e290612f3a565b8060056000610af7610e14565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610b3b610e14565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610b739190612e7d565b60405180910390a35050565b610b90610b8a610e14565b83610e18565b610bac5760405162461bcd60e51b81526004016104e29061300a565b610bb88484848461122d565b50505050565b6000818152600f602090815260408083208054825181850281018501909352808352606094859484015b82821015610c30576000848152602090819020604080518082019091526002850290910180546001600160a01b03168252600190810154828401529083529092019101610be8565b50505050905060608151604051908082528060200260200182016040528015610c63578160200160208202803883390190505b50905060005b82518110156106d757828181518110610c7e57fe5b602002602001015160000151828281518110610c9657fe5b6001600160a01b0390921660209283029190910190910152600101610c69565b6007805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b6060610d1c82610df7565b610d385760405162461bcd60e51b81526004016104e290612fea565b61077e82611260565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104b35780601f10610488576101008083540402835291602001916104b3565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610dd26109d8565b610dee5760405162461bcd60e51b81526004016104e290612fca565b6107cf8161139b565b6000908152600260205260409020546001600160a01b0316151590565b3390565b6000610e2382610df7565b610e3f5760405162461bcd60e51b81526004016104e290612f4a565b6000610e4a8361085c565b9050806001600160a01b0316846001600160a01b03161480610e855750836001600160a01b0316610e7a846104bb565b6001600160a01b0316145b80610e955750610e958185610d9c565b949350505050565b610ea883838361141c565b610eb28382611522565b61071e8282611610565b6107cf610ec88261085c565b8261164e565b600060608590506060610f476040518060400160405280601a81526020017f19457468657265756d205369676e6564204d6573736167653a0a000000000000815250610f1a8451611661565b60408051600080825260208201818152828401828152606084019283526080840190945288939091611722565b90506001818051906020012087878760405160008152602001604052604051610f739493929190612e8b565b6020604051602081039080840390855afa158015610f95573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b610fb583836119c8565b60608151604051908082528060200260200182016040528015610fe2578160200160208202803883390190505b50905060608251604051908082528060200260200182016040528015611012578160200160208202803883390190505b50905060005b83518110156111855760006001600160a01b031684828151811061103857fe5b6020026020010151600001516001600160a01b0316141561106b5760405162461bcd60e51b81526004016104e29061303a565b83818151811061107757fe5b602002602001015160200151600014156110a35760405162461bcd60e51b81526004016104e290612eda565b6000858152600f6020526040902084518590839081106110bf57fe5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b03909216919091178155910151910155835184908290811061111657fe5b60200260200101516000015183828151811061112e57fe5b60200260200101906001600160a01b031690816001600160a01b03168152505083818151811061115a57fe5b60200260200101516020015182828151811061117257fe5b6020908102919091010152600101611018565b508251156111c9577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b28483836040516111c093929190613068565b60405180910390a15b5050505050565b6111d982610df7565b6111f55760405162461bcd60e51b81526004016104e290612fba565b6111ff82826119e5565b5050565b5490565b80516111ff906006906020840190612005565b80516111ff906007906020840190612005565b611238848484610e9d565b61124484848484611a04565b610bb85760405162461bcd60e51b81526004016104e290612efa565b6000818152600860209081526040918290208054835160026001831615610100026000190190921691909104601f810184900484028201840190945283815260609361077e939192918301828280156112fa5780601f106112cf576101008083540402835291602001916112fa565b820191906000526020600020905b8154815290600101906020018083116112dd57829003601f168201915b505060078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152955091935091508301828280156113885780601f1061135d57610100808354040283529160200191611388565b820191906000526020600020905b81548152906001019060200180831161136b57829003601f168201915b5050505050611b3e90919063ffffffff16565b6001600160a01b0381166113c15760405162461bcd60e51b81526004016104e290612f0a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b826001600160a01b031661142f8261085c565b6001600160a01b0316146114555760405162461bcd60e51b81526004016104e290612fda565b6001600160a01b03821661147b5760405162461bcd60e51b81526004016104e290612f2a565b61148481611c33565b6001600160a01b03831660009081526004602052604090206114a590611c6e565b6001600160a01b03821660009081526004602052604090206114c690611c85565b60008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604081205461154c90600163ffffffff611c8e16565b6000838152600a60205260409020549091508082146115e7576001600160a01b038416600090815260096020526040812080548490811061158957fe5b906000526020600020015490508060096000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106115c757fe5b6000918252602080832090910192909255918252600a9052604090208190555b6001600160a01b03841660009081526009602052604090208054906111c9906000198301612083565b6001600160a01b0390911660009081526009602081815260408084208054868652600a84529185208290559282526001810183559183529091200155565b6116588282611cd7565b6111ff81611d03565b60608161168657506040805180820190915260018152600360fc1b6020820152610428565b8160005b811561169e57600101600a8204915061168a565b6060816040519080825280601f01601f1916602001820160405280156116cb576020820181803883390190505b50905060001982015b851561171957600a860660300160f81b828280600190039350815181106116f757fe5b60200101906001600160f81b031916908160001a905350600a860495506116d4565b50949350505050565b60608082518451865188518a518c518e510101010101016040519080825280601f01601f191660200182016040528015611763576020820181803883390190505b5090506000805b8a518110156117bb578a818151811061177f57fe5b602001015160f81c60f81b83838060010194508151811061179c57fe5b60200101906001600160f81b031916908160001a90535060010161176a565b5060005b8951811015611810578981815181106117d457fe5b602001015160f81c60f81b8383806001019450815181106117f157fe5b60200101906001600160f81b031916908160001a9053506001016117bf565b5060005b88518110156118655788818151811061182957fe5b602001015160f81c60f81b83838060010194508151811061184657fe5b60200101906001600160f81b031916908160001a905350600101611814565b5060005b87518110156118ba5787818151811061187e57fe5b602001015160f81c60f81b83838060010194508151811061189b57fe5b60200101906001600160f81b031916908160001a905350600101611869565b5060005b865181101561190f578681815181106118d357fe5b602001015160f81c60f81b8383806001019450815181106118f057fe5b60200101906001600160f81b031916908160001a9053506001016118be565b5060005b85518110156119645785818151811061192857fe5b602001015160f81c60f81b83838060010194508151811061194557fe5b60200101906001600160f81b031916908160001a905350600101611913565b5060005b84518110156119b95784818151811061197d57fe5b602001015160f81c60f81b83838060010194508151811061199a57fe5b60200101906001600160f81b031916908160001a905350600101611968565b50909998505050505050505050565b6119d28282611d41565b6119dc8282611610565b6111ff81611e08565b6000828152600860209081526040909120825161071e92840190612005565b6000611a18846001600160a01b0316611e4c565b611a2457506001610e95565b600060606001600160a01b038616630a85bd0160e11b611a42610e14565b898888604051602401611a589493929190612dfc565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611a969190612dbc565b6000604051808303816000865af19150503d8060008114611ad3576040519150601f19603f3d011682016040523d82523d6000602084013e611ad8565b606091505b509150915081611b0a57805115611af25780518082602001fd5b60405162461bcd60e51b81526004016104e290612efa565b600081806020019051611b2091908101906123f6565b6001600160e01b031916630a85bd0160e11b149350610e9592505050565b6060808390506060839050606081518351016040519080825280601f01601f191660200182016040528015611b7a576020820181803883390190505b5090506000805b8451811015611bd257848181518110611b9657fe5b602001015160f81c60f81b838380600101945081518110611bb357fe5b60200101906001600160f81b031916908160001a905350600101611b81565b5060005b8351811015611c2757838181518110611beb57fe5b602001015160f81c60f81b838380600101945081518110611c0857fe5b60200101906001600160f81b031916908160001a905350600101611bd6565b50909695505050505050565b6000818152600360205260409020546001600160a01b0316156107cf57600090815260036020526040902080546001600160a01b0319169055565b8054611c8190600163ffffffff611c8e16565b9055565b80546001019055565b6000611cd083836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611e85565b9392505050565b611ce18282611eb1565b611ceb8282611522565b6000818152600a60205260408120556111ff81611f69565b60008181526008602052604090205460026000196101006001841615020190911604156107cf5760008181526008602052604081206107cf916120a7565b6001600160a01b038216611d675760405162461bcd60e51b81526004016104e290612f9a565b611d7081610df7565b15611d8d5760405162461bcd60e51b81526004016104e290612f1a565b600081815260026020908152604080832080546001600160a01b0319166001600160a01b038716908117909155835260049091529020611dcc90611c85565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600b80546000838152600c60205260408120829055600182018355919091527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db90155565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610e95575050151592915050565b60008184841115611ea95760405162461bcd60e51b81526004016104e29190612ec9565b505050900390565b816001600160a01b0316611ec48261085c565b6001600160a01b031614611eea5760405162461bcd60e51b81526004016104e29061302a565b611ef381611c33565b6001600160a01b0382166000908152600460205260409020611f1490611c6e565b60008181526002602052604080822080546001600160a01b0319169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600b54600090611f8090600163ffffffff611c8e16565b6000838152600c6020526040812054600b8054939450909284908110611fa257fe5b9060005260206000200154905080600b8381548110611fbd57fe5b6000918252602080832090910192909255828152600c90915260409020829055600b805490611ff0906000198301612083565b505050600091825250600c6020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061204657805160ff1916838001178555612073565b82800160010185558215612073579182015b82811115612073578251825591602001919060010190612058565b5061207f9291506120e7565b5090565b81548183558181111561071e5760008381526020902061071e9181019083016120e7565b50805460018160011615610100020316600290046000825580601f106120cd57506107cf565b601f0160209004906000526020600020908101906107cf91905b6106e391905b8082111561207f57600081556001016120ed565b803561077e816131b2565b600082601f83011261211d57600080fd5b813561213061212b826130c3565b61309c565b9150818183526020840193506020810190508385604084028201111561215557600080fd5b60005b83811015612183578161216b8882612208565b84525060209092019160409190910190600101612158565b5050505092915050565b803561077e816131c6565b803561077e816131cf565b803561077e816131d8565b805161077e816131d8565b600082601f8301126121ca57600080fd5b81356121d861212b826130e4565b915080825260208301602083018583830111156121f457600080fd5b6121ff838284613159565b50505092915050565b60006040828403121561221a57600080fd5b612224604061309c565b905060006122328484612101565b825250602061224384848301612198565b60208301525092915050565b803561077e816131e1565b60006020828403121561226c57600080fd5b6000610e958484612101565b6000806040838503121561228b57600080fd5b60006122978585612101565b92505060206122a885828601612101565b9150509250929050565b6000806000606084860312156122c757600080fd5b60006122d38686612101565b93505060206122e486828701612101565b92505060406122f586828701612198565b9150509250925092565b6000806000806080858703121561231557600080fd5b60006123218787612101565b945050602061233287828801612101565b935050604061234387828801612198565b925050606085013567ffffffffffffffff81111561236057600080fd5b61236c878288016121b9565b91505092959194509250565b6000806040838503121561238b57600080fd5b60006123978585612101565b92505060206122a88582860161218d565b600080604083850312156123bb57600080fd5b60006123c78585612101565b92505060206122a885828601612198565b6000602082840312156123ea57600080fd5b6000610e9584846121a3565b60006020828403121561240857600080fd5b6000610e9584846121ae565b60006020828403121561242657600080fd5b813567ffffffffffffffff81111561243d57600080fd5b610e95848285016121b9565b60006020828403121561245b57600080fd5b6000610e958484612198565b6000806040838503121561247a57600080fd5b60006123c78585612198565b60008060008060008060c0878903121561249f57600080fd5b60006124ab8989612198565b96505060206124bc89828a0161224f565b95505060406124cd89828a01612198565b94505060606124de89828a01612198565b935050608087013567ffffffffffffffff8111156124fb57600080fd5b61250789828a0161210c565b92505060a087013567ffffffffffffffff81111561252457600080fd5b61253089828a016121b9565b9150509295509295509295565b6000612549838361255d565b505060200190565b6000612549838361266a565b6125668161311f565b82525050565b600061257782613112565b6125818185613116565b935061258c8361310c565b8060005b838110156125ba5781516125a4888261253d565b97506125af8361310c565b925050600101612590565b509495945050505050565b60006125d082613112565b6125da8185613116565b93506125e58361310c565b8060005b838110156125ba5781516125fd888261253d565b97506126088361310c565b9250506001016125e9565b600061261e82613112565b6126288185613116565b93506126338361310c565b8060005b838110156125ba57815161264b8882612551565b97506126568361310c565b925050600101612637565b6125668161312a565b612566816106e3565b600061267e82613112565b6126888185613116565b9350612698818560208601613165565b6126a1816131a2565b9093019392505050565b60006126b682613112565b6126c08185610428565b93506126d0818560208601613165565b9290920192915050565b6125666126e68261314e565b613191565b60006126f8601c83613116565b7f4665652076616c75652073686f756c6420626520706f73697469766500000000815260200192915050565b6000612731602b83613116565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b602082015260400192915050565b600061277e603283613116565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b60006127d2602683613116565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b600061281a601c83613116565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815260200192915050565b6000612853602483613116565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000612899601983613116565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b60006128d2602c83613116565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612920601983613116565b7f6f776e65722073686f756c64207369676e20746f6b656e496400000000000000815260200192915050565b6000612959603883613116565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b60006129b8602a83613116565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a65815269726f206164647265737360b01b602082015260400192915050565b6000612a04602983613116565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481526832b73a103a37b5b2b760b91b602082015260400192915050565b6000612a4f602083613116565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373815260200192915050565b6000612a88602c83613116565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612ad6602c83613116565b7f4552433732314d657461646174613a2055524920736574206f66206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000612b24602083613116565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000612b5d602983613116565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000612ba8602f83613116565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f81526e3732bc34b9ba32b73a103a37b5b2b760891b602082015260400192915050565b6000612bf9602183613116565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000612c3c603183613116565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f8152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b602082015260400192915050565b6000612c8f602c83613116565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b602082015260400192915050565b6000612cdd602583613116565b7f4552433732313a206275726e206f6620746f6b656e2074686174206973206e6f8152643a1037bbb760d91b602082015260400192915050565b6000612d24601b83613116565b7f526563697069656e742073686f756c642062652070726573656e740000000000815260200192915050565b6000612d5d603083613116565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7781526f1b995c881b9bdc88185c1c1c9bdd995960821b602082015260400192915050565b612566612dae826106e3565b6106e3565b61256681613148565b6000611cd082846126ab565b6000612dd482856126da565b601482019150612de48284612da2565b5060200192915050565b6020810161077e828461255d565b60808101612e0a828761255d565b612e17602083018661255d565b612e24604083018561266a565b8181036060830152612e368184612673565b9695505050505050565b60408101612e4e828561255d565b611cd0602083018461266a565b60208082528101611cd081846125c5565b60208082528101611cd08184612613565b6020810161077e8284612661565b60808101612e99828761266a565b612ea66020830186612db3565b612eb3604083018561266a565b612ec0606083018461266a565b95945050505050565b60208082528101611cd08184612673565b6020808252810161077e816126eb565b6020808252810161077e81612724565b6020808252810161077e81612771565b6020808252810161077e816127c5565b6020808252810161077e8161280d565b6020808252810161077e81612846565b6020808252810161077e8161288c565b6020808252810161077e816128c5565b6020808252810161077e81612913565b6020808252810161077e8161294c565b6020808252810161077e816129ab565b6020808252810161077e816129f7565b6020808252810161077e81612a42565b6020808252810161077e81612a7b565b6020808252810161077e81612ac9565b6020808252810161077e81612b17565b6020808252810161077e81612b50565b6020808252810161077e81612b9b565b6020808252810161077e81612bec565b6020808252810161077e81612c2f565b6020808252810161077e81612c82565b6020808252810161077e81612cd0565b6020808252810161077e81612d17565b6020808252810161077e81612d50565b6020810161077e828461266a565b60608101613076828661266a565b8181036020830152613088818561256c565b90508181036040830152612ec08184612613565b60405181810167ffffffffffffffff811182821017156130bb57600080fd5b604052919050565b600067ffffffffffffffff8211156130da57600080fd5b5060209081020190565b600067ffffffffffffffff8211156130fb57600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b600061077e8261313c565b151590565b6001600160e01b03191690565b6001600160a01b031690565b60ff1690565b600061077e8261311f565b82818337506000910152565b60005b83811015613180578181015183820152602001613168565b83811115610bb85750506000910152565b600061077e82600061077e826131ac565b601f01601f191690565b60601b90565b6131bb8161311f565b81146107cf57600080fd5b6131bb8161312a565b6131bb816106e3565b6131bb8161312f565b6131bb8161314856fea365627a7a72315820e7ade09d745ae4b82a837251abede878c77232051371a80dcc78557395b737516c6578706572696d656e74616cf564736f6c63430005100040

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000089719871a8cb594ac43ca347d20a936dba20af9b00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000a556e69717565204f6e65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003554e45000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000122f636f6e74726163744d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c68747470733a2f2f697066732e696e667572612e696f2f697066732f00000000

-----Decoded View---------------
Arg [0] : name (string): Unique One
Arg [1] : symbol (string): UNE
Arg [2] : newOwner (address): 0x89719871a8cB594Ac43ca347D20A936dBA20aF9B
Arg [3] : contractURI (string): /contractMetadata/
Arg [4] : tokenURIPrefix (string): https://ipfs.infura.io/ipfs/

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000089719871a8cb594ac43ca347d20a936dba20af9b
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 556e69717565204f6e6500000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 554e450000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [10] : 2f636f6e74726163744d657461646174612f0000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000001c
Arg [12] : 68747470733a2f2f697066732e696e667572612e696f2f697066732f00000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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