ETH Price: $2,149.58 (-7.82%)

GenesisTraits (GT)
 

Overview

TokenID

2000001

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
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:
GenesisTraits

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.2;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "contracts/interfaces/IRegensZero.sol";
import "contracts/interfaces/IGenesisCollection.sol";
import "contracts/interfaces/IGenesisDNAVault.sol";

contract GenesisTraits is
    ERC721Enumerable,
    Ownable,
    ReentrancyGuard,
    IGenesisCollection
{
    using SafeMath for uint256;
    using Strings for uint256;

    uint256 constant INITIAL_TRAITS_AMOUNT = 6;
    uint256 constant MAX_TRAIT_PER_POSITION = 1000000;
    uint256 constant MAX_INT_TYPE = type(uint256).max;

    uint256 public override generalSalt;

    address public traitVault;
    address public regensZero;

    string private baseURI = "";
    string private imageUri = "";
    string private preRevealUri = "";
    string public override collectionName = "GenesisTraits";

    mapping(uint256 => uint256) public tokensClaimed;
    mapping(uint256 => uint256) public traitCap;
    mapping(uint256 => uint256) public traitPercentage;
    mapping(uint256 => string) private traitNames;
    mapping(uint256 => uint256) public positionsNextToken;
    mapping(uint256 => uint256) public traitIdSalt;

    event tokenClaimed(uint256 indexed tokenId);

    modifier onlyTraitsVault() {
        require(
            _msgSender() == traitVault,
            "GenesisTraits: Sender can only be traitsVault."
        );
        _;
    }

    modifier traitClaim(uint256 tokenId) {
        require(
            IRegensZero(regensZero).tokenIdDNA(tokenId) == traitVault,
            "GenesisTraits: This tokenId does not have genesisDNA"
        );
        require(
            IERC721(regensZero).ownerOf(tokenId) == _msgSender() ||
                IRegensZero(regensZero).getController(tokenId) == _msgSender(),
            "GenesisTraits: Sender can only be owner or controller of tokenId."
        );
        require(
            tokensClaimed[tokenId] < 4,
            "GenesisTraits: This tokenId has no more claiming tokens"
        );
        tokensClaimed[tokenId]++;

        _;

        emit tokenClaimed(tokenId);
    }

    constructor(uint256[] memory cap, uint256[] memory percentage)
        ERC721("GenesisTraits", "GT")
    {
        for (uint256 i = 0; i < INITIAL_TRAITS_AMOUNT; i++) {
            positionsNextToken[i * 2] = MAX_TRAIT_PER_POSITION * i * 2 + 10000;
            traitCap[i * 2] = cap[i];
            traitPercentage[i * 2] = percentage[i];
        }
    }

    function setImageURI(string memory newImageURI) public onlyOwner {
        imageUri = newImageURI;
    }

    function setBaseURI(string memory newURI) public onlyOwner {
        baseURI = newURI;
    }

    function setPreRevealUri(string memory _preRevealUri) public onlyOwner {
        preRevealUri = _preRevealUri;
    }

    function setTraitsVault(address _traitsVault) public onlyOwner {
        require(
            traitVault == address(0),
            "GenesisTraits: traitVault can only be set once"
        );
        traitVault = _traitsVault;
    }

    function setRegensZero(address _regensZero) public onlyOwner {
        require(
            regensZero == address(0),
            "GenesisTraits: regensZero can only be set once"
        );
        regensZero = _regensZero;
    }

    function setTraitName(string memory name, uint256 traitNameId)
        public
        onlyOwner
    {
        require(
            traitNameId > 0,
            "GenesisTraits: traitNameId must be greater than 0"
        );
        require(
            (
                keccak256(abi.encodePacked((name))) !=
                keccak256(abi.encodePacked(("")))
            ),
            "GenesisTraits: Trait name cannot be empty"
        );
        traitNames[traitNameId] = name;
    }

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

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    function reveal(string[] memory names) public onlyOwner {
        generalSalt = block.timestamp;
        uint256 i;
        for (i = 0; i < names.length; i++) {
            traitNames[i + 1] = names[i];
        }
    }

    function distribution(uint256 tokenId, uint256 layer)
        public
        view
        returns (uint256)
    {
        uint256 seed = tokenId + generalSalt + tokenIdSalt(tokenId);
        uint256 i;
        uint256 trait;
        uint256 success;
        uint256 halt;
        for (i = 0; i < MAX_INT_TYPE; i++) {
            for (trait = 1; trait <= traitCap[layer]; trait++) {
                uint256 attempt = uint256(keccak256(abi.encodePacked(seed)));
                if (attempt < MAX_INT_TYPE / traitPercentage[layer]) {
                    success = trait;
                    halt += 1;
                    break;
                } else {
                    seed = attempt;
                }
            }
            if (halt > 0) {
                break;
            }
        }
        uint256 traitSum;
        for (i = 0; i < layer; i++) {
            traitSum += traitCap[i];
        }
        return success + traitSum;
    }

    function tokenIdSalt(uint256 tokenId) public view returns (uint256) {
        return
            (tokenId % 1000000) <= 10000
                ? IGenesisDNAVault(traitVault).getTokenIdSalt(tokenId % 1000000)
                : traitIdSalt[tokenId];
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory uri)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        uint256 tokenMetadata = distribution(tokenId, tokenId / 1000000);

        return
            (generalSalt > 0)
                ? string(
                    abi.encodePacked(baseURI, tokenMetadata.toString(), ".json")
                )
                : preRevealUri;
    }

    function tokenImage(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        uint256 imageId = distribution(tokenId, tokenId / 1000000);

        return
            (generalSalt > 0 && tokenIdSalt(tokenId) > 0)
                ? string(abi.encodePacked(imageUri, imageId.toString(), ".png"))
                : "";
    }

    function traitName(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        require(
            tokenIdSalt(tokenId) > 0,
            "GenesisTraits: tokenId does not exist"
        );
        uint256 nameId = distribution(tokenId, tokenId / 1000000);
        return traitNames[nameId];
    }

    function transferSpecial(uint256 tokenId, address _address)
        public
        override
        onlyTraitsVault
    {
        _transfer(_address, traitVault, tokenId);
    }

    function mintTraits(uint256 tokenId)
        public
        override
        onlyTraitsVault
        nonReentrant
    {
        for (uint256 i = 0; i < INITIAL_TRAITS_AMOUNT; i++) {
            uint256 traitId = tokenId + (MAX_TRAIT_PER_POSITION * i * 2);
            _mint(traitVault, traitId);
        }
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            (interfaceId == type(ITraitCollection).interfaceId) ||
            (interfaceId == type(IGenesisCollection).interfaceId) ||
            super.supportsInterface(interfaceId);
    }

    function claimBackground(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[0]++;
        traitIdSalt[positionsNextToken[0]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[0]);
    }

    function claimSkin(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[2]++;
        traitIdSalt[positionsNextToken[2]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[2]);
    }

    function claimEyes(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[4]++;
        traitIdSalt[positionsNextToken[4]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[4]);
    }

    function claimHead(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[6]++;
        traitIdSalt[positionsNextToken[6]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[6]);
    }

    function claimClothing(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[8]++;
        traitIdSalt[positionsNextToken[8]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[8]);
    }

    function claimMouthAndNose(uint256 tokenId) public traitClaim(tokenId) {
        positionsNextToken[10]++;
        traitIdSalt[positionsNextToken[10]] = block.timestamp;
        _mint(IERC721(regensZero).ownerOf(tokenId), positionsNextToken[10]);
    }
}

