ETH Price: $3,475.75 (+2.20%)

Token

7 Deadly Sins (7DS)
 

Overview

Max Total Supply

106 7DS

Holders

69

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 7DS
0x2ff893ddd172c9a3822ae9b86fa82f9660d14bf4
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:
KultGang

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : NFT.sol
/**
 ____  __.     .__   __      ________                       
|    |/ _|__ __|  |_/  |_   /  _____/_____    ____    ____  
|      < |  |  \  |\   __\ /   \  ___\__  \  /    \  / ___\ 
|    |  \|  |  /  |_|  |   \    \_\  \/ __ \|   |  \/ /_/  >
|____|__ \____/|____/__|    \______  (____  /___|  /\___  / 
        \/                         \/     \/     \//_____/  
*/

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

import './ERC721A.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

contract KultGang is Ownable, ERC721A {
    using Strings for uint256;

    uint256 public privatelistStart; // privatelist sale
    uint256 public whitelistStart; // whitelist sale
    uint256 public publicStart; // Start time
    uint256 public pricePub; // Price of each tokens
    uint256 public pricePriv; // Price of each tokens
    uint256 public priceWL; // Price of each tokens
    string public baseTokenURI; // Placeholder during mint
    string public revealedTokenURI; // Revealed URI
    mapping(address => uint256) public purchased; // # of bought per address

    /**
     * @notice Checks if the msg.sender is a contract or a proxy
     */
    modifier notContract() {
        require(!_isContract(msg.sender), 'contract not allowed');
        require(msg.sender == tx.origin, 'proxy contract not allowed');
        _;
    }

    /**
     * @notice Checks if address is a contract
     * @dev It prevents contract from being targetted
     */
    function _isContract(address addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(addr)
        }
        return size > 0;
    }

    /** @dev whitelistMint
        @param signature {bytes}
        @param max {uint256}
        note To save in gas cost, i use a whitelist and a private mint function even though they are identical almost 
    */
    function whitelistMint(bytes memory signature, uint256 max) external payable notContract {
        // Wait until whitelist start
        require(whitelistStart <= block.timestamp, 'Mint: Whitelist sale not yet started');

        // Ensure whitelist
        bytes32 messageHash = sha256(abi.encode(msg.sender, max, 1));
        require(
            ECDSA.recover(messageHash, signature) == owner(),
            'Mint: Invalid Signature, are you whitelisted bud?'
        );

        listMint(max, priceWL);
    }

    /** @dev privateMint
        @param signature {bytes}
        @param max {uint256}
        note To save in gas cost, i use a whitelist and a private mint function even though they are identical almost 
    */
    function privateMint(bytes memory signature, uint256 max) external payable notContract {
        // Wait until whitelist start
        require(privatelistStart <= block.timestamp, 'Mint: Whitelist sale not yet started');

        // Ensure whitelist
        bytes32 messageHash = sha256(abi.encode(msg.sender, max, 2));
        require(
            ECDSA.recover(messageHash, signature) == owner(),
            'Mint: Invalid Signature, are you whitelisted bud?'
        );

        listMint(max, pricePriv);
    }

    /** @notice Public mint  */
    function publicMint() external payable notContract {
        // Wait until public start
        require(publicStart <= block.timestamp, 'Mint: Public sale not yet started, bud.');

        listMint(maxBatchSize, pricePub);
    }

    /** @dev ListMint
        @param max {uint256}
        @param price {uint256}
        note listMint price is calculated by the msg.value 
    */
    function listMint(uint256 max, uint256 price) internal {
        uint256 mintAmount = getMintAmount(price);
        require(mintAmount > 0, 'Mint: Can not mint 0 fren.');

        purchased[msg.sender] += mintAmount;
        require(purchased[msg.sender] <= max, "Mint: Don't be greedy share the love!");

        _safeMint(msg.sender, mintAmount);
    }

    /** @dev get mint amount and return unused eth */
    function getMintAmount(uint256 price) internal returns (uint256 mintAmount) {
        mintAmount = msg.value / price; // rounds down ;)
        if (totalSupply() + mintAmount > collectionSize) {
            uint256 over = (totalSupply() + mintAmount) - collectionSize;
            safeTransferETH(msg.sender, over * price);
            mintAmount = collectionSize - totalSupply(); // Last person gets the rest.
        }
    }

    /** @notice Allow owner to mint */
    function mint(address to, uint256 amount) external onlyOwner {
        require(totalSupply() + amount < collectionSize, 'Mint: Bruh you are overminting.');
        _safeMint(to, amount);
    }

    /** @notice Set Start time */
    function setStart(uint256 time, uint256 which) external onlyOwner {
        if (which == 0) {
            whitelistStart = time;
        } else if (which == 1) {
            privatelistStart = time;
        } else if (which == 2) {
            publicStart = time;
        }
    }

    /** @notice Set Reveal URI */
    function setPrice(uint256 newPrice, uint256 which) external onlyOwner {
        if (which == 0) {
            priceWL = newPrice;
        } else if (which == 1) {
            pricePriv = newPrice;
        } else if (which == 2) {
            pricePub = newPrice;
        }
    }

    /** @notice Set Base URI */
    function setBaseTokenURI(string memory uri) external onlyOwner {
        baseTokenURI = uri;
    }

    /** @notice Set Reveal URI */
    function setRevealedTokenUri(string memory uri) external onlyOwner {
        revealedTokenURI = uri;
    }

    /** @notice Withdraw Ethereum */
    function withdraw(address to) external onlyOwner {
        uint256 balance = address(this).balance;

        safeTransferETH(to, balance);
    }

    /** @notice function to allow for transfer of eth from addresses and contracts safely */
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }

    /** @notice get collection size */
    function getCollectionSize() external view returns (uint256) {
        return collectionSize;
    }

    /** @notice allow updates to collection size */
    function setCollectionSize(uint256 size) external onlyOwner {
        collectionSize = size;
    }

    /** @notice allow updates to batch size */
    function setMaxBatchSize(uint256 size) external onlyOwner {
        maxBatchSize = size;
    }

    /** @notice Image URI */
    function tokenURI(uint256 tokenId) public view override(ERC721A) returns (string memory) {
        require(_exists(tokenId), 'URI: Token does not exist');

        // Convert string to bytes so we can check if it's empty or not.
        return
            bytes(revealedTokenURI).length > 0
                ? string(abi.encodePacked(revealedTokenURI, tokenId.toString()))
                : baseTokenURI;
    }

    /** @notice external data */
    function getData()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (
            privatelistStart,
            whitelistStart,
            publicStart,
            pricePriv,
            priceWL,
            pricePub,
            collectionSize,
            totalSupply()
        );
    }

    function getUserData(address account) external view returns (uint256, uint256) {
        return (balanceOf(account), purchased[account]);
    }

    /** @notice initialize contract */
    constructor(
        string memory _name,
        string memory _symbol,
        uint256 _maxBatchSize,
        uint256 _collectionSize,
        uint256 _wlStart,
        uint256 _privStart,
        uint256 _publicStart
    ) ERC721A(_name, _symbol, _maxBatchSize, _collectionSize) {
        baseTokenURI = 'ipfs://QmYCGkaA25qRYP6vUcqWenAT9fPxpCUpqjhqfv4ESdvSEn';

        whitelistStart = _wlStart;
        privatelistStart = _privStart;
        publicStart = _publicStart;
        priceWL = 0.06 ether;
        pricePriv = 0.07 ether;
        pricePub = 0.08 ether;
    }
}

