ETH Price: $3,303.49 (-0.19%)

Token

StickyNFT (STX)
 

Overview

Max Total Supply

105 STX

Holders

48

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 STX
0x8C508979509d8Fa3D91D3cC164045229aBeBA7C3
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:
StickyNFT

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-08-23
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.2;



// Part: OpenZeppelin/[email protected]/Address

/**
 * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/Counters

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. 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;`
 */
library Counters {
    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 {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// Part: OpenZeppelin/[email protected]/IERC165

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

// Part: OpenZeppelin/[email protected]/IERC721Receiver

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// Part: OpenZeppelin/[email protected]/SafeMath

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // 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 (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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) {
        return a + b;
    }

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

    /**
     * @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) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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 a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// Part: OpenZeppelin/[email protected]/Strings

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal 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);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// Part: OwnableDelegateProxy

/**
  @title An OpenSea delegate proxy contract which we include for whitelisting.
*/
contract OwnableDelegateProxy {}

// Part: OpenZeppelin/[email protected]/ERC165

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// Part: OpenZeppelin/[email protected]/IERC721

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred 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` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `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` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `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` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `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;
}

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @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.
 */
abstract 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() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual 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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// Part: OpenZeppelin/[email protected]/Pausable

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// Part: ProxyRegistry

/**
  @title An OpenSea proxy registry contract which we include for whitelisting.
*/
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

// Part: OpenZeppelin/[email protected]/IERC721Enumerable

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

// Part: OpenZeppelin/[email protected]/IERC721Metadata

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

// Part: OpenZeppelin/[email protected]/ERC721

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.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 See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    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 See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    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 See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    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 `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    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 `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    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 Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    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);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.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);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @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()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

