ETH Price: $2,522.90 (+0.24%)

Token

🎨 Nifty.Ink (🎨)
 

Overview

Max Total Supply

228 🎨

Holders

116

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 🎨
0xe53EA28389143DbC561D17C8272A6C137116bd03
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:
NiftyMain

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-08-07
*/

// Sources flattened with buidler v1.3.3-rc.0 https://buidler.dev

// File contracts/IAMB.sol

pragma solidity >=0.6.0 <0.7.0;

interface IAMB {
    function messageSender() external view returns (address);
    function maxGasPerTx() external view returns (uint256);
    function transactionHash() external view returns (bytes32);
    function messageId() external view returns (bytes32);
    function messageSourceChainId() external view returns (bytes32);
    function messageCallStatus(bytes32 _messageId) external view returns (bool);
    function failedMessageDataHash(bytes32 _messageId) external view returns (bytes32);
    function failedMessageReceiver(bytes32 _messageId) external view returns (address);
    function failedMessageSender(bytes32 _messageId) external view returns (address);
    function requireToPassMessage(address _contract, bytes calldata _data, uint256 _gas) external returns (bytes32);
}


// File contracts/ITokenManagement.sol

pragma solidity >=0.6.0 <0.7.0;

interface ITokenManagement {

  function mint(address to, uint256 tokenId, string calldata inkUrl, string calldata jsonUrl) external returns (uint256);
  function fixFailedMessage(bytes32 _dataHash) external;

}


// File @openzeppelin/contracts/GSN/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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


// File @openzeppelin/contracts/access/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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(_owner == _msgSender(), "Ownable: caller is not the 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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

/**
 * @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 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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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


// File contracts/AMBMediator.sol

pragma solidity >=0.6.0 <0.7.0;





contract AMBMediator is Ownable {
    using Address for address;

    constructor() public {
    }

    address public bridgeContractAddress;
    address private otherSideContractAddress;
    uint256 public requestGasLimit;

    mapping (bytes32 => bool) public messageFixed;

    function setBridgeContract(address _bridgeContract) external onlyOwner {
        _setBridgeContract(_bridgeContract);
    }

    function _setBridgeContract(address _bridgeContract) internal {
        require(_bridgeContract.isContract(), 'provided address is not a contract');
        bridgeContractAddress = _bridgeContract;
    }

    function bridgeContract() public view returns (IAMB) {
        return IAMB(bridgeContractAddress);
    }

    function setMediatorContractOnOtherSide(address _mediatorContract) external onlyOwner {
        _setMediatorContractOnOtherSide(_mediatorContract);
    }

    function _setMediatorContractOnOtherSide(address _mediatorContract) internal {
        otherSideContractAddress = _mediatorContract;
    }

    function mediatorContractOnOtherSide() public view returns (address) {
        return otherSideContractAddress;
    }

    function setRequestGasLimit(uint256 _requestGasLimit) external onlyOwner {
        _setRequestGasLimit(_requestGasLimit);
    }

    function _setRequestGasLimit(uint256 _requestGasLimit) internal {
        require(_requestGasLimit <= bridgeContract().maxGasPerTx(),'gas limit is higher than the Bridge maximum');
        requestGasLimit = _requestGasLimit;
    }

    /**
    * @dev Tells the address that generated the message on the other network that is currently being executed by
    * the AMB bridge.
    * @return the address of the message sender.
    */
    function messageSender() internal view returns (address) {
        return bridgeContract().messageSender();
    }

    /**
    * @dev Tells the id of the message originated on the other network.
    * @return the id of the message originated on the other network.
    */
    function messageId() internal view returns (bytes32) {
        return bridgeContract().messageId();
    }


    function setMessageFixed(bytes32 _txHash) internal {
        messageFixed[_txHash] = true;
    }

    function requestFailedMessageFix(bytes32 _txHash) external {
        require(!bridgeContract().messageCallStatus(_txHash));
        require(bridgeContract().failedMessageReceiver(_txHash) == address(this));
        require(bridgeContract().failedMessageSender(_txHash) == mediatorContractOnOtherSide());
        bytes32 dataHash = bridgeContract().failedMessageDataHash(_txHash);

        bytes4 methodSelector = ITokenManagement(address(0)).fixFailedMessage.selector;
        bytes memory data = abi.encodeWithSelector(methodSelector, dataHash);
        bridgeContract().requireToPassMessage(mediatorContractOnOtherSide(), data, requestGasLimit);
    }

}


// File @openzeppelin/contracts/math/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @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.
     */
    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.
     */
    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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


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


// File @opengsn/gsn/contracts/0x/errors/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;


library LibBytesRichErrorsV06 {

    enum InvalidByteOperationErrorCodes {
        FromLessThanOrEqualsToRequired,
        ToLessThanOrEqualsLengthRequired,
        LengthGreaterThanZeroRequired,
        LengthGreaterThanOrEqualsFourRequired,
        LengthGreaterThanOrEqualsTwentyRequired,
        LengthGreaterThanOrEqualsThirtyTwoRequired,
        LengthGreaterThanOrEqualsNestedBytesLengthRequired,
        DestinationLengthGreaterThanOrEqualSourceLengthRequired
    }

    // bytes4(keccak256("InvalidByteOperationError(uint8,uint256,uint256)"))
    bytes4 internal constant INVALID_BYTE_OPERATION_ERROR_SELECTOR =
        0x28006595;

    // solhint-disable func-name-mixedcase
    function InvalidByteOperationError(
        InvalidByteOperationErrorCodes errorCode,
        uint256 offset,
        uint256 required
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            INVALID_BYTE_OPERATION_ERROR_SELECTOR,
            errorCode,
            offset,
            required
        );
    }
}


// File @opengsn/gsn/contracts/0x/errors/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;


library LibRichErrorsV06 {

    // bytes4(keccak256("Error(string)"))
    bytes4 internal constant STANDARD_ERROR_SELECTOR = 0x08c379a0;

    // solhint-disable func-name-mixedcase
    /// @dev ABI encode a standard, string revert error payload.
    ///      This is the same payload that would be included by a `revert(string)`
    ///      solidity statement. It has the function signature `Error(string)`.
    /// @param message The error string.
    /// @return The ABI encoded error.
    function StandardError(string memory message)
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            STANDARD_ERROR_SELECTOR,
            bytes(message)
        );
    }
    // solhint-enable func-name-mixedcase

    /// @dev Reverts an encoded rich revert reason `errorData`.
    /// @param errorData ABI encoded error data.
    function rrevert(bytes memory errorData)
        internal
        pure
    {
        assembly {
            revert(add(errorData, 0x20), mload(errorData))
        }
    }
}


// File @opengsn/gsn/contracts/0x/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;




library LibBytesV06 {

    using LibBytesV06 for bytes;

    /// @dev Gets the memory address for a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of byte array. This
    ///         points to the header of the byte array which contains
    ///         the length.
    function rawAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := input
        }
        return memoryAddress;
    }

    /// @dev Gets the memory address for the contents of a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of the contents of the byte array.
    function contentAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := add(input, 32)
        }
        return memoryAddress;
    }

    /// @dev Copies `length` bytes from memory location `source` to `dest`.
    /// @param dest memory address to copy bytes to.
    /// @param source memory address to copy bytes from.
    /// @param length number of bytes to copy.
    function memCopy(
        uint256 dest,
        uint256 source,
        uint256 length
    )
        internal
        pure
    {
        if (length < 32) {
            // Handle a partial word by reading destination and masking
            // off the bits we are interested in.
            // This correctly handles overlap, zero lengths and source == dest
            assembly {
                let mask := sub(exp(256, sub(32, length)), 1)
                let s := and(mload(source), not(mask))
                let d := and(mload(dest), mask)
                mstore(dest, or(s, d))
            }
        } else {
            // Skip the O(length) loop when source == dest.
            if (source == dest) {
                return;
            }

            // For large copies we copy whole words at a time. The final
            // word is aligned to the end of the range (instead of after the
            // previous) to handle partial words. So a copy will look like this:
            //
            //  ####
            //      ####
            //          ####
            //            ####
            //
            // We handle overlap in the source and destination range by
            // changing the copying direction. This prevents us from
            // overwriting parts of source that we still need to copy.
            //
            // This correctly handles source == dest
            //
            if (source > dest) {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because it
                    // is easier to compare with in the loop, and these
                    // are also the addresses we need for copying the
                    // last bytes.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the last 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the last bytes in
                    // source already due to overlap.
                    let last := mload(sEnd)

                    // Copy whole words front to back
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} lt(source, sEnd) {} {
                        mstore(dest, mload(source))
                        source := add(source, 32)
                        dest := add(dest, 32)
                    }

                    // Write the last 32 bytes
                    mstore(dEnd, last)
                }
            } else {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because those
                    // are the starting points when copying a word at the end.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the first 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the first bytes in
                    // source already due to overlap.
                    let first := mload(source)

                    // Copy whole words back to front
                    // We use a signed comparisson here to allow dEnd to become
                    // negative (happens when source and dest < 32). Valid
                    // addresses in local memory will never be larger than
                    // 2**255, so they can be safely re-interpreted as signed.
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} slt(dest, dEnd) {} {
                        mstore(dEnd, mload(sEnd))
                        sEnd := sub(sEnd, 32)
                        dEnd := sub(dEnd, 32)
                    }

                    // Write the first 32 bytes
                    mstore(dest, first)
                }
            }
        }
    }

    /// @dev Returns a slices from a byte array.
    /// @param b The byte array to take a slice from.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    function slice(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure and copy contents
        result = new bytes(to - from);
        memCopy(
            result.contentAddress(),
            b.contentAddress() + from,
            result.length
        );
        return result;
    }

    /// @dev Returns a slice from a byte array without preserving the input.
    ///      When `from == 0`, the original array will match the slice.
    ///      In other cases its state will be corrupted.
    /// @param b The byte array to take a slice from. Will be destroyed in the process.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    function sliceDestructive(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure around [from, to) in-place.
        assembly {
            result := add(b, from)
            mstore(result, sub(to, from))
        }
        return result;
    }

    /// @dev Pops the last byte off of a byte array by modifying its length.
    /// @param b Byte array that will be modified.
    /// @return result The byte that was popped off.
    function popLastByte(bytes memory b)
        internal
        pure
        returns (bytes1 result)
    {
        if (b.length == 0) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanZeroRequired,
                b.length,
                0
            ));
        }

        // Store last byte.
        result = b[b.length - 1];

        assembly {
            // Decrement length of byte array.
            let newLen := sub(mload(b), 1)
            mstore(b, newLen)
        }
        return result;
    }

    /// @dev Tests equality of two byte arrays.
    /// @param lhs First byte array to compare.
    /// @param rhs Second byte array to compare.
    /// @return equal True if arrays are the same. False otherwise.
    function equals(
        bytes memory lhs,
        bytes memory rhs
    )
        internal
        pure
        returns (bool equal)
    {
        // Keccak gas cost is 30 + numWords * 6. This is a cheap way to compare.
        // We early exit on unequal lengths, but keccak would also correctly
        // handle this.
        return lhs.length == rhs.length && keccak256(lhs) == keccak256(rhs);
    }

    /// @dev Reads an address from a position in a byte array.
    /// @param b Byte array containing an address.
    /// @param index Index in byte array of address.
    /// @return result address from byte array.
    function readAddress(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (address result)
    {
        if (b.length < index + 20) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Read address from array memory
        assembly {
            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 20-byte mask to obtain address
            result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff)
        }
        return result;
    }

    /// @dev Writes an address into a specific position in a byte array.
    /// @param b Byte array to insert address into.
    /// @param index Index in byte array of address.
    /// @param input Address to put into byte array.
    function writeAddress(
        bytes memory b,
        uint256 index,
        address input
    )
        internal
        pure
    {
        if (b.length < index + 20) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Store address into array memory
        assembly {
            // The address occupies 20 bytes and mstore stores 32 bytes.
            // First fetch the 32-byte word where we'll be storing the address, then
            // apply a mask so we have only the bytes in the word that the address will not occupy.
            // Then combine these bytes with the address and store the 32 bytes back to memory with mstore.

            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 12-byte mask to obtain extra bytes occupying word of memory where we'll store the address
            let neighbors := and(
                mload(add(b, index)),
                0xffffffffffffffffffffffff0000000000000000000000000000000000000000
            )

            // Make sure input address is clean.
            // (Solidity does not guarantee this)
            input := and(input, 0xffffffffffffffffffffffffffffffffffffffff)

            // Store the neighbors and address into memory
            mstore(add(b, index), xor(input, neighbors))
        }
    }

    /// @dev Reads a bytes32 value from a position in a byte array.
    /// @param b Byte array containing a bytes32 value.
    /// @param index Index in byte array of bytes32 value.
    /// @return result bytes32 value from byte array.
    function readBytes32(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes32 result)
    {
        if (b.length < index + 32) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            result := mload(add(b, index))
        }
        return result;
    }

    /// @dev Writes a bytes32 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input bytes32 to put into byte array.
    function writeBytes32(
        bytes memory b,
        uint256 index,
        bytes32 input
    )
        internal
        pure
    {
        if (b.length < index + 32) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            mstore(add(b, index), input)
        }
    }

    /// @dev Reads a uint256 value from a position in a byte array.
    /// @param b Byte array containing a uint256 value.
    /// @param index Index in byte array of uint256 value.
    /// @return result uint256 value from byte array.
    function readUint256(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (uint256 result)
    {
        result = uint256(readBytes32(b, index));
        return result;
    }

    /// @dev Writes a uint256 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input uint256 to put into byte array.
    function writeUint256(
        bytes memory b,
        uint256 index,
        uint256 input
    )
        internal
        pure
    {
        writeBytes32(b, index, bytes32(input));
    }

    /// @dev Reads an unpadded bytes4 value from a position in a byte array.
    /// @param b Byte array containing a bytes4 value.
    /// @param index Index in byte array of bytes4 value.
    /// @return result bytes4 value from byte array.
    function readBytes4(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes4 result)
    {
        if (b.length < index + 4) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsFourRequired,
                b.length,
                index + 4
            ));
        }

        // Arrays are prefixed by a 32 byte length field
        index += 32;

        // Read the bytes4 from array memory
        assembly {
            result := mload(add(b, index))
            // Solidity does not require us to clean the trailing bytes.
            // We do it anyway
            result := and(result, 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000)
        }
        return result;
    }

    /// @dev Writes a new length to a byte array.
    ///      Decreasing length will lead to removing the corresponding lower order bytes from the byte array.
    ///      Increasing length may lead to appending adjacent in-memory bytes to the end of the byte array.
    /// @param b Bytes array to write new length to.
    /// @param length New length of byte array.
    function writeLength(bytes memory b, uint256 length)
        internal
        pure
    {
        assembly {
            mstore(b, length)
        }
    }
}