File 2 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 3 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 4 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 20 : 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 6 of 20 : 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 7 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

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

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

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

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 10 of 20 : IRegensZero.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

interface IRegensZero {
    function getController(uint256 tokenId) external returns(address);
    function getSigner(uint256 tokenId) external returns(address);
    function getTokenTimelock(uint256 tokenId) external returns(uint256);
    function setNewDNA(address _DNA) external;
    function changeLastTraitModification(uint256 tokenId) external;
    function removeDNA(address _DNA) external;
    function genesisMint(uint256 amount, address _address) external;
    function postGenesisMint(uint256 amount, address _address) external;
    function tokenIdDNA(uint256) external returns(address);
    function genesisSupply() external view returns(uint256);
}

File 11 of 20 : IGenesisCollection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

import "contracts/interfaces/ITraitCollection.sol";

interface IGenesisCollection is ITraitCollection {
    function mintTraits(uint256 tokenId) external;
    function generalSalt() external view returns(uint256);
}

File 12 of 20 : IGenesisDNAVault.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

import "contracts/interfaces/IDNAVault.sol";

interface IGenesisDNAVault is IDNAVault {
    function getTraits(uint256 tokenId)
        external
        view
        returns (Trait[20] memory traits);

    function hasMintedTraits(uint256 tokenId) external view returns (bool);

    function contractsArray(uint256) external view returns (address);

    function DNAImageUri() external view returns (string memory);

    function previewImageUri() external view returns (string memory);

    function getTokenIdSalt(uint256 tokenId) external view returns(uint256);
}

File 13 of 20 : 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 14 of 20 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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: address zero is not a valid owner");
        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: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

        _afterTokenTransfer(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 from incorrect owner");
        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);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 15 of 20 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 16 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 17 of 20 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 of 20 : 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 19 of 20 : ITraitCollection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

interface ITraitCollection {
    function transferSpecial(uint256 tokenId, address _address) external;
    function tokenImage(uint256 tokenId) external view returns(string memory);
    function collectionName() external view returns(string memory);
    function traitName(uint256 tokenId) external view returns(string memory);
}

File 20 of 20 : IDNAVault.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.2;

struct Trait {
    uint256 layer1;
    uint256 traitId;
}