File 2 of 13 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
    Context,
    ERC165,
    IERC721,
    IERC721Metadata,
    IERC721Enumerable
{
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 private currentIndex = 0;

    uint256 internal collectionSize;
    uint256 internal maxBatchSize;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) private _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) internal _addressData;

    // 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
     * `maxBatchSize` refers to how much a minter can mint at a time.
     * `collectionSize_` refers to how many tokens are in the collection.
     */
    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxBatchSize_,
        uint256 collectionSize_
    ) {
        require(
            collectionSize_ > 0,
            'ERC721A: collection must have a nonzero supply'
        );
        require(maxBatchSize_ > 0, 'ERC721A: max batch size must be nonzero');
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
        collectionSize = collectionSize_;
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < totalSupply(), 'ERC721A: global index out of bounds');
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        override
        returns (uint256)
    {
        require(index < balanceOf(owner), 'ERC721A: owner index out of bounds');
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx = 0;
        address currOwnershipAddr = address(0);
        for (uint256 i = 0; i < numMintedSoFar; i++) {
            TokenOwnership memory ownership = _ownerships[i];
            if (ownership.addr != address(0)) {
                currOwnershipAddr = ownership.addr;
            }
            if (currOwnershipAddr == owner) {
                if (tokenIdsIdx == index) {
                    return i;
                }
                tokenIdsIdx++;
            }
        }
        revert('ERC721A: unable to get token of owner by index');
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

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

    function _numberMinted(address owner) internal view returns (uint256) {
        require(
            owner != address(0),
            'ERC721A: number minted query for the zero address'
        );
        return uint256(_addressData[owner].numberMinted);
    }

    function ownershipOf(uint256 tokenId)
        internal
        view
        returns (TokenOwnership memory)
    {
        require(_exists(tokenId), 'ERC721A: owner query for nonexistent token');

        uint256 lowestTokenToCheck;
        if (tokenId >= maxBatchSize) {
            lowestTokenToCheck = tokenId - maxBatchSize + 1;
        }

        for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
            TokenOwnership memory ownership = _ownerships[curr];
            if (ownership.addr != address(0)) {
                return ownership;
            }
        }

        revert('ERC721A: unable to determine the owner of token');
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return ownershipOf(tokenId).addr;
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        require(to != owner, 'ERC721A: approval to current owner');

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            'ERC721A: approved query for nonexistent token'
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
    {
        require(operator != _msgSender(), 'ERC721A: approve to caller');

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            'ERC721A: 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`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - there must be `quantity` tokens remaining unminted in the total collection.
     * - `to` cannot be the zero address.
     * - `quantity` cannot be larger than the max batch size.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), 'ERC721A: mint to the zero address');
        // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
        require(!_exists(startTokenId), 'ERC721A: token already minted');
        require(quantity <= maxBatchSize, 'ERC721A: quantity to mint too high');

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        AddressData memory addressData = _addressData[to];
        _addressData[to] = AddressData(
            addressData.balance + uint128(quantity),
            addressData.numberMinted + uint128(quantity)
        );
        _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

        uint256 updatedIndex = startTokenId;

        for (uint256 i = 0; i < quantity; i++) {
            emit Transfer(address(0), to, updatedIndex);
            require(
                _checkOnERC721Received(address(0), to, updatedIndex, _data),
                'ERC721A: transfer to non ERC721Receiver implementer'
            );
            updatedIndex++;
        }

        currentIndex = updatedIndex;
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) private {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

        bool isApprovedOrOwner =
            (_msgSender() == prevOwnership.addr ||
                getApproved(tokenId) == _msgSender() ||
                isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(
            isApprovedOrOwner,
            'ERC721A: transfer caller is not owner nor approved'
        );

        require(
            prevOwnership.addr == from,
            'ERC721A: transfer from incorrect owner'
        );
        require(to != address(0), 'ERC721A: transfer to the zero address');

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        _addressData[from].balance -= 1;
        _addressData[to].balance += 1;
        _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

        // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
        // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
        uint256 nextTokenId = tokenId + 1;
        if (_ownerships[nextTokenId].addr == address(0)) {
            if (_exists(nextTokenId)) {
                _ownerships[nextTokenId] = TokenOwnership(
                    prevOwnership.addr,
                    prevOwnership.startTimestamp
                );
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

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

    uint256 public nextOwnerToExplicitlySet = 0;

    /**
     * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
     */
    function _setOwnersExplicit(uint256 quantity) internal {
        uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
        require(quantity > 0, 'quantity must be nonzero');
        uint256 endIndex = oldNextOwnerToSet + quantity - 1;
        if (endIndex > collectionSize - 1) {
            endIndex = collectionSize - 1;
        }
        // We know if the last one in the group exists, all in the group exist, due to serial ordering.
        require(_exists(endIndex), 'not enough minted yet for this cleanup');
        for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
            if (_ownerships[i].addr == address(0)) {
                TokenOwnership memory ownership = ownershipOf(i);
                _ownerships[i] = TokenOwnership(
                    ownership.addr,
                    ownership.startTimestamp
                );
            }
        }
        nextOwnerToExplicitlySet = endIndex + 1;
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        'ERC721A: transfer to non ERC721Receiver implementer'
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * 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`.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

File 3 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 4 of 13 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 5 of 13 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

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

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 9 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 tokenId);

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 12 of 13 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 13 of 13 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint256","name":"_maxBatchSize","type":"uint256"},{"internalType":"uint256","name":"_collectionSize","type":"uint256"},{"internalType":"uint256","name":"_wlStart","type":"uint256"},{"internalType":"uint256","name":"_privStart","type":"uint256"},{"internalType":"uint256","name":"_publicStart","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"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCollectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUserData","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePriv","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePub","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"privateMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"privatelistStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealedTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"size","type":"uint256"}],"name":"setCollectionSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"size","type":"uint256"}],"name":"setMaxBatchSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"},{"internalType":"uint256","name":"which","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setRevealedTokenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"which","type":"uint256"}],"name":"setStart","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":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006001556000600a553480156200001b57600080fd5b5060405162003953380380620039538339810160408190526200003e91620002ab565b868686866200004d336200013b565b60008111620000795760405162461bcd60e51b815260040162000070906200042a565b60405180910390fd5b600082116200009c5760405162461bcd60e51b8152600401620000709062000418565b8351620000b19060049060208701906200018b565b508251620000c79060059060208601906200018b565b506003919091556002555050604080516060810190915260358082526200391e6020830139805162000102916011916020909101906200018b565b50600c92909255600b55600d55505066d529ae9e860000601055505066f8b0a10e470000600f5567011c37937e080000600e5562000547565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200019990620004bb565b90600052602060002090601f016020900481019282620001bd576000855562000208565b82601f10620001d857805160ff191683800117855562000208565b8280016001018555821562000208579182015b8281111562000208578251825591602001919060010190620001eb565b50620002169291506200021a565b5090565b5b808211156200021657600081556001016200021b565b60006200024862000242846200045b565b6200043c565b9050828152602081018484840111156200026157600080fd5b6200026e84828562000488565b509392505050565b600082601f8301126200028857600080fd5b81516200029a84826020860162000231565b949350505050565b80515b92915050565b600080600080600080600060e0888a031215620002c757600080fd5b87516001600160401b03811115620002de57600080fd5b620002ec8a828b0162000276565b97505060208801516001600160401b038111156200030957600080fd5b620003178a828b0162000276565b96505060406200032a8a828b01620002a2565b95505060606200033d8a828b01620002a2565b9450506080620003508a828b01620002a2565b93505060a0620003638a828b01620002a2565b92505060c0620003768a828b01620002a2565b91505092959891949750929550565b602781526000602082017f455243373231413a206d61782062617463682073697a65206d757374206265208152666e6f6e7a65726f60c81b602082015291505b5060400190565b602e81526000602082017f455243373231413a20636f6c6c656374696f6e206d757374206861766520612081526d6e6f6e7a65726f20737570706c7960901b60208201529150620003c5565b60208082528101620002a58162000385565b60208082528101620002a581620003cc565b60006200044860405190565b9050620004568282620004ec565b919050565b60006001600160401b0382111562000477576200047762000531565b601f19601f83011660200192915050565b60005b83811015620004a55781810151838201526020016200048b565b83811115620004b5576000848401525b50505050565b600281046001821680620004d057607f821691505b60208210811415620004e657620004e66200051b565b50919050565b601f19601f83011681018181106001600160401b038211171562000514576200051462000531565b6040525050565b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6133c780620005576000396000f3fe60806040526004361061025c5760003560e01c806370a0823111610144578063c5149ca8116100b6578063dfc5f9301161007a578063dfc5f930146106a6578063e985e9c5146106bc578063f2fde38b14610705578063f7d9757714610725578063fd3d3ad214610745578063ffc9896b146107585761025c565b8063c5149ca814610626578063c87b56dd1461063b578063d547cfb71461065b578063d7224ba014610670578063de09af62146106865761025c565b806395d89b411161010857806395d89b4114610585578063994d39691461059a578063a22cb465146105b0578063a5f4c6ff146105d0578063aca8ffe7146105e6578063b88d4fde146106065761025c565b806370a0823114610507578063715018a6146105275780637155c1ea1461053c5780638b152f11146105515780638da5cb5b146105675761025c565b80632f745c59116101dd5780634286fa4e116101a15780634286fa4e14610444578063495702ab146104645780634f6ccce71461047a57806351cff8d91461049a578063522fe98e146104ba5780636352211e146104e75761025c565b80632f745c591461039b57806330176e13146103bb5780633bc5de30146103db57806340c10f191461040457806342842e0e146104245761025c565b8063152f7b2511610224578063152f7b251461031b57806318160ddd1461033e57806323b872dd1461035357806326092b83146103735780632b26a6bf1461037b5761025c565b806301ffc9a71461026157806306fdde0314610297578063081812fc146102b957806308e3f868146102e6578063095ea7b3146102fb575b600080fd5b34801561026d57600080fd5b5061028161027c366004612359565b610786565b60405161028e9190612e0e565b60405180910390f35b3480156102a357600080fd5b506102ac6107f5565b60405161028e9190612e5a565b3480156102c557600080fd5b506102d96102d4366004612400565b610887565b60405161028e9190612d94565b6102f96102f4366004612395565b6108d5565b005b34801561030757600080fd5b506102f961031636600461230b565b610a07565b34801561032757600080fd5b50610331600e5481565b60405161028e919061307b565b34801561034a57600080fd5b50600154610331565b34801561035f57600080fd5b506102f961036e366004612215565b610a89565b6102f9610a94565b34801561038757600080fd5b506102f9610396366004612400565b610b04565b3480156103a757600080fd5b506103316103b636600461230b565b610b33565b3480156103c757600080fd5b506102f96103d63660046123cb565b610c30565b3480156103e757600080fd5b506103f0610c71565b60405161028e9897969594939291906130a4565b34801561041057600080fd5b506102f961041f36600461230b565b610cb3565b34801561043057600080fd5b506102f961043f366004612215565b610d1b565b34801561045057600080fd5b506102f961045f36600461241e565b610d36565b34801561047057600080fd5b50610331600b5481565b34801561048657600080fd5b50610331610495366004612400565b610d91565b3480156104a657600080fd5b506102f96104b53660046121bd565b610dbe565b3480156104c657600080fd5b506103316104d53660046121bd565b60136020526000908152604090205481565b3480156104f357600080fd5b506102d9610502366004612400565b610df3565b34801561051357600080fd5b506103316105223660046121bd565b610e05565b34801561053357600080fd5b506102f9610e52565b34801561054857600080fd5b50600254610331565b34801561055d57600080fd5b50610331600f5481565b34801561057357600080fd5b506000546001600160a01b03166102d9565b34801561059157600080fd5b506102ac610e86565b3480156105a657600080fd5b50610331600c5481565b3480156105bc57600080fd5b506102f96105cb3660046122db565b610e95565b3480156105dc57600080fd5b50610331600d5481565b3480156105f257600080fd5b506102f9610601366004612400565b610f33565b34801561061257600080fd5b506102f9610621366004612262565b610f62565b34801561063257600080fd5b506102ac610f9b565b34801561064757600080fd5b506102ac610656366004612400565b611029565b34801561066757600080fd5b506102ac61112a565b34801561067c57600080fd5b50610331600a5481565b34801561069257600080fd5b506102f96106a13660046123cb565b611137565b3480156106b257600080fd5b5061033160105481565b3480156106c857600080fd5b506102816106d73660046121db565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561071157600080fd5b506102f96107203660046121bd565b611174565b34801561073157600080fd5b506102f961074036600461241e565b6111d0565b6102f9610753366004612395565b61122b565b34801561076457600080fd5b506107786107733660046121bd565b611358565b60405161028e929190613089565b60006001600160e01b031982166380ac58cd60e01b14806107b757506001600160e01b03198216635b5e139f60e01b145b806107d257506001600160e01b0319821663780e9d6360e01b145b806107ed57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6060600480546108049061327e565b80601f01602080910402602001604051908101604052809291908181526020018280546108309061327e565b801561087d5780601f106108525761010080835404028352916020019161087d565b820191906000526020600020905b81548152906001019060200180831161086057829003601f168201915b5050505050905090565b6000610894826001541190565b6108b95760405162461bcd60e51b81526004016108b09061304b565b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b333b156108f45760405162461bcd60e51b81526004016108b090612f8b565b3332146109135760405162461bcd60e51b81526004016108b090612e8b565b42600c5411156109355760405162461bcd60e51b81526004016108b09061300b565b600060023383600160405160200161094f93929190612de6565b60408051601f198184030181529082905261096991612d70565b602060405180830381855afa158015610986573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906109a9919061233b565b90506109bd6000546001600160a01b031690565b6001600160a01b03166109d08285611386565b6001600160a01b0316146109f65760405162461bcd60e51b81526004016108b090612f4b565b610a02826010546113aa565b505050565b6000610a1282610df3565b9050806001600160a01b0316836001600160a01b03161415610a465760405162461bcd60e51b81526004016108b090612fbb565b336001600160a01b0382161480610a625750610a6281336106d7565b610a7e5760405162461bcd60e51b81526004016108b090612f1b565b610a02838383611434565b610a02838383611490565b333b15610ab35760405162461bcd60e51b81526004016108b090612f8b565b333214610ad25760405162461bcd60e51b81526004016108b090612e8b565b42600d541115610af45760405162461bcd60e51b81526004016108b090612f6b565b610b02600354600e546113aa565b565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b81526004016108b090612f7b565b600355565b6000610b3e83610e05565b8210610b5c5760405162461bcd60e51b81526004016108b090612e7b565b6000610b6760015490565b905060008060005b83811015610c11576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610bc257805192505b876001600160a01b0316836001600160a01b03161415610bfe5786841415610bf057509350610c2a92505050565b83610bfa816132d8565b9450505b5080610c09816132d8565b915050610b6f565b5060405162461bcd60e51b81526004016108b09061302b565b92915050565b6000546001600160a01b03163314610c5a5760405162461bcd60e51b81526004016108b090612f7b565b8051610c6d906011906020840190612094565b5050565b600080600080600080600080600b54600c54600d54600f54601054600e54600254610c9b60015490565b969f959e50939c50919a509850965094509092509050565b6000546001600160a01b03163314610cdd5760405162461bcd60e51b81526004016108b090612f7b565b60025481610cea60015490565b610cf49190613195565b10610d115760405162461bcd60e51b81526004016108b090612edb565b610c6d8282611750565b610a0283838360405180602001604052806000815250610f62565b6000546001600160a01b03163314610d605760405162461bcd60e51b81526004016108b090612f7b565b80610d6f57600c829055610c6d565b8060011415610d8257600b829055610c6d565b8060021415610c6d5750600d55565b6000610d9c60015490565b8210610dba5760405162461bcd60e51b81526004016108b090612eeb565b5090565b6000546001600160a01b03163314610de85760405162461bcd60e51b81526004016108b090612f7b565b47610c6d828261176a565b6000610dfe826117f7565b5192915050565b60006001600160a01b038216610e2d5760405162461bcd60e51b81526004016108b090612f2b565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b6000546001600160a01b03163314610e7c5760405162461bcd60e51b81526004016108b090612f7b565b610b0260006118dd565b6060600580546108049061327e565b6001600160a01b038216331415610ebe5760405162461bcd60e51b81526004016108b090612f9b565b3360008181526009602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f279190612e0e565b60405180910390a35050565b6000546001600160a01b03163314610f5d5760405162461bcd60e51b81526004016108b090612f7b565b600255565b610f6d848484611490565b610f798484848461192d565b610f955760405162461bcd60e51b81526004016108b090612fcb565b50505050565b60128054610fa89061327e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd49061327e565b80156110215780601f10610ff657610100808354040283529160200191611021565b820191906000526020600020905b81548152906001019060200180831161100457829003601f168201915b505050505081565b6060611036826001541190565b6110525760405162461bcd60e51b81526004016108b090612fdb565b6000601280546110619061327e565b9050116110f857601180546110759061327e565b80601f01602080910402602001604051908101604052809291908181526020018280546110a19061327e565b80156110ee5780601f106110c3576101008083540402835291602001916110ee565b820191906000526020600020905b8154815290600101906020018083116110d157829003601f168201915b50505050506107ed565b601261110383611a3b565b604051602001611114929190612d7c565b6040516020818303038152906040529050919050565b60118054610fa89061327e565b6000546001600160a01b031633146111615760405162461bcd60e51b81526004016108b090612f7b565b8051610c6d906012906020840190612094565b6000546001600160a01b0316331461119e5760405162461bcd60e51b81526004016108b090612f7b565b6001600160a01b0381166111c45760405162461bcd60e51b81526004016108b090612ebb565b6111cd816118dd565b50565b6000546001600160a01b031633146111fa5760405162461bcd60e51b81526004016108b090612f7b565b80611209576010829055610c6d565b806001141561121c57600f829055610c6d565b8060021415610c6d5750600e55565b333b1561124a5760405162461bcd60e51b81526004016108b090612f8b565b3332146112695760405162461bcd60e51b81526004016108b090612e8b565b42600b54111561128b5760405162461bcd60e51b81526004016108b09061300b565b60006002338360026040516020016112a593929190612de6565b60408051601f19818403018152908290526112bf91612d70565b602060405180830381855afa1580156112dc573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906112ff919061233b565b90506113136000546001600160a01b031690565b6001600160a01b03166113268285611386565b6001600160a01b03161461134c5760405162461bcd60e51b81526004016108b090612f4b565b610a0282600f546113aa565b60008061136483610e05565b6001600160a01b03939093166000908152601360205260409020549293915050565b60008060006113958585611b56565b915091506113a281611bc6565b509392505050565b60006113b582611cf3565b9050600081116113d75760405162461bcd60e51b81526004016108b09061305b565b33600090815260136020526040812080548392906113f6908490613195565b90915550503360009081526013602052604090205483101561142a5760405162461bcd60e51b81526004016108b090612e9b565b610a023382611750565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061149b826117f7565b80519091506000906001600160a01b0316336001600160a01b031614806114d25750336114c784610887565b6001600160a01b0316145b806114e4575081516114e490336106d7565b9050806115035760405162461bcd60e51b81526004016108b090612fab565b846001600160a01b031682600001516001600160a01b0316146115385760405162461bcd60e51b81526004016108b090612f5b565b6001600160a01b03841661155e5760405162461bcd60e51b81526004016108b090612efb565b61156e6000848460000151611434565b6001600160a01b03851660009081526007602052604081208054600192906115a09084906001600160801b03166131db565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260076020526040812080546001945090926115ec9185911661315d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526006909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611674846001613195565b6000818152600660205260409020549091506001600160a01b03166117065761169e816001541190565b156117065760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600690935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c6d828260405180602001604052806000815250611d6d565b604080516000808252602082019092526001600160a01b0384169083906040516117949190612d70565b60006040518083038185875af1925050503d80600081146117d1576040519150601f19603f3d011682016040523d82523d6000602084013e6117d6565b606091505b5050905080610a025760405162461bcd60e51b81526004016108b090612ffb565b6040805180820190915260008082526020820152611816826001541190565b6118325760405162461bcd60e51b81526004016108b090612ecb565b600060035483106118585760035461184a908461320b565b611855906001613195565b90505b825b8181106118c4576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156118b15792506107f0915050565b50806118bc81613267565b91505061185a565b5060405162461bcd60e51b81526004016108b09061303b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611a2f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611971903390899088908890600401612da2565b602060405180830381600087803b15801561198b57600080fd5b505af19250505080156119bb575060408051601f3d908101601f191682019092526119b891810190612377565b60015b611a15573d8080156119e9576040519150601f19603f3d011682016040523d82523d6000602084013e6119ee565b606091505b508051611a0d5760405162461bcd60e51b81526004016108b090612fcb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a33565b5060015b949350505050565b606081611a6057506040805180820190915260018152600360fc1b60208201526107f0565b8160005b8115611a8a5780611a74816132d8565b9150611a839050600a836131a8565b9150611a64565b60008167ffffffffffffffff811115611ab357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611add576020820181803683370190505b5090505b8415611a3357611af260018361320b565b9150611aff600a866132f3565b611b0a906030613195565b60f81b818381518110611b2d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b4f600a866131a8565b9450611ae1565b600080825160411415611b8d5760208301516040840151606085015160001a611b8187828585611f85565b94509450505050611bbf565b825160401415611bb75760208301516040840151611bac868383612065565b935093505050611bbf565b506000905060025b9250929050565b6000816004811115611be857634e487b7160e01b600052602160045260246000fd5b1415611bf3576111cd565b6001816004811115611c1557634e487b7160e01b600052602160045260246000fd5b1415611c335760405162461bcd60e51b81526004016108b090612e6b565b6002816004811115611c5557634e487b7160e01b600052602160045260246000fd5b1415611c735760405162461bcd60e51b81526004016108b090612eab565b6003816004811115611c9557634e487b7160e01b600052602160045260246000fd5b1415611cb35760405162461bcd60e51b81526004016108b090612f0b565b6004816004811115611cd557634e487b7160e01b600052602160045260246000fd5b14156111cd5760405162461bcd60e51b81526004016108b090612f3b565b6000611cff82346131a8565b905060025481611d0e60015490565b611d189190613195565b11156107f057600060025482611d2d60015490565b611d379190613195565b611d41919061320b565b9050611d5633611d5185846131bc565b61176a565b600154600254611d66919061320b565b9392505050565b6001546001600160a01b038416611d965760405162461bcd60e51b81526004016108b09061301b565b611da1816001541190565b15611dbe5760405162461bcd60e51b81526004016108b090612feb565b600354831115611de05760405162461bcd60e51b81526004016108b09061306b565b6001600160a01b0384166000908152600760209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611e3c90879061315d565b6001600160801b03168152602001858360200151611e5a919061315d565b6001600160801b039081169091526001600160a01b0380881660008181526007602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526006909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611f7a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f3e600088848861192d565b611f5a5760405162461bcd60e51b81526004016108b090612fcb565b81611f64816132d8565b9250508080611f72906132d8565b915050611ef1565b506001819055611748565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fbc575060009050600361205c565b8460ff16601b14158015611fd457508460ff16601c14155b15611fe5575060009050600461205c565b60006001878787876040516000815260200160405260405161200a9493929190612e1c565b6020604051602081039080840390855afa15801561202c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120555760006001925092505061205c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161208687828885611f85565b935093505050935093915050565b8280546120a09061327e565b90600052602060002090601f0160209004810192826120c25760008555612108565b82601f106120db57805160ff1916838001178555612108565b82800160010185558215612108579182015b828111156121085782518255916020019190600101906120ed565b50610dba9291505b80821115610dba5760008155600101612110565b600061213761213284613132565b61311b565b90508281526020810184848401111561214f57600080fd5b6113a284828561322f565b8035610c2a8161335f565b8035610c2a81613373565b8051610c2a8161337b565b8035610c2a81613381565b8051610c2a81613381565b600082601f8301126121a257600080fd5b8135611a33848260208601612124565b8035610c2a8161337b565b6000602082840312156121cf57600080fd5b6000611a33848461215a565b600080604083850312156121ee57600080fd5b60006121fa858561215a565b925050602061220b8582860161215a565b9150509250929050565b60008060006060848603121561222a57600080fd5b6000612236868661215a565b93505060206122478682870161215a565b9250506040612258868287016121b2565b9150509250925092565b6000806000806080858703121561227857600080fd5b6000612284878761215a565b94505060206122958782880161215a565b93505060406122a6878288016121b2565b925050606085013567ffffffffffffffff8111156122c357600080fd5b6122cf87828801612191565b91505092959194509250565b600080604083850312156122ee57600080fd5b60006122fa858561215a565b925050602061220b85828601612165565b6000806040838503121561231e57600080fd5b600061232a858561215a565b925050602061220b858286016121b2565b60006020828403121561234d57600080fd5b6000611a338484612170565b60006020828403121561236b57600080fd5b6000611a33848461217b565b60006020828403121561238957600080fd5b6000611a338484612186565b600080604083850312156123a857600080fd5b823567ffffffffffffffff8111156123bf57600080fd5b61232a85828601612191565b6000602082840312156123dd57600080fd5b813567ffffffffffffffff8111156123f457600080fd5b611a3384828501612191565b60006020828403121561241257600080fd5b6000611a3384846121b2565b6000806040838503121561243157600080fd5b600061232a85856121b2565b61244681613213565b82525050565b801515612446565b80612446565b6000612464825190565b80845260208401935061247b81856020860161323b565b601f01601f19169290920192915050565b6000612496825190565b6124a481856020860161323b565b9290920192915050565b61244681613224565b600081546124c48161327e565b6001821680156124db57600181146124ec5761251c565b60ff1983168652818601935061251c565b60008581526020902060005b83811015612514578154888201526001909101906020016124f8565b838801955050505b50505092915050565b601881526000602082017f45434453413a20696e76616c6964207369676e61747572650000000000000000815291505b5060200190565b602281526000602082017f455243373231413a206f776e657220696e646578206f7574206f6620626f756e815261647360f01b602082015291505b5060400190565b601a81526000602082017f70726f787920636f6e7472616374206e6f7420616c6c6f77656400000000000081529150612555565b602581526000602082017f4d696e743a20446f6e27742062652067726565647920736861726520746865208152646c6f76652160d81b60208201529150612597565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150612555565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612597565b602a81526000602082017f455243373231413a206f776e657220717565727920666f72206e6f6e657869738152693a32b73a103a37b5b2b760b11b60208201529150612597565b601f81526000602082017f4d696e743a204272756820796f7520617265206f7665726d696e74696e672e0081529150612555565b602381526000602082017f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f758152626e647360e81b60208201529150612597565b602581526000602082017f455243373231413a207472616e7366657220746f20746865207a65726f206164815264647265737360d81b60208201529150612597565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c815261756560f01b60208201529150612597565b603981526000602082017f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060208201529150612597565b602b81526000602082017f455243373231413a2062616c616e636520717565727920666f7220746865207a81526a65726f206164647265737360a81b60208201529150612597565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202776272076616c815261756560f01b60208201529150612597565b603181526000602082017f4d696e743a20496e76616c6964205369676e61747572652c2061726520796f758152702077686974656c6973746564206275643f60781b60208201529150612597565b602681526000602082017f455243373231413a207472616e736665722066726f6d20696e636f72726563748152651037bbb732b960d11b60208201529150612597565b602781526000602082017f4d696e743a205075626c69632073616c65206e6f742079657420737461727465815266321610313ab21760c91b60208201529150612597565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612555565b601481526000602082017318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b81529150612555565b601a81526000602082017f455243373231413a20617070726f766520746f2063616c6c657200000000000081529150612555565b603281526000602082017f455243373231413a207472616e736665722063616c6c6572206973206e6f74208152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60208201529150612597565b602281526000602082017f455243373231413a20617070726f76616c20746f2063757272656e74206f776e81526132b960f11b60208201529150612597565b603381526000602082017f455243373231413a207472616e7366657220746f206e6f6e204552433732315281527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60208201529150612597565b601981526000602082017f5552493a20546f6b656e20646f6573206e6f742065786973740000000000000081529150612555565b601d81526000602082017f455243373231413a20746f6b656e20616c7265616479206d696e74656400000081529150612555565b602381526000602082017f5472616e7366657248656c7065723a204554485f5452414e534645525f46414981526213115160ea1b60208201529150612597565b602481526000602082017f4d696e743a2057686974656c6973742073616c65206e6f7420796574207374618152631c9d195960e21b60208201529150612597565b602181526000602082017f455243373231413a206d696e7420746f20746865207a65726f206164647265738152607360f81b60208201529150612597565b602e81526000602082017f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662081526d0deeedccae440c4f240d2dcc8caf60931b60208201529150612597565b602f81526000602082017f455243373231413a20756e61626c6520746f2064657465726d696e652074686581526e1037bbb732b91037b3103a37b5b2b760891b60208201529150612597565b602d81526000602082017f455243373231413a20617070726f76656420717565727920666f72206e6f6e6581526c3c34b9ba32b73a103a37b5b2b760991b60208201529150612597565b601a81526000602082017f4d696e743a2043616e206e6f74206d696e742030206672656e2e00000000000081529150612555565b602281526000602082017f455243373231413a207175616e7469747920746f206d696e7420746f6f2068698152610ced60f31b60208201529150612597565b60ff8116612446565b6000611d66828461248c565b6000612d8882856124b7565b9150611a33828461248c565b60208101610c2a828461243d565b60808101612db0828761243d565b612dbd602083018661243d565b612dca6040830185612454565b8181036060830152612ddc818461245a565b9695505050505050565b60608101612df4828661243d565b612e016020830185612454565b611a3360408301846124ae565b60208101610c2a828461244c565b60808101612e2a8287612454565b612e376020830186612d67565b612e446040830185612454565b612e516060830184612454565b95945050505050565b60208082528101611d66818461245a565b602080825281016107ed81612525565b602080825281016107ed8161255c565b602080825281016107ed8161259e565b602080825281016107ed816125d2565b602080825281016107ed81612614565b602080825281016107ed81612648565b602080825281016107ed8161268b565b602080825281016107ed816126d2565b602080825281016107ed81612706565b602080825281016107ed81612746565b602080825281016107ed81612788565b602080825281016107ed816127c7565b602080825281016107ed81612821565b602080825281016107ed81612869565b602080825281016107ed816128a8565b602080825281016107ed816128f6565b602080825281016107ed81612939565b602080825281016107ed8161297d565b602080825281016107ed816129af565b602080825281016107ed816129da565b602080825281016107ed81612a0e565b602080825281016107ed81612a5d565b602080825281016107ed81612a9c565b602080825281016107ed81612aec565b602080825281016107ed81612b20565b602080825281016107ed81612b54565b602080825281016107ed81612b94565b602080825281016107ed81612bd5565b602080825281016107ed81612c13565b602080825281016107ed81612c5e565b602080825281016107ed81612caa565b602080825281016107ed81612cf4565b602080825281016107ed81612d28565b60208101610c2a8284612454565b604081016130978285612454565b611d666020830184612454565b61010081016130b3828b612454565b6130c0602083018a612454565b6130cd6040830189612454565b6130da6060830188612454565b6130e76080830187612454565b6130f460a0830186612454565b61310160c0830185612454565b61310e60e0830184612454565b9998505050505050505050565b600061312660405190565b90506107f082826132ab565b600067ffffffffffffffff82111561314c5761314c613349565b601f19601f83011660200192915050565b60006001600160801b03821691506001600160801b0383169250826001600160801b030382111561319057613190613307565b500190565b6000821982111561319057613190613307565b6000826131b7576131b761331d565b500490565b60008160001904831182151516156131d6576131d6613307565b500290565b60006001600160801b03821691506001600160801b0383165b92508282101561320657613206613307565b500390565b6000826131f4565b60006001600160a01b0382166107ed565b600060ff82166107ed565b82818337506000910152565b60005b8381101561325657818101518382015260200161323e565b83811115610f955750506000910152565b60008161327657613276613307565b506000190190565b60028104600182168061329257607f821691505b602082108114156132a5576132a5613333565b50919050565b601f19601f830116810181811067ffffffffffffffff821117156132d1576132d1613349565b6040525050565b60006000198214156132ec576132ec613307565b5060010190565b6000826133025761330261331d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61336881613213565b81146111cd57600080fd5b801515613368565b80613368565b6001600160e01b0319811661336856fea264697066735822122058d2f3a2a99e688809a3f4b3b2b581e58433b3198154c310c7e925919c5cc66364736f6c63430008030033697066733a2f2f516d5943476b6141323571525950367655637157656e41543966507870435570716a68716676344553647653456e00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000d0500000000000000000000000000000000000000000000000000000000627707d3000000000000000000000000000000000000000000000000000000006277b0930000000000000000000000000000000000000000000000000000000062785953000000000000000000000000000000000000000000000000000000000000000d3720446561646c792053696e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033744530000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061025c5760003560e01c806370a0823111610144578063c5149ca8116100b6578063dfc5f9301161007a578063dfc5f930146106a6578063e985e9c5146106bc578063f2fde38b14610705578063f7d9757714610725578063fd3d3ad214610745578063ffc9896b146107585761025c565b8063c5149ca814610626578063c87b56dd1461063b578063d547cfb71461065b578063d7224ba014610670578063de09af62146106865761025c565b806395d89b411161010857806395d89b4114610585578063994d39691461059a578063a22cb465146105b0578063a5f4c6ff146105d0578063aca8ffe7146105e6578063b88d4fde146106065761025c565b806370a0823114610507578063715018a6146105275780637155c1ea1461053c5780638b152f11146105515780638da5cb5b146105675761025c565b80632f745c59116101dd5780634286fa4e116101a15780634286fa4e14610444578063495702ab146104645780634f6ccce71461047a57806351cff8d91461049a578063522fe98e146104ba5780636352211e146104e75761025c565b80632f745c591461039b57806330176e13146103bb5780633bc5de30146103db57806340c10f191461040457806342842e0e146104245761025c565b8063152f7b2511610224578063152f7b251461031b57806318160ddd1461033e57806323b872dd1461035357806326092b83146103735780632b26a6bf1461037b5761025c565b806301ffc9a71461026157806306fdde0314610297578063081812fc146102b957806308e3f868146102e6578063095ea7b3146102fb575b600080fd5b34801561026d57600080fd5b5061028161027c366004612359565b610786565b60405161028e9190612e0e565b60405180910390f35b3480156102a357600080fd5b506102ac6107f5565b60405161028e9190612e5a565b3480156102c557600080fd5b506102d96102d4366004612400565b610887565b60405161028e9190612d94565b6102f96102f4366004612395565b6108d5565b005b34801561030757600080fd5b506102f961031636600461230b565b610a07565b34801561032757600080fd5b50610331600e5481565b60405161028e919061307b565b34801561034a57600080fd5b50600154610331565b34801561035f57600080fd5b506102f961036e366004612215565b610a89565b6102f9610a94565b34801561038757600080fd5b506102f9610396366004612400565b610b04565b3480156103a757600080fd5b506103316103b636600461230b565b610b33565b3480156103c757600080fd5b506102f96103d63660046123cb565b610c30565b3480156103e757600080fd5b506103f0610c71565b60405161028e9897969594939291906130a4565b34801561041057600080fd5b506102f961041f36600461230b565b610cb3565b34801561043057600080fd5b506102f961043f366004612215565b610d1b565b34801561045057600080fd5b506102f961045f36600461241e565b610d36565b34801561047057600080fd5b50610331600b5481565b34801561048657600080fd5b50610331610495366004612400565b610d91565b3480156104a657600080fd5b506102f96104b53660046121bd565b610dbe565b3480156104c657600080fd5b506103316104d53660046121bd565b60136020526000908152604090205481565b3480156104f357600080fd5b506102d9610502366004612400565b610df3565b34801561051357600080fd5b506103316105223660046121bd565b610e05565b34801561053357600080fd5b506102f9610e52565b34801561054857600080fd5b50600254610331565b34801561055d57600080fd5b50610331600f5481565b34801561057357600080fd5b506000546001600160a01b03166102d9565b34801561059157600080fd5b506102ac610e86565b3480156105a657600080fd5b50610331600c5481565b3480156105bc57600080fd5b506102f96105cb3660046122db565b610e95565b3480156105dc57600080fd5b50610331600d5481565b3480156105f257600080fd5b506102f9610601366004612400565b610f33565b34801561061257600080fd5b506102f9610621366004612262565b610f62565b34801561063257600080fd5b506102ac610f9b565b34801561064757600080fd5b506102ac610656366004612400565b611029565b34801561066757600080fd5b506102ac61112a565b34801561067c57600080fd5b50610331600a5481565b34801561069257600080fd5b506102f96106a13660046123cb565b611137565b3480156106b257600080fd5b5061033160105481565b3480156106c857600080fd5b506102816106d73660046121db565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561071157600080fd5b506102f96107203660046121bd565b611174565b34801561073157600080fd5b506102f961074036600461241e565b6111d0565b6102f9610753366004612395565b61122b565b34801561076457600080fd5b506107786107733660046121bd565b611358565b60405161028e929190613089565b60006001600160e01b031982166380ac58cd60e01b14806107b757506001600160e01b03198216635b5e139f60e01b145b806107d257506001600160e01b0319821663780e9d6360e01b145b806107ed57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b6060600480546108049061327e565b80601f01602080910402602001604051908101604052809291908181526020018280546108309061327e565b801561087d5780601f106108525761010080835404028352916020019161087d565b820191906000526020600020905b81548152906001019060200180831161086057829003601f168201915b5050505050905090565b6000610894826001541190565b6108b95760405162461bcd60e51b81526004016108b09061304b565b60405180910390fd5b506000908152600860205260409020546001600160a01b031690565b333b156108f45760405162461bcd60e51b81526004016108b090612f8b565b3332146109135760405162461bcd60e51b81526004016108b090612e8b565b42600c5411156109355760405162461bcd60e51b81526004016108b09061300b565b600060023383600160405160200161094f93929190612de6565b60408051601f198184030181529082905261096991612d70565b602060405180830381855afa158015610986573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906109a9919061233b565b90506109bd6000546001600160a01b031690565b6001600160a01b03166109d08285611386565b6001600160a01b0316146109f65760405162461bcd60e51b81526004016108b090612f4b565b610a02826010546113aa565b505050565b6000610a1282610df3565b9050806001600160a01b0316836001600160a01b03161415610a465760405162461bcd60e51b81526004016108b090612fbb565b336001600160a01b0382161480610a625750610a6281336106d7565b610a7e5760405162461bcd60e51b81526004016108b090612f1b565b610a02838383611434565b610a02838383611490565b333b15610ab35760405162461bcd60e51b81526004016108b090612f8b565b333214610ad25760405162461bcd60e51b81526004016108b090612e8b565b42600d541115610af45760405162461bcd60e51b81526004016108b090612f6b565b610b02600354600e546113aa565b565b6000546001600160a01b03163314610b2e5760405162461bcd60e51b81526004016108b090612f7b565b600355565b6000610b3e83610e05565b8210610b5c5760405162461bcd60e51b81526004016108b090612e7b565b6000610b6760015490565b905060008060005b83811015610c11576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215610bc257805192505b876001600160a01b0316836001600160a01b03161415610bfe5786841415610bf057509350610c2a92505050565b83610bfa816132d8565b9450505b5080610c09816132d8565b915050610b6f565b5060405162461bcd60e51b81526004016108b09061302b565b92915050565b6000546001600160a01b03163314610c5a5760405162461bcd60e51b81526004016108b090612f7b565b8051610c6d906011906020840190612094565b5050565b600080600080600080600080600b54600c54600d54600f54601054600e54600254610c9b60015490565b969f959e50939c50919a509850965094509092509050565b6000546001600160a01b03163314610cdd5760405162461bcd60e51b81526004016108b090612f7b565b60025481610cea60015490565b610cf49190613195565b10610d115760405162461bcd60e51b81526004016108b090612edb565b610c6d8282611750565b610a0283838360405180602001604052806000815250610f62565b6000546001600160a01b03163314610d605760405162461bcd60e51b81526004016108b090612f7b565b80610d6f57600c829055610c6d565b8060011415610d8257600b829055610c6d565b8060021415610c6d5750600d55565b6000610d9c60015490565b8210610dba5760405162461bcd60e51b81526004016108b090612eeb565b5090565b6000546001600160a01b03163314610de85760405162461bcd60e51b81526004016108b090612f7b565b47610c6d828261176a565b6000610dfe826117f7565b5192915050565b60006001600160a01b038216610e2d5760405162461bcd60e51b81526004016108b090612f2b565b506001600160a01b03166000908152600760205260409020546001600160801b031690565b6000546001600160a01b03163314610e7c5760405162461bcd60e51b81526004016108b090612f7b565b610b0260006118dd565b6060600580546108049061327e565b6001600160a01b038216331415610ebe5760405162461bcd60e51b81526004016108b090612f9b565b3360008181526009602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610f279190612e0e565b60405180910390a35050565b6000546001600160a01b03163314610f5d5760405162461bcd60e51b81526004016108b090612f7b565b600255565b610f6d848484611490565b610f798484848461192d565b610f955760405162461bcd60e51b81526004016108b090612fcb565b50505050565b60128054610fa89061327e565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd49061327e565b80156110215780601f10610ff657610100808354040283529160200191611021565b820191906000526020600020905b81548152906001019060200180831161100457829003601f168201915b505050505081565b6060611036826001541190565b6110525760405162461bcd60e51b81526004016108b090612fdb565b6000601280546110619061327e565b9050116110f857601180546110759061327e565b80601f01602080910402602001604051908101604052809291908181526020018280546110a19061327e565b80156110ee5780601f106110c3576101008083540402835291602001916110ee565b820191906000526020600020905b8154815290600101906020018083116110d157829003601f168201915b50505050506107ed565b601261110383611a3b565b604051602001611114929190612d7c565b6040516020818303038152906040529050919050565b60118054610fa89061327e565b6000546001600160a01b031633146111615760405162461bcd60e51b81526004016108b090612f7b565b8051610c6d906012906020840190612094565b6000546001600160a01b0316331461119e5760405162461bcd60e51b81526004016108b090612f7b565b6001600160a01b0381166111c45760405162461bcd60e51b81526004016108b090612ebb565b6111cd816118dd565b50565b6000546001600160a01b031633146111fa5760405162461bcd60e51b81526004016108b090612f7b565b80611209576010829055610c6d565b806001141561121c57600f829055610c6d565b8060021415610c6d5750600e55565b333b1561124a5760405162461bcd60e51b81526004016108b090612f8b565b3332146112695760405162461bcd60e51b81526004016108b090612e8b565b42600b54111561128b5760405162461bcd60e51b81526004016108b09061300b565b60006002338360026040516020016112a593929190612de6565b60408051601f19818403018152908290526112bf91612d70565b602060405180830381855afa1580156112dc573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906112ff919061233b565b90506113136000546001600160a01b031690565b6001600160a01b03166113268285611386565b6001600160a01b03161461134c5760405162461bcd60e51b81526004016108b090612f4b565b610a0282600f546113aa565b60008061136483610e05565b6001600160a01b03939093166000908152601360205260409020549293915050565b60008060006113958585611b56565b915091506113a281611bc6565b509392505050565b60006113b582611cf3565b9050600081116113d75760405162461bcd60e51b81526004016108b09061305b565b33600090815260136020526040812080548392906113f6908490613195565b90915550503360009081526013602052604090205483101561142a5760405162461bcd60e51b81526004016108b090612e9b565b610a023382611750565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061149b826117f7565b80519091506000906001600160a01b0316336001600160a01b031614806114d25750336114c784610887565b6001600160a01b0316145b806114e4575081516114e490336106d7565b9050806115035760405162461bcd60e51b81526004016108b090612fab565b846001600160a01b031682600001516001600160a01b0316146115385760405162461bcd60e51b81526004016108b090612f5b565b6001600160a01b03841661155e5760405162461bcd60e51b81526004016108b090612efb565b61156e6000848460000151611434565b6001600160a01b03851660009081526007602052604081208054600192906115a09084906001600160801b03166131db565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b038616600090815260076020526040812080546001945090926115ec9185911661315d565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff428116602080850191825260008981526006909152948520935184549151909216600160a01b026001600160e01b03199091169190921617179055611674846001613195565b6000818152600660205260409020549091506001600160a01b03166117065761169e816001541190565b156117065760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600690935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610c6d828260405180602001604052806000815250611d6d565b604080516000808252602082019092526001600160a01b0384169083906040516117949190612d70565b60006040518083038185875af1925050503d80600081146117d1576040519150601f19603f3d011682016040523d82523d6000602084013e6117d6565b606091505b5050905080610a025760405162461bcd60e51b81526004016108b090612ffb565b6040805180820190915260008082526020820152611816826001541190565b6118325760405162461bcd60e51b81526004016108b090612ecb565b600060035483106118585760035461184a908461320b565b611855906001613195565b90505b825b8181106118c4576000818152600660209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff1691830191909152156118b15792506107f0915050565b50806118bc81613267565b91505061185a565b5060405162461bcd60e51b81526004016108b09061303b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15611a2f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611971903390899088908890600401612da2565b602060405180830381600087803b15801561198b57600080fd5b505af19250505080156119bb575060408051601f3d908101601f191682019092526119b891810190612377565b60015b611a15573d8080156119e9576040519150601f19603f3d011682016040523d82523d6000602084013e6119ee565b606091505b508051611a0d5760405162461bcd60e51b81526004016108b090612fcb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a33565b5060015b949350505050565b606081611a6057506040805180820190915260018152600360fc1b60208201526107f0565b8160005b8115611a8a5780611a74816132d8565b9150611a839050600a836131a8565b9150611a64565b60008167ffffffffffffffff811115611ab357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611add576020820181803683370190505b5090505b8415611a3357611af260018361320b565b9150611aff600a866132f3565b611b0a906030613195565b60f81b818381518110611b2d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611b4f600a866131a8565b9450611ae1565b600080825160411415611b8d5760208301516040840151606085015160001a611b8187828585611f85565b94509450505050611bbf565b825160401415611bb75760208301516040840151611bac868383612065565b935093505050611bbf565b506000905060025b9250929050565b6000816004811115611be857634e487b7160e01b600052602160045260246000fd5b1415611bf3576111cd565b6001816004811115611c1557634e487b7160e01b600052602160045260246000fd5b1415611c335760405162461bcd60e51b81526004016108b090612e6b565b6002816004811115611c5557634e487b7160e01b600052602160045260246000fd5b1415611c735760405162461bcd60e51b81526004016108b090612eab565b6003816004811115611c9557634e487b7160e01b600052602160045260246000fd5b1415611cb35760405162461bcd60e51b81526004016108b090612f0b565b6004816004811115611cd557634e487b7160e01b600052602160045260246000fd5b14156111cd5760405162461bcd60e51b81526004016108b090612f3b565b6000611cff82346131a8565b905060025481611d0e60015490565b611d189190613195565b11156107f057600060025482611d2d60015490565b611d379190613195565b611d41919061320b565b9050611d5633611d5185846131bc565b61176a565b600154600254611d66919061320b565b9392505050565b6001546001600160a01b038416611d965760405162461bcd60e51b81526004016108b09061301b565b611da1816001541190565b15611dbe5760405162461bcd60e51b81526004016108b090612feb565b600354831115611de05760405162461bcd60e51b81526004016108b09061306b565b6001600160a01b0384166000908152600760209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190611e3c90879061315d565b6001600160801b03168152602001858360200151611e5a919061315d565b6001600160801b039081169091526001600160a01b0380881660008181526007602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526006909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b85811015611f7a5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4611f3e600088848861192d565b611f5a5760405162461bcd60e51b81526004016108b090612fcb565b81611f64816132d8565b9250508080611f72906132d8565b915050611ef1565b506001819055611748565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611fbc575060009050600361205c565b8460ff16601b14158015611fd457508460ff16601c14155b15611fe5575060009050600461205c565b60006001878787876040516000815260200160405260405161200a9493929190612e1c565b6020604051602081039080840390855afa15801561202c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166120555760006001925092505061205c565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161208687828885611f85565b935093505050935093915050565b8280546120a09061327e565b90600052602060002090601f0160209004810192826120c25760008555612108565b82601f106120db57805160ff1916838001178555612108565b82800160010185558215612108579182015b828111156121085782518255916020019190600101906120ed565b50610dba9291505b80821115610dba5760008155600101612110565b600061213761213284613132565b61311b565b90508281526020810184848401111561214f57600080fd5b6113a284828561322f565b8035610c2a8161335f565b8035610c2a81613373565b8051610c2a8161337b565b8035610c2a81613381565b8051610c2a81613381565b600082601f8301126121a257600080fd5b8135611a33848260208601612124565b8035610c2a8161337b565b6000602082840312156121cf57600080fd5b6000611a33848461215a565b600080604083850312156121ee57600080fd5b60006121fa858561215a565b925050602061220b8582860161215a565b9150509250929050565b60008060006060848603121561222a57600080fd5b6000612236868661215a565b93505060206122478682870161215a565b9250506040612258868287016121b2565b9150509250925092565b6000806000806080858703121561227857600080fd5b6000612284878761215a565b94505060206122958782880161215a565b93505060406122a6878288016121b2565b925050606085013567ffffffffffffffff8111156122c357600080fd5b6122cf87828801612191565b91505092959194509250565b600080604083850312156122ee57600080fd5b60006122fa858561215a565b925050602061220b85828601612165565b6000806040838503121561231e57600080fd5b600061232a858561215a565b925050602061220b858286016121b2565b60006020828403121561234d57600080fd5b6000611a338484612170565b60006020828403121561236b57600080fd5b6000611a33848461217b565b60006020828403121561238957600080fd5b6000611a338484612186565b600080604083850312156123a857600080fd5b823567ffffffffffffffff8111156123bf57600080fd5b61232a85828601612191565b6000602082840312156123dd57600080fd5b813567ffffffffffffffff8111156123f457600080fd5b611a3384828501612191565b60006020828403121561241257600080fd5b6000611a3384846121b2565b6000806040838503121561243157600080fd5b600061232a85856121b2565b61244681613213565b82525050565b801515612446565b80612446565b6000612464825190565b80845260208401935061247b81856020860161323b565b601f01601f19169290920192915050565b6000612496825190565b6124a481856020860161323b565b9290920192915050565b61244681613224565b600081546124c48161327e565b6001821680156124db57600181146124ec5761251c565b60ff1983168652818601935061251c565b60008581526020902060005b83811015612514578154888201526001909101906020016124f8565b838801955050505b50505092915050565b601881526000602082017f45434453413a20696e76616c6964207369676e61747572650000000000000000815291505b5060200190565b602281526000602082017f455243373231413a206f776e657220696e646578206f7574206f6620626f756e815261647360f01b602082015291505b5060400190565b601a81526000602082017f70726f787920636f6e7472616374206e6f7420616c6c6f77656400000000000081529150612555565b602581526000602082017f4d696e743a20446f6e27742062652067726565647920736861726520746865208152646c6f76652160d81b60208201529150612597565b601f81526000602082017f45434453413a20696e76616c6964207369676e6174757265206c656e6774680081529150612555565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150612597565b602a81526000602082017f455243373231413a206f776e657220717565727920666f72206e6f6e657869738152693a32b73a103a37b5b2b760b11b60208201529150612597565b601f81526000602082017f4d696e743a204272756820796f7520617265206f7665726d696e74696e672e0081529150612555565b602381526000602082017f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f758152626e647360e81b60208201529150612597565b602581526000602082017f455243373231413a207472616e7366657220746f20746865207a65726f206164815264647265737360d81b60208201529150612597565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202773272076616c815261756560f01b60208201529150612597565b603981526000602082017f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000000060208201529150612597565b602b81526000602082017f455243373231413a2062616c616e636520717565727920666f7220746865207a81526a65726f206164647265737360a81b60208201529150612597565b602281526000602082017f45434453413a20696e76616c6964207369676e6174757265202776272076616c815261756560f01b60208201529150612597565b603181526000602082017f4d696e743a20496e76616c6964205369676e61747572652c2061726520796f758152702077686974656c6973746564206275643f60781b60208201529150612597565b602681526000602082017f455243373231413a207472616e736665722066726f6d20696e636f72726563748152651037bbb732b960d11b60208201529150612597565b602781526000602082017f4d696e743a205075626c69632073616c65206e6f742079657420737461727465815266321610313ab21760c91b60208201529150612597565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000612555565b601481526000602082017318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b81529150612555565b601a81526000602082017f455243373231413a20617070726f766520746f2063616c6c657200000000000081529150612555565b603281526000602082017f455243373231413a207472616e736665722063616c6c6572206973206e6f74208152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60208201529150612597565b602281526000602082017f455243373231413a20617070726f76616c20746f2063757272656e74206f776e81526132b960f11b60208201529150612597565b603381526000602082017f455243373231413a207472616e7366657220746f206e6f6e204552433732315281527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b60208201529150612597565b601981526000602082017f5552493a20546f6b656e20646f6573206e6f742065786973740000000000000081529150612555565b601d81526000602082017f455243373231413a20746f6b656e20616c7265616479206d696e74656400000081529150612555565b602381526000602082017f5472616e7366657248656c7065723a204554485f5452414e534645525f46414981526213115160ea1b60208201529150612597565b602481526000602082017f4d696e743a2057686974656c6973742073616c65206e6f7420796574207374618152631c9d195960e21b60208201529150612597565b602181526000602082017f455243373231413a206d696e7420746f20746865207a65726f206164647265738152607360f81b60208201529150612597565b602e81526000602082017f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662081526d0deeedccae440c4f240d2dcc8caf60931b60208201529150612597565b602f81526000602082017f455243373231413a20756e61626c6520746f2064657465726d696e652074686581526e1037bbb732b91037b3103a37b5b2b760891b60208201529150612597565b602d81526000602082017f455243373231413a20617070726f76656420717565727920666f72206e6f6e6581526c3c34b9ba32b73a103a37b5b2b760991b60208201529150612597565b601a81526000602082017f4d696e743a2043616e206e6f74206d696e742030206672656e2e00000000000081529150612555565b602281526000602082017f455243373231413a207175616e7469747920746f206d696e7420746f6f2068698152610ced60f31b60208201529150612597565b60ff8116612446565b6000611d66828461248c565b6000612d8882856124b7565b9150611a33828461248c565b60208101610c2a828461243d565b60808101612db0828761243d565b612dbd602083018661243d565b612dca6040830185612454565b8181036060830152612ddc818461245a565b9695505050505050565b60608101612df4828661243d565b612e016020830185612454565b611a3360408301846124ae565b60208101610c2a828461244c565b60808101612e2a8287612454565b612e376020830186612d67565b612e446040830185612454565b612e516060830184612454565b95945050505050565b60208082528101611d66818461245a565b602080825281016107ed81612525565b602080825281016107ed8161255c565b602080825281016107ed8161259e565b602080825281016107ed816125d2565b602080825281016107ed81612614565b602080825281016107ed81612648565b602080825281016107ed8161268b565b602080825281016107ed816126d2565b602080825281016107ed81612706565b602080825281016107ed81612746565b602080825281016107ed81612788565b602080825281016107ed816127c7565b602080825281016107ed81612821565b602080825281016107ed81612869565b602080825281016107ed816128a8565b602080825281016107ed816128f6565b602080825281016107ed81612939565b602080825281016107ed8161297d565b602080825281016107ed816129af565b602080825281016107ed816129da565b602080825281016107ed81612a0e565b602080825281016107ed81612a5d565b602080825281016107ed81612a9c565b602080825281016107ed81612aec565b602080825281016107ed81612b20565b602080825281016107ed81612b54565b602080825281016107ed81612b94565b602080825281016107ed81612bd5565b602080825281016107ed81612c13565b602080825281016107ed81612c5e565b602080825281016107ed81612caa565b602080825281016107ed81612cf4565b602080825281016107ed81612d28565b60208101610c2a8284612454565b604081016130978285612454565b611d666020830184612454565b61010081016130b3828b612454565b6130c0602083018a612454565b6130cd6040830189612454565b6130da6060830188612454565b6130e76080830187612454565b6130f460a0830186612454565b61310160c0830185612454565b61310e60e0830184612454565b9998505050505050505050565b600061312660405190565b90506107f082826132ab565b600067ffffffffffffffff82111561314c5761314c613349565b601f19601f83011660200192915050565b60006001600160801b03821691506001600160801b0383169250826001600160801b030382111561319057613190613307565b500190565b6000821982111561319057613190613307565b6000826131b7576131b761331d565b500490565b60008160001904831182151516156131d6576131d6613307565b500290565b60006001600160801b03821691506001600160801b0383165b92508282101561320657613206613307565b500390565b6000826131f4565b60006001600160a01b0382166107ed565b600060ff82166107ed565b82818337506000910152565b60005b8381101561325657818101518382015260200161323e565b83811115610f955750506000910152565b60008161327657613276613307565b506000190190565b60028104600182168061329257607f821691505b602082108114156132a5576132a5613333565b50919050565b601f19601f830116810181811067ffffffffffffffff821117156132d1576132d1613349565b6040525050565b60006000198214156132ec576132ec613307565b5060010190565b6000826133025761330261331d565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61336881613213565b81146111cd57600080fd5b801515613368565b80613368565b6001600160e01b0319811661336856fea264697066735822122058d2f3a2a99e688809a3f4b3b2b581e58433b3198154c310c7e925919c5cc66364736f6c63430008030033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000d0500000000000000000000000000000000000000000000000000000000627707d3000000000000000000000000000000000000000000000000000000006277b0930000000000000000000000000000000000000000000000000000000062785953000000000000000000000000000000000000000000000000000000000000000d3720446561646c792053696e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000033744530000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): 7 Deadly Sins
Arg [1] : _symbol (string): 7DS
Arg [2] : _maxBatchSize (uint256): 100
Arg [3] : _collectionSize (uint256): 3333
Arg [4] : _wlStart (uint256): 1651967955
Arg [5] : _privStart (uint256): 1652011155
Arg [6] : _publicStart (uint256): 1652054355

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [4] : 00000000000000000000000000000000000000000000000000000000627707d3
Arg [5] : 000000000000000000000000000000000000000000000000000000006277b093
Arg [6] : 0000000000000000000000000000000000000000000000000000000062785953
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [8] : 3720446561646c792053696e7300000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 3744530000000000000000000000000000000000000000000000000000000000


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

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