// File @opengsn/gsn/contracts/interfaces/[email protected]

// SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;

/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal virtual view returns (address payable);

    function versionRecipient() external virtual view returns (string memory);
}


// File @opengsn/gsn/contracts/[email protected]

// SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;



/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /// the TrustedForwarder singleton we accept calls from.
    // we trust it to verify the caller's signature, and pass the caller's address as last 20 bytes
    address internal trustedForwarder;

    /*
     * require a function to be called through GSN only
     */
    modifier trustedForwarderOnly() {
        require(msg.sender == address(trustedForwarder), "Function can only be called through trustedForwarder");
        _;
    }

    function isTrustedForwarder(address forwarder) public override view returns(bool) {
        return forwarder == trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal override virtual view returns (address payable) {
        if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            return address(uint160(LibBytesV06.readAddress(msg.data, msg.data.length - 20)));
        }
        return msg.sender;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}


// File @openzeppelin/contracts/cryptography/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            revert("ECDSA: invalid signature 's' value");
        }

        if (v != 27 && v != 28) {
            revert("ECDSA: invalid signature 'v' value");
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}


// File contracts/IERC1271.sol

// SPDX-License-Identifier: CC0-1.0
pragma solidity >=0.5.0 <0.7.0;

/**
 * @notice ERC-1271: Standard Signature Validation Method for Contracts
 */
interface IERC1271 {

//    bytes4 internal constant _ERC1271MAGICVALUE = 0x1626ba7e;
//    bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param _hash hash of the data signed//Arbitrary length data signed on the behalf of address(this)
     * @param _signature Signature byte array associated with _data
     *
     * @return magicValue either 0x1626ba7e on success or 0xffffffff failure
     */
    function isValidSignature(
        bytes32 _hash, //bytes memory _data,
        bytes calldata _signature
    )
    external
    view
    returns (bytes4 magicValue);
}


// File contracts/SignatureChecker.sol

pragma solidity >=0.6.0 <0.7.0;





contract SignatureChecker is Ownable {
    using ECDSA for bytes32;
    using Address for address;
    bool public checkSignatureFlag;

    bytes4 internal constant _INTERFACE_ID_ERC1271 = 0x1626ba7e;
    bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

    function setCheckSignatureFlag(bool newFlag) public onlyOwner {
      checkSignatureFlag = newFlag;
    }

    function getSigner(bytes32 signedHash, bytes memory signature) public pure returns (address)
    {
        return signedHash.toEthSignedMessageHash().recover(signature);
    }

    function checkSignature(bytes32 signedHash, bytes memory signature, address checkAddress) public view returns (bool) {
      if(checkAddress.isContract()) {
        return IERC1271(checkAddress).isValidSignature(signedHash, signature) == _INTERFACE_ID_ERC1271;
      } else {
        return getSigner(signedHash, signature) == checkAddress;
      }
    }

}


// File contracts/Liker.sol

pragma solidity >=0.6.0 <0.7.0;







contract Liker is Ownable, BaseRelayRecipient, SignatureChecker {
  using ECDSA for bytes32;
  using Counters for Counters.Counter;
  using EnumerableSet for EnumerableSet.UintSet;
  using SafeMath for uint256;

  Counters.Counter public totalLikes;

  event liked(uint256 LikeId, address targetContract, uint256 target, uint256 targetId, address liker);
  event contractAdded(address targetContract, address contractOwner);
  event contractRemoved(address targetContract, address contractOwner);

  struct Like {
    uint256 id;
    address liker;
    uint256 targetId;
    address contractAddress;
    uint256 target;
    bool exists;
  }

  EnumerableSet.UintSet private likeIds;
  mapping(address => bool) public registeredContracts;
  mapping(address => address) public contractOwner;
  mapping(uint256 => Like) private likeById;
  mapping(address => EnumerableSet.UintSet) private addressLikes;
  mapping(uint256 => EnumerableSet.UintSet) private targetLikes;
  mapping(address => EnumerableSet.UintSet) private contractLikes;

  function getTargetId(address contractAddress, uint256 target) public view returns (uint256) {
    return uint256(keccak256(
        abi.encodePacked(
            byte(0x19),
            byte(0),
            address(this),
            contractAddress,
            target
    )));
  }

  function _newLike(address contractAddress, uint256 target, address liker) internal returns (uint256) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    uint256 targetId = getTargetId(contractAddress, target);
    uint256 likeId = uint256(keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker)));
    require(!likeById[likeId].exists,"this like has already been liked");

    totalLikes.increment();

    Like memory _like = Like({
      id: likeId,
      liker: liker,
      targetId: targetId,
      contractAddress: contractAddress,
      target: target,
      exists: true
    });

    likeIds.add(likeId);
    likeById[likeId] = _like;
    addressLikes[liker].add(likeId);
    targetLikes[targetId].add(likeId);
    contractLikes[contractAddress].add(likeId);

    emit liked(likeId, contractAddress, target, targetId, liker);
  }

  function like(address contractAddress, uint256 target) public returns (uint256) {
    return _newLike(contractAddress, target, _msgSender());
  }

  function likeWithSignature(address contractAddress, uint256 target, address liker, bytes memory signature) public returns (uint256) {
    bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker));
    bool isArtistSignature = checkSignature(messageHash, signature, liker);
    require(isArtistSignature || !checkSignatureFlag, "Unable to verify the artist signature");
    return _newLike(contractAddress, target, liker);
  }

  function checkLike(address contractAddress, uint256 target, address liker) public view returns (bool) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    uint256 likeId = uint256(keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker)));
    return likeById[likeId].exists;
  }

  function getLikeIdByIndex(uint256 index) public view returns (uint256) {
    return likeIds.at(index);
  }

  function getLikeInfoById(uint256 likeId) public view returns (uint256, address, uint256, address, uint256) {
    require(likeById[likeId].exists, 'like does not exist');
    Like storage _like = likeById[likeId];
    return (likeId, _like.liker, _like.targetId, _like.contractAddress, _like.target);
  }

  function getLikesByTargetId(uint256 targetId) public view returns (uint256) {
    return targetLikes[targetId].length();
  }

  function getLikesByTarget(address contractAddress, uint256 target) public view returns (uint256) {
    uint256 targetId = getTargetId(contractAddress, target);
    return targetLikes[targetId].length();
  }

  function getLikesByContract(address contractAddress) public view returns (uint256) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    return contractLikes[contractAddress].length();
  }

  function getLikesByLiker(address liker) public view returns (uint256) {
    return addressLikes[liker].length();
  }

  function addContract(address contractAddress) public returns (bool) {
    require(!registeredContracts[contractAddress],"this contract is already registered");
    registeredContracts[contractAddress] = true;
    address _contractOwner = _msgSender();
    contractOwner[contractAddress] = _contractOwner;
    emit contractAdded(contractAddress, _contractOwner);
    return true;
  }

  function removeContract(address contractAddress) public returns (bool) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    address _contractOwner = _msgSender();
    require(contractOwner[contractAddress] == _contractOwner, 'only the contract owner can remove');
    registeredContracts[contractAddress] = false;
    emit contractRemoved(contractAddress, _contractOwner);
    return false;
  }

  function versionRecipient() external virtual view override returns (string memory) {
    return "1.0";
  }

  function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
    trustedForwarder = _trustedForwarder;
  }

  function getTrustedForwarder() public view returns(address) {
    return trustedForwarder;
  }

  function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
      return BaseRelayRecipient._msgSender();
  }
}


// File @openzeppelin/contracts/introspection/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transfered from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from`, `to` cannot be zero.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from`, `to` cannot be zero.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from`, `to` cannot be zero.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
abstract 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 virtual returns (bytes4);
}