// Part: OpenZeppelin/[email protected]/ERC721Enumerable

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

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

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

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

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

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

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

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

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

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

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

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

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

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// Part: OpenZeppelin/[email protected]/ERC721URIStorage

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).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(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

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

// File: StickyNFT.sol

/**
   @title StickyNFT.
*/
contract StickyNFT is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable {
    // Libraries
    using Counters for Counters.Counter;
    using SafeMath for uint;
    using SafeMath for uint256;
    using Strings for uint256;
    using Strings for address;

    Counters.Counter private _tokenIdCounter;


    // + Structs
    struct StkToken {
        uint256 tokenId;
        address owner;

        // Color information
        string bgHexCode;
        string fgHexCode;

        // Message
        string message;
    }

    // + Variables
    // Maximum number of notes an owner can consume with an NFT. Refillable
    uint256 public stnLimit;
    // Total supply of Sticky Notes NFTs
    uint256 public stnBkMaxSupply;

    // Prices value in wei
    uint public stnRefillPrice;
    uint public stnBkPremiumPrice;

    // Total number of sold NFTs.
    uint256 private _soldCounter;


    // Maps Token ID to NFT Structure
    mapping(uint256 => StkToken) tokenIdToStkStruct;
    // Maps Token ID to Available notes to spend
    mapping(uint256 => uint256) tokenIdToAvailableStkCount;
    // Maps color combination hash to consuming status. True
    mapping(bytes32 => bool) consumedColorCombination;
    // Address to Token Id
    mapping(address => uint256[]) public addressToTokenId;
    // Address to Token Id Sent
    mapping(address => uint256[]) public addressToSentTokenId;

    /// Specifically whitelist an OpenSea proxy registry address.
    address public proxyRegistryAddress;

    // + Events
    event TokenNotBurnable(string message);

    // Emitted when a token is Transferred
    event TokenTransferred(address from, address to, uint256 tokenId);

    // Emitted when a note is pinned
    event NotePinned(address from, address to, uint256 newTokenID);

    /*** Sticky NFT Constructor.
        @param  _stnBkMaxSupply total maximum supply of NFTs.
        @param  _stnLimit total number of notes in each NFT.
        @param  _stnBkPremiumPrice price for each NFT.
        @param  _stnRefillPrice price to refill notes with _stnLimit.

        @notice stnBkPremiumPrice & _stnRefillPrice are in wei
    */
    constructor(uint256 _stnBkMaxSupply, uint256 _stnLimit, uint _stnBkPremiumPrice, uint _stnRefillPrice, address _proxyRegistryAddress) public ERC721("StickyNFT", "STX") {
        proxyRegistryAddress = _proxyRegistryAddress;
        stnBkPremiumPrice = _stnBkPremiumPrice;
        stnRefillPrice = _stnRefillPrice;
        stnBkMaxSupply = _stnBkMaxSupply;
        stnLimit = _stnLimit;

        _soldCounter = 0;
    }

    /*** Setter for NFT price
      @notice OnlyOwner
    */
    function setStnBkPremiumPrice(uint _stnBkPremiumPrice) external onlyOwner {
        stnBkPremiumPrice = _stnBkPremiumPrice;
    }


    /*** Setter for refill price
      @notice OnlyOwner
    */
    function setStnRefillPrice(uint _stnRefillPrice) external onlyOwner {
        stnRefillPrice = _stnRefillPrice;
    }

    /*** Setter for Open Sea Proxy.
    @notice OnlyOwner
    */
    function setOpenseaProxy(address _proxyRegistryAddress) external onlyOwner {
        proxyRegistryAddress = _proxyRegistryAddress;
    }

    /*** Return token (background color hex code, font color hex code, Available note count).
    @param _tokenId
    */
    function getStkNoteInfo(uint256 _tokenId) public view returns (string[3] memory result){
        require(tokenIdToStkStruct[_tokenId].owner != address(0), "Doesn't exist");

        // create result list
        result[0] = tokenIdToStkStruct[_tokenId].bgHexCode;
        result[1] = tokenIdToStkStruct[_tokenId].fgHexCode;
        result[2] = tokenIdToAvailableStkCount[_tokenId].toString();

        return result;
    }


    /** Return a count of owned Sticky Notes NFT of msg.sender
    */
    function getOwnedStkNotesCount(address account) public view returns (uint){
        return addressToTokenId[account].length;
    }

    /** Return a count of sent Sticky Notes NFT of msg.sender
    */
    function getSentStkNotesCount(address account) public view returns (uint){
        return addressToSentTokenId[account].length;
    }

    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "wrong owner");
        return addressToTokenId[owner].length;
    }

    function totalAvailableStkCount(uint256 _tokenId) public view returns (uint256){
        require(msg.sender == tokenIdToStkStruct[_tokenId].owner, "Not owner");
        return tokenIdToAvailableStkCount[_tokenId];
    }

    function refill(address owner, uint256 _tokenId) external payable {
        require(owner != address(0), "wrong owner");
        require(msg.value >= stnRefillPrice, "Price not met");
        require(tokenIdToStkStruct[_tokenId].owner == owner, "wrong owner");
        tokenIdToAvailableStkCount[_tokenId] = tokenIdToAvailableStkCount[_tokenId].add(stnLimit);
    }


    /**
    An override to whitelist the OpenSea proxy contract to enable gas-free
    listings. This function returns true if `_operator` is approved to transfer
    items owned by `_owner`.
    @param _owner The owner of items to check for transfer ability.
    @param _operator The potential transferrer of `_owner`'s items.
  */
    function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(_owner)) == _operator) {
            return true;
        }
        return ERC721.isApprovedForAll(_owner, _operator);
    }


    function send(address _to, uint256 _tokenId, string memory _message) public {
        require(tokenIdToStkStruct[_tokenId].owner == msg.sender, "wrong owner");
        require(tokenIdToAvailableStkCount[_tokenId] > 0, "Notes Spent. refill");
        require(bytes(_message).length < 256, "Large message");

        // Create the token structure
        uint256 newTokenId = _tokenIdCounter.current();
        StkToken memory stnStruct = StkToken({
        owner : msg.sender,
        tokenId : newTokenId,
        bgHexCode : tokenIdToStkStruct[_tokenId].bgHexCode,
        fgHexCode : tokenIdToStkStruct[_tokenId].fgHexCode,
        message : _message
        });

        // Owner to sent token Id
        addressToSentTokenId[msg.sender].push(newTokenId);

        // Reduce parent stk count
        if (tokenIdToAvailableStkCount[_tokenId] > 0) {
            tokenIdToAvailableStkCount[_tokenId] = tokenIdToAvailableStkCount[_tokenId].sub(1);
        }

        // Mint the stk
        _safeMint(_to, newTokenId);
        tokenIdToStkStruct[newTokenId] = stnStruct;


        // Increment counter
        _tokenIdCounter.increment();

        emit NotePinned(msg.sender, _to, newTokenId);
    }


    function increaseMaxSupply(uint256 increase) public onlyOwner {
        stnBkMaxSupply = stnBkMaxSupply.add(increase);
    }

    function buyNFT(string memory _bgcolor, string memory _fgcolor) external payable {
        require(_soldCounter < stnBkMaxSupply, "Sold Out");
        require(msg.value >= stnBkPremiumPrice, "Price not met");


        // Ensure color combination is picked only once
        // This is not true for random
        bytes32 colorHash = hashColor(_bgcolor, _fgcolor);
        require(consumedColorCombination[colorHash] == false, "Combination not available");

        // Create the token structure
        uint256 newTokenId = _tokenIdCounter.current();
        StkToken memory stnStruct = StkToken({

        // Colors
        bgHexCode : _bgcolor,
        fgHexCode : _fgcolor,

        // General
        owner : msg.sender,
        tokenId : newTokenId,
        message : ''
        });

        // Mint the stk
        _safeMint(msg.sender, newTokenId);
        tokenIdToStkStruct[newTokenId] = stnStruct;
        tokenIdToAvailableStkCount[newTokenId] = stnLimit;
        consumedColorCombination[colorHash] = true;
        addressToTokenId[msg.sender].push(newTokenId);


        // Increment
        _soldCounter = _soldCounter.add(1);
        _tokenIdCounter.increment();
    }


    function safeMint(address to, string memory _bgcolor, string memory _fgcolor) external onlyOwner {
        require(_soldCounter < stnBkMaxSupply, "Sold Out");
        require(bytes(_bgcolor).length <= 6, "wrong color format");
        require(bytes(_fgcolor).length <= 6, "wrong color format");

        bytes32 colorHash = hashColor(_bgcolor, _fgcolor);
        require(consumedColorCombination[colorHash] == false, "Combination not available");

        // Create the token structure
        uint256 newTokenId = _tokenIdCounter.current();
        StkToken memory stnStruct = StkToken({
        // Colors
        bgHexCode : _bgcolor,
        fgHexCode : _fgcolor,

        // General
        owner : to,
        tokenId : newTokenId,
        message : ''
        });

        // Mint the stk
        _safeMint(to, newTokenId);
        tokenIdToStkStruct[newTokenId] = stnStruct;
        tokenIdToAvailableStkCount[newTokenId] = stnLimit;
        consumedColorCombination[colorHash] = true;
        addressToTokenId[to].push(newTokenId);


        // Increment
        _soldCounter = _soldCounter.add(1);
        _tokenIdCounter.increment();
    }

    function _baseURI() internal pure override returns (string memory) {
        return "";
    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal whenNotPaused override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256) internal override(ERC721, ERC721URIStorage) {
        emit TokenNotBurnable("");
    }

    function baseTokenURI() public pure returns (string memory) {
        return "";
    }



    function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory)
    {

        bytes memory byteString;
        StkToken memory stkToken = tokenIdToStkStruct[tokenId];
        string memory ownerAddress = toAsciiString(stkToken.owner);

        byteString = abi.encodePacked(byteString, 'data:application/json;utf8,{');

        // Set title Name & Display Name
        if (bytes(stkToken.message).length > 0) {
            byteString = abi.encodePacked(byteString, '"name": "Sticky NFT",');
            byteString = abi.encodePacked(byteString, '"displayName": "Sticky NFT",');
            byteString = abi.encodePacked(byteString, '"description": "You received a Sticky NFT, more info https://stickynft.com ",');
        } else {
            byteString = abi.encodePacked(byteString, '"name": "Sticky NFT",');
            byteString = abi.encodePacked(byteString, '"displayName": "Sticky NFT",');
            byteString = abi.encodePacked(byteString, '"description": "This is a Sticky NFT. https://stickynft.com ",');
        }

        byteString = abi.encodePacked(byteString, '"created_by": "0x', ownerAddress, '",');
        byteString = abi.encodePacked(byteString, '"external_url": "https://stickynft.com",');
        byteString = abi.encodePacked(byteString, '"image": "data:image/svg+xml;utf8,', generateSvg(stkToken), '",');
        byteString = abi.encodePacked(byteString, '"attributes": [');
        byteString = abi.encodePacked(byteString, '{"trait_type":"Birthday","value":', block.timestamp.toString(), ',"display_type":"date"},');
        byteString = abi.encodePacked(byteString, '{"trait_type":"Background","value":"#', stkToken.bgHexCode, '"},');
        byteString = abi.encodePacked(byteString, '{"trait_type":"Font","value":"#', stkToken.fgHexCode, '"},');
        byteString = abi.encodePacked(byteString, '{"trait_type":"Origin","value":"0x', ownerAddress, '"}],');
        byteString = abi.encodePacked(byteString, '"message": "', bytes(stkToken.message), '"}');


        return string(byteString);
    }

    function generateSvg(StkToken memory stk) private view returns (bytes memory svg) {
        svg = abi.encodePacked(svg, "<svg xmlns='http://www.w3.org/2000/svg' width='614' height='614' >");
        svg = abi.encodePacked(svg, "<rect width='1080' height='1080' fill='#", stk.bgHexCode, "'/>");
        bytes memory messageBytes = bytes(stk.message);

        // Characters to watch for
        bytes1 space = bytes1(" ");
        bytes1 doubleQuote = bytes1('"');
        bytes1 singleQuote = bytes1("'");
        bytes1 backSlash = bytes1('\\');


        if (bytes(stk.message).length > 0) {
            svg = abi.encodePacked(svg, "<text x='25' y='20' font-family='serif' font-size='32' fill='#", stk.fgHexCode, "' >");
            svg = abi.encodePacked(svg, "<tspan x='15' dy='1.2em' >");
            for (uint256 counter = 0; counter < bytes(stk.message).length; counter++) {
                // Clean message for xss
                if (messageBytes[counter] != doubleQuote || messageBytes[counter] != singleQuote || messageBytes[counter] != backSlash) {
                    if (counter.mod(35) == 0 && counter > 0) {
                        if (messageBytes[counter] != space) {
                            svg = abi.encodePacked(svg, messageBytes[counter], "_</tspan>");
                        } else {
                            svg = abi.encodePacked(svg, messageBytes[counter], "</tspan>");
                        }
                        svg = abi.encodePacked(svg, "<tspan x='15' dy='1.2em' >");
                    } else {
                        svg = abi.encodePacked(svg, messageBytes[counter]);
                    }
                }
            }
            svg = abi.encodePacked(svg, "</tspan>");
            svg = abi.encodePacked(svg, "</text>");
        } else {
            svg = abi.encodePacked(svg, "<text x='25' y='25' font-family='Verdana' font-size='14' fill='#", stk.fgHexCode, "' >");
            svg = abi.encodePacked(svg, "Owner 0x", toAsciiString(stk.owner), "</text>");
        }
        return abi.encodePacked(svg, "</svg>");
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function withdraw(address to) external onlyOwner {
        payable(to).transfer(address(this).balance);
    }

    // Transfer Functions
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory) public virtual override {
        transferFrom(from, to, tokenId);
    }


    /**
    * bug: inefficient iteration.  will run out of gas if the the owner has to a big number of sticky notes
    */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        // if there is a message it is a note, cant sell a note
        if (bytes(tokenIdToStkStruct[tokenId].message).length > 0) {
            revert("cant sell sticky note");
        }
        // change the owner

        for(uint i=0;i<addressToTokenId[from].length;i++){
            if(addressToTokenId[from][i]==tokenId){
                tokenIdToStkStruct[tokenId].owner = to;
                addressToTokenId[from][i] = addressToTokenId[from][addressToTokenId[from].length - 1];
                addressToTokenId[from].pop();

                // introduce the new map
                addressToTokenId[to].push(tokenId);
                _transfer(from, to, tokenId);

                break;
            }
        }

    }

    function generateRandomNum(uint256 seed) private view returns (uint256) {
        return uint256(keccak256(abi.encodePacked(msg.sender, block.timestamp, seed)));
    }

    /*** Returns maximum supply for sell.
    */
    function availableSupply() public view returns (uint256)  {
        return stnBkMaxSupply.sub(_soldCounter);
    }

    /*** Returns maximum supply for sell.
    */
    function maxSupply() public view returns (uint256)  {
        return stnBkMaxSupply;
    }

    function toAsciiString(address x) internal view returns (string memory) {
        bytes memory s = new bytes(40);
        for (uint i = 0; i < 20; i++) {
            bytes1 b = bytes1(uint8(uint(uint160(x)) / (2 ** (8 * (19 - i)))));
            bytes1 hi = bytes1(uint8(b) / 16);
            bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
            s[2 * i] = char(hi);
            s[2 * i + 1] = char(lo);
        }
        return string(s);
    }

    function char(bytes1 b) internal pure returns (bytes1 c) {
        if (uint8(b) < 10) return bytes1(uint8(b) + 0x30);
        else return bytes1(uint8(b) + 0x57);
    }

    function isColorAvailable(string memory _bgcolor, string memory _fgcolor) public view returns (bool) {
        require(bytes(_bgcolor).length <= 6, "wrong color format");
        require(bytes(_fgcolor).length <= 6, "wrong color format");

        return !consumedColorCombination[hashColor(_bgcolor, _fgcolor)];

    }

    function hashColor(string memory _bg, string memory _fg) public pure returns (bytes32)
    {
        return keccak256(abi.encodePacked(_bg, _fg));
    }

    /***
    * Ensure no one can trigger the logic
    */
    function renounceOwnership() public virtual onlyOwner override {

    }

    /***
    * Payable fallback function
    */
    fallback() external payable {}

    receive() external payable {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_stnBkMaxSupply","type":"uint256"},{"internalType":"uint256","name":"_stnLimit","type":"uint256"},{"internalType":"uint256","name":"_stnBkPremiumPrice","type":"uint256"},{"internalType":"uint256","name":"_stnRefillPrice","type":"uint256"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"newTokenID","type":"uint256"}],"name":"NotePinned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"message","type":"string"}],"name":"TokenNotBurnable","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenTransferred","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressToSentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressToTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"_bgcolor","type":"string"},{"internalType":"string","name":"_fgcolor","type":"string"}],"name":"buyNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getOwnedStkNotesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getSentStkNotesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getStkNoteInfo","outputs":[{"internalType":"string[3]","name":"result","type":"string[3]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_bg","type":"string"},{"internalType":"string","name":"_fg","type":"string"}],"name":"hashColor","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"increase","type":"uint256"}],"name":"increaseMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_bgcolor","type":"string"},{"internalType":"string","name":"_fgcolor","type":"string"}],"name":"isColorAvailable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"refill","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_bgcolor","type":"string"},{"internalType":"string","name":"_fgcolor","type":"string"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","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":"","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_message","type":"string"}],"name":"send","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":"_proxyRegistryAddress","type":"address"}],"name":"setOpenseaProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stnBkPremiumPrice","type":"uint256"}],"name":"setStnBkPremiumPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stnRefillPrice","type":"uint256"}],"name":"setStnRefillPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stnBkMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stnBkPremiumPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stnLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stnRefillPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"totalAvailableStkCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162004a0f38038062004a0f8339810160408190526200003491620001eb565b604080518082018252600981526814dd1a58dade53919560ba1b6020808301918252835180850190945260038452620a6a8b60eb1b908401528151919291620000809160009162000145565b5080516200009690600190602084019062000145565b5050600b805460ff1916905550620000ae33620000eb565b601780546001600160a01b0319166001600160a01b0392909216919091179055601091909155600f55600e91909155600d55600060115562000283565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001539062000246565b90600052602060002090601f016020900481019282620001775760008555620001c2565b82601f106200019257805160ff1916838001178555620001c2565b82800160010185558215620001c2579182015b82811115620001c2578251825591602001919060010190620001a5565b50620001d0929150620001d4565b5090565b5b80821115620001d05760008155600101620001d5565b600080600080600060a0868803121562000203578081fd5b855160208701516040880151606089015160808a0151939850919650945092506001600160a01b038116811462000238578182fd5b809150509295509295909350565b6002810460018216806200025b57607f821691505b602082108114156200027d57634e487b7160e01b600052602260045260246000fd5b50919050565b61477c80620002936000396000f3fe6080604052600436106102815760003560e01c80636352211e1161014f578063c8465752116100c1578063e97144481161007a578063e97144481461074d578063e985e9c514610783578063eca81d42146107a3578063f2fde38b146107c3578063f4373a84146107e3578063f49bb76b1461081957610288565b8063c846575214610697578063c87b56dd146106b7578063cd7c0326146106d7578063d547cfb7146106f7578063d599161514610718578063d5abeb011461073857610288565b80638da5cb5b116101135780638da5cb5b146105de57806390edbfee1461060257806395d89b4114610622578063a22cb46514610637578063aec20ddf14610657578063b88d4fde1461067757610288565b80636352211e1461055e57806370a082311461057e578063715018a61461059e578063747fd371146105b35780637ecc2b56146105c957610288565b80632f745c59116101f35780634add18b9116101ac5780634add18b9146104ba5780634f6ccce7146104d057806351cff8d9146104f0578063583db379146105105780635c975abb14610530578063603233d51461054857610288565b80632f745c59146104055780633a2c4862146104255780633ccfd60b1461044557806342842e0e1461045a57806348b41bbb1461047a57806348b8b9b11461049a57610288565b80630c129c36116102455780630c129c361461034c57806314eb4e811461037957806318160ddd1461039d578063181f14c0146103b25780631b6379f3146103c557806323b872dd146103e557610288565b806301ffc9a71461028a57806306fdde03146102bf578063081812fc146102e1578063095ea7b3146103195780630aa3ae7e1461033957610288565b3661028857005b005b34801561029657600080fd5b506102aa6102a53660046138a1565b610839565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102d461084c565b6040516102b6919061434f565b3480156102ed57600080fd5b506103016102fc366004613956565b6108de565b6040516001600160a01b0390911681526020016102b6565b34801561032557600080fd5b50610288610334366004613829565b610978565b610288610347366004613829565b610a8e565b34801561035857600080fd5b5061036c610367366004613956565b610b60565b6040516102b69190614302565b34801561038557600080fd5b5061038f600e5481565b6040519081526020016102b6565b3480156103a957600080fd5b5060085461038f565b6102886103c03660046138f5565b610d70565b3480156103d157600080fd5b5061038f6103e0366004613829565b610fb3565b3480156103f157600080fd5b506102886104003660046136c8565b610fe4565b34801561041157600080fd5b5061038f610420366004613829565b61128c565b34801561043157600080fd5b5061038f610440366004613956565b611325565b34801561045157600080fd5b5061028861138d565b34801561046657600080fd5b506102886104753660046136c8565b6113ec565b34801561048657600080fd5b50610288610495366004613674565b6113f7565b3480156104a657600080fd5b5061038f6104b53660046138f5565b611449565b3480156104c657600080fd5b5061038f600d5481565b3480156104dc57600080fd5b5061038f6104eb366004613956565b61147c565b3480156104fc57600080fd5b5061028861050b366004613674565b61151d565b34801561051c57600080fd5b5061028861052b366004613956565b611586565b34801561053c57600080fd5b50600b5460ff166102aa565b34801561055457600080fd5b5061038f60105481565b34801561056a57600080fd5b50610301610579366004613956565b6115bb565b34801561058a57600080fd5b5061038f610599366004613674565b611632565b3480156105aa57600080fd5b50610288611676565b3480156105bf57600080fd5b5061038f600f5481565b3480156105d557600080fd5b5061038f6116a8565b3480156105ea57600080fd5b50610301600b5461010090046001600160a01b031690565b34801561060e57600080fd5b5061028861061d366004613956565b6116c6565b34801561062e57600080fd5b506102d4611709565b34801561064357600080fd5b50610288610652366004613785565b611718565b34801561066357600080fd5b50610288610672366004613956565b6117ea565b34801561068357600080fd5b50610288610692366004613708565b61181f565b3480156106a357600080fd5b506102aa6106b23660046138f5565b61182a565b3480156106c357600080fd5b506102d46106d2366004613956565b61189a565b3480156106e357600080fd5b50601754610301906001600160a01b031681565b34801561070357600080fd5b506040805160208101909152600081526102d4565b34801561072457600080fd5b5061038f610733366004613829565b611d08565b34801561074457600080fd5b50600e5461038f565b34801561075957600080fd5b5061038f610768366004613674565b6001600160a01b031660009081526016602052604090205490565b34801561078f57600080fd5b506102aa61079e366004613690565b611d24565b3480156107af57600080fd5b506102886107be3660046137b6565b611df4565b3480156107cf57600080fd5b506102886107de366004613674565b612073565b3480156107ef57600080fd5b5061038f6107fe366004613674565b6001600160a01b031660009081526015602052604090205490565b34801561082557600080fd5b50610288610834366004613854565b612111565b6000610844826124aa565b90505b919050565b60606000805461085b9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546108879061466f565b80156108d45780601f106108a9576101008083540402835291602001916108d4565b820191906000526020600020905b8154815290600101906020018083116108b757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661095c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610983826115bb565b9050806001600160a01b0316836001600160a01b031614156109f15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610953565b336001600160a01b0382161480610a0d5750610a0d813361079e565b610a7f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610953565b610a8983836124cf565b505050565b6001600160a01b038216610ab45760405162461bcd60e51b815260040161095390614362565b600f54341015610af65760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081b595d609a1b6044820152606401610953565b6000818152601260205260409020600101546001600160a01b03838116911614610b325760405162461bcd60e51b815260040161095390614362565b600d54600082815260136020526040902054610b4d9161253d565b6000918252601360205260409091205550565b610b6861351f565b6000828152601260205260409020600101546001600160a01b0316610bbf5760405162461bcd60e51b815260206004820152600d60248201526c111bd95cdb89dd08195e1a5cdd609a1b6044820152606401610953565b60008281526012602052604090206002018054610bdb9061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c079061466f565b8015610c545780601f10610c2957610100808354040283529160200191610c54565b820191906000526020600020905b815481529060010190602001808311610c3757829003601f168201915b505050505081600060038110610c7a57634e487b7160e01b600052603260045260246000fd5b6020020181905250601260008381526020019081526020016000206003018054610ca39061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccf9061466f565b8015610d1c5780601f10610cf157610100808354040283529160200191610d1c565b820191906000526020600020905b815481529060010190602001808311610cff57829003601f168201915b505050505081600160038110610d4257634e487b7160e01b600052603260045260246000fd5b6020020181905250610d666013600084815260200190815260200160002054612550565b6040820152919050565b600e5460115410610dae5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610953565b601054341015610df05760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081b595d609a1b6044820152606401610953565b6000610dfc8383611449565b60008181526014602052604090205490915060ff1615610e5a5760405162461bcd60e51b8152602060048201526019602482015278436f6d62696e6174696f6e206e6f7420617661696c61626c6560381b6044820152606401610953565b6000610e65600c5490565b905060006040518060a00160405280838152602001336001600160a01b03168152602001868152602001858152602001604051806020016040528060008152508152509050610eb4338361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392610f09926002850192910190613546565b5060608201518051610f25916003840191602090910190613546565b5060808201518051610f41916004840191602090910190613546565b5050600d5460008481526013602090815260408083209390935586825260148152828220805460ff191660019081179091553383526015825292822080548085018255908352912001849055601154610f9b92509061253d565b601155610fac600c80546001019055565b5050505050565b60156020528160005260406000208181548110610fcf57600080fd5b90600052602060002001600091509150505481565b610fee3382612685565b6110545760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610953565b600081815260126020526040812060040180546110709061466f565b905011156110b85760405162461bcd60e51b815260206004820152601560248201527463616e742073656c6c20737469636b79206e6f746560581b6044820152606401610953565b60005b6001600160a01b038416600090815260156020526040902054811015611286576001600160a01b038416600090815260156020526040902080548391908390811061111657634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415611274576000828152601260209081526040808320600190810180546001600160a01b0319166001600160a01b03898116919091179091558816845260159092529091208054909161117491614609565b8154811061119257634e487b7160e01b600052603260045260246000fd5b906000526020600020015460156000866001600160a01b03166001600160a01b0316815260200190815260200160002082815481106111e157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b038616815260159091526040902080548061122457634e487b7160e01b600052603160045260246000fd5b6000828152602080822083016000199081018390559092019092556001600160a01b03851682526015815260408220805460018101825590835291200182905561126f848484612754565b611286565b8061127e816146aa565b9150506110bb565b50505050565b6000611297836128ff565b82106112f95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610953565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6000818152601260205260408120600101546001600160a01b0316331461137a5760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610953565b5060009081526013602052604090205490565b600b546001600160a01b036101009091041633146113bd5760405162461bcd60e51b815260040161095390614405565b60405133904780156108fc02916000818181858888f193505050501580156113e9573d6000803e3d6000fd5b50565b610a89838383610fe4565b600b546001600160a01b036101009091041633146114275760405162461bcd60e51b815260040161095390614405565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6000828260405160200161145e929190614296565b60405160208183030381529060405280519060200120905092915050565b600061148760085490565b82106114ea5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610953565b6008828154811061150b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b0361010090910416331461154d5760405162461bcd60e51b815260040161095390614405565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611582573d6000803e3d6000fd5b5050565b600b546001600160a01b036101009091041633146115b65760405162461bcd60e51b815260040161095390614405565b601055565b6000818152600260205260408120546001600160a01b0316806108445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610953565b60006001600160a01b03821661165a5760405162461bcd60e51b815260040161095390614362565b506001600160a01b031660009081526015602052604090205490565b600b546001600160a01b036101009091041633146116a65760405162461bcd60e51b815260040161095390614405565b565b60006116c1601154600e5461298690919063ffffffff16565b905090565b600b546001600160a01b036101009091041633146116f65760405162461bcd60e51b815260040161095390614405565b600e54611703908261253d565b600e5550565b60606001805461085b9061466f565b6001600160a01b0382163314156117715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610953565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117de911515815260200190565b60405180910390a35050565b600b546001600160a01b0361010090910416331461181a5760405162461bcd60e51b815260040161095390614405565b600f55565b611286848484610fe4565b600060068351111561184e5760405162461bcd60e51b8152600401610953906143d9565b6006825111156118705760405162461bcd60e51b8152600401610953906143d9565b6014600061187e8585611449565b815260208101919091526040016000205460ff16159392505050565b6000818152601260209081526040808320815160a0810183528154815260018201546001600160a01b03169381019390935260028101805460609586959094909392908401916118e99061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546119159061466f565b80156119625780601f1061193757610100808354040283529160200191611962565b820191906000526020600020905b81548152906001019060200180831161194557829003601f168201915b5050505050815260200160038201805461197b9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546119a79061466f565b80156119f45780601f106119c9576101008083540402835291602001916119f4565b820191906000526020600020905b8154815290600101906020018083116119d757829003601f168201915b50505050508152602001600482018054611a0d9061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054611a399061466f565b8015611a865780601f10611a5b57610100808354040283529160200191611a86565b820191906000526020600020905b815481529060010190602001808311611a6957829003601f168201915b50505050508152505090506000611aa08260200151612992565b905082604051602001611ab39190613f87565b604051602081830303815290604052925060008260800151511115611b3d5782604051602001611ae39190613e9a565b604051602081830303815290604052925082604051602001611b05919061403d565b604051602081830303815290604052925082604051602001611b279190614219565b6040516020818303038152906040529250611ba4565b82604051602001611b4e9190613e9a565b604051602081830303815290604052925082604051602001611b70919061403d565b604051602081830303815290604052925082604051602001611b929190614147565b60405160208183030381529060405292505b8281604051602001611bb7929190613d4e565b604051602081830303815290604052925082604051602001611bd99190613ad9565b604051602081830303815290604052925082611bf483612af5565b604051602001611c05929190613b2b565b604051602081830303815290604052925082604051602001611c279190613f54565b604051602081830303815290604052925082611c4242612550565b604051602001611c53929190613bca565b6040516020818303038152906040529250828260400151604051602001611c7b929190613da9565b6040516020818303038152906040529250828260600151604051602001611ca3929190613c57565b60405160208183030381529060405292508281604051602001611cc7929190613fc8565b6040516020818303038152906040529250828260800151604051602001611cef929190613efe565b60408051808303601f1901815291905295945050505050565b60166020528160005260406000208181548110610fcf57600080fd5b60175460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611d7157600080fd5b505afa158015611d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da991906138d9565b6001600160a01b03161415611dc257600191505061131f565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600b546001600160a01b03610100909104163314611e245760405162461bcd60e51b815260040161095390614405565b600e5460115410611e625760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610953565b600682511115611e845760405162461bcd60e51b8152600401610953906143d9565b600681511115611ea65760405162461bcd60e51b8152600401610953906143d9565b6000611eb28383611449565b60008181526014602052604090205490915060ff1615611f105760405162461bcd60e51b8152602060048201526019602482015278436f6d62696e6174696f6e206e6f7420617661696c61626c6560381b6044820152606401610953565b6000611f1b600c5490565b905060006040518060a00160405280838152602001876001600160a01b03168152602001868152602001858152602001604051806020016040528060008152508152509050611f6a868361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392611fbf926002850192910190613546565b5060608201518051611fdb916003840191602090910190613546565b5060808201518051611ff7916004840191602090910190613546565b5050600d5460008481526013602090815260408083209390935586825260148152828220805460ff191660019081179091556001600160a01b038b168352601582529282208054808501825590835291200184905560115461205a92509061253d565b60115561206b600c80546001019055565b505050505050565b600b546001600160a01b036101009091041633146120a35760405162461bcd60e51b815260040161095390614405565b6001600160a01b0381166121085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610953565b6113e981612edc565b6000828152601260205260409020600101546001600160a01b0316331461214a5760405162461bcd60e51b815260040161095390614362565b60008281526013602052604090205461219b5760405162461bcd60e51b8152602060048201526013602482015272139bdd195cc814dc195b9d0b881c99599a5b1b606a1b6044820152606401610953565b6101008151106121dd5760405162461bcd60e51b815260206004820152600d60248201526c4c61726765206d65737361676560981b6044820152606401610953565b60006121e8600c5490565b905060006040518060a00160405280838152602001336001600160a01b0316815260200160126000878152602001908152602001600020600201805461222d9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546122599061466f565b80156122a65780601f1061227b576101008083540402835291602001916122a6565b820191906000526020600020905b81548152906001019060200180831161228957829003601f168201915b505050505081526020016012600087815260200190815260200160002060030180546122d19061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546122fd9061466f565b801561234a5780601f1061231f5761010080835404028352916020019161234a565b820191906000526020600020905b81548152906001019060200180831161232d57829003601f168201915b5050509183525050602090810185905233600090815260168252604080822080546001810182559083528383200186905587825260139092522054909150156123b7576000848152601360205260409020546123a7906001612986565b6000858152601360205260409020555b6123c1858361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392612416926002850192910190613546565b5060608201518051612432916003840191602090910190613546565b506080820151805161244e916004840191602090910190613546565b5050600c8054600101905550604080513381526001600160a01b03871660208201529081018390527f85fbf648628e7ff68eebc956395ca65d0161d7d2cb700bad182ad8e0201a4ca19060600160405180910390a15050505050565b60006001600160e01b0319821663780e9d6360e01b1480610844575061084482612f36565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612504826115bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612549828461443a565b9392505050565b60608161257557506040805180820190915260018152600360fc1b6020820152610847565b8160005b811561259f5780612589816146aa565b91506125989050600a83614477565b9150612579565b60008167ffffffffffffffff8111156125c857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125f2576020820181803683370190505b5090505b8415611dec57612607600183614609565b9150612614600a866146c5565b61261f90603061443a565b60f81b81838151811061264257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612664600a86614477565b94506125f6565b611582828260405180602001604052806000815250612f86565b6000818152600260205260408120546001600160a01b03166126fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610953565b6000612709836115bb565b9050806001600160a01b0316846001600160a01b031614806127445750836001600160a01b0316612739846108de565b6001600160a01b0316145b80611dec5750611dec8185611d24565b826001600160a01b0316612767826115bb565b6001600160a01b0316146127cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610953565b6001600160a01b0382166128315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610953565b61283c838383612fb9565b6128476000826124cf565b6001600160a01b0383166000908152600360205260408120805460019290612870908490614609565b90915550506001600160a01b038216600090815260036020526040812080546001929061289e90849061443a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b03821661296a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610953565b506001600160a01b031660009081526003602052604090205490565b60006125498284614609565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612aee5760006129cf826013614609565b6129da9060086145c1565b6129e59060026144f3565b6129f8906001600160a01b038716614477565b60f81b9050600060108260f81c612a0f919061448b565b60f81b905060008160f81c6010612a2691906145e0565b8360f81c612a349190614620565b60f81b9050612a428261300a565b85612a4e8660026145c1565b81518110612a6c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612a8c8161300a565b85612a988660026145c1565b612aa390600161443a565b81518110612ac157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505050508080612ae6906146aa565b9150506129b9565b5092915050565b606080604051602001612b08919061407e565b6040516020818303038152906040529050808260400151604051602001612b30929190613e20565b60408051601f198184030181529190526080830151805191925090600160fd1b90601160f91b90602760f81b90601760fa1b9015612e58576060870151604051612b7e918891602001613a4a565b604051602081830303815290604052955085604051602001612ba091906141d8565b604051602081830303815290604052955060005b876080015151811015612e0e57836001600160f81b031916868281518110612bec57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916141580612c405750826001600160f81b031916868281518110612c2e57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614155b80612c835750816001600160f81b031916868281518110612c7157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614155b15612dfc57612c93816023613041565b158015612ca05750600081115b15612dad57846001600160f81b031916868281518110612cd057634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614612d375786868281518110612d0557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612d21929190613a09565b6040516020818303038152906040529650612d86565b86868281518110612d5857634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612d749291906139c9565b60405160208183030381529060405296505b86604051602001612d9791906141d8565b6040516020818303038152906040529650612dfc565b86868281518110612dce57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612dea92919061399a565b60405160208183030381529060405296505b80612e06816146aa565b915050612bb4565b5085604051602001612e209190613b9e565b604051602081830303815290604052955085604051602001612e429190613ed3565b6040516020818303038152906040529550612eb0565b6060870151604051612e6e918891602001613cbf565b604051602081830303815290604052955085612e8d8860200151612992565b604051602001612e9e9291906140f0565b60405160208183030381529060405295505b85604051602001612ec191906141ae565b60405160208183030381529060405295505050505050919050565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160e01b031982166380ac58cd60e01b1480612f6757506001600160e01b03198216635b5e139f60e01b145b8061084457506301ffc9a760e01b6001600160e01b0319831614610844565b612f90838361304d565b612f9d600084848461319b565b610a895760405162461bcd60e51b815260040161095390614387565b600b5460ff1615612fff5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610953565b610a898383836132a8565b6000600a60f883901c10156130325761302860f883901c6030614452565b60f81b9050610847565b61302860f883901c6057614452565b600061254982846146c5565b6001600160a01b0382166130a35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610953565b6000818152600260205260409020546001600160a01b0316156131085760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610953565b61311460008383612fb9565b6001600160a01b038216600090815260036020526040812080546001929061313d90849061443a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561329d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131df9033908990889088906004016142c5565b602060405180830381600087803b1580156131f957600080fd5b505af1925050508015613229575060408051601f3d908101601f19168201909252613226918101906138bd565b60015b613283573d808015613257576040519150601f19603f3d011682016040523d82523d6000602084013e61325c565b606091505b50805161327b5760405162461bcd60e51b815260040161095390614387565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611dec565b506001949350505050565b6001600160a01b038316613303576132fe81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613326565b816001600160a01b0316836001600160a01b031614613326576133268382613365565b6001600160a01b0382166133425761333d81613402565b610a89565b826001600160a01b0316826001600160a01b031614610a8957610a8982826134db565b60006001613372846128ff565b61337c9190614609565b6000838152600760205260409020549091508082146133cf576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061341490600190614609565b6000838152600960205260408120546008805493945090928490811061344a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061347957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806134bf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006134e6836128ff565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180606001604052806003905b606081526020019060019003908161352e5790505090565b8280546135529061466f565b90600052602060002090601f01602090048101928261357457600085556135ba565b82601f1061358d57805160ff19168380011785556135ba565b828001600101855582156135ba579182015b828111156135ba57825182559160200191906001019061359f565b506135c69291506135ca565b5090565b5b808211156135c657600081556001016135cb565b600067ffffffffffffffff808411156135fa576135fa614705565b604051601f8501601f19908116603f0116810190828211818310171561362257613622614705565b8160405280935085815286868601111561363b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613665578081fd5b612549838335602085016135df565b600060208284031215613685578081fd5b81356125498161471b565b600080604083850312156136a2578081fd5b82356136ad8161471b565b915060208301356136bd8161471b565b809150509250929050565b6000806000606084860312156136dc578081fd5b83356136e78161471b565b925060208401356136f78161471b565b929592945050506040919091013590565b6000806000806080858703121561371d578081fd5b84356137288161471b565b935060208501356137388161471b565b925060408501359150606085013567ffffffffffffffff81111561375a578182fd5b8501601f8101871361376a578182fd5b613779878235602084016135df565b91505092959194509250565b60008060408385031215613797578182fd5b82356137a28161471b565b9150602083013580151581146136bd578182fd5b6000806000606084860312156137ca578283fd5b83356137d58161471b565b9250602084013567ffffffffffffffff808211156137f1578384fd5b6137fd87838801613655565b93506040860135915080821115613812578283fd5b5061381f86828701613655565b9150509250925092565b6000806040838503121561383b578182fd5b82356138468161471b565b946020939093013593505050565b600080600060608486031215613868578283fd5b83356138738161471b565b925060208401359150604084013567ffffffffffffffff811115613895578182fd5b61381f86828701613655565b6000602082840312156138b2578081fd5b813561254981614730565b6000602082840312156138ce578081fd5b815161254981614730565b6000602082840312156138ea578081fd5b81516125498161471b565b60008060408385031215613907578182fd5b823567ffffffffffffffff8082111561391e578384fd5b61392a86838701613655565b9350602085013591508082111561393f578283fd5b5061394c85828601613655565b9150509250929050565b600060208284031215613967578081fd5b5035919050565b60008151808452613986816020860160208601614643565b601f01601f19169290920160200192915050565b600083516139ac818460208801614643565b6001600160f81b0319939093169190920190815260010192915050565b600083516139db818460208801614643565b6001600160f81b03199390931691909201908152671e17ba39b830b71f60c11b600182015260090192915050565b60008351613a1b818460208801614643565b6001600160f81b03199390931691909201908152682f9e17ba39b830b71f60b91b6001820152600a0192915050565b60008351613a5c818460208801614643565b80830190507f3c7465787420783d2732352720793d2732302720666f6e742d66616d696c793d81527f2773657269662720666f6e742d73697a653d273332272066696c6c3d2723000060208201528351613abd81603e840160208801614643565b6213901f60e91b603e9290910191820152604101949350505050565b60008251613aeb818460208701614643565b7f2265787465726e616c5f75726c223a202268747470733a2f2f737469636b796e92019182525067199d0b98dbdb488b60c21b6020820152602801919050565b60008351613b3d818460208801614643565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351613b83816022840160208801614643565b61088b60f21b60229290910191820152602401949350505050565b60008251613bb0818460208701614643565b671e17ba39b830b71f60c11b920191825250600801919050565b60008351613bdc818460208801614643565b80830190507f7b2274726169745f74797065223a224269727468646179222c2276616c7565228152601d60f91b60208201528351613c21816021840160208801614643565b7f2c22646973706c61795f74797065223a2264617465227d2c000000000000000060219290910191820152603901949350505050565b60008351613c69818460208801614643565b7f7b2274726169745f74797065223a22466f6e74222c2276616c7565223a2223009083019081528351613ca381601f840160208801614643565b62089f4b60ea1b601f9290910191820152602201949350505050565b60008351613cd1818460208801614643565b80830190507f3c7465787420783d2732352720793d2732352720666f6e742d66616d696c793d81527f2756657264616e612720666f6e742d73697a653d273134272066696c6c3d272360208201528351613d32816040840160208801614643565b6213901f60e91b60409290910191820152604301949350505050565b60008351613d60818460208801614643565b70044c6e4cac2e8cac8bec4f24474404460f607b1b9083019081528351613d8e816011840160208801614643565b61088b60f21b60119290910191820152601301949350505050565b60008351613dbb818460208801614643565b80830190507f7b2274726169745f74797065223a224261636b67726f756e64222c2276616c7581526465223a222360d81b60208201528351613e04816025840160208801614643565b62089f4b60ea1b60259290910191820152602801949350505050565b60008351613e32818460208801614643565b80830190507f3c726563742077696474683d273130383027206865696768743d2731303830278152672066696c6c3d272360c01b60208201528351613e7e816028840160208801614643565b6213979f60e91b60289290910191820152602b01949350505050565b60008251613eac818460208701614643565b74089b985b59488e880894dd1a58dade48139195088b605a1b920191825250601501919050565b60008251613ee5818460208701614643565b661e17ba32bc3a1f60c91b920191825250600701919050565b60008351613f10818460208801614643565b6b1136b2b9b9b0b3b2911d101160a11b9083019081528351613f3981600c840160208801614643565b61227d60f01b600c9290910191820152600e01949350505050565b60008251613f66818460208701614643565b6e2261747472696275746573223a205b60881b920191825250600f01919050565b60008251613f99818460208701614643565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b60008351613fda818460208801614643565b80830190507f7b2274726169745f74797065223a224f726967696e222c2276616c7565223a22815261060f60f31b60208201528351614020816022840160208801614643565b63089f574b60e21b60229290910191820152602601949350505050565b6000825161404f818460208701614643565b7f22646973706c61794e616d65223a2022537469636b79204e4654222c00000000920191825250601c01919050565b60008251614090818460208701614643565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d2736313427206865696768743d2736313427602082015261101f60f11b6040820152604201919050565b60008351614102818460208801614643565b6709eeedccae44060f60c31b9083019081528351614127816008840160208801614643565b661e17ba32bc3a1f60c91b60089290910191820152600f01949350505050565b60008251614159818460208701614643565b7f226465736372697074696f6e223a202254686973206973206120537469636b799201918252507f204e46542e2068747470733a2f2f737469636b796e66742e636f6d20222c00006020820152603e01919050565b600082516141c0818460208701614643565b651e17b9bb339f60d11b920191825250600601919050565b600082516141ea818460208701614643565b7f3c747370616e20783d273135272064793d27312e32656d27203e000000000000920191825250601a01919050565b6000825161422b818460208701614643565b7f226465736372697074696f6e223a2022596f75207265636569766564206120539201918252507f7469636b79204e46542c206d6f726520696e666f2068747470733a2f2f73746960208201526c18dade5b999d0b98dbdb48088b609a1b6040820152604d01919050565b600083516142a8818460208801614643565b8351908301906142bc818360208801614643565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906142f89083018461396e565b9695505050505050565b60208082526000906080830183820185845b600381101561434357601f1987850301835261433184835161396e565b93509184019190840190600101614314565b50919695505050505050565b600060208252612549602083018461396e565b6020808252600b908201526a3bb937b7339037bbb732b960a91b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601290820152711ddc9bdb99c818dbdb1bdc88199bdc9b585d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561444d5761444d6146d9565b500190565b600060ff821660ff84168060ff0382111561446f5761446f6146d9565b019392505050565b600082614486576144866146ef565b500490565b600060ff83168061449e5761449e6146ef565b8060ff84160491505092915050565b80825b60018086116144bf57506144ea565b8187048211156144d1576144d16146d9565b808616156144de57918102915b9490941c9380026144b0565b94509492505050565b6000612549600019848460008261450c57506001612549565b8161451957506000612549565b816001811461452f576002811461453957614566565b6001915050612549565b60ff84111561454a5761454a6146d9565b6001841b915084821115614560576145606146d9565b50612549565b5060208310610133831016604e8410600b8410161715614599575081810a83811115614594576145946146d9565b612549565b6145a684848460016144ad565b8086048211156145b8576145b86146d9565b02949350505050565b60008160001904831182151516156145db576145db6146d9565b500290565b600060ff821660ff84168160ff0481118215151615614601576146016146d9565b029392505050565b60008282101561461b5761461b6146d9565b500390565b600060ff821660ff84168082101561463a5761463a6146d9565b90039392505050565b60005b8381101561465e578181015183820152602001614646565b838111156112865750506000910152565b60028104600182168061468357607f821691505b602082108114156146a457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156146be576146be6146d9565b5060010190565b6000826146d4576146d46146ef565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113e957600080fd5b6001600160e01b0319811681146113e957600080fdfea2646970667358221220e4ea1c236a14cc7de05146a7f9a8772828e5d0e696761caced0c6e6a54e5bd8464736f6c6343000802003300000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

