ETH Price: $3,941.89 (+7.41%)

Token

Strokes by gmi.sh (STROKE)
 

Overview

Max Total Supply

161 STROKE

Holders

132

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 STROKE
0xd03d632f113770a9de436c0d536f6942214ab084
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:
Strokes

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Strokes.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "base64-sol/base64.sol";

interface ProxyRegistry {
  function proxies(address) external view returns (address);
}

contract Strokes is ERC721, IERC2981, Ownable {
    using ECDSA for bytes32;
    using Strings for uint256;
    using Strings for uint24;

    ProxyRegistry public immutable proxyRegistry;
    uint256 public totalSupply;
    mapping(uint256 => uint24[10]) public seeds;
    mapping(address => uint256) private _minted;
    string public gatewayURI;
    string public CID;
    string public CIDPreview;
    bool public changedCIDPreview;
    bool public openedPublic;

    constructor(address _proxyRegistry, string memory _gatewayURI, string memory _CID, string memory _CIDPreview) ERC721("Strokes by gmi.sh", "STROKE") {
      proxyRegistry = ProxyRegistry(_proxyRegistry);
      gatewayURI = _gatewayURI;
      CID = _CID;
      CIDPreview = _CIDPreview;
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, IERC165) returns (bool) {
      return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    function contractURI() external view returns (string memory) {
      return string(abi.encodePacked(gatewayURI, CID, "/metadata.json"));
    }

    function isApprovedForAll(address owner, address operator) override(ERC721) public view returns (bool) {
      if (proxyRegistry.proxies(owner) == operator) return true;
      return super.isApprovedForAll(owner, operator);
    }

    function openPublic() external onlyOwner {
      openedPublic = true;
    }

    function updateCIDPreview(string memory _CIDPreview) external onlyOwner {
      require(!changedCIDPreview); //update only once
      changedCIDPreview = true;
      CIDPreview = _CIDPreview;
    }


    /**
     * @dev Updates gateway URI if Pinata has stopped working
     */
    function setGatewayURI(string calldata _gatewayURI) external onlyOwner {
      gatewayURI = _gatewayURI;
    }

    function tokenURI(uint256 tokenId) override public view returns (string memory) {
      require(_exists(tokenId), "URI query for nonexistent token");
      uint24[10] memory seed = seeds[tokenId];
      string memory tokenString = tokenId.toString();
      bytes memory seedString;
      for (uint256 i = 0; i < 10; i++) {
        seedString = abi.encodePacked(seedString, i == 0 ? '' : ',', seed[i].toString());
      }
      bytes memory url = abi.encodePacked(gatewayURI, CID, '/?seed=', seedString, '&id=', tokenString);
      return string(
        abi.encodePacked(
          'data:application/json;base64,',
          Base64.encode(
            abi.encodePacked('{"name":"Stroke #', tokenString, ' by gmi.sh", "description":"Stroke #', tokenString, ' is a unique on-chain abstract art piece by [gmi.sh](https://gmi.sh).", "animation_url": "', url, '", "image": "', gatewayURI, CIDPreview, '/', tokenString, '.jpg"}')
          )
        )
     );
    }

    /**
     * @dev Generate SVG fully on-chain
     */
    function generateSVG(uint256 tokenId) public view returns (string memory) {
      require(_exists(tokenId), "URI query for nonexistent token");
      uint24[10] memory seed = seeds[tokenId];
      bytes memory svg = abi.encodePacked(
        '<svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
        '<style>',
        'image{mix-blend-mode:multiply;animation:2419200s linear infinite alternate;transform-origin:50% 50%}',
        'image.r0{transform:rotate(0deg);animation-play-state:paused}'
      );
      for (uint256 i = 1; i < 10; i++) {
        bytes memory animation = abi.encodePacked('@keyframes r', i.toString(), '{from {transform: rotate(', i % 2 == 0 ? '-' : '',((block.timestamp % 86400) * 360 / 86400).toString() ,'deg)}to{transform: rotate(', i % 2 == 0 ? '-' : '', ((i + 1) / 2).toString(), 'turn)}}');
        svg = abi.encodePacked(
          svg,
          'image.r', i.toString(), '{animation-name:r', i.toString(), '}',
          animation
        );
      }
      svg = abi.encodePacked(svg, '</style>');
      for (uint256 i = 0; i < 10; i++) {
        if (seed[i] != 0) svg = abi.encodePacked(svg, '<image xlink:href="', gatewayURI, CID, '/', i.toString(), '/', seed[i].toString(), '.jpg" x="0" y="0" class="r', i.toString(), '"/>');
      }
      return string(abi.encodePacked(svg, '</svg>'));
    }

    receive() external payable {}

    function generateSeed(address to, uint256 minted) private pure returns (uint24[10] memory seed) {
      uint256 hash = uint256(keccak256(abi.encodePacked(to, minted)));
      uint8[10] memory count = [33, 15, 15, 15, 15, 15, 15, 15, 45, 22];
      uint8[10] memory percent = [100, 50, 100, 80, 50, 50, 50, 50, 20, 20];
      for (uint256 i = 0; i < 10; i++) {
        seed[i] = uint24(hash >> (24 * i)) % uint24(uint256(count[i]) * (200 - percent[i]) / 100) + 1;
        if (seed[i] > count[i]) seed[i] = 0;
      }
    }

    modifier checkAmount(uint256 amount) {
      require(totalSupply + amount <= 1000, "Max 1000 Strokes");
      require(_minted[msg.sender] + amount <= 10, "Max 10 per wallet");
      _;
   }

    function mintWL(bytes calldata signature, uint256 amount) external payable checkAmount(amount) {
      require(!openedPublic, "Open sale");
      require(msg.value >= amount * 42 * 1e15, "Mint price 0.042 ETH");
      require(keccak256(abi.encodePacked(msg.sender)).toEthSignedMessageHash().recover(signature) == 0x951a4bC1675863C395754Faa2F8c8Ff1594F066F); //signer
      mintTo(msg.sender, amount);
    }

    function mint(uint256 amount) external payable checkAmount(amount) {
      require(openedPublic, "Not opened");
      require(msg.value >= amount * 90 * 1e15, "Mint price 0.090 ETH");
      mintTo(msg.sender, amount);
    }

    function mintSH(uint256 amount) external payable checkAmount(amount) {
      require(openedPublic, "Not opened");
      require(msg.value >= amount * 69 * 1e15, "Mint price 0.069 ETH");
      mintTo(msg.sender, amount);
    }

    function mintTo(address to, uint256 amount) private {
      uint256 minted = _minted[to];
      uint256 supply = totalSupply;
      for (uint256 i = 1; i <= amount; i++) {
        uint256 tokenId = supply + i;
        seeds[tokenId] = generateSeed(to, minted + i);
        _mint(to, tokenId);
      }
      _minted[to] = minted + amount;
      totalSupply = supply + amount;
    }

    function royaltyInfo(uint256, uint256 _salePrice) override external view returns (address receiver, uint256 royaltyAmount) {
      receiver = address(this);
      royaltyAmount = _salePrice / 20; //5%
    }

    function withdraw(address token, uint256 amount) external {
        bool success;
        uint256 half = amount / 2;
        if (token == address(0)) {
            (success, ) = 0x908c5fBae8Dec9202d8fAF7cA0277E50b87ED03B.call{value: half}("");
            require(success);
            (success, ) = 0x599b418AD25C7b11BFB6A9108bb03E0e0FF8e690.call{value: half}("");
            require(success);
        } else {
            success = IERC20(token).transfer(0x908c5fBae8Dec9202d8fAF7cA0277E50b87ED03B, half);
            require(success);
            success = IERC20(token).transfer(0x599b418AD25C7b11BFB6A9108bb03E0e0FF8e690, half);
            require(success);
        }
    }
}

File 2 of 16 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 3 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

File 4 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 8 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @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 {
        _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

File 9 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 10 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 11 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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;
    }
}

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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);
            }
        }
    }
}