// File @openzeppelin/contracts/introspection/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @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) public view override 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 virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint256(value)));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;












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

    // 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 holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

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

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

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

    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

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

    /**
     * @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 override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _holderTokens[owner].length();
    }

    /**
     * @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 override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

    /**
     * @dev Returns the URI for a given token ID. May return an empty string.
     *
     * If a base URI is set (via {_setBaseURI}), it is added as a prefix to the
     * token's own URI (via {_setTokenURI}).
     *
     * If there is a base URI but no token URI, the token's ID will be used as
     * its URI when appending it to the base URI. This pattern for autogenerated
     * token URIs can lead to large gas savings.
     *
     * .Examples
     * |===
     * |`_setBaseURI()` |`_setTokenURI()` |`tokenURI()`
     * | ""
     * | ""
     * | ""
     * | ""
     * | "token.uri/123"
     * | "token.uri/123"
     * | "token.uri/"
     * | "123"
     * | "token.uri/123"
     * | "token.uri/"
     * | ""
     * | "token.uri/<tokenId>"
     * |===
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @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 override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.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 override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @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 virtual override {
        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"
        );

        _approve(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 override 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 operator operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

        _transfer(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {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 virtual override {
        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 virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(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 _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(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) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @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 virtual {
        _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 virtual {
        _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 virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), 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 _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to set the token URI for a given token.
     *
     * Reverts if the token ID does not exist.
     *
     * TIP: If all token IDs share a prefix (for example, if your URIs look like
     * `https://api.myproject.com/token/<id>`), use {_setBaseURI} to store
     * it and save gas.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

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

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - when `from` is zero, `tokenId` will be minted for `to`.
     * - when `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}


// File contracts/NFTINK.sol

pragma solidity >=0.6.0 <0.7.0;







contract NFTINK is BaseRelayRecipient, ERC721, Ownable, SignatureChecker {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    Counters.Counter public totalInks;
    using SafeMath for uint256;

    uint artistTake;

    function setArtistTake(uint _take) public onlyOwner {
      artistTake = _take;
    }

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
      setCheckSignatureFlag(true);
      setArtistTake(1);
    }

    event newInk(uint256 id, address indexed artist, string inkUrl, string jsonUrl, uint256 limit);
    event mintedInk(uint256 id, string inkUrl, address to);
    event boughtInk(uint256 id, string inkUrl, address buyer, uint256 price);

    struct Ink {
      uint256 id;
      address payable artist;
      address patron;
      string jsonUrl;
      string inkUrl;
      uint256 limit;
      uint256 count;
      bool exists;
      uint256 price;
    }

    mapping (string => uint256) private _inkIdByUrl;
    mapping (uint256 => Ink) private _inkById;
    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (address => EnumerableSet.UintSet) private _artistInks;
    mapping (string => bytes) private _inkSignatureByUrl;
    mapping (uint256 => uint256) private _inkIdByTokenId;

    mapping (uint256 => uint256) public tokenPrice;

    mapping (bytes32 => uint256) private msgTokenId;
    mapping (bytes32 => address) private msgRecipient;

    function _createInk(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, address patron) internal returns (uint256) {

      totalInks.increment();

      Ink memory _ink = Ink({
        id: totalInks.current(),
        artist: artist,
        patron: patron,
        inkUrl: inkUrl,
        jsonUrl: jsonUrl,
        limit: limit,
        count: 0,
        exists: true,
        price: 0
        });

        _inkIdByUrl[inkUrl] = _ink.id;
        _inkById[_ink.id] = _ink;
        _artistInks[artist].add(_ink.id);

        emit newInk(_ink.id, _ink.artist, _ink.inkUrl, _ink.jsonUrl, _ink.limit);

        return _ink.id;
    }

    function createInk(string memory inkUrl, string memory jsonUrl, uint256 limit) public returns (uint256) {
      require(!(_inkIdByUrl[inkUrl] > 0), "this ink already exists!");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, _msgSender(), _msgSender());

      _mintInkToken(_msgSender(), inkId, inkUrl, jsonUrl);

      return inkId;
    }

    function _mintInkToken(address to, uint256 inkId, string memory inkUrl, string memory jsonUrl) internal returns (uint256) {
      _inkById[inkId].count += 1;

      _tokenIds.increment();
      uint256 id = _tokenIds.current();
      _inkTokens[inkUrl].add(id);
      _inkIdByTokenId[id] = inkId;

      _mint(to, id);
      _setTokenURI(id, jsonUrl);

      emit mintedInk(id, inkUrl, to);

      return id;
    }

    function mint(address to, string memory inkUrl) public returns (uint256) {
        uint256 _inkId = _inkIdByUrl[inkUrl];
        require(_inkId > 0, "this ink does not exist!");
        Ink storage _ink = _inkById[_inkId];
        require(_ink.artist == _msgSender(), "only the artist can mint!");
        require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");

        uint256 tokenId = _mintInkToken(to, _inkId, _ink.inkUrl, _ink.jsonUrl);

        return tokenId;
    }


    function setPrice(string memory inkUrl, uint256 price) public returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.artist == _msgSender(), "only the artist can set the price!");
      require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");

      _inkById[_inkId].price = price;

      return price;
    }

    function buyInk(string memory inkUrl) public payable returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");
      require(_ink.price > 0, "this ink does not have a price set");
      require(msg.value >= _ink.price, "Amount of Ether sent too small");
      address buyer = _msgSender();
      uint256 tokenId = _mintInkToken(buyer, _inkId, inkUrl, _ink.jsonUrl);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment
      _ink.artist.transfer(msg.value);
      emit boughtInk(tokenId, inkUrl, buyer, msg.value);
      return tokenId;
    }


    function setTokenPrice(uint256 _tokenId, uint256 _price) public returns (uint256) {
      require(_exists(_tokenId), "this token does not exist!");
      require(ownerOf(_tokenId) == _msgSender(), "only the owner can set the price!");

      tokenPrice[_tokenId] = _price;

      return _price;
    }

    function buyToken(uint256 _tokenId) public payable {
      uint256 _price = tokenPrice[_tokenId];
      require(_price > 0, "this token is not for sale");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      address payable _seller = address(uint160(ownerOf(_tokenId)));
      _transfer(_seller, _buyer, _tokenId);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment

      uint256 _artistTake = artistTake.mul(msg.value).div(100);
      uint256 _sellerTake = msg.value.sub(_artistTake);

      Ink storage _ink = _inkById[_inkIdByTokenId[_tokenId]];

      _ink.artist.transfer(_artistTake);
      _seller.transfer(_sellerTake);
      delete tokenPrice[_tokenId];
      emit boughtInk(_tokenId, _ink.inkUrl, _buyer, msg.value);
    }

    function createInkFromSignature(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, bytes memory signature) public returns (uint256) {
      require(!(_inkIdByUrl[inkUrl] > 0), "this ink already exists!");

      require(artist!=address(0), "Artist must be specified.");
      bytes32 messageHash = getHash(artist,inkUrl,jsonUrl,limit);
      bool isArtistSignature = checkSignature(messageHash, signature, artist);
      require(isArtistSignature, "Unable to verify the artist signature");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, artist, _msgSender());

      _mintInkToken(_msgSender(), inkId, inkUrl, jsonUrl);

      _inkSignatureByUrl[inkUrl] = signature;

      return inkId;
    }

    function getHash(address artist, string memory inkUrl, string memory jsonUrl, uint256 limit) public view returns (bytes32)
    {
        return keccak256(
            abi.encodePacked(
                byte(0x19),
                byte(0),
                address(this),
                artist,
                inkUrl,
                jsonUrl,
                limit
        ));
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.count >= index + 1, "this token index does not exist!");
      return _inkTokens[inkUrl].at(index);
    }

    function inkInfoByInkUrl(string memory inkUrl) public view returns (uint256, address, uint256, string memory, bytes memory, uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      bytes memory signature = _inkSignatureByUrl[inkUrl];

      return (_inkId, _ink.artist, _ink.count, _ink.jsonUrl, signature, _ink.price);
    }

    function inkIdByUrl(string memory inkUrl) public view returns (uint256) {
      return _inkIdByUrl[inkUrl];
    }

    function inksCreatedBy(address artist) public view returns (uint256) {
      return _artistInks[artist].length();
    }

    function inkOfArtistByIndex(address artist, uint256 index) public view returns (uint256) {
        return _artistInks[artist].at(index);
    }

    function inkInfoById(uint256 id) public view returns (string memory, address, uint256, string memory, bytes memory, uint256) {
      require(_inkById[id].exists, "this ink does not exist!");
      Ink storage _ink = _inkById[id];
      bytes memory signature = _inkSignatureByUrl[_ink.inkUrl];

      return (_ink.jsonUrl, _ink.artist, _ink.count, _ink.inkUrl, signature, _ink.price);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
  	}

  	function getTrustedForwarder() public view returns(address) {
  		return trustedForwarder;
  	}

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/INiftyToken.sol

pragma solidity >=0.6.0 <0.7.0;

interface INiftyToken {
    function inkTokenCount(string calldata) external view returns (uint256);
    function firstMint(address, string calldata, string calldata) external returns (uint256);
    function mint(address, string calldata) external returns (uint256);
    function buyInk(string calldata) external payable returns (uint256);
    function buyToken(uint256) external payable;
    function lock(uint256) external;
    function unlock(uint256, address) external;
    function ownerOf(uint256) external view returns (address);
    function tokenInk(uint) external view returns (string memory);
}


// File contracts/INiftyRegistry.sol

pragma solidity ^0.6.6;

interface INiftyRegistry {
    function inkAddress() external view returns (address);
    function tokenAddress() external view returns (address);
    function bridgeMediatorAddress() external view returns (address);
    function trustedForwarder() external view returns (address);
}


// File contracts/NiftyInk.sol

pragma solidity >=0.6.0 <0.7.0;








contract NiftyInk is BaseRelayRecipient, Ownable, SignatureChecker {

    constructor() public {
      setCheckSignatureFlag(true);
      setArtistTake(1);
    }

    using Counters for Counters.Counter;
    using EnumerableSet for EnumerableSet.UintSet;

    Counters.Counter public totalInks;

    uint public artistTake;

    function setArtistTake(uint _take) public onlyOwner {
      require(_take < 100, 'take is more than 99 percent');
      artistTake = _take;
    }

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyToken() private view returns (INiftyToken) {
      return INiftyToken(INiftyRegistry(niftyRegistry).tokenAddress());
    }

    event newInk(uint256 id, address indexed artist, string inkUrl, string jsonUrl, uint256 limit);

    struct Ink {
      uint256 id;
      address payable artist;
      string jsonUrl;
      string inkUrl;
      uint256 limit;
      bytes signature;
      uint256 price;
      Counters.Counter priceNonce;
    }

    mapping (string => uint256) public inkIdByInkUrl;
    mapping (uint256 => Ink) private _inkById;
    mapping (address => EnumerableSet.UintSet) private _artistInks;

    function _createInk(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist) internal returns (uint256) {

      totalInks.increment();
      uint256 _inkId = totalInks.current();

      Ink storage _ink = _inkById[_inkId];

      _ink.id = _inkId;
      _ink.artist = artist;
      _ink.inkUrl = inkUrl;
      _ink.jsonUrl = jsonUrl;
      _ink.limit = limit;

      inkIdByInkUrl[inkUrl] = _inkId;
      _artistInks[artist].add(_inkId);

      emit newInk(_ink.id, _ink.artist, _ink.inkUrl, _ink.jsonUrl, _ink.limit);

      return _ink.id;
    }

    function createInk(string memory inkUrl, string memory jsonUrl, uint256 limit) public returns (uint256) {
      require(!(inkIdByInkUrl[inkUrl] > 0), "this ink already exists!");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, _msgSender());

      niftyToken().firstMint(_msgSender(), inkUrl, jsonUrl);

      return inkId;
    }

    function createInkFromSignature(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, bytes memory signature) public returns (uint256) {
      require(!(inkIdByInkUrl[inkUrl] > 0), "this ink already exists!");

      require(artist!=address(0), "Artist must be specified.");
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), artist, inkUrl, jsonUrl, limit));
      bool isArtistSignature = checkSignature(messageHash, signature, artist);
      require(isArtistSignature || !checkSignatureFlag, "Artist did not sign this ink");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, artist);

      _inkById[inkId].signature = signature;

      niftyToken().firstMint(artist, inkUrl, jsonUrl);

      return inkId;
    }

    function _setPrice(uint256 _inkId, uint256 price) private returns (uint256) {

      _inkById[_inkId].price = price;
      _inkById[_inkId].priceNonce.increment();

      return price;
    }

    function setPrice(string memory inkUrl, uint256 price) public returns (uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.artist == _msgSender(), "only the artist can set the price!");

      return _setPrice(_ink.id, price);
    }

    function setPriceFromSignature(string memory inkUrl, uint256 price, bytes memory signature) public returns (uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), inkUrl, price, _ink.priceNonce.current()));
      bool isArtistSignature = checkSignature(messageHash, signature, _ink.artist);
      require(isArtistSignature || !checkSignatureFlag, "Artist did not sign this price");

      return _setPrice(_ink.id, price);
    }


    function inkInfoById(uint256 id) public view returns (uint256, address, string memory, bytes memory, uint256, uint256, string memory, uint256) {
      require(id > 0 && id <= totalInks.current(), "this ink does not exist!");
      Ink storage _ink = _inkById[id];

      return (id, _ink.artist, _ink.jsonUrl, _ink.signature, _ink.price, _ink.limit, _ink.inkUrl, _ink.priceNonce.current());
    }

    function inkInfoByInkUrl(string memory inkUrl) public view returns (uint256, address, string memory, bytes memory, uint256, uint256, string memory, uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];

      return inkInfoById(_inkId);
    }

    function inksCreatedBy(address artist) public view returns (uint256) {
      return _artistInks[artist].length();
    }

    function inkOfArtistByIndex(address artist, uint256 index) public view returns (uint256) {
        return _artistInks[artist].at(index);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/NiftyMain.sol

pragma solidity >=0.6.0 <0.7.0;






contract NiftyMain is ERC721, Ownable, AMBMediator {

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
    }

    event mintedInk(uint256 id, string inkUrl, string jsonUrl, address to, bytes32 msgId);

    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (uint256 => string) public tokenInk;

    function mint(address to, uint256 tokenId, string calldata inkUrl, string calldata jsonUrl) external returns (uint256) {
      require(msg.sender == address(bridgeContract()));
      require(bridgeContract().messageSender() == mediatorContractOnOtherSide());

      _inkTokens[inkUrl].add(tokenId);
      tokenInk[tokenId] = inkUrl;
      _safeMint(to, tokenId);
      _setTokenURI(tokenId, jsonUrl);
      bytes32 msgId = messageId();

      emit mintedInk(tokenId, inkUrl, jsonUrl, to, msgId);

      return tokenId;
    }

    function inkTokenCount(string memory _inkUrl) public view returns(uint256) {
      uint256 _inkTokenCount = _inkTokens[_inkUrl].length();
      return _inkTokenCount;
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      return _inkTokens[inkUrl].at(index);
    }

}


// File contracts/INiftyInk.sol

pragma solidity >=0.6.0 <0.7.0;

interface INiftyInk {
    function artistTake() external view returns (uint);
    function inkInfoById(uint256) external view returns (uint256, address payable, string memory, bytes memory, uint256, uint256, string memory);
    function inkInfoByInkUrl(string calldata) external view returns (uint256, address payable, string memory, bytes memory, uint256, uint256, string memory);
    function inkIdByInkUrl(string calldata) external view returns (uint256);
}


// File contracts/NiftyMediator.sol

pragma solidity >=0.6.0 <0.7.0;








contract NiftyMediator is BaseRelayRecipient, Ownable, AMBMediator, SignatureChecker {

    constructor() public {
      setCheckSignatureFlag(true);
    }

    event tokenSentViaBridge(uint256 _tokenId, bytes32 _msgId);
    event failedMessageFixed(bytes32 _msgId, address _recipient, uint256 _tokenId);

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyToken() private view returns (INiftyToken) {
      return INiftyToken(INiftyRegistry(niftyRegistry).tokenAddress());
    }

    function niftyInk() private view returns (INiftyInk) {
      return INiftyInk(INiftyRegistry(niftyRegistry).inkAddress());
    }

    mapping (bytes32 => uint256) private msgTokenId;
    mapping (bytes32 => address) private msgRecipient;

    function _relayToken(uint256 _tokenId) internal returns (bytes32) {
      niftyToken().lock(_tokenId);

      string memory _inkUrl = niftyToken().tokenInk(_tokenId);

      (, , string memory _jsonUrl, , , , ) = niftyInk().inkInfoByInkUrl(_inkUrl);

      bytes4 methodSelector = ITokenManagement(address(0)).mint.selector;
      bytes memory data = abi.encodeWithSelector(methodSelector, _msgSender(), _tokenId, _inkUrl, _jsonUrl);
      bytes32 msgId = bridgeContract().requireToPassMessage(
          mediatorContractOnOtherSide(),
          data,
          requestGasLimit
      );

      msgTokenId[msgId] = _tokenId;
      msgRecipient[msgId] = _msgSender();

      emit tokenSentViaBridge(_tokenId, msgId);

      return msgId;
    }

    function relayToken(uint256 _tokenId) external returns (bytes32) {
      require(_msgSender() == niftyToken().ownerOf(_tokenId), 'only the owner can upgrade!');

      return _relayToken(_tokenId);
    }


    function relayTokenFromSignature(uint256 _tokenId, bytes calldata signature) external returns (bytes32) {
      address _owner = niftyToken().ownerOf(_tokenId);
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), _owner, _tokenId));
      bool isOwnerSignature = checkSignature(messageHash, signature, _owner);
      require(isOwnerSignature || !checkSignatureFlag, "only the owner can upgrade!");

      return _relayToken(_tokenId);
    }

    function fixFailedMessage(bytes32 _msgId) external {
      require(msg.sender == address(bridgeContract()));
      require(bridgeContract().messageSender() == mediatorContractOnOtherSide());
      require(!messageFixed[_msgId]);

      address _recipient = msgRecipient[_msgId];
      uint256 _tokenId = msgTokenId[_msgId];

      messageFixed[_msgId] = true;
      niftyToken().unlock(_tokenId, _recipient);

      emit failedMessageFixed(_msgId, _recipient, _tokenId);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/NiftyRegistry.sol

pragma solidity >=0.6.0 <0.7.0;


contract NiftyRegistry is Ownable {

    address public inkAddress;
    address public tokenAddress;
    address public bridgeMediatorAddress;
    address public trustedForwarder;

    function setInkAddress(address _address) public onlyOwner {
      inkAddress = _address;
  	}

    function setTokenAddress(address _address) public onlyOwner {
      tokenAddress = _address;
    }

    function setBridgeMediatorAddress(address _address) public onlyOwner {
      bridgeMediatorAddress = _address;
    }

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
  	}

}


// File contracts/NiftyToken.sol

pragma solidity >=0.6.0 <0.7.0;









contract NiftyToken is BaseRelayRecipient, ERC721, SignatureChecker {

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
      setCheckSignatureFlag(true);
    }

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    using SafeMath for uint256;

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyInk() private view returns (INiftyInk) {
      return INiftyInk(INiftyRegistry(niftyRegistry).inkAddress());
    }

    event mintedInk(uint256 id, string inkUrl, address to);
    event boughtInk(uint256 id, string inkUrl, address buyer, uint256 price);
    event boughtToken(uint256 id, string inkUrl, address buyer, uint256 price);
    event lockedInk(uint256 id, address recipient);
    event unlockedInk(uint256 id, address recipient);

    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (uint256 => string) public tokenInk;

    mapping (uint256 => uint256) public tokenPrice;

    function inkTokenCount(string memory _inkUrl) public view returns(uint256) {
      uint256 _inkTokenCount = _inkTokens[_inkUrl].length();
      return _inkTokenCount;
    }

    function _mintInkToken(address to, string memory inkUrl, string memory jsonUrl) internal returns (uint256) {

      _tokenIds.increment();
      uint256 id = _tokenIds.current();
      _inkTokens[inkUrl].add(id);
      tokenInk[id] = inkUrl;

      _mint(to, id);
      _setTokenURI(id, jsonUrl);

      emit mintedInk(id, inkUrl, to);

      return id;
    }

    function firstMint(address to, string calldata inkUrl, string calldata jsonUrl) external returns (uint256) {
      require(_msgSender() == INiftyRegistry(niftyRegistry).inkAddress());
      _mintInkToken(to, inkUrl, jsonUrl);
    }

    function mint(address to, string memory _inkUrl) public returns (uint256) {
        uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
        require(_inkId > 0, "this ink does not exist!");
        (, address _artist, string memory _jsonUrl, , , uint256 _limit, ) = niftyInk().inkInfoById(_inkId);

        require(_artist == _msgSender(), "only the artist can mint!");

        require(inkTokenCount(_inkUrl) < _limit || _limit == 0, "this ink is over the limit!");

        uint256 tokenId = _mintInkToken(to, _inkUrl, _jsonUrl);

        return tokenId;
    }

    function mintFromSignature(address to, string memory _inkUrl, bytes memory signature) public returns (uint256) {
        uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
        require(_inkId > 0, "this ink does not exist!");

        uint256 _count = inkTokenCount(_inkUrl);
        (, address _artist, string memory _jsonUrl, , , uint256 _limit, ) = niftyInk().inkInfoById(_inkId);
        require(_count < _limit || _limit == 0, "this ink is over the limit!");

        bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), to, _inkUrl, _count));
        bool isArtistSignature = checkSignature(messageHash, signature, _artist);
        require(isArtistSignature || !checkSignatureFlag, "only the artist can mint!");

        uint256 tokenId = _mintInkToken(to, _inkUrl, _jsonUrl);

        return tokenId;
    }

    function lock(uint256 _tokenId) external {
      address _bridgeMediatorAddress = INiftyRegistry(niftyRegistry).bridgeMediatorAddress();
      require(_bridgeMediatorAddress == _msgSender(), 'only the bridgeMediator can lock');
      address from = ownerOf(_tokenId);
      _transfer(from, _msgSender(), _tokenId);
    }

    function unlock(uint256 _tokenId, address _recipient) external {
      require(_msgSender() == INiftyRegistry(niftyRegistry).bridgeMediatorAddress(), 'only the bridgeMediator can unlock');
      require(_msgSender() == ownerOf(_tokenId), 'the bridgeMediator does not hold this token');
      safeTransferFrom(_msgSender(), _recipient, _tokenId);
    }

    function buyInk(string memory _inkUrl) public payable returns (uint256) {
      uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
      require(_inkId > 0, "this ink does not exist!");
      (, address payable _artist, string memory _jsonUrl, , uint256 _price, uint256 _limit, ) = niftyInk().inkInfoById(_inkId);
      require(inkTokenCount(_inkUrl) < _limit || _limit == 0, "this ink is over the limit!");
      require(_price > 0, "this ink does not have a price set");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      uint256 _tokenId = _mintInkToken(_buyer, _inkUrl, _jsonUrl);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment
      _artist.transfer(msg.value);
      emit boughtInk(_tokenId, _inkUrl, _buyer, msg.value);
      return _tokenId;
    }

    function setTokenPrice(uint256 _tokenId, uint256 _price) public returns (uint256) {
      require(_exists(_tokenId), "this token does not exist!");
      require(ownerOf(_tokenId) == _msgSender(), "only the owner can set the price!");

      tokenPrice[_tokenId] = _price;

      return _price;
    }

    function buyToken(uint256 _tokenId) public payable {
      uint256 _price = tokenPrice[_tokenId];
      require(_price > 0, "this token is not for sale");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      address payable _seller = address(uint160(ownerOf(_tokenId)));
      _transfer(_seller, _buyer, _tokenId);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment

      uint256 _artistTake = niftyInk().artistTake().mul(msg.value).div(100);
      uint256 _sellerTake = msg.value.sub(_artistTake);
      string memory _inkUrl = tokenInk[_tokenId];

      (, address payable _artist, , , , , ) = niftyInk().inkInfoByInkUrl(_inkUrl);

      _artist.transfer(_artistTake);
      _seller.transfer(_sellerTake);
      delete tokenPrice[_tokenId];
      emit boughtInk(_tokenId, _inkUrl, _buyer, msg.value);
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      return _inkTokens[inkUrl].at(index);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/ValidSignatureTester.sol

pragma solidity >=0.6.0 <0.7.0;


contract ValidSignatureTester {

  bytes4 internal constant _ERC1271MAGICVALUE = 0x1626ba7e;
  bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

  bool public setting;

  function changeSetting() public returns (bool) {
    setting = !setting;
    return setting;
  }

  function isValidSignature(
      bytes32 _hash, //bytes memory _data,
      bytes calldata _signature
  )
  external
  view
  returns (bytes4 magicValue) {
    if(setting==true) {
      return _ERC1271MAGICVALUE;
    } else {
      return _ERC1271FAILVALUE;
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"inkUrl","type":"string"},{"indexed":false,"internalType":"string","name":"jsonUrl","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"msgId","type":"bytes32"}],"name":"mintedInk","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeContract","outputs":[{"internalType":"contract IAMB","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bridgeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"inkUrl","type":"string"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"inkTokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_inkUrl","type":"string"}],"name":"inkTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mediatorContractOnOtherSide","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"messageFixed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"inkUrl","type":"string"},{"internalType":"string","name":"jsonUrl","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_txHash","type":"bytes32"}],"name":"requestFailedMessageFix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestGasLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridgeContract","type":"address"}],"name":"setBridgeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mediatorContract","type":"address"}],"name":"setMediatorContractOnOtherSide","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_requestGasLimit","type":"uint256"}],"name":"setRequestGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenInk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600e81526df09f8ea8204e696674792e496e6b60901b602080830191909152825180840190935260048352631e13f1d560e31b90830152906200006e6301ffc9a760e01b6001600160e01b036200018e16565b81516200008390600690602085019062000231565b5080516200009990600790602084019062000231565b50620000b56380ac58cd60e01b6001600160e01b036200018e16565b620000d0635b5e139f60e01b6001600160e01b036200018e16565b620000eb63780e9d6360e01b6001600160e01b036200018e16565b5060009050620001036001600160e01b036200021316565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060408051808201909152600c81526b697066733a2f2f697066732f60a01b602082015262000188906001600160e01b036200021816565b620002d3565b6001600160e01b03198082161415620001ee576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b335b90565b80516200022d90600990602084019062000231565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200027457805160ff1916838001178555620002a4565b82800160010185558215620002a4579182015b82811115620002a457825182559160200191906001019062000287565b50620002b2929150620002b6565b5090565b6200021591905b80821115620002b25760008155600101620002bd565b612d1280620002e36000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a578063a2d2b773116100ad578063cd5965831161007c578063cd5965831461081b578063e5d316b514610823578063e985e9c514610840578063f2fde38b1461086e578063f3b8379114610894576101fb565b8063a2d2b7731461072a578063b88d4fde14610732578063be3b625b146107f6578063c87b56dd146107fe576101fb565b80638da5cb5b116100e95780638da5cb5b146106cf57806395d89b41146106d75780639a4a4395146106df578063a22cb465146106fc576101fb565b806370a08231146105f5578063715018a61461061b5780637352fb9b14610623578063871c0760146106c7576101fb565b80632f745c59116101925780635933998211610161578063593399821461058d5780636352211e146105aa5780636c0360eb146105c75780636e5d6bea146105cf576101fb565b80632f745c591461043b5780632fb102cf1461046757806342842e0e1461053a5780634f6ccce714610570576101fb565b80630b26cf66116101ce5780630b26cf661461031f57806318160ddd146103455780631a5dfa9a1461035f57806323b872dd14610405576101fb565b806301ffc9a71461020057806306fdde031461023b578063081812fc146102b8578063095ea7b3146102f1575b600080fd5b6102276004803603602081101561021657600080fd5b50356001600160e01b0319166108b1565b604080519115158252519081900360200190f35b6102436108d4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027d578181015183820152602001610265565b50505050905090810190601f1680156102aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102d5600480360360208110156102ce57600080fd5b503561096b565b604080516001600160a01b039092168252519081900360200190f35b61031d6004803603604081101561030757600080fd5b506001600160a01b0381351690602001356109cd565b005b61031d6004803603602081101561033557600080fd5b50356001600160a01b0316610aa8565b61034d610b0c565b60408051918252519081900360200190f35b61034d6004803603604081101561037557600080fd5b810190602081018135600160201b81111561038f57600080fd5b8201836020820111156103a157600080fd5b803590602001918460018302840111600160201b831117156103c257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610b1d915050565b61031d6004803603606081101561041b57600080fd5b506001600160a01b03813581169160208101359091169060400135610b92565b61034d6004803603604081101561045157600080fd5b506001600160a01b038135169060200135610be9565b61034d6004803603608081101561047d57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104ac57600080fd5b8201836020820111156104be57600080fd5b803590602001918460018302840111600160201b831117156104df57600080fd5b919390929091602081019035600160201b8111156104fc57600080fd5b82018360208201111561050e57600080fd5b803590602001918460018302840111600160201b8311171561052f57600080fd5b509092509050610c11565b61031d6004803603606081101561055057600080fd5b506001600160a01b03813581169160208101359091169060400135610e32565b61034d6004803603602081101561058657600080fd5b5035610e4d565b610227600480360360208110156105a357600080fd5b5035610e69565b6102d5600480360360208110156105c057600080fd5b5035610e7e565b610243610eac565b61031d600480360360208110156105e557600080fd5b50356001600160a01b0316610f0d565b61034d6004803603602081101561060b57600080fd5b50356001600160a01b0316610f6e565b61031d610fd6565b61034d6004803603602081101561063957600080fd5b810190602081018135600160201b81111561065357600080fd5b82018360208201111561066557600080fd5b803590602001918460018302840111600160201b8311171561068657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611078945050505050565b6102d56110eb565b6102d56110fa565b610243611109565b61031d600480360360208110156106f557600080fd5b503561116a565b61031d6004803603604081101561071257600080fd5b506001600160a01b03813516906020013515156114d1565b6102d56115d6565b61031d6004803603608081101561074857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561078257600080fd5b82018360208201111561079457600080fd5b803590602001918460018302840111600160201b831117156107b557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506115e5945050505050565b61034d611643565b6102436004803603602081101561081457600080fd5b5035611649565b6102d56118f0565b6102436004803603602081101561083957600080fd5b50356118ff565b6102276004803603604081101561085657600080fd5b506001600160a01b038135811691602001351661199a565b61031d6004803603602081101561088457600080fd5b50356001600160a01b03166119c8565b61031d600480360360208110156108aa57600080fd5b5035611ac1565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b820191906000526020600020905b81548152906001019060200180831161094357829003601f168201915b505050505090505b90565b600061097682611b22565b6109b15760405162461bcd60e51b815260040180806020018281038252602c815260200180612bbb602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109d882610e7e565b9050806001600160a01b0316836001600160a01b03161415610a2b5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c8b6021913960400191505060405180910390fd5b806001600160a01b0316610a3d611b35565b6001600160a01b03161480610a5e5750610a5e81610a59611b35565b61199a565b610a995760405162461bcd60e51b8152600401808060200182810382526038815260200180612b0e6038913960400191505060405180910390fd5b610aa38383611b39565b505050565b610ab0611b35565b600a546001600160a01b03908116911614610b00576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b0981611ba7565b50565b6000610b186002611c16565b905090565b6000610b8982600f856040518082805190602001908083835b60208310610b555780518252601f199092019160209182019101610b36565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611c21565b90505b92915050565b610ba3610b9d611b35565b82611c2d565b610bde5760405162461bcd60e51b8152600401808060200182810382526031815260200180612cac6031913960400191505060405180910390fd5b610aa3838383611cd1565b6001600160a01b0382166000908152600160205260408120610b89908363ffffffff611c2116565b6000610c1b6118f0565b6001600160a01b0316336001600160a01b031614610c3857600080fd5b610c406110eb565b6001600160a01b0316610c516118f0565b6001600160a01b031663d67bdd256040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8957600080fd5b505afa158015610c9d573d6000803e3d6000fd5b505050506040513d6020811015610cb357600080fd5b50516001600160a01b031614610cc857600080fd5b610cff86600f878760405180838380828437919091019485525050604051928390036020019092209291505063ffffffff611e2f16565b506000868152601060205260409020610d199086866128f0565b50610d248787611e3b565b610d648684848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e5992505050565b6000610d6e611ebc565b90507fff3d54487587c93cb1ae9f7cdf276d964a392926b20900aacb0852a6c12e014b87878787878d87604051808881526020018060200180602001856001600160a01b03166001600160a01b031681526020018481526020018381038352898982818152602001925080828437600083820152601f01601f191690910184810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039b50909950505050505050505050a150949695505050505050565b610aa3838383604051806020016040528060008152506115e5565b600080610e6160028463ffffffff611f2f16565b509392505050565b600e6020526000908152604090205460ff1681565b6000610b8c82604051806060016040528060298152602001612b70602991396002919063ffffffff611f4b16565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b610f15611b35565b600a546001600160a01b03908116911614610f65576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b0981611f58565b60006001600160a01b038216610fb55760405162461bcd60e51b815260040180806020018281038252602a815260200180612b46602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610b8c90611c16565b610fde611b35565b600a546001600160a01b0390811691161461102e576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000806110e4600f846040518082805190602001908083835b602083106110b05780518252601f199092019160209182019101611091565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209150611c169050565b9392505050565b600c546001600160a01b031690565b600a546001600160a01b031690565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b6111726118f0565b6001600160a01b031663cb08a10c826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156111b557600080fd5b505afa1580156111c9573d6000803e3d6000fd5b505050506040513d60208110156111df57600080fd5b5051156111eb57600080fd5b306111f46118f0565b6001600160a01b0316633f9a8e7e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561123757600080fd5b505afa15801561124b573d6000803e3d6000fd5b505050506040513d602081101561126157600080fd5b50516001600160a01b03161461127657600080fd5b61127e6110eb565b6001600160a01b031661128f6118f0565b6001600160a01b0316634a610b04836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156112d257600080fd5b505afa1580156112e6573d6000803e3d6000fd5b505050506040513d60208110156112fc57600080fd5b50516001600160a01b03161461131157600080fd5b600061131b6118f0565b6001600160a01b031663e37c3289836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561135e57600080fd5b505afa158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b50516040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b0316630950d51560e01b9081179091529192506113d06118f0565b6001600160a01b031663dc8601b36113e66110eb565b600d546040516001600160e01b031960e085901b1681526001600160a01b038316600482019081526044820183905260606024830190815287516064840152875188949360840190602086019080838360005b83811015611451578181015183820152602001611439565b50505050905090810190601f16801561147e5780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561149f57600080fd5b505af11580156114b3573d6000803e3d6000fd5b505050506040513d60208110156114c957600080fd5b505050505050565b6114d9611b35565b6001600160a01b0316826001600160a01b0316141561153f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806005600061154c611b35565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611590611b35565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b600b546001600160a01b031681565b6115f66115f0611b35565b83611c2d565b6116315760405162461bcd60e51b8152600401808060200182810382526031815260200180612cac6031913960400191505060405180910390fd5b61163d84848484611f7a565b50505050565b600d5481565b606061165482611b22565b61168f5760405162461bcd60e51b815260040180806020018281038252602f815260200180612c5c602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156117245780601f106116f957610100808354040283529160200191611724565b820191906000526020600020905b81548152906001019060200180831161170757829003601f168201915b50506009549394505050506002600019610100600184161502019091160461174d5790506108cf565b80511561181e5760098160405160200180838054600181600116156101000203166002900480156117b55780601f106117935761010080835404028352918201916117b5565b820191906000526020600020905b8154815290600101906020018083116117a1575b5050825160208401908083835b602083106117e15780518252601f1990920191602091820191016117c2565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506108cf565b600961182984611fcc565b60405160200180838054600181600116156101000203166002900480156118875780601f10611865576101008083540402835291820191611887565b820191906000526020600020905b815481529060010190602001808311611873575b5050825160208401908083835b602083106118b35780518252601f199092019160209182019101611894565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b600b546001600160a01b031690565b60106020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156119925780601f1061196757610100808354040283529160200191611992565b820191906000526020600020905b81548152906001019060200180831161197557829003601f168201915b505050505081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6119d0611b35565b600a546001600160a01b03908116911614611a20576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b6001600160a01b038116611a655760405162461bcd60e51b8152600401808060200182810382526026815260200180612a4b6026913960400191505060405180910390fd5b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b611ac9611b35565b600a546001600160a01b03908116911614611b19576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b09816120a7565b6000610b8c60028363ffffffff61215616565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b6e82610e7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611bb9816001600160a01b0316612162565b611bf45760405162461bcd60e51b8152600401808060200182810382526022815260200180612ac06022913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b8c8261219b565b6000610b89838361219f565b6000611c3882611b22565b611c735760405162461bcd60e51b815260040180806020018281038252602c815260200180612ae2602c913960400191505060405180910390fd5b6000611c7e83610e7e565b9050806001600160a01b0316846001600160a01b03161480611cb95750836001600160a01b0316611cae8461096b565b6001600160a01b0316145b80611cc95750611cc9818561199a565b949350505050565b826001600160a01b0316611ce482610e7e565b6001600160a01b031614611d295760405162461bcd60e51b8152600401808060200182810382526029815260200180612c336029913960400191505060405180910390fd5b6001600160a01b038216611d6e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612a9c6024913960400191505060405180910390fd5b611d79838383610aa3565b611d84600082611b39565b6001600160a01b0383166000908152600160205260409020611dac908263ffffffff61220316565b506001600160a01b0382166000908152600160205260409020611dd5908263ffffffff611e2f16565b50611de86002828463ffffffff61220f16565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610b898383612225565b611e5582826040518060200160405280600081525061226f565b5050565b611e6282611b22565b611e9d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612be7602c913960400191505060405180910390fd5b60008281526008602090815260409091208251610aa39284019061296e565b6000611ec66118f0565b6001600160a01b031663669f618b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611efe57600080fd5b505afa158015611f12573d6000803e3d6000fd5b505050506040513d6020811015611f2857600080fd5b5051905090565b6000808080611f3e86866122c1565b9097909650945050505050565b6000611cc984848461233c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611f85848484611cd1565b611f9184848484612406565b61163d5760405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b606081611ff157506040805180820190915260018152600360fc1b60208201526108cf565b8160005b811561200957600101600a82049150611ff5565b60608167ffffffffffffffff8111801561202257600080fd5b506040519080825280601f01601f19166020018201604052801561204d576020820181803683370190505b50859350905060001982015b831561209e57600a840660300160f81b8282806001900393508151811061207c57fe5b60200101906001600160f81b031916908160001a905350600a84049350612059565b50949350505050565b6120af6118f0565b6001600160a01b031663e5789d036040518163ffffffff1660e01b815260040160206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d602081101561211157600080fd5b50518111156121515760405162461bcd60e51b815260040180806020018281038252602b815260200180612a71602b913960400191505060405180910390fd5b600d55565b6000610b898383612641565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611cc9575050151592915050565b5490565b815460009082106121e15760405162461bcd60e51b81526004018080602001828103825260228152602001806129f76022913960400191505060405180910390fd5b8260000182815481106121f057fe5b9060005260206000200154905092915050565b6000610b898383612659565b6000611cc984846001600160a01b03851661271f565b60006122318383612641565b61226757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b8c565b506000610b8c565b61227983836127b6565b6122866000848484612406565b610aa35760405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b8154600090819083106123055760405162461bcd60e51b8152600401808060200182810382526022815260200180612b996022913960400191505060405180910390fd5b600084600001848154811061231657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816123d75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561239c578181015183820152602001612384565b50505050905090810190601f1680156123c95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106123ea57fe5b9060005260206000209060020201600101549150509392505050565b600061241a846001600160a01b0316612162565b61242657506001611cc9565b600060606001600160a01b038616630a85bd0160e11b612444611b35565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156124bd5781810151838201526020016124a5565b50505050905090810190601f1680156124ea5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106125525780518252601f199092019160209182019101612533565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146125b4576040519150601f19603f3d011682016040523d82523d6000602084013e6125b9565b606091505b50915091508161260a578051156125d35780518082602001fd5b60405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b600081806020019051602081101561262157600080fd5b50516001600160e01b031916630a85bd0160e11b149350611cc992505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015612715578354600019808301919081019060009087908390811061268c57fe5b90600052602060002001549050808760000184815481106126a957fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806126d957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610b8c565b6000915050610b8c565b6000828152600184016020526040812054806127845750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556110e4565b8285600001600183038154811061279757fe5b90600052602060002090600202016001018190555060009150506110e4565b6001600160a01b038216612811576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61281a81611b22565b1561286c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61287860008383610aa3565b6001600160a01b03821660009081526001602052604090206128a0908263ffffffff611e2f16565b506128b36002828463ffffffff61220f16565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129315782800160ff1982351617855561295e565b8280016001018555821561295e579182015b8281111561295e578235825591602001919060010190612943565b5061296a9291506129dc565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129af57805160ff191683800117855561295e565b8280016001018555821561295e579182015b8281111561295e5782518255916020019190600101906129c1565b61096891905b8082111561296a57600081556001016129e256fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373676173206c696d697420697320686967686572207468616e2074686520427269646765206d6178696d756d4552433732313a207472616e7366657220746f20746865207a65726f206164647265737370726f76696465642061646472657373206973206e6f74206120636f6e74726163744552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220a82239511c51fe712f87f06acc53b448614b30f42aa24aa3da01adef9293167464736f6c63430006060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806370a082311161011a578063a2d2b773116100ad578063cd5965831161007c578063cd5965831461081b578063e5d316b514610823578063e985e9c514610840578063f2fde38b1461086e578063f3b8379114610894576101fb565b8063a2d2b7731461072a578063b88d4fde14610732578063be3b625b146107f6578063c87b56dd146107fe576101fb565b80638da5cb5b116100e95780638da5cb5b146106cf57806395d89b41146106d75780639a4a4395146106df578063a22cb465146106fc576101fb565b806370a08231146105f5578063715018a61461061b5780637352fb9b14610623578063871c0760146106c7576101fb565b80632f745c59116101925780635933998211610161578063593399821461058d5780636352211e146105aa5780636c0360eb146105c75780636e5d6bea146105cf576101fb565b80632f745c591461043b5780632fb102cf1461046757806342842e0e1461053a5780634f6ccce714610570576101fb565b80630b26cf66116101ce5780630b26cf661461031f57806318160ddd146103455780631a5dfa9a1461035f57806323b872dd14610405576101fb565b806301ffc9a71461020057806306fdde031461023b578063081812fc146102b8578063095ea7b3146102f1575b600080fd5b6102276004803603602081101561021657600080fd5b50356001600160e01b0319166108b1565b604080519115158252519081900360200190f35b6102436108d4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561027d578181015183820152602001610265565b50505050905090810190601f1680156102aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102d5600480360360208110156102ce57600080fd5b503561096b565b604080516001600160a01b039092168252519081900360200190f35b61031d6004803603604081101561030757600080fd5b506001600160a01b0381351690602001356109cd565b005b61031d6004803603602081101561033557600080fd5b50356001600160a01b0316610aa8565b61034d610b0c565b60408051918252519081900360200190f35b61034d6004803603604081101561037557600080fd5b810190602081018135600160201b81111561038f57600080fd5b8201836020820111156103a157600080fd5b803590602001918460018302840111600160201b831117156103c257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505091359250610b1d915050565b61031d6004803603606081101561041b57600080fd5b506001600160a01b03813581169160208101359091169060400135610b92565b61034d6004803603604081101561045157600080fd5b506001600160a01b038135169060200135610be9565b61034d6004803603608081101561047d57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b8111156104ac57600080fd5b8201836020820111156104be57600080fd5b803590602001918460018302840111600160201b831117156104df57600080fd5b919390929091602081019035600160201b8111156104fc57600080fd5b82018360208201111561050e57600080fd5b803590602001918460018302840111600160201b8311171561052f57600080fd5b509092509050610c11565b61031d6004803603606081101561055057600080fd5b506001600160a01b03813581169160208101359091169060400135610e32565b61034d6004803603602081101561058657600080fd5b5035610e4d565b610227600480360360208110156105a357600080fd5b5035610e69565b6102d5600480360360208110156105c057600080fd5b5035610e7e565b610243610eac565b61031d600480360360208110156105e557600080fd5b50356001600160a01b0316610f0d565b61034d6004803603602081101561060b57600080fd5b50356001600160a01b0316610f6e565b61031d610fd6565b61034d6004803603602081101561063957600080fd5b810190602081018135600160201b81111561065357600080fd5b82018360208201111561066557600080fd5b803590602001918460018302840111600160201b8311171561068657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611078945050505050565b6102d56110eb565b6102d56110fa565b610243611109565b61031d600480360360208110156106f557600080fd5b503561116a565b61031d6004803603604081101561071257600080fd5b506001600160a01b03813516906020013515156114d1565b6102d56115d6565b61031d6004803603608081101561074857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561078257600080fd5b82018360208201111561079457600080fd5b803590602001918460018302840111600160201b831117156107b557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506115e5945050505050565b61034d611643565b6102436004803603602081101561081457600080fd5b5035611649565b6102d56118f0565b6102436004803603602081101561083957600080fd5b50356118ff565b6102276004803603604081101561085657600080fd5b506001600160a01b038135811691602001351661199a565b61031d6004803603602081101561088457600080fd5b50356001600160a01b03166119c8565b61031d600480360360208110156108aa57600080fd5b5035611ac1565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b60068054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b820191906000526020600020905b81548152906001019060200180831161094357829003601f168201915b505050505090505b90565b600061097682611b22565b6109b15760405162461bcd60e51b815260040180806020018281038252602c815260200180612bbb602c913960400191505060405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109d882610e7e565b9050806001600160a01b0316836001600160a01b03161415610a2b5760405162461bcd60e51b8152600401808060200182810382526021815260200180612c8b6021913960400191505060405180910390fd5b806001600160a01b0316610a3d611b35565b6001600160a01b03161480610a5e5750610a5e81610a59611b35565b61199a565b610a995760405162461bcd60e51b8152600401808060200182810382526038815260200180612b0e6038913960400191505060405180910390fd5b610aa38383611b39565b505050565b610ab0611b35565b600a546001600160a01b03908116911614610b00576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b0981611ba7565b50565b6000610b186002611c16565b905090565b6000610b8982600f856040518082805190602001908083835b60208310610b555780518252601f199092019160209182019101610b36565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050611c21565b90505b92915050565b610ba3610b9d611b35565b82611c2d565b610bde5760405162461bcd60e51b8152600401808060200182810382526031815260200180612cac6031913960400191505060405180910390fd5b610aa3838383611cd1565b6001600160a01b0382166000908152600160205260408120610b89908363ffffffff611c2116565b6000610c1b6118f0565b6001600160a01b0316336001600160a01b031614610c3857600080fd5b610c406110eb565b6001600160a01b0316610c516118f0565b6001600160a01b031663d67bdd256040518163ffffffff1660e01b815260040160206040518083038186803b158015610c8957600080fd5b505afa158015610c9d573d6000803e3d6000fd5b505050506040513d6020811015610cb357600080fd5b50516001600160a01b031614610cc857600080fd5b610cff86600f878760405180838380828437919091019485525050604051928390036020019092209291505063ffffffff611e2f16565b506000868152601060205260409020610d199086866128f0565b50610d248787611e3b565b610d648684848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e5992505050565b6000610d6e611ebc565b90507fff3d54487587c93cb1ae9f7cdf276d964a392926b20900aacb0852a6c12e014b87878787878d87604051808881526020018060200180602001856001600160a01b03166001600160a01b031681526020018481526020018381038352898982818152602001925080828437600083820152601f01601f191690910184810383528781526020019050878780828437600083820152604051601f909101601f19169092018290039b50909950505050505050505050a150949695505050505050565b610aa3838383604051806020016040528060008152506115e5565b600080610e6160028463ffffffff611f2f16565b509392505050565b600e6020526000908152604090205460ff1681565b6000610b8c82604051806060016040528060298152602001612b70602991396002919063ffffffff611f4b16565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b610f15611b35565b600a546001600160a01b03908116911614610f65576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b0981611f58565b60006001600160a01b038216610fb55760405162461bcd60e51b815260040180806020018281038252602a815260200180612b46602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600160205260409020610b8c90611c16565b610fde611b35565b600a546001600160a01b0390811691161461102e576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000806110e4600f846040518082805190602001908083835b602083106110b05780518252601f199092019160209182019101611091565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092209150611c169050565b9392505050565b600c546001600160a01b031690565b600a546001600160a01b031690565b60078054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109605780601f1061093557610100808354040283529160200191610960565b6111726118f0565b6001600160a01b031663cb08a10c826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156111b557600080fd5b505afa1580156111c9573d6000803e3d6000fd5b505050506040513d60208110156111df57600080fd5b5051156111eb57600080fd5b306111f46118f0565b6001600160a01b0316633f9a8e7e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561123757600080fd5b505afa15801561124b573d6000803e3d6000fd5b505050506040513d602081101561126157600080fd5b50516001600160a01b03161461127657600080fd5b61127e6110eb565b6001600160a01b031661128f6118f0565b6001600160a01b0316634a610b04836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b1580156112d257600080fd5b505afa1580156112e6573d6000803e3d6000fd5b505050506040513d60208110156112fc57600080fd5b50516001600160a01b03161461131157600080fd5b600061131b6118f0565b6001600160a01b031663e37c3289836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561135e57600080fd5b505afa158015611372573d6000803e3d6000fd5b505050506040513d602081101561138857600080fd5b50516040805160248082018490528251808303909101815260449091019091526020810180516001600160e01b0316630950d51560e01b9081179091529192506113d06118f0565b6001600160a01b031663dc8601b36113e66110eb565b600d546040516001600160e01b031960e085901b1681526001600160a01b038316600482019081526044820183905260606024830190815287516064840152875188949360840190602086019080838360005b83811015611451578181015183820152602001611439565b50505050905090810190601f16801561147e5780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561149f57600080fd5b505af11580156114b3573d6000803e3d6000fd5b505050506040513d60208110156114c957600080fd5b505050505050565b6114d9611b35565b6001600160a01b0316826001600160a01b0316141561153f576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b806005600061154c611b35565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611590611b35565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b600b546001600160a01b031681565b6115f66115f0611b35565b83611c2d565b6116315760405162461bcd60e51b8152600401808060200182810382526031815260200180612cac6031913960400191505060405180910390fd5b61163d84848484611f7a565b50505050565b600d5481565b606061165482611b22565b61168f5760405162461bcd60e51b815260040180806020018281038252602f815260200180612c5c602f913960400191505060405180910390fd5b60008281526008602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452606093928301828280156117245780601f106116f957610100808354040283529160200191611724565b820191906000526020600020905b81548152906001019060200180831161170757829003601f168201915b50506009549394505050506002600019610100600184161502019091160461174d5790506108cf565b80511561181e5760098160405160200180838054600181600116156101000203166002900480156117b55780601f106117935761010080835404028352918201916117b5565b820191906000526020600020905b8154815290600101906020018083116117a1575b5050825160208401908083835b602083106117e15780518252601f1990920191602091820191016117c2565b6001836020036101000a038019825116818451168082178552505050505050905001925050506040516020818303038152906040529150506108cf565b600961182984611fcc565b60405160200180838054600181600116156101000203166002900480156118875780601f10611865576101008083540402835291820191611887565b820191906000526020600020905b815481529060010190602001808311611873575b5050825160208401908083835b602083106118b35780518252601f199092019160209182019101611894565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b600b546001600160a01b031690565b60106020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156119925780601f1061196757610100808354040283529160200191611992565b820191906000526020600020905b81548152906001019060200180831161197557829003601f168201915b505050505081565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6119d0611b35565b600a546001600160a01b03908116911614611a20576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b6001600160a01b038116611a655760405162461bcd60e51b8152600401808060200182810382526026815260200180612a4b6026913960400191505060405180910390fd5b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b611ac9611b35565b600a546001600160a01b03908116911614611b19576040805162461bcd60e51b81526020600482018190526024820152600080516020612c13833981519152604482015290519081900360640190fd5b610b09816120a7565b6000610b8c60028363ffffffff61215616565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b6e82610e7e565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611bb9816001600160a01b0316612162565b611bf45760405162461bcd60e51b8152600401808060200182810382526022815260200180612ac06022913960400191505060405180910390fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000610b8c8261219b565b6000610b89838361219f565b6000611c3882611b22565b611c735760405162461bcd60e51b815260040180806020018281038252602c815260200180612ae2602c913960400191505060405180910390fd5b6000611c7e83610e7e565b9050806001600160a01b0316846001600160a01b03161480611cb95750836001600160a01b0316611cae8461096b565b6001600160a01b0316145b80611cc95750611cc9818561199a565b949350505050565b826001600160a01b0316611ce482610e7e565b6001600160a01b031614611d295760405162461bcd60e51b8152600401808060200182810382526029815260200180612c336029913960400191505060405180910390fd5b6001600160a01b038216611d6e5760405162461bcd60e51b8152600401808060200182810382526024815260200180612a9c6024913960400191505060405180910390fd5b611d79838383610aa3565b611d84600082611b39565b6001600160a01b0383166000908152600160205260409020611dac908263ffffffff61220316565b506001600160a01b0382166000908152600160205260409020611dd5908263ffffffff611e2f16565b50611de86002828463ffffffff61220f16565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610b898383612225565b611e5582826040518060200160405280600081525061226f565b5050565b611e6282611b22565b611e9d5760405162461bcd60e51b815260040180806020018281038252602c815260200180612be7602c913960400191505060405180910390fd5b60008281526008602090815260409091208251610aa39284019061296e565b6000611ec66118f0565b6001600160a01b031663669f618b6040518163ffffffff1660e01b815260040160206040518083038186803b158015611efe57600080fd5b505afa158015611f12573d6000803e3d6000fd5b505050506040513d6020811015611f2857600080fd5b5051905090565b6000808080611f3e86866122c1565b9097909650945050505050565b6000611cc984848461233c565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b611f85848484611cd1565b611f9184848484612406565b61163d5760405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b606081611ff157506040805180820190915260018152600360fc1b60208201526108cf565b8160005b811561200957600101600a82049150611ff5565b60608167ffffffffffffffff8111801561202257600080fd5b506040519080825280601f01601f19166020018201604052801561204d576020820181803683370190505b50859350905060001982015b831561209e57600a840660300160f81b8282806001900393508151811061207c57fe5b60200101906001600160f81b031916908160001a905350600a84049350612059565b50949350505050565b6120af6118f0565b6001600160a01b031663e5789d036040518163ffffffff1660e01b815260040160206040518083038186803b1580156120e757600080fd5b505afa1580156120fb573d6000803e3d6000fd5b505050506040513d602081101561211157600080fd5b50518111156121515760405162461bcd60e51b815260040180806020018281038252602b815260200180612a71602b913960400191505060405180910390fd5b600d55565b6000610b898383612641565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611cc9575050151592915050565b5490565b815460009082106121e15760405162461bcd60e51b81526004018080602001828103825260228152602001806129f76022913960400191505060405180910390fd5b8260000182815481106121f057fe5b9060005260206000200154905092915050565b6000610b898383612659565b6000611cc984846001600160a01b03851661271f565b60006122318383612641565b61226757508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b8c565b506000610b8c565b61227983836127b6565b6122866000848484612406565b610aa35760405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b8154600090819083106123055760405162461bcd60e51b8152600401808060200182810382526022815260200180612b996022913960400191505060405180910390fd5b600084600001848154811061231657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816123d75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561239c578181015183820152602001612384565b50505050905090810190601f1680156123c95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b508460000160018203815481106123ea57fe5b9060005260206000209060020201600101549150509392505050565b600061241a846001600160a01b0316612162565b61242657506001611cc9565b600060606001600160a01b038616630a85bd0160e11b612444611b35565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156124bd5781810151838201526020016124a5565b50505050905090810190601f1680156124ea5780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106125525780518252601f199092019160209182019101612533565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146125b4576040519150601f19603f3d011682016040523d82523d6000602084013e6125b9565b606091505b50915091508161260a578051156125d35780518082602001fd5b60405162461bcd60e51b8152600401808060200182810382526032815260200180612a196032913960400191505060405180910390fd5b600081806020019051602081101561262157600080fd5b50516001600160e01b031916630a85bd0160e11b149350611cc992505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015612715578354600019808301919081019060009087908390811061268c57fe5b90600052602060002001549050808760000184815481106126a957fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806126d957fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610b8c565b6000915050610b8c565b6000828152600184016020526040812054806127845750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556110e4565b8285600001600183038154811061279757fe5b90600052602060002090600202016001018190555060009150506110e4565b6001600160a01b038216612811576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61281a81611b22565b1561286c576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b61287860008383610aa3565b6001600160a01b03821660009081526001602052604090206128a0908263ffffffff611e2f16565b506128b36002828463ffffffff61220f16565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129315782800160ff1982351617855561295e565b8280016001018555821561295e579182015b8281111561295e578235825591602001919060010190612943565b5061296a9291506129dc565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106129af57805160ff191683800117855561295e565b8280016001018555821561295e579182015b8281111561295e5782518255916020019190600101906129c1565b61096891905b8082111561296a57600081556001016129e256fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373676173206c696d697420697320686967686572207468616e2074686520427269646765206d6178696d756d4552433732313a207472616e7366657220746f20746865207a65726f206164647265737370726f76696465642061646472657373206973206e6f74206120636f6e74726163744552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220a82239511c51fe712f87f06acc53b448614b30f42aa24aa3da01adef9293167464736f6c63430006060033

Deployed Bytecode Sourcemap

121649:1256:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;121649:1256:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;72391:142:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72391:142:0;-1:-1:-1;;;;;;72391:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;87347:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;87347:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92131:213;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;92131:213:0;;:::i;:::-;;;;-1:-1:-1;;;;;92131:213:0;;;;;;;;;;;;;;91448:390;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;91448:390:0;;;;;;;;:::i;:::-;;7907:125;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;7907:125:0;-1:-1:-1;;;;;7907:125:0;;:::i;90304:203::-;;;:::i;:::-;;;;;;;;;;;;;;;;122756:144;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;122756:144:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;122756:144:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;122756:144:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;122756:144:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;122756:144:0;;-1:-1:-1;;122756:144:0;;;-1:-1:-1;122756:144:0;;-1:-1:-1;;122756:144:0:i;93879:305::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;93879:305:0;;;;;;;;;;;;;;;;;:::i;89991:154::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;89991:154:0;;;;;;;;:::i;122028:537::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;122028:537:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;122028:537:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;122028:537:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;122028:537:0;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;122028:537:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;122028:537:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;122028:537:0;;-1:-1:-1;122028:537:0;-1:-1:-1;122028:537:0;:::i;94846:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;94846:151:0;;;;;;;;;;;;;;;;;:::i;90853:164::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;90853:164:0;;:::i;7853:45::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;7853:45:0;;:::i;87067:169::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;87067:169:0;;:::i;89520:89::-;;;:::i;8368:155::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;8368:155:0;-1:-1:-1;;;;;8368:155:0;;:::i;86626:215::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;86626:215:0;-1:-1:-1;;;;;86626:215:0;;:::i;4215:148::-;;;:::i;122573:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;122573:175:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;122573:175:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;122573:175:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;122573:175:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;122573:175:0;;-1:-1:-1;122573:175:0;;-1:-1:-1;;;;;122573:175:0:i;8679:119::-;;;:::i;3573:79::-;;;:::i;87554:96::-;;;:::i;9894:662::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9894:662:0;;:::i;92651:295::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;92651:295:0;;;;;;;;;;:::i;7724:36::-;;;:::i;95734:285::-;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;95734:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;95734:285:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;95734:285:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;95734:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;95734:285:0;;-1:-1:-1;95734:285:0;;-1:-1:-1;;;;;95734:285:0:i;7814:30::-;;;:::i;88526:755::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;88526:755:0;;:::i;8254:106::-;;;:::i;121976:43::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;121976:43:0;;:::i;93276:156::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;93276:156:0;;;;;;;;;;:::i;4518:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4518:244:0;-1:-1:-1;;;;;4518:244:0;;:::i;8806:129::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;8806:129:0;;:::i;72391:142::-;-1:-1:-1;;;;;;72492:33:0;;72468:4;72492:33;;;;;;;;;;;;;72391:142;;;;:::o;87347:92::-;87426:5;87419:12;;;;;;;;-1:-1:-1;;87419:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87393:13;;87419:12;;87426:5;;87419:12;;87426:5;87419:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87347:92;;:::o;92131:213::-;92199:7;92227:16;92235:7;92227;:16::i;:::-;92219:73;;;;-1:-1:-1;;;92219:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;92312:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;92312:24:0;;92131:213::o;91448:390::-;91529:13;91545:16;91553:7;91545;:16::i;:::-;91529:32;;91586:5;-1:-1:-1;;;;;91580:11:0;:2;-1:-1:-1;;;;;91580:11:0;;;91572:57;;;;-1:-1:-1;;;91572:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91666:5;-1:-1:-1;;;;;91650:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;91650:21:0;;:62;;;;91675:37;91692:5;91699:12;:10;:12::i;:::-;91675:16;:37::i;:::-;91642:154;;;;-1:-1:-1;;;91642:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91809:21;91818:2;91822:7;91809:8;:21::i;:::-;91448:390;;;:::o;7907:125::-;3795:12;:10;:12::i;:::-;3785:6;;-1:-1:-1;;;;;3785:6:0;;;:22;;;3777:67;;;;;-1:-1:-1;;;3777:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3777:67:0;;;;;;;;;;;;;;;7989:35:::1;8008:15;7989:18;:35::i;:::-;7907:125:::0;:::o;90304:203::-;90357:7;90478:21;:12;:19;:21::i;:::-;90471:28;;90304:203;:::o;122756:144::-;122839:7;122864:28;122886:5;122864:10;122875:6;122864:18;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;122864:18:0;;;;;-1:-1:-1;122864:18:0;;;;;;;;;;;;-1:-1:-1;;122864:21:0;:28::i;:::-;122857:35;;122756:144;;;;;:::o;93879:305::-;94040:41;94059:12;:10;:12::i;:::-;94073:7;94040:18;:41::i;:::-;94032:103;;;;-1:-1:-1;;;94032:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94148:28;94158:4;94164:2;94168:7;94148:9;:28::i;89991:154::-;-1:-1:-1;;;;;90107:20:0;;90080:7;90107:20;;;:13;:20;;;;;:30;;90131:5;90107:30;:23;:30;:::i;122028:537::-;122138:7;122186:16;:14;:16::i;:::-;-1:-1:-1;;;;;122164:39:0;:10;-1:-1:-1;;;;;122164:39:0;;122156:48;;12:1:-1;9;2:12;122156:48:0;122257:29;:27;:29::i;:::-;-1:-1:-1;;;;;122221:65:0;:16;:14;:16::i;:::-;-1:-1:-1;;;;;122221:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;122221:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122221:32:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;122221:32:0;-1:-1:-1;;;;;122221:65:0;;122213:74;;12:1:-1;9;2:12;122213:74:0;122298:31;122321:7;122298:10;122309:6;;122298:18;;;;;30:3:-1;22:6;14;1:33;45:16;;;;122298:18:0;;;-1:-1:-1;;122298:18:0;;;;;;;;;;;;:31;-1:-1:-1;;122298:31:0;:22;:31;:::i;:::-;-1:-1:-1;122338:17:0;;;;:8;:17;;;;;:26;;122358:6;;122338:26;:::i;:::-;;122373:22;122383:2;122387:7;122373:9;:22::i;:::-;122404:30;122417:7;122426;;122404:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;122404:12:0;;-1:-1:-1;;;122404:30:0:i;:::-;122443:13;122459:11;:9;:11::i;:::-;122443:27;;122486:46;122496:7;122505:6;;122513:7;;122522:2;122526:5;122486:46;;;;;;;;;;;;;;;-1:-1:-1;;;;;122486:46:0;-1:-1:-1;;;;;122486:46:0;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;137:4;117:14;-1:-1;;113:30;157:16;;;122486:46:0;;;;;;;;;;;-1:-1:-1;122486:46:0;;;;;1:33:-1;99:1;81:16;;;74:27;122486:46:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;122486:46:0;;;;-1:-1:-1;122486:46:0;;-1:-1:-1;;;;;;;;;;122486:46:0;-1:-1:-1;122550:7:0;;122028:537;-1:-1:-1;;;;;;122028:537:0:o;94846:151::-;94950:39;94967:4;94973:2;94977:7;94950:39;;;;;;;;;;;;:16;:39::i;90853:164::-;90920:7;;90962:22;:12;90978:5;90962:22;:15;:22;:::i;:::-;-1:-1:-1;90940:44:0;90853:164;-1:-1:-1;;;90853:164:0:o;7853:45::-;;;;;;;;;;;;;;;:::o;87067:169::-;87131:7;87158:70;87175:7;87158:70;;;;;;;;;;;;;;;;;:12;;:70;;:16;:70;:::i;89520:89::-;89593:8;89586:15;;;;;;;;-1:-1:-1;;89586:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89560:13;;89586:15;;89593:8;;89586:15;;89593:8;89586:15;;;;;;;;;;;;;;;;;;;;;;;;8368:155;3795:12;:10;:12::i;:::-;3785:6;;-1:-1:-1;;;;;3785:6:0;;;:22;;;3777:67;;;;;-1:-1:-1;;;3777:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3777:67:0;;;;;;;;;;;;;;;8465:50:::1;8497:17;8465:31;:50::i;86626:215::-:0;86690:7;-1:-1:-1;;;;;86718:19:0;;86710:74;;;;-1:-1:-1;;;86710:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86804:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;4215:148::-;3795:12;:10;:12::i;:::-;3785:6;;-1:-1:-1;;;;;3785:6:0;;;:22;;;3777:67;;;;;-1:-1:-1;;;3777:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3777:67:0;;;;;;;;;;;;;;;4306:6:::1;::::0;4285:40:::1;::::0;4322:1:::1;::::0;-1:-1:-1;;;;;4306:6:0::1;::::0;4285:40:::1;::::0;4322:1;;4285:40:::1;4336:6;:19:::0;;-1:-1:-1;;;;;;4336:19:0::1;::::0;;4215:148::o;122573:175::-;122639:7;122657:22;122682:28;:10;122693:7;122682:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;122682:19:0;;;;;-1:-1:-1;122682:19:0;;;;;;;;;;;-1:-1:-1;122682:26:0;;-1:-1:-1;122682:28:0:i;:::-;122657:53;122573:175;-1:-1:-1;;;122573:175:0:o;8679:119::-;8766:24;;-1:-1:-1;;;;;8766:24:0;8679:119;:::o;3573:79::-;3638:6;;-1:-1:-1;;;;;3638:6:0;3573:79;:::o;87554:96::-;87635:7;87628:14;;;;;;;;-1:-1:-1;;87628:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87602:13;;87628:14;;87635:7;;87628:14;;87635:7;87628:14;;;;;;;;;;;;;;;;;;;;;;;;9894:662;9973:16;:14;:16::i;:::-;-1:-1:-1;;;;;9973:34:0;;10008:7;9973:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;9973:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9973:43:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9973:43:0;9972:44;9964:53;;12:1:-1;9;2:12;9964:53:0;10095:4;10036:16;:14;:16::i;:::-;-1:-1:-1;;;;;10036:38:0;;10075:7;10036:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10036:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10036:47:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;10036:47:0;-1:-1:-1;;;;;10036:64:0;;10028:73;;12:1:-1;9;2:12;10028:73:0;10169:29;:27;:29::i;:::-;-1:-1:-1;;;;;10120:78:0;:16;:14;:16::i;:::-;-1:-1:-1;;;;;10120:36:0;;10157:7;10120:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10120:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10120:45:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;10120:45:0;-1:-1:-1;;;;;10120:78:0;;10112:87;;12:1:-1;9;2:12;10112:87:0;10210:16;10229;:14;:16::i;:::-;-1:-1:-1;;;;;10229:38:0;;10268:7;10229:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10229:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10229:47:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;10229:47:0;10398:48;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10398:48:0;;;;;;;10229:47;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;;;160:49;;;10229:47:0;;-1:-1:-1;10457:16:0;:14;:16::i;:::-;-1:-1:-1;;;;;10457:37:0;;10495:29;:27;:29::i;:::-;10532:15;;10457:91;;-1:-1:-1;;;;;;10457:91:0;;;;;;;-1:-1:-1;;;;;10457:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10526:4;;10532:15;10457:91;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;10457:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;10457:91:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10457:91:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;9894:662:0:o;92651:295::-;92766:12;:10;:12::i;:::-;-1:-1:-1;;;;;92754:24:0;:8;-1:-1:-1;;;;;92754:24:0;;;92746:62;;;;;-1:-1:-1;;;92746:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;92866:8;92821:18;:32;92840:12;:10;:12::i;:::-;-1:-1:-1;;;;;92821:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;92821:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;92821:53:0;;;;;;;;;;;92905:12;:10;:12::i;:::-;92890:48;;;;;;;;;;-1:-1:-1;;;;;92890:48:0;;;;;;;;;;;;;;92651:295;;:::o;7724:36::-;;;-1:-1:-1;;;;;7724:36:0;;:::o;95734:285::-;95866:41;95885:12;:10;:12::i;:::-;95899:7;95866:18;:41::i;:::-;95858:103;;;;-1:-1:-1;;;95858:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95972:39;95986:4;95992:2;95996:7;96005:5;95972:13;:39::i;:::-;95734:285;;;;:::o;7814:30::-;;;;:::o;88526:755::-;88591:13;88625:16;88633:7;88625;:16::i;:::-;88617:76;;;;-1:-1:-1;;;88617:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88732:19;;;;:10;:19;;;;;;;;;88706:45;;;;;;-1:-1:-1;;88706:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;88732:19;88706:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;88833:8:0;88827:22;88706:45;;-1:-1:-1;;;;88827:22:0;-1:-1:-1;;88827:22:0;;;;;;;;;;;88823:76;;88878:9;-1:-1:-1;88871:16:0;;88823:76;89003:23;;:27;88999:112;;89078:8;89088:9;89061:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89061:37:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;89061:37:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;89061:37:0;;;89047:52;;;;;88999:112;89243:8;89253:18;:7;:16;:18::i;:::-;89226:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89226:46:0;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;89226:46:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;89226:46:0;;;89212:61;;;88526:755;;;:::o;8254:106::-;8330:21;;-1:-1:-1;;;;;8330:21:0;8254:106;:::o;121976:43::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;121976:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;93276:156::-;-1:-1:-1;;;;;93389:25:0;;;93365:4;93389:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;93276:156::o;4518:244::-;3795:12;:10;:12::i;:::-;3785:6;;-1:-1:-1;;;;;3785:6:0;;;:22;;;3777:67;;;;;-1:-1:-1;;;3777:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3777:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;4607:22:0;::::1;4599:73;;;;-1:-1:-1::0;;;4599:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4709:6;::::0;4688:38:::1;::::0;-1:-1:-1;;;;;4688:38:0;;::::1;::::0;4709:6:::1;::::0;4688:38:::1;::::0;4709:6:::1;::::0;4688:38:::1;4737:6;:17:::0;;-1:-1:-1;;;;;;4737:17:0::1;-1:-1:-1::0;;;;;4737:17:0;;;::::1;::::0;;;::::1;::::0;;4518:244::o;8806:129::-;3795:12;:10;:12::i;:::-;3785:6;;-1:-1:-1;;;;;3785:6:0;;;:22;;;3777:67;;;;;-1:-1:-1;;;3777:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3777:67:0;;;;;;;;;;;;;;;8890:37:::1;8910:16;8890:19;:37::i;97212:119::-:0;97269:4;97293:30;:12;97315:7;97293:30;:21;:30;:::i;2086:106::-;2174:10;2086:106;:::o;104414:158::-;104480:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;104480:29:0;-1:-1:-1;;;;;104480:29:0;;;;;;;;:24;;104534:16;104480:24;104534:7;:16::i;:::-;-1:-1:-1;;;;;104525:39:0;;;;;;;;;;;104414:158;;:::o;8040:206::-;8121:28;:15;-1:-1:-1;;;;;8121:26:0;;:28::i;:::-;8113:75;;;;-1:-1:-1;;;8113:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8199:21;:39;;-1:-1:-1;;;;;;8199:39:0;-1:-1:-1;;;;;8199:39:0;;;;;;;;;;8040:206::o;80440:123::-;80509:7;80536:19;80544:3;80536:7;:19::i;50997:137::-;51068:7;51103:22;51107:3;51119:5;51103:3;:22::i;97701:333::-;97786:4;97811:16;97819:7;97811;:16::i;:::-;97803:73;;;;-1:-1:-1;;;97803:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97887:13;97903:16;97911:7;97903;:16::i;:::-;97887:32;;97949:5;-1:-1:-1;;;;;97938:16:0;:7;-1:-1:-1;;;;;97938:16:0;;:51;;;;97982:7;-1:-1:-1;;;;;97958:31:0;:20;97970:7;97958:11;:20::i;:::-;-1:-1:-1;;;;;97958:31:0;;97938:51;:87;;;;97993:32;98010:5;98017:7;97993:16;:32::i;:::-;97930:96;97701:333;-1:-1:-1;;;;97701:333:0:o;101300:574::-;101418:4;-1:-1:-1;;;;;101398:24:0;:16;101406:7;101398;:16::i;:::-;-1:-1:-1;;;;;101398:24:0;;101390:78;;;;-1:-1:-1;;;101390:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;101487:16:0;;101479:65;;;;-1:-1:-1;;;101479:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101557:39;101578:4;101584:2;101588:7;101557:20;:39::i;:::-;101661:29;101678:1;101682:7;101661:8;:29::i;:::-;-1:-1:-1;;;;;101703:19:0;;;;;;:13;:19;;;;;:35;;101730:7;101703:35;:26;:35;:::i;:::-;-1:-1:-1;;;;;;101749:17:0;;;;;;:13;:17;;;;;:30;;101771:7;101749:30;:21;:30;:::i;:::-;-1:-1:-1;101792:29:0;:12;101809:7;101818:2;101792:29;:16;:29;:::i;:::-;;101858:7;101854:2;-1:-1:-1;;;;;101839:27:0;101848:4;-1:-1:-1;;;;;101839:27:0;;;;;;;;;;;101300:574;;;:::o;49777:131::-;49844:4;49868:32;49873:3;49893:5;49868:4;:32::i;98575:110::-;98651:26;98661:2;98665:7;98651:26;;;;;;;;;;;;:9;:26::i;:::-;98575:110;;:::o;102218:215::-;102318:16;102326:7;102318;:16::i;:::-;102310:73;;;;-1:-1:-1;;;102310:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102394:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;9671:107::-;9715:7;9742:16;:14;:16::i;:::-;-1:-1:-1;;;;;9742:26:0;;:28;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;9742:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9742:28:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9742:28:0;;-1:-1:-1;9671:107:0;:::o;80902:227::-;80982:7;;;;81042:22;81046:3;81058:5;81042:3;:22::i;:::-;81011:53;;;;-1:-1:-1;80902:227:0;-1:-1:-1;;;;;80902:227:0:o;81564:204::-;81671:7;81714:44;81719:3;81739;81745:12;81714:4;:44::i;8531:140::-;8619:24;:44;;-1:-1:-1;;;;;;8619:44:0;-1:-1:-1;;;;;8619:44:0;;;;;;;;;;8531:140::o;96738:272::-;96852:28;96862:4;96868:2;96872:7;96852:9;:28::i;:::-;96899:48;96922:4;96928:2;96932:7;96941:5;96899:22;:48::i;:::-;96891:111;;;;-1:-1:-1;;;96891:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82050:744;82106:13;82327:10;82323:53;;-1:-1:-1;82354:10:0;;;;;;;;;;;;-1:-1:-1;;;82354:10:0;;;;;;82323:53;82401:5;82386:12;82442:78;82449:9;;82442:78;;82475:8;;82506:2;82498:10;;;;82442:78;;;82530:19;82562:6;82552:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;82552:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;108:14;82552:17:0;87:42:-1;143:17;;-1:-1;82552:17:0;-1:-1:-1;82624:5:0;;-1:-1:-1;82530:39:0;-1:-1:-1;;;82596:10:0;;82640:115;82647:9;;82640:115;;82714:2;82707:4;:9;82702:2;:14;82691:27;;82673:6;82680:7;;;;;;;82673:15;;;;;;;;;;;:45;-1:-1:-1;;;;;82673:45:0;;;;;;;;-1:-1:-1;82741:2:0;82733:10;;;;82640:115;;;-1:-1:-1;82779:6:0;82050:744;-1:-1:-1;;;;82050:744:0:o;8943:233::-;9046:16;:14;:16::i;:::-;-1:-1:-1;;;;;9046:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;9046:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9046:30:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;9046:30:0;9026:50;;;9018:105;;;;-1:-1:-1;;;9018:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9134:15;:34;8943:233::o;80201:151::-;80285:4;80309:35;80319:3;80339;80309:9;:35::i;5574:619::-;5634:4;6102:20;;5945:66;6142:23;;;;;;:42;;-1:-1:-1;;6169:15:0;;;6134:51;-1:-1:-1;;5574:619:0:o;77823:110::-;77906:19;;77823:110::o;47661:204::-;47756:18;;47728:7;;47756:26;-1:-1:-1;47748:73:0;;;;-1:-1:-1;;;47748:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47839:3;:11;;47851:5;47839:18;;;;;;;;;;;;;;;;47832:25;;47661:204;;;;:::o;50084:137::-;50154:4;50178:35;50186:3;50206:5;50178:7;:35::i;79633:176::-;79722:4;79746:55;79751:3;79771;-1:-1:-1;;;;;79785:14:0;;79746:4;:55::i;44773:414::-;44836:4;44858:21;44868:3;44873:5;44858:9;:21::i;:::-;44853:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;44896:11:0;:23;;;;;;;;;;;;;45079:18;;45057:19;;;:12;;;:19;;;;;;:40;;;;45112:11;;44853:327;-1:-1:-1;45163:5:0;45156:12;;99299:250;99395:18;99401:2;99405:7;99395:5;:18::i;:::-;99432:54;99463:1;99467:2;99471:7;99480:5;99432:22;:54::i;:::-;99424:117;;;;-1:-1:-1;;;99424:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78288:279;78392:19;;78355:7;;;;78392:27;-1:-1:-1;78384:74:0;;;;-1:-1:-1;;;78384:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78471:22;78496:3;:12;;78509:5;78496:19;;;;;;;;;;;;;;;;;;78471:44;;78534:5;:10;;;78546:5;:12;;;78526:33;;;;;78288:279;;;;;:::o;78990:319::-;79084:7;79123:17;;;:12;;;:17;;;;;;79174:12;79159:13;79151:36;;;;-1:-1:-1;;;79151:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;79151:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79241:3;:12;;79265:1;79254:8;:12;79241:26;;;;;;;;;;;;;;;;;;:33;;;79234:40;;;78990:319;;;;;:::o;103328:1078::-;103449:4;103476:15;:2;-1:-1:-1;;;;;103476:13:0;;:15::i;:::-;103471:60;;-1:-1:-1;103515:4:0;103508:11;;103471:60;103602:12;103616:23;-1:-1:-1;;;;;103643:7:0;;-1:-1:-1;;;103748:12:0;:10;:12::i;:::-;103775:4;103794:7;103816:5;103651:181;;;;;;-1:-1:-1;;;;;103651:181:0;-1:-1:-1;;;;;103651:181:0;;;;;;-1:-1:-1;;;;;103651:181:0;-1:-1:-1;;;;;103651:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;103651:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103651:181:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;103651:181:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;103651:181:0;;;179:29:-1;;;;160:49;;103643:190:0;;;103651:181;;103643:190;;-1:-1:-1;103643:190:0;;-1:-1:-1;25:18;-1:-1;103643:190:0;-1:-1:-1;103643:190:0;;-1:-1:-1;103643:190:0;;-1:-1:-1;25:18;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;103643:190:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;103601:232:0;;;;103849:7;103844:555;;103877:17;;:21;103873:384;;104045:10;104039:17;104106:15;104093:10;104089:2;104085:19;104078:44;103993:148;104181:60;;-1:-1:-1;;;104181:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103844:555;104289:13;104316:10;104305:32;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;104305:32:0;-1:-1:-1;;;;;;104360:26:0;-1:-1:-1;;;104360:26:0;;-1:-1:-1;104352:35:0;;-1:-1:-1;;;104352:35:0;77603:125;77674:4;77698:17;;;:12;;;;;:17;;;;;;:22;;;77603:125::o;45363:1544::-;45429:4;45568:19;;;:12;;;:19;;;;;;45604:15;;45600:1300;;46039:18;;-1:-1:-1;;45990:14:0;;;;46039:22;;;;45966:21;;46039:3;;:22;;46326;;;;;;;;;;;;;;46306:42;;46472:9;46443:3;:11;;46455:13;46443:26;;;;;;;;;;;;;;;;;;;:38;;;;46549:23;;;46591:1;46549:12;;;:23;;;;;;46575:17;;;46549:43;;46701:17;;46549:3;;46701:17;;;;;;;;;;;;;;;;;;;;;;46796:3;:12;;:19;46809:5;46796:19;;;;;;;;;;;46789:26;;;46839:4;46832:11;;;;;;;;45600:1300;46883:5;46876:12;;;;;75103:692;75179:4;75314:17;;;:12;;;:17;;;;;;75348:13;75344:444;;-1:-1:-1;;75433:38:0;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;75415:12:0;:57;;;;;;;;;;;;;;;;;;;;;;;;75630:19;;75610:17;;;:12;;;:17;;;;;;;:39;75664:11;;75344:444;75744:5;75708:3;:12;;75732:1;75721:8;:12;75708:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;75771:5;75764:12;;;;;99802:404;-1:-1:-1;;;;;99882:16:0;;99874:61;;;;;-1:-1:-1;;;99874:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99955:16;99963:7;99955;:16::i;:::-;99954:17;99946:58;;;;;-1:-1:-1;;;99946:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;100017:45;100046:1;100050:2;100054:7;100017:20;:45::i;:::-;-1:-1:-1;;;;;100075:17:0;;;;;;:13;:17;;;;;:30;;100097:7;100075:30;:21;:30;:::i;:::-;-1:-1:-1;100118:29:0;:12;100135:7;100144:2;100118:29;:16;:29;:::i;:::-;-1:-1:-1;100165:33:0;;100190:7;;-1:-1:-1;;;;;100165:33:0;;;100182:1;;100165:33;;100182:1;;100165:33;99802:404;;:::o;121649:1256::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;121649:1256:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;121649:1256:0;;;-1:-1:-1;121649:1256:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://a82239511c51fe712f87f06acc53b448614b30f42aa24aa3da01adef92931674
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.