Deployed Bytecode

0x6080604052600436106102815760003560e01c80636352211e1161014f578063c8465752116100c1578063e97144481161007a578063e97144481461074d578063e985e9c514610783578063eca81d42146107a3578063f2fde38b146107c3578063f4373a84146107e3578063f49bb76b1461081957610288565b8063c846575214610697578063c87b56dd146106b7578063cd7c0326146106d7578063d547cfb7146106f7578063d599161514610718578063d5abeb011461073857610288565b80638da5cb5b116101135780638da5cb5b146105de57806390edbfee1461060257806395d89b4114610622578063a22cb46514610637578063aec20ddf14610657578063b88d4fde1461067757610288565b80636352211e1461055e57806370a082311461057e578063715018a61461059e578063747fd371146105b35780637ecc2b56146105c957610288565b80632f745c59116101f35780634add18b9116101ac5780634add18b9146104ba5780634f6ccce7146104d057806351cff8d9146104f0578063583db379146105105780635c975abb14610530578063603233d51461054857610288565b80632f745c59146104055780633a2c4862146104255780633ccfd60b1461044557806342842e0e1461045a57806348b41bbb1461047a57806348b8b9b11461049a57610288565b80630c129c36116102455780630c129c361461034c57806314eb4e811461037957806318160ddd1461039d578063181f14c0146103b25780631b6379f3146103c557806323b872dd146103e557610288565b806301ffc9a71461028a57806306fdde03146102bf578063081812fc146102e1578063095ea7b3146103195780630aa3ae7e1461033957610288565b3661028857005b005b34801561029657600080fd5b506102aa6102a53660046138a1565b610839565b60405190151581526020015b60405180910390f35b3480156102cb57600080fd5b506102d461084c565b6040516102b6919061434f565b3480156102ed57600080fd5b506103016102fc366004613956565b6108de565b6040516001600160a01b0390911681526020016102b6565b34801561032557600080fd5b50610288610334366004613829565b610978565b610288610347366004613829565b610a8e565b34801561035857600080fd5b5061036c610367366004613956565b610b60565b6040516102b69190614302565b34801561038557600080fd5b5061038f600e5481565b6040519081526020016102b6565b3480156103a957600080fd5b5060085461038f565b6102886103c03660046138f5565b610d70565b3480156103d157600080fd5b5061038f6103e0366004613829565b610fb3565b3480156103f157600080fd5b506102886104003660046136c8565b610fe4565b34801561041157600080fd5b5061038f610420366004613829565b61128c565b34801561043157600080fd5b5061038f610440366004613956565b611325565b34801561045157600080fd5b5061028861138d565b34801561046657600080fd5b506102886104753660046136c8565b6113ec565b34801561048657600080fd5b50610288610495366004613674565b6113f7565b3480156104a657600080fd5b5061038f6104b53660046138f5565b611449565b3480156104c657600080fd5b5061038f600d5481565b3480156104dc57600080fd5b5061038f6104eb366004613956565b61147c565b3480156104fc57600080fd5b5061028861050b366004613674565b61151d565b34801561051c57600080fd5b5061028861052b366004613956565b611586565b34801561053c57600080fd5b50600b5460ff166102aa565b34801561055457600080fd5b5061038f60105481565b34801561056a57600080fd5b50610301610579366004613956565b6115bb565b34801561058a57600080fd5b5061038f610599366004613674565b611632565b3480156105aa57600080fd5b50610288611676565b3480156105bf57600080fd5b5061038f600f5481565b3480156105d557600080fd5b5061038f6116a8565b3480156105ea57600080fd5b50610301600b5461010090046001600160a01b031690565b34801561060e57600080fd5b5061028861061d366004613956565b6116c6565b34801561062e57600080fd5b506102d4611709565b34801561064357600080fd5b50610288610652366004613785565b611718565b34801561066357600080fd5b50610288610672366004613956565b6117ea565b34801561068357600080fd5b50610288610692366004613708565b61181f565b3480156106a357600080fd5b506102aa6106b23660046138f5565b61182a565b3480156106c357600080fd5b506102d46106d2366004613956565b61189a565b3480156106e357600080fd5b50601754610301906001600160a01b031681565b34801561070357600080fd5b506040805160208101909152600081526102d4565b34801561072457600080fd5b5061038f610733366004613829565b611d08565b34801561074457600080fd5b50600e5461038f565b34801561075957600080fd5b5061038f610768366004613674565b6001600160a01b031660009081526016602052604090205490565b34801561078f57600080fd5b506102aa61079e366004613690565b611d24565b3480156107af57600080fd5b506102886107be3660046137b6565b611df4565b3480156107cf57600080fd5b506102886107de366004613674565b612073565b3480156107ef57600080fd5b5061038f6107fe366004613674565b6001600160a01b031660009081526015602052604090205490565b34801561082557600080fd5b50610288610834366004613854565b612111565b6000610844826124aa565b90505b919050565b60606000805461085b9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546108879061466f565b80156108d45780601f106108a9576101008083540402835291602001916108d4565b820191906000526020600020905b8154815290600101906020018083116108b757829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b031661095c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610983826115bb565b9050806001600160a01b0316836001600160a01b031614156109f15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610953565b336001600160a01b0382161480610a0d5750610a0d813361079e565b610a7f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610953565b610a8983836124cf565b505050565b6001600160a01b038216610ab45760405162461bcd60e51b815260040161095390614362565b600f54341015610af65760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081b595d609a1b6044820152606401610953565b6000818152601260205260409020600101546001600160a01b03838116911614610b325760405162461bcd60e51b815260040161095390614362565b600d54600082815260136020526040902054610b4d9161253d565b6000918252601360205260409091205550565b610b6861351f565b6000828152601260205260409020600101546001600160a01b0316610bbf5760405162461bcd60e51b815260206004820152600d60248201526c111bd95cdb89dd08195e1a5cdd609a1b6044820152606401610953565b60008281526012602052604090206002018054610bdb9061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c079061466f565b8015610c545780601f10610c2957610100808354040283529160200191610c54565b820191906000526020600020905b815481529060010190602001808311610c3757829003601f168201915b505050505081600060038110610c7a57634e487b7160e01b600052603260045260246000fd5b6020020181905250601260008381526020019081526020016000206003018054610ca39061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054610ccf9061466f565b8015610d1c5780601f10610cf157610100808354040283529160200191610d1c565b820191906000526020600020905b815481529060010190602001808311610cff57829003601f168201915b505050505081600160038110610d4257634e487b7160e01b600052603260045260246000fd5b6020020181905250610d666013600084815260200190815260200160002054612550565b6040820152919050565b600e5460115410610dae5760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610953565b601054341015610df05760405162461bcd60e51b815260206004820152600d60248201526c141c9a58d9481b9bdd081b595d609a1b6044820152606401610953565b6000610dfc8383611449565b60008181526014602052604090205490915060ff1615610e5a5760405162461bcd60e51b8152602060048201526019602482015278436f6d62696e6174696f6e206e6f7420617661696c61626c6560381b6044820152606401610953565b6000610e65600c5490565b905060006040518060a00160405280838152602001336001600160a01b03168152602001868152602001858152602001604051806020016040528060008152508152509050610eb4338361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392610f09926002850192910190613546565b5060608201518051610f25916003840191602090910190613546565b5060808201518051610f41916004840191602090910190613546565b5050600d5460008481526013602090815260408083209390935586825260148152828220805460ff191660019081179091553383526015825292822080548085018255908352912001849055601154610f9b92509061253d565b601155610fac600c80546001019055565b5050505050565b60156020528160005260406000208181548110610fcf57600080fd5b90600052602060002001600091509150505481565b610fee3382612685565b6110545760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608401610953565b600081815260126020526040812060040180546110709061466f565b905011156110b85760405162461bcd60e51b815260206004820152601560248201527463616e742073656c6c20737469636b79206e6f746560581b6044820152606401610953565b60005b6001600160a01b038416600090815260156020526040902054811015611286576001600160a01b038416600090815260156020526040902080548391908390811061111657634e487b7160e01b600052603260045260246000fd5b90600052602060002001541415611274576000828152601260209081526040808320600190810180546001600160a01b0319166001600160a01b03898116919091179091558816845260159092529091208054909161117491614609565b8154811061119257634e487b7160e01b600052603260045260246000fd5b906000526020600020015460156000866001600160a01b03166001600160a01b0316815260200190815260200160002082815481106111e157634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092556001600160a01b038616815260159091526040902080548061122457634e487b7160e01b600052603160045260246000fd5b6000828152602080822083016000199081018390559092019092556001600160a01b03851682526015815260408220805460018101825590835291200182905561126f848484612754565b611286565b8061127e816146aa565b9150506110bb565b50505050565b6000611297836128ff565b82106112f95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610953565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b6000818152601260205260408120600101546001600160a01b0316331461137a5760405162461bcd60e51b81526020600482015260096024820152682737ba1037bbb732b960b91b6044820152606401610953565b5060009081526013602052604090205490565b600b546001600160a01b036101009091041633146113bd5760405162461bcd60e51b815260040161095390614405565b60405133904780156108fc02916000818181858888f193505050501580156113e9573d6000803e3d6000fd5b50565b610a89838383610fe4565b600b546001600160a01b036101009091041633146114275760405162461bcd60e51b815260040161095390614405565b601780546001600160a01b0319166001600160a01b0392909216919091179055565b6000828260405160200161145e929190614296565b60405160208183030381529060405280519060200120905092915050565b600061148760085490565b82106114ea5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610953565b6008828154811061150b57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b0361010090910416331461154d5760405162461bcd60e51b815260040161095390614405565b6040516001600160a01b038216904780156108fc02916000818181858888f19350505050158015611582573d6000803e3d6000fd5b5050565b600b546001600160a01b036101009091041633146115b65760405162461bcd60e51b815260040161095390614405565b601055565b6000818152600260205260408120546001600160a01b0316806108445760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610953565b60006001600160a01b03821661165a5760405162461bcd60e51b815260040161095390614362565b506001600160a01b031660009081526015602052604090205490565b600b546001600160a01b036101009091041633146116a65760405162461bcd60e51b815260040161095390614405565b565b60006116c1601154600e5461298690919063ffffffff16565b905090565b600b546001600160a01b036101009091041633146116f65760405162461bcd60e51b815260040161095390614405565b600e54611703908261253d565b600e5550565b60606001805461085b9061466f565b6001600160a01b0382163314156117715760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610953565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117de911515815260200190565b60405180910390a35050565b600b546001600160a01b0361010090910416331461181a5760405162461bcd60e51b815260040161095390614405565b600f55565b611286848484610fe4565b600060068351111561184e5760405162461bcd60e51b8152600401610953906143d9565b6006825111156118705760405162461bcd60e51b8152600401610953906143d9565b6014600061187e8585611449565b815260208101919091526040016000205460ff16159392505050565b6000818152601260209081526040808320815160a0810183528154815260018201546001600160a01b03169381019390935260028101805460609586959094909392908401916118e99061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546119159061466f565b80156119625780601f1061193757610100808354040283529160200191611962565b820191906000526020600020905b81548152906001019060200180831161194557829003601f168201915b5050505050815260200160038201805461197b9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546119a79061466f565b80156119f45780601f106119c9576101008083540402835291602001916119f4565b820191906000526020600020905b8154815290600101906020018083116119d757829003601f168201915b50505050508152602001600482018054611a0d9061466f565b80601f0160208091040260200160405190810160405280929190818152602001828054611a399061466f565b8015611a865780601f10611a5b57610100808354040283529160200191611a86565b820191906000526020600020905b815481529060010190602001808311611a6957829003601f168201915b50505050508152505090506000611aa08260200151612992565b905082604051602001611ab39190613f87565b604051602081830303815290604052925060008260800151511115611b3d5782604051602001611ae39190613e9a565b604051602081830303815290604052925082604051602001611b05919061403d565b604051602081830303815290604052925082604051602001611b279190614219565b6040516020818303038152906040529250611ba4565b82604051602001611b4e9190613e9a565b604051602081830303815290604052925082604051602001611b70919061403d565b604051602081830303815290604052925082604051602001611b929190614147565b60405160208183030381529060405292505b8281604051602001611bb7929190613d4e565b604051602081830303815290604052925082604051602001611bd99190613ad9565b604051602081830303815290604052925082611bf483612af5565b604051602001611c05929190613b2b565b604051602081830303815290604052925082604051602001611c279190613f54565b604051602081830303815290604052925082611c4242612550565b604051602001611c53929190613bca565b6040516020818303038152906040529250828260400151604051602001611c7b929190613da9565b6040516020818303038152906040529250828260600151604051602001611ca3929190613c57565b60405160208183030381529060405292508281604051602001611cc7929190613fc8565b6040516020818303038152906040529250828260800151604051602001611cef929190613efe565b60408051808303601f1901815291905295945050505050565b60166020528160005260406000208181548110610fcf57600080fd5b60175460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015611d7157600080fd5b505afa158015611d85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611da991906138d9565b6001600160a01b03161415611dc257600191505061131f565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b600b546001600160a01b03610100909104163314611e245760405162461bcd60e51b815260040161095390614405565b600e5460115410611e625760405162461bcd60e51b815260206004820152600860248201526714dbdb190813dd5d60c21b6044820152606401610953565b600682511115611e845760405162461bcd60e51b8152600401610953906143d9565b600681511115611ea65760405162461bcd60e51b8152600401610953906143d9565b6000611eb28383611449565b60008181526014602052604090205490915060ff1615611f105760405162461bcd60e51b8152602060048201526019602482015278436f6d62696e6174696f6e206e6f7420617661696c61626c6560381b6044820152606401610953565b6000611f1b600c5490565b905060006040518060a00160405280838152602001876001600160a01b03168152602001868152602001858152602001604051806020016040528060008152508152509050611f6a868361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392611fbf926002850192910190613546565b5060608201518051611fdb916003840191602090910190613546565b5060808201518051611ff7916004840191602090910190613546565b5050600d5460008481526013602090815260408083209390935586825260148152828220805460ff191660019081179091556001600160a01b038b168352601582529282208054808501825590835291200184905560115461205a92509061253d565b60115561206b600c80546001019055565b505050505050565b600b546001600160a01b036101009091041633146120a35760405162461bcd60e51b815260040161095390614405565b6001600160a01b0381166121085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610953565b6113e981612edc565b6000828152601260205260409020600101546001600160a01b0316331461214a5760405162461bcd60e51b815260040161095390614362565b60008281526013602052604090205461219b5760405162461bcd60e51b8152602060048201526013602482015272139bdd195cc814dc195b9d0b881c99599a5b1b606a1b6044820152606401610953565b6101008151106121dd5760405162461bcd60e51b815260206004820152600d60248201526c4c61726765206d65737361676560981b6044820152606401610953565b60006121e8600c5490565b905060006040518060a00160405280838152602001336001600160a01b0316815260200160126000878152602001908152602001600020600201805461222d9061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546122599061466f565b80156122a65780601f1061227b576101008083540402835291602001916122a6565b820191906000526020600020905b81548152906001019060200180831161228957829003601f168201915b505050505081526020016012600087815260200190815260200160002060030180546122d19061466f565b80601f01602080910402602001604051908101604052809291908181526020018280546122fd9061466f565b801561234a5780601f1061231f5761010080835404028352916020019161234a565b820191906000526020600020905b81548152906001019060200180831161232d57829003601f168201915b5050509183525050602090810185905233600090815260168252604080822080546001810182559083528383200186905587825260139092522054909150156123b7576000848152601360205260409020546123a7906001612986565b6000858152601360205260409020555b6123c1858361266b565b60008281526012602090815260409182902083518155838201516001820180546001600160a01b0319166001600160a01b03909216919091179055918301518051849392612416926002850192910190613546565b5060608201518051612432916003840191602090910190613546565b506080820151805161244e916004840191602090910190613546565b5050600c8054600101905550604080513381526001600160a01b03871660208201529081018390527f85fbf648628e7ff68eebc956395ca65d0161d7d2cb700bad182ad8e0201a4ca19060600160405180910390a15050505050565b60006001600160e01b0319821663780e9d6360e01b1480610844575061084482612f36565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612504826115bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612549828461443a565b9392505050565b60608161257557506040805180820190915260018152600360fc1b6020820152610847565b8160005b811561259f5780612589816146aa565b91506125989050600a83614477565b9150612579565b60008167ffffffffffffffff8111156125c857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156125f2576020820181803683370190505b5090505b8415611dec57612607600183614609565b9150612614600a866146c5565b61261f90603061443a565b60f81b81838151811061264257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612664600a86614477565b94506125f6565b611582828260405180602001604052806000815250612f86565b6000818152600260205260408120546001600160a01b03166126fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610953565b6000612709836115bb565b9050806001600160a01b0316846001600160a01b031614806127445750836001600160a01b0316612739846108de565b6001600160a01b0316145b80611dec5750611dec8185611d24565b826001600160a01b0316612767826115bb565b6001600160a01b0316146127cf5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610953565b6001600160a01b0382166128315760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610953565b61283c838383612fb9565b6128476000826124cf565b6001600160a01b0383166000908152600360205260408120805460019290612870908490614609565b90915550506001600160a01b038216600090815260036020526040812080546001929061289e90849061443a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b03821661296a5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610953565b506001600160a01b031660009081526003602052604090205490565b60006125498284614609565b60408051602880825260608281019093526000919060208201818036833701905050905060005b6014811015612aee5760006129cf826013614609565b6129da9060086145c1565b6129e59060026144f3565b6129f8906001600160a01b038716614477565b60f81b9050600060108260f81c612a0f919061448b565b60f81b905060008160f81c6010612a2691906145e0565b8360f81c612a349190614620565b60f81b9050612a428261300a565b85612a4e8660026145c1565b81518110612a6c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612a8c8161300a565b85612a988660026145c1565b612aa390600161443a565b81518110612ac157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505050508080612ae6906146aa565b9150506129b9565b5092915050565b606080604051602001612b08919061407e565b6040516020818303038152906040529050808260400151604051602001612b30929190613e20565b60408051601f198184030181529190526080830151805191925090600160fd1b90601160f91b90602760f81b90601760fa1b9015612e58576060870151604051612b7e918891602001613a4a565b604051602081830303815290604052955085604051602001612ba091906141d8565b604051602081830303815290604052955060005b876080015151811015612e0e57836001600160f81b031916868281518110612bec57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916141580612c405750826001600160f81b031916868281518110612c2e57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614155b80612c835750816001600160f81b031916868281518110612c7157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614155b15612dfc57612c93816023613041565b158015612ca05750600081115b15612dad57846001600160f81b031916868281518110612cd057634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614612d375786868281518110612d0557634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612d21929190613a09565b6040516020818303038152906040529650612d86565b86868281518110612d5857634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612d749291906139c9565b60405160208183030381529060405296505b86604051602001612d9791906141d8565b6040516020818303038152906040529650612dfc565b86868281518110612dce57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b604051602001612dea92919061399a565b60405160208183030381529060405296505b80612e06816146aa565b915050612bb4565b5085604051602001612e209190613b9e565b604051602081830303815290604052955085604051602001612e429190613ed3565b6040516020818303038152906040529550612eb0565b6060870151604051612e6e918891602001613cbf565b604051602081830303815290604052955085612e8d8860200151612992565b604051602001612e9e9291906140f0565b60405160208183030381529060405295505b85604051602001612ec191906141ae565b60405160208183030381529060405295505050505050919050565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160e01b031982166380ac58cd60e01b1480612f6757506001600160e01b03198216635b5e139f60e01b145b8061084457506301ffc9a760e01b6001600160e01b0319831614610844565b612f90838361304d565b612f9d600084848461319b565b610a895760405162461bcd60e51b815260040161095390614387565b600b5460ff1615612fff5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610953565b610a898383836132a8565b6000600a60f883901c10156130325761302860f883901c6030614452565b60f81b9050610847565b61302860f883901c6057614452565b600061254982846146c5565b6001600160a01b0382166130a35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610953565b6000818152600260205260409020546001600160a01b0316156131085760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610953565b61311460008383612fb9565b6001600160a01b038216600090815260036020526040812080546001929061313d90849061443a565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b1561329d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131df9033908990889088906004016142c5565b602060405180830381600087803b1580156131f957600080fd5b505af1925050508015613229575060408051601f3d908101601f19168201909252613226918101906138bd565b60015b613283573d808015613257576040519150601f19603f3d011682016040523d82523d6000602084013e61325c565b606091505b50805161327b5760405162461bcd60e51b815260040161095390614387565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611dec565b506001949350505050565b6001600160a01b038316613303576132fe81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613326565b816001600160a01b0316836001600160a01b031614613326576133268382613365565b6001600160a01b0382166133425761333d81613402565b610a89565b826001600160a01b0316826001600160a01b031614610a8957610a8982826134db565b60006001613372846128ff565b61337c9190614609565b6000838152600760205260409020549091508082146133cf576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061341490600190614609565b6000838152600960205260408120546008805493945090928490811061344a57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061347957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806134bf57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006134e6836128ff565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b60405180606001604052806003905b606081526020019060019003908161352e5790505090565b8280546135529061466f565b90600052602060002090601f01602090048101928261357457600085556135ba565b82601f1061358d57805160ff19168380011785556135ba565b828001600101855582156135ba579182015b828111156135ba57825182559160200191906001019061359f565b506135c69291506135ca565b5090565b5b808211156135c657600081556001016135cb565b600067ffffffffffffffff808411156135fa576135fa614705565b604051601f8501601f19908116603f0116810190828211818310171561362257613622614705565b8160405280935085815286868601111561363b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112613665578081fd5b612549838335602085016135df565b600060208284031215613685578081fd5b81356125498161471b565b600080604083850312156136a2578081fd5b82356136ad8161471b565b915060208301356136bd8161471b565b809150509250929050565b6000806000606084860312156136dc578081fd5b83356136e78161471b565b925060208401356136f78161471b565b929592945050506040919091013590565b6000806000806080858703121561371d578081fd5b84356137288161471b565b935060208501356137388161471b565b925060408501359150606085013567ffffffffffffffff81111561375a578182fd5b8501601f8101871361376a578182fd5b613779878235602084016135df565b91505092959194509250565b60008060408385031215613797578182fd5b82356137a28161471b565b9150602083013580151581146136bd578182fd5b6000806000606084860312156137ca578283fd5b83356137d58161471b565b9250602084013567ffffffffffffffff808211156137f1578384fd5b6137fd87838801613655565b93506040860135915080821115613812578283fd5b5061381f86828701613655565b9150509250925092565b6000806040838503121561383b578182fd5b82356138468161471b565b946020939093013593505050565b600080600060608486031215613868578283fd5b83356138738161471b565b925060208401359150604084013567ffffffffffffffff811115613895578182fd5b61381f86828701613655565b6000602082840312156138b2578081fd5b813561254981614730565b6000602082840312156138ce578081fd5b815161254981614730565b6000602082840312156138ea578081fd5b81516125498161471b565b60008060408385031215613907578182fd5b823567ffffffffffffffff8082111561391e578384fd5b61392a86838701613655565b9350602085013591508082111561393f578283fd5b5061394c85828601613655565b9150509250929050565b600060208284031215613967578081fd5b5035919050565b60008151808452613986816020860160208601614643565b601f01601f19169290920160200192915050565b600083516139ac818460208801614643565b6001600160f81b0319939093169190920190815260010192915050565b600083516139db818460208801614643565b6001600160f81b03199390931691909201908152671e17ba39b830b71f60c11b600182015260090192915050565b60008351613a1b818460208801614643565b6001600160f81b03199390931691909201908152682f9e17ba39b830b71f60b91b6001820152600a0192915050565b60008351613a5c818460208801614643565b80830190507f3c7465787420783d2732352720793d2732302720666f6e742d66616d696c793d81527f2773657269662720666f6e742d73697a653d273332272066696c6c3d2723000060208201528351613abd81603e840160208801614643565b6213901f60e91b603e9290910191820152604101949350505050565b60008251613aeb818460208701614643565b7f2265787465726e616c5f75726c223a202268747470733a2f2f737469636b796e92019182525067199d0b98dbdb488b60c21b6020820152602801919050565b60008351613b3d818460208801614643565b80830190507f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b7574668152610e0b60f21b60208201528351613b83816022840160208801614643565b61088b60f21b60229290910191820152602401949350505050565b60008251613bb0818460208701614643565b671e17ba39b830b71f60c11b920191825250600801919050565b60008351613bdc818460208801614643565b80830190507f7b2274726169745f74797065223a224269727468646179222c2276616c7565228152601d60f91b60208201528351613c21816021840160208801614643565b7f2c22646973706c61795f74797065223a2264617465227d2c000000000000000060219290910191820152603901949350505050565b60008351613c69818460208801614643565b7f7b2274726169745f74797065223a22466f6e74222c2276616c7565223a2223009083019081528351613ca381601f840160208801614643565b62089f4b60ea1b601f9290910191820152602201949350505050565b60008351613cd1818460208801614643565b80830190507f3c7465787420783d2732352720793d2732352720666f6e742d66616d696c793d81527f2756657264616e612720666f6e742d73697a653d273134272066696c6c3d272360208201528351613d32816040840160208801614643565b6213901f60e91b60409290910191820152604301949350505050565b60008351613d60818460208801614643565b70044c6e4cac2e8cac8bec4f24474404460f607b1b9083019081528351613d8e816011840160208801614643565b61088b60f21b60119290910191820152601301949350505050565b60008351613dbb818460208801614643565b80830190507f7b2274726169745f74797065223a224261636b67726f756e64222c2276616c7581526465223a222360d81b60208201528351613e04816025840160208801614643565b62089f4b60ea1b60259290910191820152602801949350505050565b60008351613e32818460208801614643565b80830190507f3c726563742077696474683d273130383027206865696768743d2731303830278152672066696c6c3d272360c01b60208201528351613e7e816028840160208801614643565b6213979f60e91b60289290910191820152602b01949350505050565b60008251613eac818460208701614643565b74089b985b59488e880894dd1a58dade48139195088b605a1b920191825250601501919050565b60008251613ee5818460208701614643565b661e17ba32bc3a1f60c91b920191825250600701919050565b60008351613f10818460208801614643565b6b1136b2b9b9b0b3b2911d101160a11b9083019081528351613f3981600c840160208801614643565b61227d60f01b600c9290910191820152600e01949350505050565b60008251613f66818460208701614643565b6e2261747472696275746573223a205b60881b920191825250600f01919050565b60008251613f99818460208701614643565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c7b00000000920191825250601c01919050565b60008351613fda818460208801614643565b80830190507f7b2274726169745f74797065223a224f726967696e222c2276616c7565223a22815261060f60f31b60208201528351614020816022840160208801614643565b63089f574b60e21b60229290910191820152602601949350505050565b6000825161404f818460208701614643565b7f22646973706c61794e616d65223a2022537469636b79204e4654222c00000000920191825250601c01919050565b60008251614090818460208701614643565b7f3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f32309201918252507f30302f737667272077696474683d2736313427206865696768743d2736313427602082015261101f60f11b6040820152604201919050565b60008351614102818460208801614643565b6709eeedccae44060f60c31b9083019081528351614127816008840160208801614643565b661e17ba32bc3a1f60c91b60089290910191820152600f01949350505050565b60008251614159818460208701614643565b7f226465736372697074696f6e223a202254686973206973206120537469636b799201918252507f204e46542e2068747470733a2f2f737469636b796e66742e636f6d20222c00006020820152603e01919050565b600082516141c0818460208701614643565b651e17b9bb339f60d11b920191825250600601919050565b600082516141ea818460208701614643565b7f3c747370616e20783d273135272064793d27312e32656d27203e000000000000920191825250601a01919050565b6000825161422b818460208701614643565b7f226465736372697074696f6e223a2022596f75207265636569766564206120539201918252507f7469636b79204e46542c206d6f726520696e666f2068747470733a2f2f73746960208201526c18dade5b999d0b98dbdb48088b609a1b6040820152604d01919050565b600083516142a8818460208801614643565b8351908301906142bc818360208801614643565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906142f89083018461396e565b9695505050505050565b60208082526000906080830183820185845b600381101561434357601f1987850301835261433184835161396e565b93509184019190840190600101614314565b50919695505050505050565b600060208252612549602083018461396e565b6020808252600b908201526a3bb937b7339037bbb732b960a91b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601290820152711ddc9bdb99c818dbdb1bdc88199bdc9b585d60721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561444d5761444d6146d9565b500190565b600060ff821660ff84168060ff0382111561446f5761446f6146d9565b019392505050565b600082614486576144866146ef565b500490565b600060ff83168061449e5761449e6146ef565b8060ff84160491505092915050565b80825b60018086116144bf57506144ea565b8187048211156144d1576144d16146d9565b808616156144de57918102915b9490941c9380026144b0565b94509492505050565b6000612549600019848460008261450c57506001612549565b8161451957506000612549565b816001811461452f576002811461453957614566565b6001915050612549565b60ff84111561454a5761454a6146d9565b6001841b915084821115614560576145606146d9565b50612549565b5060208310610133831016604e8410600b8410161715614599575081810a83811115614594576145946146d9565b612549565b6145a684848460016144ad565b8086048211156145b8576145b86146d9565b02949350505050565b60008160001904831182151516156145db576145db6146d9565b500290565b600060ff821660ff84168160ff0481118215151615614601576146016146d9565b029392505050565b60008282101561461b5761461b6146d9565b500390565b600060ff821660ff84168082101561463a5761463a6146d9565b90039392505050565b60005b8381101561465e578181015183820152602001614646565b838111156112865750506000910152565b60028104600182168061468357607f821691505b602082108114156146a457634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156146be576146be6146d9565b5060010190565b6000826146d4576146d46146ef565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146113e957600080fd5b6001600160e01b0319811681146113e957600080fdfea2646970667358221220e4ea1c236a14cc7de05146a7f9a8772828e5d0e696761caced0c6e6a54e5bd8464736f6c63430008020033

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

00000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000006f05b59d3b20000000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1

-----Decoded View---------------
Arg [0] : _stnBkMaxSupply (uint256): 512
Arg [1] : _stnLimit (uint256): 24
Arg [2] : _stnBkPremiumPrice (uint256): 100000000000000000
Arg [3] : _stnRefillPrice (uint256): 500000000000000000
Arg [4] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 00000000000000000000000000000000000000000000000006f05b59d3b20000
Arg [4] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1


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.