File 13 of 16 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 14 of 16 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 15 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

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

File 16 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistry","type":"address"},{"internalType":"string","name":"_gatewayURI","type":"string"},{"internalType":"string","name":"_CID","type":"string"},{"internalType":"string","name":"_CIDPreview","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CID","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CIDPreview","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"changedCIDPreview","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gatewayURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintSH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWL","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openedPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"proxyRegistry","outputs":[{"internalType":"contract ProxyRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_gatewayURI","type":"string"}],"name":"setGatewayURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_CIDPreview","type":"string"}],"name":"updateCIDPreview","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a06040523480156200001157600080fd5b5060405162003ddb38038062003ddb8339810160408190526200003491620002e0565b60408051808201825260118152700a6e8e4ded6cae640c4f240cedad25ce6d607b1b6020808301918252835180850190945260068452655354524f4b4560d01b9084015281519192916200008b916000916200016d565b508051620000a19060019060208401906200016d565b505050620000be620000b86200011760201b60201c565b6200011b565b6001600160a01b0384166080528251620000e090600a9060208601906200016d565b508151620000f690600b9060208501906200016d565b5080516200010c90600c9060208401906200016d565b5050505050620003cf565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200017b9062000392565b90600052602060002090601f0160209004810192826200019f5760008555620001ea565b82601f10620001ba57805160ff1916838001178555620001ea565b82800160010185558215620001ea579182015b82811115620001ea578251825591602001919060010190620001cd565b50620001f8929150620001fc565b5090565b5b80821115620001f85760008155600101620001fd565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023b57600080fd5b81516001600160401b038082111562000258576200025862000213565b604051601f8301601f19908116603f0116810190828211818310171562000283576200028362000213565b81604052838152602092508683858801011115620002a057600080fd5b600091505b83821015620002c45785820183015181830184015290820190620002a5565b83821115620002d65760008385830101525b9695505050505050565b60008060008060808587031215620002f757600080fd5b84516001600160a01b03811681146200030f57600080fd5b60208601519094506001600160401b03808211156200032d57600080fd5b6200033b8883890162000229565b945060408701519150808211156200035257600080fd5b620003608883890162000229565b935060608701519150808211156200037757600080fd5b50620003868782880162000229565b91505092959194509250565b600181811c90821680620003a757607f821691505b60208210811415620003c957634e487b7160e01b600052602260045260246000fd5b50919050565b6080516139e9620003f2600039600081816104ee015261178901526139e96000f3fe6080604052600436106101fd5760003560e01c8063715018a61161010d578063bfc3fa4e116100a0578063e35dc5b91161006f578063e35dc5b9146105b3578063e8a3d485146105d3578063e985e9c5146105e8578063f2fde38b14610608578063f3fef3a31461062857600080fd5b8063bfc3fa4e14610530578063c098004c1461054a578063c87b56dd1461055f578063da1cb65d1461057f57600080fd5b8063a22cb465116100dc578063a22cb465146104a9578063b26fb983146104c9578063b50cbd9f146104dc578063b88d4fde1461051057600080fd5b8063715018a61461044e5780638da5cb5b1461046357806395d89b4114610481578063a0712d681461049657600080fd5b80632a55205a1161019057806352b9b55b1161015f57806352b9b55b146103bc5780635a30b704146103cf5780636352211e146103ee5780636dcee4ca1461040e57806370a082311461042e57600080fd5b80632a55205a146103335780632f5199fb146103725780633fc800061461038757806342842e0e1461039c57600080fd5b806318160ddd116101cc57806318160ddd146102ba5780631d7d7bb2146102de5780632133dd18146102fe57806323b872dd1461031357600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b31461029857600080fd5b3661020457005b600080fd5b34801561021557600080fd5b50610229610224366004612c21565b610648565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610673565b6040516102359190612c96565b34801561026c57600080fd5b5061028061027b366004612ca9565b610705565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612cd7565b61079f565b005b3480156102c657600080fd5b506102d060075481565b604051908152602001610235565b3480156102ea57600080fd5b506102b86102f9366004612d8f565b6108b5565b34801561030a57600080fd5b50610253610913565b34801561031f57600080fd5b506102b861032e366004612dd8565b6109a1565b34801561033f57600080fd5b5061035361034e366004612e19565b6109d2565b604080516001600160a01b039093168352602083019190915201610235565b34801561037e57600080fd5b506102536109e9565b34801561039357600080fd5b506102b86109f6565b3480156103a857600080fd5b506102b86103b7366004612dd8565b610a31565b6102b86103ca366004612ca9565b610a4c565b3480156103db57600080fd5b50600d5461022990610100900460ff1681565b3480156103fa57600080fd5b50610280610409366004612ca9565b610b68565b34801561041a57600080fd5b50610253610429366004612ca9565b610bdf565b34801561043a57600080fd5b506102d0610449366004612e3b565b61108c565b34801561045a57600080fd5b506102b8611113565b34801561046f57600080fd5b506006546001600160a01b0316610280565b34801561048d57600080fd5b50610253611149565b6102b86104a4366004612ca9565b611158565b3480156104b557600080fd5b506102b86104c4366004612e66565b61126a565b6102b86104d7366004612ee1565b611275565b3480156104e857600080fd5b506102807f000000000000000000000000000000000000000000000000000000000000000081565b34801561051c57600080fd5b506102b861052b366004612f2d565b611493565b34801561053c57600080fd5b50600d546102299060ff1681565b34801561055657600080fd5b506102536114c5565b34801561056b57600080fd5b5061025361057a366004612ca9565b6114d2565b34801561058b57600080fd5b5061059f61059a366004612e19565b6116c4565b60405162ffffff9091168152602001610235565b3480156105bf57600080fd5b506102b86105ce366004612fad565b611702565b3480156105df57600080fd5b50610253611738565b3480156105f457600080fd5b50610229610603366004612fef565b611763565b34801561061457600080fd5b506102b8610623366004612e3b565b61183c565b34801561063457600080fd5b506102b8610643366004612cd7565b6118d7565b60006001600160e01b0319821663152a902d60e11b148061066d575061066d82611aee565b92915050565b6060600080546106829061301d565b80601f01602080910402602001604051908101604052809291908181526020018280546106ae9061301d565b80156106fb5780601f106106d0576101008083540402835291602001916106fb565b820191906000526020600020905b8154815290600101906020018083116106de57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107aa82610b68565b9050806001600160a01b0316836001600160a01b031614156108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077a565b336001600160a01b038216148061083457506108348133611763565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077a565b6108b08383611b3e565b505050565b6006546001600160a01b031633146108df5760405162461bcd60e51b815260040161077a90613058565b600d5460ff16156108ef57600080fd5b600d805460ff19166001179055805161090f90600c906020840190612a4b565b5050565b600c80546109209061301d565b80601f016020809104026020016040519081016040528092919081815260200182805461094c9061301d565b80156109995780601f1061096e57610100808354040283529160200191610999565b820191906000526020600020905b81548152906001019060200180831161097c57829003601f168201915b505050505081565b6109ab3382611bac565b6109c75760405162461bcd60e51b815260040161077a9061308d565b6108b0838383611c83565b3060006109e060148461310a565b90509250929050565b600a80546109209061301d565b6006546001600160a01b03163314610a205760405162461bcd60e51b815260040161077a90613058565b600d805461ff001916610100179055565b6108b083838360405180602001604052806000815250611493565b806103e881600754610a5e919061311e565b1115610a7c5760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a90610a9a90839061311e565b1115610ab85760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff16610afc5760405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b604482015260640161077a565b610b0782604561318b565b610b189066038d7ea4c6800061318b565b341015610b5e5760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c606c72408aa8960631b604482015260640161077a565b61090f3383611e23565b6000818152600260205260408120546001600160a01b03168061066d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077a565b6000818152600260205260409020546060906001600160a01b0316610c465760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161077a565b600082815260086020526040808220815161014081019283905291600a908285855b82829054906101000a900462ffffff1662ffffff1681526020019060030190602082600201049283019260010382029150808411610c68579050505050505090506000604051602001610e48907f3c7376672077696474683d223130323422206865696768743d2231303234222081527f76696577426f783d2230203020313032342031303234222066696c6c3d226e6f60208201527f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32303060408201527f302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77606082015271199737b93397989c9c9c97bc3634b735911f60711b6080820152661e39ba3cb6329f60c91b60928201527f696d6167657b6d69782d626c656e642d6d6f64653a6d756c7469706c793b616e60998201527f696d6174696f6e3a3234313932303073206c696e65617220696e66696e69746560b98201527f20616c7465726e6174653b7472616e73666f726d2d6f726967696e3a3530252060d9820152633530257d60e01b60f98201527f696d6167652e72307b7472616e73666f726d3a726f746174652830646567293b60fd8201527f616e696d6174696f6e2d706c61792d73746174653a7061757365647d0000000061011d8201526101390190565b60408051601f19818403018152919052905060015b600a811015610f9e576000610e7182611ed8565b610e7c6002846131aa565b15610e965760405180602001604052806000815250610eb1565b604051806040016040528060018152602001602d60f81b8152505b610edd62015180610ec281426131aa565b610ece9061016861318b565b610ed8919061310a565b611ed8565b610ee86002866131aa565b15610f025760405180602001604052806000815250610f1d565b604051806040016040528060018152602001602d60f81b8152505b610f2d6002610ece88600161311e565b604051602001610f419594939291906131da565b604051602081830303815290604052905082610f5c83611ed8565b610f6584611ed8565b83604051602001610f7994939291906132cb565b6040516020818303038152906040529250508080610f9690613363565b915050610e5d565b5080604051602001610fb0919061337e565b604051602081830303815290604052905060005b600a811015611062578281600a8110610fdf57610fdf6133aa565b602002015162ffffff16156110505781600a600b610ffc84611ed8565b6110208786600a8110611011576110116133aa565b602002015162ffffff16611ed8565b61102986611ed8565b60405160200161103e9695949392919061345a565b60405160208183030381529060405291505b8061105a81613363565b915050610fc4565b50806040516020016110749190613535565b60405160208183030381529060405292505050919050565b60006001600160a01b0382166110f75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461113d5760405162461bcd60e51b815260040161077a90613058565b6111476000611fd6565b565b6060600180546106829061301d565b806103e88160075461116a919061311e565b11156111885760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a906111a690839061311e565b11156111c45760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff166112085760405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b604482015260640161077a565b61121382605a61318b565b6112249066038d7ea4c6800061318b565b341015610b5e5760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c607260408aa8960631b604482015260640161077a565b61090f338383612028565b806103e881600754611287919061311e565b11156112a55760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a906112c390839061311e565b11156112e15760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff16156113255760405162461bcd60e51b81526020600482015260096024820152684f70656e2073616c6560b81b604482015260640161077a565b61133082602a61318b565b6113419066038d7ea4c6800061318b565b3410156113875760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c606864408aa8960631b604482015260640161077a565b61145284848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015261144c92506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906120f7565b6001600160a01b031673951a4bc1675863c395754faa2f8c8ff1594f066f6001600160a01b03161461148357600080fd5b61148d3383611e23565b50505050565b61149d3383611bac565b6114b95760405162461bcd60e51b815260040161077a9061308d565b61148d8484848461211b565b600b80546109209061301d565b6000818152600260205260409020546060906001600160a01b03166115395760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161077a565b600082815260086020526040808220815161014081019283905291600a908285855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161155b5790505050505050905060006115a784611ed8565b9050606060005b600a811015611639578181156115dd57604051806040016040528060018152602001600b60fa1b8152506115ee565b604051806020016040528060008152505b6116038684600a8110611011576110116133aa565b6040516020016116159392919061355f565b6040516020818303038152906040529150808061163190613363565b9150506115ae565b506000600a600b838560405160200161165594939291906135a2565b604051602081830303815290604052905061169a838483600a600c886040516020016116869695949392919061360a565b60405160208183030381529060405261214e565b6040516020016116aa919061377b565b604051602081830303815290604052945050505050919050565b600860205281600052604060002081600a81106116e057600080fd5b600a9182820401919006600302915091509054906101000a900462ffffff1681565b6006546001600160a01b0316331461172c5760405162461bcd60e51b815260040161077a90613058565b6108b0600a8383612acf565b6060600a600b60405160200161174f9291906137c0565b604051602081830303815290604052905090565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f0000000000000000000000000000000000000000000000000000000000000000169063c455279190602401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906137f4565b6001600160a01b0316141561180b5750600161066d565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6006546001600160a01b031633146118665760405162461bcd60e51b815260040161077a90613058565b6001600160a01b0381166118cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161077a565b6118d481611fd6565b50565b6000806118e560028461310a565b90506001600160a01b0384166119cc5760405173908c5fbae8dec9202d8faf7ca0277e50b87ed03b908290600081818185875af1925050503d8060008114611949576040519150601f19603f3d011682016040523d82523d6000602084013e61194e565b606091505b5050809250508161195e57600080fd5b60405173599b418ad25c7b11bfb6a9108bb03e0e0ff8e690908290600081818185875af1925050503d80600081146119b2576040519150601f19603f3d011682016040523d82523d6000602084013e6119b7565b606091505b505080925050816119c757600080fd5b61148d565b60405163a9059cbb60e01b815273908c5fbae8dec9202d8faf7ca0277e50b87ed03b6004820152602481018290526001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a519190613811565b915081611a5d57600080fd5b60405163a9059cbb60e01b815273599b418ad25c7b11bfb6a9108bb03e0e0ff8e6906004820152602481018290526001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae29190613811565b91508161148d57600080fd5b60006001600160e01b031982166380ac58cd60e01b1480611b1f57506001600160e01b03198216635b5e139f60e01b145b8061066d57506301ffc9a760e01b6001600160e01b031983161461066d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b7382610b68565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611c255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077a565b6000611c3083610b68565b9050806001600160a01b0316846001600160a01b03161480611c6b5750836001600160a01b0316611c6084610705565b6001600160a01b0316145b80611c7b5750611c7b8185611763565b949350505050565b826001600160a01b0316611c9682610b68565b6001600160a01b031614611cfe5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161077a565b6001600160a01b038216611d605760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077a565b611d6b600082611b3e565b6001600160a01b0383166000908152600360205260408120805460019290611d9490849061382e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611dc290849061311e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604090205460075460015b838111611ea1576000611e55828461311e565b9050611e6a86611e65848761311e565b6122b4565b6000828152600860205260409020611e8391600a612b43565b50611e8e86826124c4565b5080611e9981613363565b915050611e42565b50611eac838361311e565b6001600160a01b038516600090815260096020526040902055611ecf838261311e565b60075550505050565b606081611efc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f265780611f1081613363565b9150611f1f9050600a8361310a565b9150611f00565b60008167ffffffffffffffff811115611f4157611f41612d03565b6040519080825280601f01601f191660200182016040528015611f6b576020820181803683370190505b5090505b8415611c7b57611f8060018361382e565b9150611f8d600a866131aa565b611f9890603061311e565b60f81b818381518110611fad57611fad6133aa565b60200101906001600160f81b031916908160001a905350611fcf600a8661310a565b9450611f6f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561208a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006121068585612606565b9150915061211381612676565b509392505050565b612126848484611c83565b61213284848484612831565b61148d5760405162461bcd60e51b815260040161077a90613845565b606081516000141561216e57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613974604091399050600060038451600261219d919061311e565b6121a7919061310a565b6121b290600461318b565b905060006121c182602061311e565b67ffffffffffffffff8111156121d9576121d9612d03565b6040519080825280601f01601f191660200182016040528015612203576020820181803683370190505b509050818152600183018586518101602084015b8183101561226f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612217565b600389510660018114612289576002811461229a576122a6565b613d3d60f01b6001198301526122a6565b603d60f81b6000198301525b509398975050505050505050565b6122bc612bd7565b60408051606085811b6bffffffffffffffffffffffff1916602080840191909152603480840187905284518085039091018152605484018086528151918301919091206101948501865260218252600f607486018190526094860181905260b4860181905260d4860181905260f486018190526101148601819052610134860152602d61015486015260166101749095019490945284516101408101865260648082526032938201849052958101959095526050928501929092526080840181905260a0840181905260c0840181905260e084015260146101008401819052610120840152909160005b600a8110156124ba5760648282600a81106123c3576123c36133aa565b60200201516123d39060c8613897565b60ff168483600a81106123e8576123e86133aa565b602002015160ff166123fa919061318b565b612404919061310a565b61240f82601861318b565b85901c61241c91906138ba565b6124279060016138dc565b8582600a8110612439576124396133aa565b62ffffff90921660209290920201528281600a811061245a5761245a6133aa565b602002015160ff168582600a8110612474576124746133aa565b602002015162ffffff1611156124a85760008582600a8110612498576124986133aa565b62ffffff90921660209290920201525b806124b281613363565b9150506123a6565b5050505092915050565b6001600160a01b03821661251a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077a565b6000818152600260205260409020546001600160a01b03161561257f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077a565b6001600160a01b03821660009081526003602052604081208054600192906125a890849061311e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561263d5760208301516040840151606085015160001a6126318782858561292f565b9450945050505061266f565b825160401415612667576020830151604084015161265c868383612a1c565b93509350505061266f565b506000905060025b9250929050565b600081600481111561268a5761268a613903565b14156126935750565b60018160048111156126a7576126a7613903565b14156126f55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161077a565b600281600481111561270957612709613903565b14156127575760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161077a565b600381600481111561276b5761276b613903565b14156127c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161077a565b60048160048111156127d8576127d8613903565b14156118d45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161077a565b60006001600160a01b0384163b1561292457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612875903390899088908890600401613919565b6020604051808303816000875af19250505080156128b0575060408051601f3d908101601f191682019092526128ad91810190613956565b60015b61290a573d8080156128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b5080516129025760405162461bcd60e51b815260040161077a90613845565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c7b565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129665750600090506003612a13565b8460ff16601b1415801561297e57508460ff16601c14155b1561298f5750600090506004612a13565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0c57600060019250925050612a13565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3d8782888561292f565b935093505050935093915050565b828054612a579061301d565b90600052602060002090601f016020900481019282612a795760008555612abf565b82601f10612a9257805160ff1916838001178555612abf565b82800160010185558215612abf579182015b82811115612abf578251825591602001919060010190612aa4565b50612acb929150612bf6565b5090565b828054612adb9061301d565b90600052602060002090601f016020900481019282612afd5760008555612abf565b82601f10612b165782800160ff19823516178555612abf565b82800160010185558215612abf579182015b82811115612abf578235825591602001919060010190612b28565b600183019183908215612abf5791602002820160005b83821115612b9b57835183826101000a81548162ffffff021916908362ffffff1602179055509260200192600301602081600201049283019260010302612b59565b8015612bca5782816101000a81549062ffffff0219169055600301602081600201049283019260010302612b9b565b5050612acb929150612bf6565b604051806101400160405280600a906020820280368337509192915050565b5b80821115612acb5760008155600101612bf7565b6001600160e01b0319811681146118d457600080fd5b600060208284031215612c3357600080fd5b813561183581612c0b565b60005b83811015612c59578181015183820152602001612c41565b8381111561148d5750506000910152565b60008151808452612c82816020860160208601612c3e565b601f01601f19169290920160200192915050565b6020815260006118356020830184612c6a565b600060208284031215612cbb57600080fd5b5035919050565b6001600160a01b03811681146118d457600080fd5b60008060408385031215612cea57600080fd5b8235612cf581612cc2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d3457612d34612d03565b604051601f8501601f19908116603f01168101908282118183101715612d5c57612d5c612d03565b81604052809350858152868686011115612d7557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612da157600080fd5b813567ffffffffffffffff811115612db857600080fd5b8201601f81018413612dc957600080fd5b611c7b84823560208401612d19565b600080600060608486031215612ded57600080fd5b8335612df881612cc2565b92506020840135612e0881612cc2565b929592945050506040919091013590565b60008060408385031215612e2c57600080fd5b50508035926020909101359150565b600060208284031215612e4d57600080fd5b813561183581612cc2565b80151581146118d457600080fd5b60008060408385031215612e7957600080fd5b8235612e8481612cc2565b91506020830135612e9481612e58565b809150509250929050565b60008083601f840112612eb157600080fd5b50813567ffffffffffffffff811115612ec957600080fd5b60208301915083602082850101111561266f57600080fd5b600080600060408486031215612ef657600080fd5b833567ffffffffffffffff811115612f0d57600080fd5b612f1986828701612e9f565b909790965060209590950135949350505050565b60008060008060808587031215612f4357600080fd5b8435612f4e81612cc2565b93506020850135612f5e81612cc2565b925060408501359150606085013567ffffffffffffffff811115612f8157600080fd5b8501601f81018713612f9257600080fd5b612fa187823560208401612d19565b91505092959194509250565b60008060208385031215612fc057600080fd5b823567ffffffffffffffff811115612fd757600080fd5b612fe385828601612e9f565b90969095509350505050565b6000806040838503121561300257600080fd5b823561300d81612cc2565b91506020830135612e9481612cc2565b600181811c9082168061303157607f821691505b6020821081141561305257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613119576131196130de565b500490565b60008219821115613131576131316130f4565b500190565b60208082526010908201526f4d61782031303030205374726f6b657360801b604082015260600190565b60208082526011908201527013585e080c4c081c195c881dd85b1b195d607a1b604082015260600190565b60008160001904831182151516156131a5576131a56130f4565b500290565b6000826131b9576131b96130de565b500690565b600081516131d0818560208601612c3e565b9290920192915050565b6b2035b2bcb33930b6b2b9903960a11b81526000865161320181600c850160208b01612c3e565b7f7b66726f6d207b7472616e73666f726d3a20726f746174652800000000000000600c91840191820152865161323e816025840160208b01612c3e565b8651910190613254816025840160208a01612c3e565b7f646567297d746f7b7472616e73666f726d3a20726f746174652800000000000060259290910191820152845161329281603f840160208901612c3e565b84519101906132a881603f840160208801612c3e565b667475726e297d7d60c81b603f9290910191820152604601979650505050505050565b600085516132dd818460208a01612c3e565b6634b6b0b3b2973960c91b9083019081528551613301816007840160208a01612c3e565b703db0b734b6b0ba34b7b716b730b6b29d3960791b600792909101918201528451613333816018840160208901612c3e565b607d60f81b601892909101918201528351613355816019840160208801612c3e565b016019019695505050505050565b6000600019821415613377576133776130f4565b5060010190565b60008251613390818460208701612c3e565b671e17b9ba3cb6329f60c11b920191825250600801919050565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806133da57607f831692505b60208084108214156133fc57634e487b7160e01b600052602260045260246000fd5b81801561341057600181146134215761344e565b60ff1986168952848901965061344e565b60008881526020902060005b868110156134465781548b82015290850190830161342d565b505084890196505b50505050505092915050565b6000875161346c818460208c01612c3e565b721e34b6b0b3b2903c3634b7359d343932b31e9160691b90830190815261349f613499601383018a6133c0565b886133c0565b9050602f60f81b80825286516134bc816001850160208b01612c3e565b600192019182015284516134d7816002840160208901612c3e565b7f2e6a70672220783d22302220793d22302220636c6173733d227200000000000060029290910191820152835161351581601c840160208801612c3e565b6211179f60e91b601c9290910191820152601f0198975050505050505050565b60008251613547818460208701612c3e565b651e17b9bb339f60d11b920191825250600601919050565b60008451613571818460208901612c3e565b845190830190613585818360208901612c3e565b8451910190613598818360208801612c3e565b0195945050505050565b60006135b76135b183886133c0565b866133c0565b662f3f736565643d60c81b815284516135d7816007840160208901612c3e565b632669643d60e01b6007929091019182015283516135fc81600b840160208801612c3e565b01600b019695505050505050565b707b226e616d65223a225374726f6b65202360781b81528651600090613637816011850160208c01612c3e565b7f20627920676d692e7368222c20226465736372697074696f6e223a225374726f601191840191820152636b65202360e01b60318201528751613681816035840160208c01612c3e565b7f206973206120756e69717565206f6e2d636861696e2061627374726163742061603592909101918201527f7274207069656365206279205b676d692e73685d2868747470733a2f2f676d6960558201527f2e7368292e222c2022616e696d6174696f6e5f75726c223a20220000000000006075820152865161370b81608f840160208b01612c3e565b61376d61375b61375561374861374261373c608f878901016c1116101134b6b0b3b2911d101160991b8152600d0190565b8c6133c0565b8a6133c0565b602f60f81b815260010190565b876131be565b652e6a7067227d60d01b815260060190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516137b381601d850160208701612c3e565b91909101601d0192915050565b60006137d56137cf83866133c0565b846133c0565b6d17b6b2ba30b230ba30973539b7b760911b8152600e01949350505050565b60006020828403121561380657600080fd5b815161183581612cc2565b60006020828403121561382357600080fd5b815161183581612e58565b600082821015613840576138406130f4565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060ff821660ff8416808210156138b1576138b16130f4565b90039392505050565b600062ffffff808416806138d0576138d06130de565b92169190910692915050565b600062ffffff8083168185168083038211156138fa576138fa6130f4565b01949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061394c90830184612c6a565b9695505050505050565b60006020828403121561396857600080fd5b815161183581612c0b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209325c042a692f71ea2a9cf37d44c55ecccf256888ab1ce619ae28b82e35d099464736f6c634300080c0033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f676d692e6d7970696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000002e516d636756353842524765454e584a39723243785242736778354d565a7967544e46517068417851364c754a7838000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d595345714d61643366696266397a6f5835516d7755416d445a48654d366b6268726377756966763651467065000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101fd5760003560e01c8063715018a61161010d578063bfc3fa4e116100a0578063e35dc5b91161006f578063e35dc5b9146105b3578063e8a3d485146105d3578063e985e9c5146105e8578063f2fde38b14610608578063f3fef3a31461062857600080fd5b8063bfc3fa4e14610530578063c098004c1461054a578063c87b56dd1461055f578063da1cb65d1461057f57600080fd5b8063a22cb465116100dc578063a22cb465146104a9578063b26fb983146104c9578063b50cbd9f146104dc578063b88d4fde1461051057600080fd5b8063715018a61461044e5780638da5cb5b1461046357806395d89b4114610481578063a0712d681461049657600080fd5b80632a55205a1161019057806352b9b55b1161015f57806352b9b55b146103bc5780635a30b704146103cf5780636352211e146103ee5780636dcee4ca1461040e57806370a082311461042e57600080fd5b80632a55205a146103335780632f5199fb146103725780633fc800061461038757806342842e0e1461039c57600080fd5b806318160ddd116101cc57806318160ddd146102ba5780631d7d7bb2146102de5780632133dd18146102fe57806323b872dd1461031357600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b31461029857600080fd5b3661020457005b600080fd5b34801561021557600080fd5b50610229610224366004612c21565b610648565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b50610253610673565b6040516102359190612c96565b34801561026c57600080fd5b5061028061027b366004612ca9565b610705565b6040516001600160a01b039091168152602001610235565b3480156102a457600080fd5b506102b86102b3366004612cd7565b61079f565b005b3480156102c657600080fd5b506102d060075481565b604051908152602001610235565b3480156102ea57600080fd5b506102b86102f9366004612d8f565b6108b5565b34801561030a57600080fd5b50610253610913565b34801561031f57600080fd5b506102b861032e366004612dd8565b6109a1565b34801561033f57600080fd5b5061035361034e366004612e19565b6109d2565b604080516001600160a01b039093168352602083019190915201610235565b34801561037e57600080fd5b506102536109e9565b34801561039357600080fd5b506102b86109f6565b3480156103a857600080fd5b506102b86103b7366004612dd8565b610a31565b6102b86103ca366004612ca9565b610a4c565b3480156103db57600080fd5b50600d5461022990610100900460ff1681565b3480156103fa57600080fd5b50610280610409366004612ca9565b610b68565b34801561041a57600080fd5b50610253610429366004612ca9565b610bdf565b34801561043a57600080fd5b506102d0610449366004612e3b565b61108c565b34801561045a57600080fd5b506102b8611113565b34801561046f57600080fd5b506006546001600160a01b0316610280565b34801561048d57600080fd5b50610253611149565b6102b86104a4366004612ca9565b611158565b3480156104b557600080fd5b506102b86104c4366004612e66565b61126a565b6102b86104d7366004612ee1565b611275565b3480156104e857600080fd5b506102807f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c181565b34801561051c57600080fd5b506102b861052b366004612f2d565b611493565b34801561053c57600080fd5b50600d546102299060ff1681565b34801561055657600080fd5b506102536114c5565b34801561056b57600080fd5b5061025361057a366004612ca9565b6114d2565b34801561058b57600080fd5b5061059f61059a366004612e19565b6116c4565b60405162ffffff9091168152602001610235565b3480156105bf57600080fd5b506102b86105ce366004612fad565b611702565b3480156105df57600080fd5b50610253611738565b3480156105f457600080fd5b50610229610603366004612fef565b611763565b34801561061457600080fd5b506102b8610623366004612e3b565b61183c565b34801561063457600080fd5b506102b8610643366004612cd7565b6118d7565b60006001600160e01b0319821663152a902d60e11b148061066d575061066d82611aee565b92915050565b6060600080546106829061301d565b80601f01602080910402602001604051908101604052809291908181526020018280546106ae9061301d565b80156106fb5780601f106106d0576101008083540402835291602001916106fb565b820191906000526020600020905b8154815290600101906020018083116106de57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006107aa82610b68565b9050806001600160a01b0316836001600160a01b031614156108185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161077a565b336001600160a01b038216148061083457506108348133611763565b6108a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161077a565b6108b08383611b3e565b505050565b6006546001600160a01b031633146108df5760405162461bcd60e51b815260040161077a90613058565b600d5460ff16156108ef57600080fd5b600d805460ff19166001179055805161090f90600c906020840190612a4b565b5050565b600c80546109209061301d565b80601f016020809104026020016040519081016040528092919081815260200182805461094c9061301d565b80156109995780601f1061096e57610100808354040283529160200191610999565b820191906000526020600020905b81548152906001019060200180831161097c57829003601f168201915b505050505081565b6109ab3382611bac565b6109c75760405162461bcd60e51b815260040161077a9061308d565b6108b0838383611c83565b3060006109e060148461310a565b90509250929050565b600a80546109209061301d565b6006546001600160a01b03163314610a205760405162461bcd60e51b815260040161077a90613058565b600d805461ff001916610100179055565b6108b083838360405180602001604052806000815250611493565b806103e881600754610a5e919061311e565b1115610a7c5760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a90610a9a90839061311e565b1115610ab85760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff16610afc5760405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b604482015260640161077a565b610b0782604561318b565b610b189066038d7ea4c6800061318b565b341015610b5e5760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c606c72408aa8960631b604482015260640161077a565b61090f3383611e23565b6000818152600260205260408120546001600160a01b03168061066d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161077a565b6000818152600260205260409020546060906001600160a01b0316610c465760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161077a565b600082815260086020526040808220815161014081019283905291600a908285855b82829054906101000a900462ffffff1662ffffff1681526020019060030190602082600201049283019260010382029150808411610c68579050505050505090506000604051602001610e48907f3c7376672077696474683d223130323422206865696768743d2231303234222081527f76696577426f783d2230203020313032342031303234222066696c6c3d226e6f60208201527f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f32303060408201527f302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e77606082015271199737b93397989c9c9c97bc3634b735911f60711b6080820152661e39ba3cb6329f60c91b60928201527f696d6167657b6d69782d626c656e642d6d6f64653a6d756c7469706c793b616e60998201527f696d6174696f6e3a3234313932303073206c696e65617220696e66696e69746560b98201527f20616c7465726e6174653b7472616e73666f726d2d6f726967696e3a3530252060d9820152633530257d60e01b60f98201527f696d6167652e72307b7472616e73666f726d3a726f746174652830646567293b60fd8201527f616e696d6174696f6e2d706c61792d73746174653a7061757365647d0000000061011d8201526101390190565b60408051601f19818403018152919052905060015b600a811015610f9e576000610e7182611ed8565b610e7c6002846131aa565b15610e965760405180602001604052806000815250610eb1565b604051806040016040528060018152602001602d60f81b8152505b610edd62015180610ec281426131aa565b610ece9061016861318b565b610ed8919061310a565b611ed8565b610ee86002866131aa565b15610f025760405180602001604052806000815250610f1d565b604051806040016040528060018152602001602d60f81b8152505b610f2d6002610ece88600161311e565b604051602001610f419594939291906131da565b604051602081830303815290604052905082610f5c83611ed8565b610f6584611ed8565b83604051602001610f7994939291906132cb565b6040516020818303038152906040529250508080610f9690613363565b915050610e5d565b5080604051602001610fb0919061337e565b604051602081830303815290604052905060005b600a811015611062578281600a8110610fdf57610fdf6133aa565b602002015162ffffff16156110505781600a600b610ffc84611ed8565b6110208786600a8110611011576110116133aa565b602002015162ffffff16611ed8565b61102986611ed8565b60405160200161103e9695949392919061345a565b60405160208183030381529060405291505b8061105a81613363565b915050610fc4565b50806040516020016110749190613535565b60405160208183030381529060405292505050919050565b60006001600160a01b0382166110f75760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161077a565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461113d5760405162461bcd60e51b815260040161077a90613058565b6111476000611fd6565b565b6060600180546106829061301d565b806103e88160075461116a919061311e565b11156111885760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a906111a690839061311e565b11156111c45760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff166112085760405162461bcd60e51b815260206004820152600a602482015269139bdd081bdc195b995960b21b604482015260640161077a565b61121382605a61318b565b6112249066038d7ea4c6800061318b565b341015610b5e5760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c607260408aa8960631b604482015260640161077a565b61090f338383612028565b806103e881600754611287919061311e565b11156112a55760405162461bcd60e51b815260040161077a90613136565b33600090815260096020526040902054600a906112c390839061311e565b11156112e15760405162461bcd60e51b815260040161077a90613160565b600d54610100900460ff16156113255760405162461bcd60e51b81526020600482015260096024820152684f70656e2073616c6560b81b604482015260640161077a565b61133082602a61318b565b6113419066038d7ea4c6800061318b565b3410156113875760405162461bcd60e51b815260206004820152601460248201527309ad2dce840e0e4d2c6ca40605c606864408aa8960631b604482015260640161077a565b61145284848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015261144c92506034019050604051602081830303815290604052805190602001206040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b906120f7565b6001600160a01b031673951a4bc1675863c395754faa2f8c8ff1594f066f6001600160a01b03161461148357600080fd5b61148d3383611e23565b50505050565b61149d3383611bac565b6114b95760405162461bcd60e51b815260040161077a9061308d565b61148d8484848461211b565b600b80546109209061301d565b6000818152600260205260409020546060906001600160a01b03166115395760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161077a565b600082815260086020526040808220815161014081019283905291600a908285855b82829054906101000a900462ffffff1662ffffff168152602001906003019060208260020104928301926001038202915080841161155b5790505050505050905060006115a784611ed8565b9050606060005b600a811015611639578181156115dd57604051806040016040528060018152602001600b60fa1b8152506115ee565b604051806020016040528060008152505b6116038684600a8110611011576110116133aa565b6040516020016116159392919061355f565b6040516020818303038152906040529150808061163190613363565b9150506115ae565b506000600a600b838560405160200161165594939291906135a2565b604051602081830303815290604052905061169a838483600a600c886040516020016116869695949392919061360a565b60405160208183030381529060405261214e565b6040516020016116aa919061377b565b604051602081830303815290604052945050505050919050565b600860205281600052604060002081600a81106116e057600080fd5b600a9182820401919006600302915091509054906101000a900462ffffff1681565b6006546001600160a01b0316331461172c5760405162461bcd60e51b815260040161077a90613058565b6108b0600a8383612acf565b6060600a600b60405160200161174f9291906137c0565b604051602081830303815290604052905090565b60405163c455279160e01b81526001600160a01b038381166004830152600091818416917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1169063c455279190602401602060405180830381865afa1580156117d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f491906137f4565b6001600160a01b0316141561180b5750600161066d565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff165b9392505050565b6006546001600160a01b031633146118665760405162461bcd60e51b815260040161077a90613058565b6001600160a01b0381166118cb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161077a565b6118d481611fd6565b50565b6000806118e560028461310a565b90506001600160a01b0384166119cc5760405173908c5fbae8dec9202d8faf7ca0277e50b87ed03b908290600081818185875af1925050503d8060008114611949576040519150601f19603f3d011682016040523d82523d6000602084013e61194e565b606091505b5050809250508161195e57600080fd5b60405173599b418ad25c7b11bfb6a9108bb03e0e0ff8e690908290600081818185875af1925050503d80600081146119b2576040519150601f19603f3d011682016040523d82523d6000602084013e6119b7565b606091505b505080925050816119c757600080fd5b61148d565b60405163a9059cbb60e01b815273908c5fbae8dec9202d8faf7ca0277e50b87ed03b6004820152602481018290526001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611a2d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a519190613811565b915081611a5d57600080fd5b60405163a9059cbb60e01b815273599b418ad25c7b11bfb6a9108bb03e0e0ff8e6906004820152602481018290526001600160a01b0385169063a9059cbb906044016020604051808303816000875af1158015611abe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae29190613811565b91508161148d57600080fd5b60006001600160e01b031982166380ac58cd60e01b1480611b1f57506001600160e01b03198216635b5e139f60e01b145b8061066d57506301ffc9a760e01b6001600160e01b031983161461066d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b7382610b68565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316611c255760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161077a565b6000611c3083610b68565b9050806001600160a01b0316846001600160a01b03161480611c6b5750836001600160a01b0316611c6084610705565b6001600160a01b0316145b80611c7b5750611c7b8185611763565b949350505050565b826001600160a01b0316611c9682610b68565b6001600160a01b031614611cfe5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161077a565b6001600160a01b038216611d605760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161077a565b611d6b600082611b3e565b6001600160a01b0383166000908152600360205260408120805460019290611d9490849061382e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611dc290849061311e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526009602052604090205460075460015b838111611ea1576000611e55828461311e565b9050611e6a86611e65848761311e565b6122b4565b6000828152600860205260409020611e8391600a612b43565b50611e8e86826124c4565b5080611e9981613363565b915050611e42565b50611eac838361311e565b6001600160a01b038516600090815260096020526040902055611ecf838261311e565b60075550505050565b606081611efc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611f265780611f1081613363565b9150611f1f9050600a8361310a565b9150611f00565b60008167ffffffffffffffff811115611f4157611f41612d03565b6040519080825280601f01601f191660200182016040528015611f6b576020820181803683370190505b5090505b8415611c7b57611f8060018361382e565b9150611f8d600a866131aa565b611f9890603061311e565b60f81b818381518110611fad57611fad6133aa565b60200101906001600160f81b031916908160001a905350611fcf600a8661310a565b9450611f6f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561208a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161077a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60008060006121068585612606565b9150915061211381612676565b509392505050565b612126848484611c83565b61213284848484612831565b61148d5760405162461bcd60e51b815260040161077a90613845565b606081516000141561216e57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613974604091399050600060038451600261219d919061311e565b6121a7919061310a565b6121b290600461318b565b905060006121c182602061311e565b67ffffffffffffffff8111156121d9576121d9612d03565b6040519080825280601f01601f191660200182016040528015612203576020820181803683370190505b509050818152600183018586518101602084015b8183101561226f576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612217565b600389510660018114612289576002811461229a576122a6565b613d3d60f01b6001198301526122a6565b603d60f81b6000198301525b509398975050505050505050565b6122bc612bd7565b60408051606085811b6bffffffffffffffffffffffff1916602080840191909152603480840187905284518085039091018152605484018086528151918301919091206101948501865260218252600f607486018190526094860181905260b4860181905260d4860181905260f486018190526101148601819052610134860152602d61015486015260166101749095019490945284516101408101865260648082526032938201849052958101959095526050928501929092526080840181905260a0840181905260c0840181905260e084015260146101008401819052610120840152909160005b600a8110156124ba5760648282600a81106123c3576123c36133aa565b60200201516123d39060c8613897565b60ff168483600a81106123e8576123e86133aa565b602002015160ff166123fa919061318b565b612404919061310a565b61240f82601861318b565b85901c61241c91906138ba565b6124279060016138dc565b8582600a8110612439576124396133aa565b62ffffff90921660209290920201528281600a811061245a5761245a6133aa565b602002015160ff168582600a8110612474576124746133aa565b602002015162ffffff1611156124a85760008582600a8110612498576124986133aa565b62ffffff90921660209290920201525b806124b281613363565b9150506123a6565b5050505092915050565b6001600160a01b03821661251a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161077a565b6000818152600260205260409020546001600160a01b03161561257f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161077a565b6001600160a01b03821660009081526003602052604081208054600192906125a890849061311e565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008082516041141561263d5760208301516040840151606085015160001a6126318782858561292f565b9450945050505061266f565b825160401415612667576020830151604084015161265c868383612a1c565b93509350505061266f565b506000905060025b9250929050565b600081600481111561268a5761268a613903565b14156126935750565b60018160048111156126a7576126a7613903565b14156126f55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161077a565b600281600481111561270957612709613903565b14156127575760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161077a565b600381600481111561276b5761276b613903565b14156127c45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161077a565b60048160048111156127d8576127d8613903565b14156118d45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161077a565b60006001600160a01b0384163b1561292457604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612875903390899088908890600401613919565b6020604051808303816000875af19250505080156128b0575060408051601f3d908101601f191682019092526128ad91810190613956565b60015b61290a573d8080156128de576040519150601f19603f3d011682016040523d82523d6000602084013e6128e3565b606091505b5080516129025760405162461bcd60e51b815260040161077a90613845565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611c7b565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156129665750600090506003612a13565b8460ff16601b1415801561297e57508460ff16601c14155b1561298f5750600090506004612a13565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156129e3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612a0c57600060019250925050612a13565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612a3d8782888561292f565b935093505050935093915050565b828054612a579061301d565b90600052602060002090601f016020900481019282612a795760008555612abf565b82601f10612a9257805160ff1916838001178555612abf565b82800160010185558215612abf579182015b82811115612abf578251825591602001919060010190612aa4565b50612acb929150612bf6565b5090565b828054612adb9061301d565b90600052602060002090601f016020900481019282612afd5760008555612abf565b82601f10612b165782800160ff19823516178555612abf565b82800160010185558215612abf579182015b82811115612abf578235825591602001919060010190612b28565b600183019183908215612abf5791602002820160005b83821115612b9b57835183826101000a81548162ffffff021916908362ffffff1602179055509260200192600301602081600201049283019260010302612b59565b8015612bca5782816101000a81549062ffffff0219169055600301602081600201049283019260010302612b9b565b5050612acb929150612bf6565b604051806101400160405280600a906020820280368337509192915050565b5b80821115612acb5760008155600101612bf7565b6001600160e01b0319811681146118d457600080fd5b600060208284031215612c3357600080fd5b813561183581612c0b565b60005b83811015612c59578181015183820152602001612c41565b8381111561148d5750506000910152565b60008151808452612c82816020860160208601612c3e565b601f01601f19169290920160200192915050565b6020815260006118356020830184612c6a565b600060208284031215612cbb57600080fd5b5035919050565b6001600160a01b03811681146118d457600080fd5b60008060408385031215612cea57600080fd5b8235612cf581612cc2565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612d3457612d34612d03565b604051601f8501601f19908116603f01168101908282118183101715612d5c57612d5c612d03565b81604052809350858152868686011115612d7557600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612da157600080fd5b813567ffffffffffffffff811115612db857600080fd5b8201601f81018413612dc957600080fd5b611c7b84823560208401612d19565b600080600060608486031215612ded57600080fd5b8335612df881612cc2565b92506020840135612e0881612cc2565b929592945050506040919091013590565b60008060408385031215612e2c57600080fd5b50508035926020909101359150565b600060208284031215612e4d57600080fd5b813561183581612cc2565b80151581146118d457600080fd5b60008060408385031215612e7957600080fd5b8235612e8481612cc2565b91506020830135612e9481612e58565b809150509250929050565b60008083601f840112612eb157600080fd5b50813567ffffffffffffffff811115612ec957600080fd5b60208301915083602082850101111561266f57600080fd5b600080600060408486031215612ef657600080fd5b833567ffffffffffffffff811115612f0d57600080fd5b612f1986828701612e9f565b909790965060209590950135949350505050565b60008060008060808587031215612f4357600080fd5b8435612f4e81612cc2565b93506020850135612f5e81612cc2565b925060408501359150606085013567ffffffffffffffff811115612f8157600080fd5b8501601f81018713612f9257600080fd5b612fa187823560208401612d19565b91505092959194509250565b60008060208385031215612fc057600080fd5b823567ffffffffffffffff811115612fd757600080fd5b612fe385828601612e9f565b90969095509350505050565b6000806040838503121561300257600080fd5b823561300d81612cc2565b91506020830135612e9481612cc2565b600181811c9082168061303157607f821691505b6020821081141561305257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082613119576131196130de565b500490565b60008219821115613131576131316130f4565b500190565b60208082526010908201526f4d61782031303030205374726f6b657360801b604082015260600190565b60208082526011908201527013585e080c4c081c195c881dd85b1b195d607a1b604082015260600190565b60008160001904831182151516156131a5576131a56130f4565b500290565b6000826131b9576131b96130de565b500690565b600081516131d0818560208601612c3e565b9290920192915050565b6b2035b2bcb33930b6b2b9903960a11b81526000865161320181600c850160208b01612c3e565b7f7b66726f6d207b7472616e73666f726d3a20726f746174652800000000000000600c91840191820152865161323e816025840160208b01612c3e565b8651910190613254816025840160208a01612c3e565b7f646567297d746f7b7472616e73666f726d3a20726f746174652800000000000060259290910191820152845161329281603f840160208901612c3e565b84519101906132a881603f840160208801612c3e565b667475726e297d7d60c81b603f9290910191820152604601979650505050505050565b600085516132dd818460208a01612c3e565b6634b6b0b3b2973960c91b9083019081528551613301816007840160208a01612c3e565b703db0b734b6b0ba34b7b716b730b6b29d3960791b600792909101918201528451613333816018840160208901612c3e565b607d60f81b601892909101918201528351613355816019840160208801612c3e565b016019019695505050505050565b6000600019821415613377576133776130f4565b5060010190565b60008251613390818460208701612c3e565b671e17b9ba3cb6329f60c11b920191825250600801919050565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806133da57607f831692505b60208084108214156133fc57634e487b7160e01b600052602260045260246000fd5b81801561341057600181146134215761344e565b60ff1986168952848901965061344e565b60008881526020902060005b868110156134465781548b82015290850190830161342d565b505084890196505b50505050505092915050565b6000875161346c818460208c01612c3e565b721e34b6b0b3b2903c3634b7359d343932b31e9160691b90830190815261349f613499601383018a6133c0565b886133c0565b9050602f60f81b80825286516134bc816001850160208b01612c3e565b600192019182015284516134d7816002840160208901612c3e565b7f2e6a70672220783d22302220793d22302220636c6173733d227200000000000060029290910191820152835161351581601c840160208801612c3e565b6211179f60e91b601c9290910191820152601f0198975050505050505050565b60008251613547818460208701612c3e565b651e17b9bb339f60d11b920191825250600601919050565b60008451613571818460208901612c3e565b845190830190613585818360208901612c3e565b8451910190613598818360208801612c3e565b0195945050505050565b60006135b76135b183886133c0565b866133c0565b662f3f736565643d60c81b815284516135d7816007840160208901612c3e565b632669643d60e01b6007929091019182015283516135fc81600b840160208801612c3e565b01600b019695505050505050565b707b226e616d65223a225374726f6b65202360781b81528651600090613637816011850160208c01612c3e565b7f20627920676d692e7368222c20226465736372697074696f6e223a225374726f601191840191820152636b65202360e01b60318201528751613681816035840160208c01612c3e565b7f206973206120756e69717565206f6e2d636861696e2061627374726163742061603592909101918201527f7274207069656365206279205b676d692e73685d2868747470733a2f2f676d6960558201527f2e7368292e222c2022616e696d6174696f6e5f75726c223a20220000000000006075820152865161370b81608f840160208b01612c3e565b61376d61375b61375561374861374261373c608f878901016c1116101134b6b0b3b2911d101160991b8152600d0190565b8c6133c0565b8a6133c0565b602f60f81b815260010190565b876131be565b652e6a7067227d60d01b815260060190565b9a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516137b381601d850160208701612c3e565b91909101601d0192915050565b60006137d56137cf83866133c0565b846133c0565b6d17b6b2ba30b230ba30973539b7b760911b8152600e01949350505050565b60006020828403121561380657600080fd5b815161183581612cc2565b60006020828403121561382357600080fd5b815161183581612e58565b600082821015613840576138406130f4565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600060ff821660ff8416808210156138b1576138b16130f4565b90039392505050565b600062ffffff808416806138d0576138d06130de565b92169190910692915050565b600062ffffff8083168185168083038211156138fa576138fa6130f4565b01949350505050565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061394c90830184612c6a565b9695505050505050565b60006020828403121561396857600080fd5b815161183581612c0b56fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209325c042a692f71ea2a9cf37d44c55ecccf256888ab1ce619ae28b82e35d099464736f6c634300080c0033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002068747470733a2f2f676d692e6d7970696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000002e516d636756353842524765454e584a39723243785242736778354d565a7967544e46517068417851364c754a7838000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d595345714d61643366696266397a6f5835516d7755416d445a48654d366b6268726377756966763651467065000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _proxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _gatewayURI (string): https://gmi.mypinata.cloud/ipfs/
Arg [2] : _CID (string): QmcgV58BRGeENXJ9r2CxRBsgx5MVZygTNFQphAxQ6LuJx8
Arg [3] : _CIDPreview (string): QmYSEqMad3fibf9zoX5QmwUAmDZHeM6kbhrcwuifv6QFpe

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [5] : 68747470733a2f2f676d692e6d7970696e6174612e636c6f75642f697066732f
Arg [6] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [7] : 516d636756353842524765454e584a39723243785242736778354d565a796754
Arg [8] : 4e46517068417851364c754a7838000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [10] : 516d595345714d61643366696266397a6f5835516d7755416d445a48654d366b
Arg [11] : 6268726377756966763651467065000000000000000000000000000000000000


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.