interface IDNAVault {
    function tokenURI(uint256) external view returns (string memory);

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        returns (address, uint256);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256[]","name":"cap","type":"uint256[]"},{"internalType":"uint256[]","name":"percentage","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenClaimed","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimBackground","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimClothing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimEyes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimHead","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimMouthAndNose","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimSkin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"layer","type":"uint256"}],"name":"distribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generalSalt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"tokenId","type":"uint256"}],"name":"mintTraits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"positionsNextToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"regensZero","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"names","type":"string[]"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newImageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_preRevealUri","type":"string"}],"name":"setPreRevealUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_regensZero","type":"address"}],"name":"setRegensZero","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"traitNameId","type":"uint256"}],"name":"setTraitName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_traitsVault","type":"address"}],"name":"setTraitsVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenIdSalt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitIdSalt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"traitName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traitVault","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"transferSpecial","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040819052600060808190526200001b91600f91620002b5565b506040805160208101918290526000908190526200003c91601091620002b5565b506040805160208101918290526000908190526200005d91601191620002b5565b5060408051808201909152600d8082526c47656e6573697354726169747360981b60209092019182526200009491601291620002b5565b50348015620000a257600080fd5b5060405162004c5f38038062004c5f833981016040819052620000c59162000401565b604080518082018252600d81526c47656e6573697354726169747360981b60208083019182528351808501909452600284526111d560f21b9084015281519192916200011491600091620002b5565b5080516200012a906001906020840190620002b5565b50505062000147620001416200025f60201b60201c565b62000263565b6001600b5560005b600681101562000256576200016881620f424062000483565b6200017590600262000483565b620001839061271062000468565b601760006200019484600262000483565b815260200190815260200160002081905550828181518110620001c757634e487b7160e01b600052603260045260246000fd5b602002602001015160146000836002620001e2919062000483565b8152602001908152602001600020819055508181815181106200021557634e487b7160e01b600052603260045260246000fd5b60200260200101516015600083600262000230919062000483565b8152602081019190915260400160002055806200024d81620004e2565b9150506200014f565b5050506200052c565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002c390620004a5565b90600052602060002090601f016020900481019282620002e7576000855562000332565b82601f106200030257805160ff191683800117855562000332565b8280016001018555821562000332579182015b828111156200033257825182559160200191906001019062000315565b506200034092915062000344565b5090565b5b8082111562000340576000815560010162000345565b600082601f8301126200036c578081fd5b815160206001600160401b03808311156200038b576200038b62000516565b818302604051601f19603f83011681018181108482111715620003b257620003b262000516565b60405284815283810192508684018288018501891015620003d1578687fd5b8692505b85831015620003f5578051845292840192600192909201918401620003d5565b50979650505050505050565b6000806040838503121562000414578182fd5b82516001600160401b03808211156200042b578384fd5b62000439868387016200035b565b935060208501519150808211156200044f578283fd5b506200045e858286016200035b565b9150509250929050565b600082198211156200047e576200047e62000500565b500190565b6000816000190483118215151615620004a057620004a062000500565b500290565b600281046001821680620004ba57607f821691505b60208210811415620004dc57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620004f957620004f962000500565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b614723806200053c6000396000f3fe608060405234801561001057600080fd5b50600436106103155760003560e01c8063715018a6116101a7578063bfd77092116100ee578063dab1c67c11610097578063e985e9c511610071578063e985e9c5146106a2578063f2fde38b146106de578063f7021952146106f157610315565b8063dab1c67c14610667578063dde5d4071461067a578063e5326ab11461069a57610315565b8063cf348425116100c8578063cf3484251461062e578063d2ff697d14610641578063d88211dd1461065457610315565b8063bfd77092146105e8578063c74f49cd146105fb578063c87b56dd1461061b57610315565b8063a22cb46511610150578063b00a7cf61161012a578063b00a7cf6146105af578063b88d4fde146105c2578063bc725da9146105d557610315565b8063a22cb46514610576578063ad727c7c14610589578063adb5e8e91461059c57610315565b806395d89b411161018157806395d89b411461053b5780639a2cb1de14610543578063a1f429421461056357610315565b8063715018a61461050f5780638da5cb5b146105175780638fa126b41461052857610315565b8063347118141161026b5780635255e5bf116102145780636352211e116101ee5780636352211e146104d6578063648690e9146104e957806370a08231146104fc57610315565b80635255e5bf1461049d57806355f804b3146104b05780635942195b146104c357610315565b806342842e0e1161024557806342842e0e1461046457806346aa47eb146104775780634f6ccce71461048a57610315565b8063347118141461041b5780633e8889f41461043b5780633f522c8a1461044457610315565b8063095ea7b3116102cd5780631ebcbc42116102a75780631ebcbc42146103e257806323b872dd146103f55780632f745c591461040857610315565b8063095ea7b3146103aa57806318160ddd146103bd5780631d458bd1146103cf57610315565b806304787ca2116102fe57806304787ca21461035757806306fdde031461036a578063081812fc1461037f57610315565b8063013eee1f1461031a57806301ffc9a71461032f575b600080fd5b61032d6103283660046142a3565b610704565b005b61034261033d36600461426b565b610723565b60405190151581526020015b60405180910390f35b61032d6103653660046142a3565b61079d565b6103726107b8565b60405161034e9190614544565b61039261038d366004614319565b61084a565b6040516001600160a01b03909116815260200161034e565b61032d6103b83660046141a1565b610871565b6008545b60405190815260200161034e565b6103726103dd366004614319565b6109a8565b61032d6103f0366004614319565b610ade565b61032d6104033660046140b3565b610f5e565b6103c16104163660046141a1565b610fe5565b6103c1610429366004614319565b60146020526000908152604090205481565b6103c1600c5481565b6103c1610452366004614319565b60136020526000908152604090205481565b61032d6104723660046140b3565b61108d565b61032d6104853660046141cc565b6110a8565b6103c1610498366004614319565b61112d565b61032d6104ab366004614043565b6111df565b61032d6104be3660046142a3565b611288565b61032d6104d1366004614319565b6112a3565b6103926104e4366004614319565b6113e9565b600d54610392906001600160a01b031681565b6103c161050a366004614043565b61144e565b61032d6114e8565b600a546001600160a01b0316610392565b61032d610536366004614319565b6114fc565b61037261194d565b6103c1610551366004614319565b60176020526000908152604090205481565b61032d610571366004614043565b61195c565b61032d610584366004614170565b611a05565b61032d610597366004614349565b611a10565b600e54610392906001600160a01b031681565b6103c16105bd36600461436d565b611ab1565b61032d6105d03660046140f3565b611be9565b61032d6105e3366004614319565b611c77565b61032d6105f6366004614319565b6120c5565b6103c1610609366004614319565b60156020526000908152604090205481565b610372610629366004614319565b612516565b61037261063c366004614319565b612685565b6103c161064f366004614319565b6126eb565b61032d610662366004614319565b6127a3565b61032d6106753660046142d6565b612bf4565b6103c1610688366004614319565b60186020526000908152604090205481565b610372612d3b565b6103426106b036600461407b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61032d6106ec366004614043565b612dc9565b61032d6106ff366004614319565b612e59565b61070c6132aa565b805161071f906011906020840190613f33565b5050565b60006001600160e01b031982167f9a31193900000000000000000000000000000000000000000000000000000000148061078657506001600160e01b031982167f67ca90af00000000000000000000000000000000000000000000000000000000145b80610795575061079582613304565b90505b919050565b6107a56132aa565b805161071f906010906020840190613f33565b6060600080546107c790614616565b80601f01602080910402602001604051908101604052809291908181526020018280546107f390614616565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b5050505050905090565b600061085582613342565b506000908152600460205260409020546001600160a01b031690565b600061087c826113e9565b9050806001600160a01b0316836001600160a01b0316141561090b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610927575061092781336106b0565b6109995760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610902565b6109a383836133a6565b505050565b606060006109b5836126eb565b11610a285760405162461bcd60e51b815260206004820152602560248201527f47656e657369735472616974733a20746f6b656e496420646f6573206e6f742060448201527f65786973740000000000000000000000000000000000000000000000000000006064820152608401610902565b6000610a3b836105bd620f4240826145a0565b6000818152601660205260409020805491925090610a5890614616565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8490614616565b8015610ad15780601f10610aa657610100808354040283529160200191610ad1565b820191906000526020600020905b815481529060010190602001808311610ab457829003601f168201915b5050505050915050919050565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015610b2b57600080fd5b505af1158015610b3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b63919061405f565b6001600160a01b031614610bd65760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610c1f57600080fd5b505afa158015610c33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c57919061405f565b6001600160a01b03161480610cf5575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b158015610cb257600080fd5b505af1158015610cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cea919061405f565b6001600160a01b0316145b610d715760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411610def5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491610e0983614651565b9091555050600a600090815260176020527fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c805491610e4783614651565b90915550507fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b158015610ec657600080fd5b505afa158015610eda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efe919061405f565b600a60005260176020527fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c54613414565b60405181907f36ee1d8d685681e8d6ac46308fbbdc56c7f90ef42f03ac320f32d52eed6db50590600090a25050565b610f683382613563565b610fda5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610902565b6109a38383836135e2565b6000610ff08361144e565b82106110645760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610902565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109a383838360405180602001604052806000815250611be9565b6110b06132aa565b42600c5560005b815181101561071f578181815181106110e057634e487b7160e01b600052603260045260246000fd5b6020026020010151601660008360016110f99190614588565b8152602001908152602001600020908051906020019061111a929190613f33565b508061112581614651565b9150506110b7565b600061113860085490565b82106111ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610902565b600882815481106111cd57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6111e76132aa565b600d546001600160a01b0316156112665760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2074726169745661756c742063616e206f6e60448201527f6c7920626520736574206f6e63650000000000000000000000000000000000006064820152608401610902565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6112906132aa565b805161071f90600f906020840190613f33565b600d546001600160a01b0316336001600160a01b03161461132c5760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65207472616974735661756c742e0000000000000000000000000000000000006064820152608401610902565b6002600b54141561137f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610902565b6002600b5560005b60068110156113e057600061139f82620f42406145b4565b6113aa9060026145b4565b6113b49084614588565b600d549091506113cd906001600160a01b031682613414565b50806113d881614651565b915050611387565b50506001600b55565b6000818152600260205260408120546001600160a01b0316806107955760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610902565b60006001600160a01b0382166114cc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610902565b506001600160a01b031660009081526003602052604090205490565b6114f06132aa565b6114fa60006137ba565b565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b15801561154957600080fd5b505af115801561155d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611581919061405f565b6001600160a01b0316146115f45760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611675919061405f565b6001600160a01b03161480611713575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611708919061405f565b6001600160a01b0316145b61178f5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b60008181526013602052604090205460041161180d5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b600081815260136020526040812080549161182783614651565b90915550506004600090815260176020527f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d80549161186583614651565b90915550507f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b1580156118e457600080fd5b505afa1580156118f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191c919061405f565b600460005260176020527f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d54613414565b6060600180546107c790614616565b6119646132aa565b600e546001600160a01b0316156119e35760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a20726567656e735a65726f2063616e206f6e60448201527f6c7920626520736574206f6e63650000000000000000000000000000000000006064820152608401610902565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61071f33838361380c565b600d546001600160a01b0316336001600160a01b031614611a995760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65207472616974735661756c742e0000000000000000000000000000000000006064820152608401610902565b600d5461071f9082906001600160a01b0316846135e2565b600080611abd846126eb565b600c54611aca9086614588565b611ad49190614588565b905060008080805b600019841015611b9757600192505b6000878152601460205260409020548311611b7a57600085604051602001611b1591815260200190565b60408051601f19818403018152918152815160209283012060008b81526015909352912054909150611b49906000196145a0565b811015611b6657839250611b5e600183614588565b915050611b7a565b945082611b7281614651565b935050611aeb565b8015611b8557611b97565b83611b8f81614651565b945050611adc565b60008094505b87851015611bd257600085815260146020526040902054611bbe9082614588565b905084611bca81614651565b955050611b9d565b611bdc8184614588565b9998505050505050505050565b611bf33383613563565b611c655760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610902565b611c71848484846138db565b50505050565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015611cc457600080fd5b505af1158015611cd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cfc919061405f565b6001600160a01b031614611d6f5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015611db857600080fd5b505afa158015611dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df0919061405f565b6001600160a01b03161480611e8e575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e83919061405f565b6001600160a01b0316145b611f0a5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411611f885760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491611fa283614651565b9091555050600080805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b805491611fde83614651565b90915550507fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b15801561205d57600080fd5b505afa158015612071573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612095919061405f565b6000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b54613414565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b15801561211257600080fd5b505af1158015612126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214a919061405f565b6001600160a01b0316146121bd5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b15801561220657600080fd5b505afa15801561221a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223e919061405f565b6001600160a01b031614806122dc575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561229957600080fd5b505af11580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d1919061405f565b6001600160a01b0316145b6123585760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b6000818152601360205260409020546004116123d65760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b60008181526013602052604081208054916123f083614651565b90915550506002600090815260176020527fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca80549161242e83614651565b90915550507fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b1580156124ad57600080fd5b505afa1580156124c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e5919061405f565b600260005260176020527fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca54613414565b6000818152600260205260409020546060906001600160a01b03166125a35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610902565b60006125b6836105bd620f4240826145a0565b90506000600c541161265257601180546125cf90614616565b80601f01602080910402602001604051908101604052809291908181526020018280546125fb90614616565b80156126485780601f1061261d57610100808354040283529160200191612648565b820191906000526020600020905b81548152906001019060200180831161262b57829003601f168201915b505050505061267e565b600f61265d82613964565b60405160200161266e9291906144bb565b6040516020818303038152906040525b9392505050565b6060600061269a836105bd620f4240826145a0565b90506000600c541180156126b6575060006126b4846126eb565b115b6126cf576040518060200160405280600081525061267e565b60106126da82613964565b60405160200161266e92919061446e565b60006127106126fd620f42408461466c565b111561271757600082815260186020526040902054610795565b600d546001600160a01b0316634305a6df612735620f42408561466c565b6040518263ffffffff1660e01b815260040161275391815260200190565b60206040518083038186803b15801561276b57600080fd5b505afa15801561277f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107959190614331565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b1580156127f057600080fd5b505af1158015612804573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612828919061405f565b6001600160a01b03161461289b5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b1580156128e457600080fd5b505afa1580156128f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291c919061405f565b6001600160a01b031614806129ba575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561297757600080fd5b505af115801561298b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129af919061405f565b6001600160a01b0316145b612a365760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411612ab45760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491612ace83614651565b90915550506008600090815260176020527ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd7655805491612b0c83614651565b90915550507ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd76555460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b158015612b8b57600080fd5b505afa158015612b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc3919061405f565b600860005260176020527ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd765554613414565b612bfc6132aa565b60008111612c725760405162461bcd60e51b815260206004820152603160248201527f47656e657369735472616974733a2074726169744e616d654964206d7573742060448201527f62652067726561746572207468616e20300000000000000000000000000000006064820152608401610902565b6040805160008152602081018083528151902091612c9291859101614452565b604051602081830303815290604052805190602001201415612d1c5760405162461bcd60e51b815260206004820152602960248201527f47656e657369735472616974733a205472616974206e616d652063616e6e6f7460448201527f20626520656d70747900000000000000000000000000000000000000000000006064820152608401610902565b600081815260166020908152604090912083516109a392850190613f33565b60128054612d4890614616565b80601f0160208091040260200160405190810160405280929190818152602001828054612d7490614616565b8015612dc15780601f10612d9657610100808354040283529160200191612dc1565b820191906000526020600020905b815481529060010190602001808311612da457829003601f168201915b505050505081565b612dd16132aa565b6001600160a01b038116612e4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610902565b612e56816137ba565b50565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015612ea657600080fd5b505af1158015612eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ede919061405f565b6001600160a01b031614612f515760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015612f9a57600080fd5b505afa158015612fae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fd2919061405f565b6001600160a01b03161480613070575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561302d57600080fd5b505af1158015613041573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613065919061405f565b6001600160a01b0316145b6130ec5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b60008181526013602052604090205460041161316a5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b600081815260136020526040812080549161318483614651565b90915550506006600090815260176020527fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d8054916131c283614651565b90915550507fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b15801561324157600080fd5b505afa158015613255573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613279919061405f565b600660005260176020527fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d54613414565b600a546001600160a01b031633146114fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610902565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610795575061079582613ab3565b6000818152600260205260409020546001600160a01b0316612e565760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610902565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133db826113e9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03821661346a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610902565b6000818152600260205260409020546001600160a01b0316156134cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610902565b6134db60008383613b4e565b6001600160a01b0382166000908152600360205260408120805460019290613504908490614588565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461071f565b60008061356f836113e9565b9050806001600160a01b0316846001600160a01b031614806135b657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806135da5750836001600160a01b03166135cf8461084a565b6001600160a01b0316145b949350505050565b826001600160a01b03166135f5826113e9565b6001600160a01b0316146136715760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610902565b6001600160a01b0382166136ec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610902565b6136f7838383613b4e565b6137026000826133a6565b6001600160a01b038316600090815260036020526040812080546001929061372b9084906145d3565b90915550506001600160a01b0382166000908152600360205260408120805460019290613759908490614588565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a46109a3565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561386e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610902565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6138e68484846135e2565b6138f284848484613b59565b611c715760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610902565b6060816139a5575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610798565b8160005b81156139cf57806139b981614651565b91506139c89050600a836145a0565b91506139a9565b60008167ffffffffffffffff8111156139f857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a22576020820181803683370190505b5090505b84156135da57613a376001836145d3565b9150613a44600a8661466c565b613a4f906030614588565b60f81b818381518110613a7257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613aac600a866145a0565b9450613a26565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480613b1657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610795565b6109a3838383613cbc565b60006001600160a01b0384163b15613cb157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613b9d903390899088908890600401614508565b602060405180830381600087803b158015613bb757600080fd5b505af1925050508015613be7575060408051601f3d908101601f19168201909252613be491810190614287565b60015b613c97573d808015613c15576040519150601f19603f3d011682016040523d82523d6000602084013e613c1a565b606091505b508051613c8f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610902565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506135da565b506001949350505050565b6001600160a01b038316613d1757613d1281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613d3a565b816001600160a01b0316836001600160a01b031614613d3a57613d3a8382613d79565b6001600160a01b038216613d5657613d5181613e16565b6109a3565b826001600160a01b0316826001600160a01b0316146109a3576109a38282613eef565b60006001613d868461144e565b613d9091906145d3565b600083815260076020526040902054909150808214613de3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613e28906001906145d3565b60008381526009602052604081205460088054939450909284908110613e5e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613e8d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ed357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613efa8361144e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613f3f90614616565b90600052602060002090601f016020900481019282613f615760008555613fa7565b82601f10613f7a57805160ff1916838001178555613fa7565b82800160010185558215613fa7579182015b82811115613fa7578251825591602001919060010190613f8c565b50613fb3929150613fb7565b5090565b5b80821115613fb35760008155600101613fb8565b600067ffffffffffffffff831115613fe657613fe66146ac565b613ff9601f8401601f1916602001614557565b905082815283838301111561400d57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614034578081fd5b61267e83833560208501613fcc565b600060208284031215614054578081fd5b813561267e816146c2565b600060208284031215614070578081fd5b815161267e816146c2565b6000806040838503121561408d578081fd5b8235614098816146c2565b915060208301356140a8816146c2565b809150509250929050565b6000806000606084860312156140c7578081fd5b83356140d2816146c2565b925060208401356140e2816146c2565b929592945050506040919091013590565b60008060008060808587031215614108578081fd5b8435614113816146c2565b93506020850135614123816146c2565b925060408501359150606085013567ffffffffffffffff811115614145578182fd5b8501601f81018713614155578182fd5b61416487823560208401613fcc565b91505092959194509250565b60008060408385031215614182578182fd5b823561418d816146c2565b9150602083013580151581146140a8578182fd5b600080604083850312156141b3578182fd5b82356141be816146c2565b946020939093013593505050565b600060208083850312156141de578182fd5b823567ffffffffffffffff808211156141f5578384fd5b818501915085601f830112614208578384fd5b81358181111561421a5761421a6146ac565b6142278485830201614557565b8181528481019250838501865b8381101561425d5761424b8a888435890101614024565b85529386019390860190600101614234565b509098975050505050505050565b60006020828403121561427c578081fd5b813561267e816146d7565b600060208284031215614298578081fd5b815161267e816146d7565b6000602082840312156142b4578081fd5b813567ffffffffffffffff8111156142ca578182fd5b6135da84828501614024565b600080604083850312156142e8578081fd5b823567ffffffffffffffff8111156142fe578182fd5b61430a85828601614024565b95602094909401359450505050565b60006020828403121561432a578081fd5b5035919050565b600060208284031215614342578081fd5b5051919050565b6000806040838503121561435b578182fd5b8235915060208301356140a8816146c2565b6000806040838503121561437f578182fd5b50508035926020909101359150565b600081518084526143a68160208601602086016145ea565b601f01601f19169290920160200192915050565b8054600090600281046001808316806143d457607f831692505b60208084108214156143f457634e487b7160e01b86526022600452602486fd5b818015614408576001811461441957614446565b60ff19861689528489019650614446565b60008881526020902060005b8681101561443e5781548b820152908501908301614425565b505084890196505b50505050505092915050565b600082516144648184602087016145ea565b9190910192915050565b600061447a82856143ba565b835161448a8183602088016145ea565b7f2e706e67000000000000000000000000000000000000000000000000000000009101908152600401949350505050565b60006144c782856143ba565b83516144d78183602088016145ea565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261453a608083018461438e565b9695505050505050565b60006020825261267e602083018461438e565b604051601f8201601f1916810167ffffffffffffffff81118282101715614580576145806146ac565b604052919050565b6000821982111561459b5761459b614680565b500190565b6000826145af576145af614696565b500490565b60008160001904831182151516156145ce576145ce614680565b500290565b6000828210156145e5576145e5614680565b500390565b60005b838110156146055781810151838201526020016145ed565b83811115611c715750506000910152565b60028104600182168061462a57607f821691505b6020821081141561464b57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561466557614665614680565b5060010190565b60008261467b5761467b614696565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612e5657600080fd5b6001600160e01b031981168114612e5657600080fdfea264697066735822122053351908435d50387db2c946b68bd943e15afc88dae86978c5113cc8ff7be76564736f6c6343000802003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000028

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103155760003560e01c8063715018a6116101a7578063bfd77092116100ee578063dab1c67c11610097578063e985e9c511610071578063e985e9c5146106a2578063f2fde38b146106de578063f7021952146106f157610315565b8063dab1c67c14610667578063dde5d4071461067a578063e5326ab11461069a57610315565b8063cf348425116100c8578063cf3484251461062e578063d2ff697d14610641578063d88211dd1461065457610315565b8063bfd77092146105e8578063c74f49cd146105fb578063c87b56dd1461061b57610315565b8063a22cb46511610150578063b00a7cf61161012a578063b00a7cf6146105af578063b88d4fde146105c2578063bc725da9146105d557610315565b8063a22cb46514610576578063ad727c7c14610589578063adb5e8e91461059c57610315565b806395d89b411161018157806395d89b411461053b5780639a2cb1de14610543578063a1f429421461056357610315565b8063715018a61461050f5780638da5cb5b146105175780638fa126b41461052857610315565b8063347118141161026b5780635255e5bf116102145780636352211e116101ee5780636352211e146104d6578063648690e9146104e957806370a08231146104fc57610315565b80635255e5bf1461049d57806355f804b3146104b05780635942195b146104c357610315565b806342842e0e1161024557806342842e0e1461046457806346aa47eb146104775780634f6ccce71461048a57610315565b8063347118141461041b5780633e8889f41461043b5780633f522c8a1461044457610315565b8063095ea7b3116102cd5780631ebcbc42116102a75780631ebcbc42146103e257806323b872dd146103f55780632f745c591461040857610315565b8063095ea7b3146103aa57806318160ddd146103bd5780631d458bd1146103cf57610315565b806304787ca2116102fe57806304787ca21461035757806306fdde031461036a578063081812fc1461037f57610315565b8063013eee1f1461031a57806301ffc9a71461032f575b600080fd5b61032d6103283660046142a3565b610704565b005b61034261033d36600461426b565b610723565b60405190151581526020015b60405180910390f35b61032d6103653660046142a3565b61079d565b6103726107b8565b60405161034e9190614544565b61039261038d366004614319565b61084a565b6040516001600160a01b03909116815260200161034e565b61032d6103b83660046141a1565b610871565b6008545b60405190815260200161034e565b6103726103dd366004614319565b6109a8565b61032d6103f0366004614319565b610ade565b61032d6104033660046140b3565b610f5e565b6103c16104163660046141a1565b610fe5565b6103c1610429366004614319565b60146020526000908152604090205481565b6103c1600c5481565b6103c1610452366004614319565b60136020526000908152604090205481565b61032d6104723660046140b3565b61108d565b61032d6104853660046141cc565b6110a8565b6103c1610498366004614319565b61112d565b61032d6104ab366004614043565b6111df565b61032d6104be3660046142a3565b611288565b61032d6104d1366004614319565b6112a3565b6103926104e4366004614319565b6113e9565b600d54610392906001600160a01b031681565b6103c161050a366004614043565b61144e565b61032d6114e8565b600a546001600160a01b0316610392565b61032d610536366004614319565b6114fc565b61037261194d565b6103c1610551366004614319565b60176020526000908152604090205481565b61032d610571366004614043565b61195c565b61032d610584366004614170565b611a05565b61032d610597366004614349565b611a10565b600e54610392906001600160a01b031681565b6103c16105bd36600461436d565b611ab1565b61032d6105d03660046140f3565b611be9565b61032d6105e3366004614319565b611c77565b61032d6105f6366004614319565b6120c5565b6103c1610609366004614319565b60156020526000908152604090205481565b610372610629366004614319565b612516565b61037261063c366004614319565b612685565b6103c161064f366004614319565b6126eb565b61032d610662366004614319565b6127a3565b61032d6106753660046142d6565b612bf4565b6103c1610688366004614319565b60186020526000908152604090205481565b610372612d3b565b6103426106b036600461407b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61032d6106ec366004614043565b612dc9565b61032d6106ff366004614319565b612e59565b61070c6132aa565b805161071f906011906020840190613f33565b5050565b60006001600160e01b031982167f9a31193900000000000000000000000000000000000000000000000000000000148061078657506001600160e01b031982167f67ca90af00000000000000000000000000000000000000000000000000000000145b80610795575061079582613304565b90505b919050565b6107a56132aa565b805161071f906010906020840190613f33565b6060600080546107c790614616565b80601f01602080910402602001604051908101604052809291908181526020018280546107f390614616565b80156108405780601f1061081557610100808354040283529160200191610840565b820191906000526020600020905b81548152906001019060200180831161082357829003601f168201915b5050505050905090565b600061085582613342565b506000908152600460205260409020546001600160a01b031690565b600061087c826113e9565b9050806001600160a01b0316836001600160a01b0316141561090b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610927575061092781336106b0565b6109995760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610902565b6109a383836133a6565b505050565b606060006109b5836126eb565b11610a285760405162461bcd60e51b815260206004820152602560248201527f47656e657369735472616974733a20746f6b656e496420646f6573206e6f742060448201527f65786973740000000000000000000000000000000000000000000000000000006064820152608401610902565b6000610a3b836105bd620f4240826145a0565b6000818152601660205260409020805491925090610a5890614616565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8490614616565b8015610ad15780601f10610aa657610100808354040283529160200191610ad1565b820191906000526020600020905b815481529060010190602001808311610ab457829003601f168201915b5050505050915050919050565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015610b2b57600080fd5b505af1158015610b3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b63919061405f565b6001600160a01b031614610bd65760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015610c1f57600080fd5b505afa158015610c33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c57919061405f565b6001600160a01b03161480610cf5575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b158015610cb257600080fd5b505af1158015610cc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cea919061405f565b6001600160a01b0316145b610d715760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411610def5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491610e0983614651565b9091555050600a600090815260176020527fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c805491610e4783614651565b90915550507fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b158015610ec657600080fd5b505afa158015610eda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efe919061405f565b600a60005260176020527fd01a1030c3796725449ebf72d73ac5540c8aa9c83f796ef75dcf19a390d0382c54613414565b60405181907f36ee1d8d685681e8d6ac46308fbbdc56c7f90ef42f03ac320f32d52eed6db50590600090a25050565b610f683382613563565b610fda5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610902565b6109a38383836135e2565b6000610ff08361144e565b82106110645760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e64730000000000000000000000000000000000000000006064820152608401610902565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6109a383838360405180602001604052806000815250611be9565b6110b06132aa565b42600c5560005b815181101561071f578181815181106110e057634e487b7160e01b600052603260045260246000fd5b6020026020010151601660008360016110f99190614588565b8152602001908152602001600020908051906020019061111a929190613f33565b508061112581614651565b9150506110b7565b600061113860085490565b82106111ac5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610902565b600882815481106111cd57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6111e76132aa565b600d546001600160a01b0316156112665760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2074726169745661756c742063616e206f6e60448201527f6c7920626520736574206f6e63650000000000000000000000000000000000006064820152608401610902565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b6112906132aa565b805161071f90600f906020840190613f33565b600d546001600160a01b0316336001600160a01b03161461132c5760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65207472616974735661756c742e0000000000000000000000000000000000006064820152608401610902565b6002600b54141561137f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610902565b6002600b5560005b60068110156113e057600061139f82620f42406145b4565b6113aa9060026145b4565b6113b49084614588565b600d549091506113cd906001600160a01b031682613414565b50806113d881614651565b915050611387565b50506001600b55565b6000818152600260205260408120546001600160a01b0316806107955760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610902565b60006001600160a01b0382166114cc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610902565b506001600160a01b031660009081526003602052604090205490565b6114f06132aa565b6114fa60006137ba565b565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b15801561154957600080fd5b505af115801561155d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611581919061405f565b6001600160a01b0316146115f45760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b15801561163d57600080fd5b505afa158015611651573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611675919061405f565b6001600160a01b03161480611713575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b1580156116d057600080fd5b505af11580156116e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611708919061405f565b6001600160a01b0316145b61178f5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b60008181526013602052604090205460041161180d5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b600081815260136020526040812080549161182783614651565b90915550506004600090815260176020527f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d80549161186583614651565b90915550507f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b1580156118e457600080fd5b505afa1580156118f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061191c919061405f565b600460005260176020527f68052a315987b3c92fe6f7df77391bc5a825cabe4950d34f36f8f4e8a6abcb4d54613414565b6060600180546107c790614616565b6119646132aa565b600e546001600160a01b0316156119e35760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a20726567656e735a65726f2063616e206f6e60448201527f6c7920626520736574206f6e63650000000000000000000000000000000000006064820152608401610902565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b61071f33838361380c565b600d546001600160a01b0316336001600160a01b031614611a995760405162461bcd60e51b815260206004820152602e60248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65207472616974735661756c742e0000000000000000000000000000000000006064820152608401610902565b600d5461071f9082906001600160a01b0316846135e2565b600080611abd846126eb565b600c54611aca9086614588565b611ad49190614588565b905060008080805b600019841015611b9757600192505b6000878152601460205260409020548311611b7a57600085604051602001611b1591815260200190565b60408051601f19818403018152918152815160209283012060008b81526015909352912054909150611b49906000196145a0565b811015611b6657839250611b5e600183614588565b915050611b7a565b945082611b7281614651565b935050611aeb565b8015611b8557611b97565b83611b8f81614651565b945050611adc565b60008094505b87851015611bd257600085815260146020526040902054611bbe9082614588565b905084611bca81614651565b955050611b9d565b611bdc8184614588565b9998505050505050505050565b611bf33383613563565b611c655760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610902565b611c71848484846138db565b50505050565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015611cc457600080fd5b505af1158015611cd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cfc919061405f565b6001600160a01b031614611d6f5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015611db857600080fd5b505afa158015611dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df0919061405f565b6001600160a01b03161480611e8e575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b158015611e4b57600080fd5b505af1158015611e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e83919061405f565b6001600160a01b0316145b611f0a5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411611f885760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491611fa283614651565b9091555050600080805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b805491611fde83614651565b90915550507fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b15801561205d57600080fd5b505afa158015612071573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612095919061405f565b6000805260176020527fd840e16649f6b9a295d95876f4633d3a6b10b55e8162971cf78afd886d5ec89b54613414565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b15801561211257600080fd5b505af1158015612126573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061214a919061405f565b6001600160a01b0316146121bd5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b15801561220657600080fd5b505afa15801561221a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061223e919061405f565b6001600160a01b031614806122dc575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561229957600080fd5b505af11580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d1919061405f565b6001600160a01b0316145b6123585760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b6000818152601360205260409020546004116123d65760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b60008181526013602052604081208054916123f083614651565b90915550506002600090815260176020527fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca80549161242e83614651565b90915550507fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b1580156124ad57600080fd5b505afa1580156124c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124e5919061405f565b600260005260176020527fc52df653038b2ad477d8d97f1ddd63cfd138847b628ad8a7b89c109c3f8782ca54613414565b6000818152600260205260409020546060906001600160a01b03166125a35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610902565b60006125b6836105bd620f4240826145a0565b90506000600c541161265257601180546125cf90614616565b80601f01602080910402602001604051908101604052809291908181526020018280546125fb90614616565b80156126485780601f1061261d57610100808354040283529160200191612648565b820191906000526020600020905b81548152906001019060200180831161262b57829003601f168201915b505050505061267e565b600f61265d82613964565b60405160200161266e9291906144bb565b6040516020818303038152906040525b9392505050565b6060600061269a836105bd620f4240826145a0565b90506000600c541180156126b6575060006126b4846126eb565b115b6126cf576040518060200160405280600081525061267e565b60106126da82613964565b60405160200161266e92919061446e565b60006127106126fd620f42408461466c565b111561271757600082815260186020526040902054610795565b600d546001600160a01b0316634305a6df612735620f42408561466c565b6040518263ffffffff1660e01b815260040161275391815260200190565b60206040518083038186803b15801561276b57600080fd5b505afa15801561277f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107959190614331565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b1580156127f057600080fd5b505af1158015612804573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612828919061405f565b6001600160a01b03161461289b5760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b1580156128e457600080fd5b505afa1580156128f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061291c919061405f565b6001600160a01b031614806129ba575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561297757600080fd5b505af115801561298b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129af919061405f565b6001600160a01b0316145b612a365760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b600081815260136020526040902054600411612ab45760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b6000818152601360205260408120805491612ace83614651565b90915550506008600090815260176020527ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd7655805491612b0c83614651565b90915550507ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd76555460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b158015612b8b57600080fd5b505afa158015612b9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc3919061405f565b600860005260176020527ff573626183c54e3dd8eb68c6c0266a90101d76d98ec703822e6a139999dd765554613414565b612bfc6132aa565b60008111612c725760405162461bcd60e51b815260206004820152603160248201527f47656e657369735472616974733a2074726169744e616d654964206d7573742060448201527f62652067726561746572207468616e20300000000000000000000000000000006064820152608401610902565b6040805160008152602081018083528151902091612c9291859101614452565b604051602081830303815290604052805190602001201415612d1c5760405162461bcd60e51b815260206004820152602960248201527f47656e657369735472616974733a205472616974206e616d652063616e6e6f7460448201527f20626520656d70747900000000000000000000000000000000000000000000006064820152608401610902565b600081815260166020908152604090912083516109a392850190613f33565b60128054612d4890614616565b80601f0160208091040260200160405190810160405280929190818152602001828054612d7490614616565b8015612dc15780601f10612d9657610100808354040283529160200191612dc1565b820191906000526020600020905b815481529060010190602001808311612da457829003601f168201915b505050505081565b612dd16132aa565b6001600160a01b038116612e4d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610902565b612e56816137ba565b50565b600d54600e5460405163ed04192160e01b81526004810184905283926001600160a01b0390811692169063ed04192190602401602060405180830381600087803b158015612ea657600080fd5b505af1158015612eba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ede919061405f565b6001600160a01b031614612f515760405162461bcd60e51b815260206004820152603460248201527f47656e657369735472616974733a205468697320746f6b656e496420646f6573604482015273206e6f7420686176652067656e65736973444e4160601b6064820152608401610902565b33600e546040516331a9108f60e11b8152600481018490526001600160a01b039283169290911690636352211e9060240160206040518083038186803b158015612f9a57600080fd5b505afa158015612fae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fd2919061405f565b6001600160a01b03161480613070575033600e5460405163163b6aa760e21b8152600481018490526001600160a01b0392831692909116906358edaa9c90602401602060405180830381600087803b15801561302d57600080fd5b505af1158015613041573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613065919061405f565b6001600160a01b0316145b6130ec5760405162461bcd60e51b815260206004820152604160248201527f47656e657369735472616974733a2053656e6465722063616e206f6e6c79206260448201527f65206f776e6572206f7220636f6e74726f6c6c6572206f6620746f6b656e49646064820152601760f91b608482015260a401610902565b60008181526013602052604090205460041161316a5760405162461bcd60e51b815260206004820152603760248201527f47656e657369735472616974733a205468697320746f6b656e496420686173206044820152766e6f206d6f726520636c61696d696e6720746f6b656e7360481b6064820152608401610902565b600081815260136020526040812080549161318483614651565b90915550506006600090815260176020527fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d8054916131c283614651565b90915550507fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d5460009081526018602052604090819020429055600e5490516331a9108f60e11b815260048101849052610f2f916001600160a01b031690636352211e9060240160206040518083038186803b15801561324157600080fd5b505afa158015613255573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613279919061405f565b600660005260176020527fdba639bd458ad7aa817aa5e381ad7ed79ea3aeac2e3d9b2d7c51df9a9229709d54613414565b600a546001600160a01b031633146114fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610902565b60006001600160e01b031982167f780e9d63000000000000000000000000000000000000000000000000000000001480610795575061079582613ab3565b6000818152600260205260409020546001600160a01b0316612e565760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610902565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906133db826113e9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b03821661346a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610902565b6000818152600260205260409020546001600160a01b0316156134cf5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610902565b6134db60008383613b4e565b6001600160a01b0382166000908152600360205260408120805460019290613504908490614588565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461071f565b60008061356f836113e9565b9050806001600160a01b0316846001600160a01b031614806135b657506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806135da5750836001600160a01b03166135cf8461084a565b6001600160a01b0316145b949350505050565b826001600160a01b03166135f5826113e9565b6001600160a01b0316146136715760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610902565b6001600160a01b0382166136ec5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610902565b6136f7838383613b4e565b6137026000826133a6565b6001600160a01b038316600090815260036020526040812080546001929061372b9084906145d3565b90915550506001600160a01b0382166000908152600360205260408120805460019290613759908490614588565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a46109a3565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561386e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610902565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6138e68484846135e2565b6138f284848484613b59565b611c715760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610902565b6060816139a5575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610798565b8160005b81156139cf57806139b981614651565b91506139c89050600a836145a0565b91506139a9565b60008167ffffffffffffffff8111156139f857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a22576020820181803683370190505b5090505b84156135da57613a376001836145d3565b9150613a44600a8661466c565b613a4f906030614588565b60f81b818381518110613a7257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613aac600a866145a0565b9450613a26565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480613b1657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061079557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610795565b6109a3838383613cbc565b60006001600160a01b0384163b15613cb157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613b9d903390899088908890600401614508565b602060405180830381600087803b158015613bb757600080fd5b505af1925050508015613be7575060408051601f3d908101601f19168201909252613be491810190614287565b60015b613c97573d808015613c15576040519150601f19603f3d011682016040523d82523d6000602084013e613c1a565b606091505b508051613c8f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610902565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506135da565b506001949350505050565b6001600160a01b038316613d1757613d1281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613d3a565b816001600160a01b0316836001600160a01b031614613d3a57613d3a8382613d79565b6001600160a01b038216613d5657613d5181613e16565b6109a3565b826001600160a01b0316826001600160a01b0316146109a3576109a38282613eef565b60006001613d868461144e565b613d9091906145d3565b600083815260076020526040902054909150808214613de3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090613e28906001906145d3565b60008381526009602052604081205460088054939450909284908110613e5e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110613e8d57634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480613ed357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613efa8361144e565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054613f3f90614616565b90600052602060002090601f016020900481019282613f615760008555613fa7565b82601f10613f7a57805160ff1916838001178555613fa7565b82800160010185558215613fa7579182015b82811115613fa7578251825591602001919060010190613f8c565b50613fb3929150613fb7565b5090565b5b80821115613fb35760008155600101613fb8565b600067ffffffffffffffff831115613fe657613fe66146ac565b613ff9601f8401601f1916602001614557565b905082815283838301111561400d57600080fd5b828260208301376000602084830101529392505050565b600082601f830112614034578081fd5b61267e83833560208501613fcc565b600060208284031215614054578081fd5b813561267e816146c2565b600060208284031215614070578081fd5b815161267e816146c2565b6000806040838503121561408d578081fd5b8235614098816146c2565b915060208301356140a8816146c2565b809150509250929050565b6000806000606084860312156140c7578081fd5b83356140d2816146c2565b925060208401356140e2816146c2565b929592945050506040919091013590565b60008060008060808587031215614108578081fd5b8435614113816146c2565b93506020850135614123816146c2565b925060408501359150606085013567ffffffffffffffff811115614145578182fd5b8501601f81018713614155578182fd5b61416487823560208401613fcc565b91505092959194509250565b60008060408385031215614182578182fd5b823561418d816146c2565b9150602083013580151581146140a8578182fd5b600080604083850312156141b3578182fd5b82356141be816146c2565b946020939093013593505050565b600060208083850312156141de578182fd5b823567ffffffffffffffff808211156141f5578384fd5b818501915085601f830112614208578384fd5b81358181111561421a5761421a6146ac565b6142278485830201614557565b8181528481019250838501865b8381101561425d5761424b8a888435890101614024565b85529386019390860190600101614234565b509098975050505050505050565b60006020828403121561427c578081fd5b813561267e816146d7565b600060208284031215614298578081fd5b815161267e816146d7565b6000602082840312156142b4578081fd5b813567ffffffffffffffff8111156142ca578182fd5b6135da84828501614024565b600080604083850312156142e8578081fd5b823567ffffffffffffffff8111156142fe578182fd5b61430a85828601614024565b95602094909401359450505050565b60006020828403121561432a578081fd5b5035919050565b600060208284031215614342578081fd5b5051919050565b6000806040838503121561435b578182fd5b8235915060208301356140a8816146c2565b6000806040838503121561437f578182fd5b50508035926020909101359150565b600081518084526143a68160208601602086016145ea565b601f01601f19169290920160200192915050565b8054600090600281046001808316806143d457607f831692505b60208084108214156143f457634e487b7160e01b86526022600452602486fd5b818015614408576001811461441957614446565b60ff19861689528489019650614446565b60008881526020902060005b8681101561443e5781548b820152908501908301614425565b505084890196505b50505050505092915050565b600082516144648184602087016145ea565b9190910192915050565b600061447a82856143ba565b835161448a8183602088016145ea565b7f2e706e67000000000000000000000000000000000000000000000000000000009101908152600401949350505050565b60006144c782856143ba565b83516144d78183602088016145ea565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261453a608083018461438e565b9695505050505050565b60006020825261267e602083018461438e565b604051601f8201601f1916810167ffffffffffffffff81118282101715614580576145806146ac565b604052919050565b6000821982111561459b5761459b614680565b500190565b6000826145af576145af614696565b500490565b60008160001904831182151516156145ce576145ce614680565b500290565b6000828210156145e5576145e5614680565b500390565b60005b838110156146055781810151838201526020016145ed565b83811115611c715750506000910152565b60028104600182168061462a57607f821691505b6020821081141561464b57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561466557614665614680565b5060010190565b60008261467b5761467b614696565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612e5657600080fd5b6001600160e01b031981168114612e5657600080fdfea264697066735822122053351908435d50387db2c946b68bd943e15afc88dae86978c5113cc8ff7be76564736f6c63430008020033

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

00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000006e0000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000028

-----Decoded View---------------
Arg [0] : cap (uint256[]): 20,20,90,90,110,70
Arg [1] : percentage (uint256[]): 200,4,40,40,50,40

-----Encoded View---------------
16 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [6] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [7] : 000000000000000000000000000000000000000000000000000000000000006e
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000046
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [10] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000028


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

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