ETH Price: $3,101.98 (-0.96%)

Token

Cosmos (COSMOS)
 

Overview

Max Total Supply

6,060 COSMOS

Holders

2,497

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 COSMOS
0x36fc63A184a21866b95B65242fc312Af641401Fe
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:
Cosmos

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Cosmos.sol
pragma solidity 0.8.10;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./ERC721A.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "./interfaces/IMerkle.sol";

contract Cosmos is ERC721A, Ownable, ReentrancyGuard, Pausable {
    using Strings for uint256;
    string public baseUri = "https://ipfs.io/ipfs/QmaTxu3Kw1jZhZECxhKtjV4gEfAv5QuQwWgocx7MFvWE5v/";
    uint256 public supply = 9999;
    string public extension = ".json";  

    bool public whitelistLive;
    bool public raffleLive;
    address payable public paymentSplitter;
    IMerkle public whitelist;
    IMerkle public raffle;

    struct Config {
        uint256 mintPrice;
        uint256 wlPrice;
        uint256 rafflePrice;
        uint256 maxMint;
        uint256 maxWhitelist;
        uint256 maxRaffle;
        uint256 maxWhitelistPerTx;
        uint256 maxRafflePerTx;
        uint256 maxMintPerTx;
    }

    struct LimitPerWallet {
        uint256 mint;
        uint256 whitelist;
        uint256 raffle;
    }

    Config public config;
    
    mapping(address => LimitPerWallet) limitPerWallet;
    mapping(address => bool) admins;

    event WhitelistLive(bool live);
    event RaffleLive(bool live);

    constructor(
        string memory name,
        string memory symbol
    ) ERC721A(name, symbol) { 
        _pause(); 
        config.mintPrice = 0.12 ether;
        config.wlPrice = 0.1 ether;
        config.rafflePrice = 0.12 ether;
        config.maxMint = 5;
        config.maxWhitelist = 3;
        config.maxRaffle = 2;
        config.maxWhitelistPerTx = 3;
        config.maxRafflePerTx = 2;
        config.maxMintPerTx = 5;
    }

    function raffleMint(uint256 count, bytes32[] memory proof) external payable nonReentrant notBots {
        require(raffleLive, "Not live");     
        require(count <= config.maxRafflePerTx, "Exceeds max");
        require(raffle.isPermitted(msg.sender, proof), "Not in raffle");
        require(limitPerWallet[msg.sender].raffle + count <= config.maxRaffle, "Exceeds max");
        require(msg.value >= config.rafflePrice * count, "invalid price");
        limitPerWallet[msg.sender].raffle += count;
        _callMint(count, msg.sender);
    }

    function whitelistMint(uint256 count, bytes32[] memory proof) external payable nonReentrant notBots {
        require(whitelistLive, "Not live");
        require(count <= config.maxWhitelistPerTx, "Exceeds max");
        require(whitelist.isPermitted(msg.sender, proof), "not whitelisted");
        require(limitPerWallet[msg.sender].whitelist + count <= config.maxWhitelist, "Exceeds max");
        require(msg.value >= config.wlPrice * count, "invalid price");
        limitPerWallet[msg.sender].whitelist += count;
        _callMint(count, msg.sender);        
    }

    function mint(uint256 count) external payable nonReentrant whenNotPaused notBots {       
        require(count <= config.maxMintPerTx, "Exceeds max");
        require(limitPerWallet[msg.sender].mint + count <= config.maxMint, "Exceeds max");         
        require(msg.value >= config.mintPrice * count, "invalid price");
        limitPerWallet[msg.sender].mint += count;
        _callMint(count, msg.sender);        
    }

    modifier notBots {        
        require(_msgSender() == tx.origin, "no bots");
        _;
    }

    function adminMint(uint256 count, address to) external adminOrOwner {
        _callMint(count, to);
    }

    function _callMint(uint256 count, address to) internal {        
        uint256 total = totalSupply();
        require(count > 0, "Count is 0");
        require(total + count <= supply, "Sold out");
        _safeMint(to, count);
    }

    function burn(uint256 tokenId) external {
        TokenOwnership memory prevOwnership = ownershipOf(tokenId);

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

        require(isApprovedOrOwner, "Not approved");
        _burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
        string memory currentBaseURI = baseUri;
        return
            bytes(currentBaseURI).length > 0
                ? string(
                    abi.encodePacked(
                        currentBaseURI,
                        tokenId.toString(),
                        extension
                    )
                )
                : "";
    }

    function setExtension(string memory _extension) external adminOrOwner {
        extension = _extension;
    }

    function setUri(string memory _uri) external adminOrOwner {
        baseUri = _uri;
    }

    function setPaused(bool _paused) external adminOrOwner {
        if(_paused) {
            _pause();
        } else {
            _unpause();
        }
    }

    function toggleWhitelistLive() external adminOrOwner {
        bool isLive = !whitelistLive;
        whitelistLive = isLive;
        emit WhitelistLive(isLive);
    }

    function toggleRaffleLive() external adminOrOwner {
        bool isLive = !raffleLive;
        raffleLive = isLive;
        emit RaffleLive(isLive);
    }

    function setMerkle(IMerkle _whitelist) external adminOrOwner {
        whitelist = _whitelist;
    }

    function setSupply(uint256 _supply) external adminOrOwner {
        supply = _supply;
    }

    function setRaffle(IMerkle _raffle) external adminOrOwner {
        raffle = _raffle;
    }

    function setConfig(Config memory _config) external adminOrOwner {
        config = _config;
    }

    function setPaymentSplitter(address payable _paymentSplitter) external adminOrOwner {
        paymentSplitter = _paymentSplitter;
    }
     
    function withdraw() external adminOrOwner {
        (bool success, ) = paymentSplitter.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function addAdmin(address _admin) external adminOrOwner {
        admins[_admin] = true;
    }

    function removeAdmin(address _admin) external adminOrOwner {
        delete admins[_admin];
    }

    modifier adminOrOwner() {
        require(msg.sender == owner() || admins[msg.sender], "Unauthorized");
        _;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 17 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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';
import "@divergencetech/ethier/contracts/thirdparty/opensea/OpenSeaGasFreeListing.sol";

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error BurnedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @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 that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
    }

    // Compiler will pack the following 
    // _currentIndex and _burnCounter into a single 256bit word.
    
    // The tokenId of the next token to be minted.
    uint128 internal _currentIndex;

    // The number of tokens burned.
    uint128 internal _burnCounter;

    // 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) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex times
        unchecked {
            return _currentIndex - _burnCounter;    
        }
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     * This read function is O(totalSupply). 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 tokenByIndex(uint256 index) public view override returns (uint256) {
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (!ownership.burned) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }
        revert TokenIndexOutOfBounds();
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). 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) {
        if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds();
        uint256 numMintedSoFar = _currentIndex;
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when
        // uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        // Execution should never reach this point.
        revert();
    }

    /**
     * @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) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

    function _numberBurned(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert BurnedQueryForZeroAddress();
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant: 
                    // There will always be an ownership that has an address and is not burned 
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        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);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _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] || OpenSeaGasFreeListing.isApprovedForAll(owner, operator);
    }

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (!_checkOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @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 && !_ownerships[tokenId].burned;
    }

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

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        _mint(to, quantity, _data, true);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
                updatedIndex++;
            }

            _currentIndex = uint128(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 ||
            isApprovedForAll(prevOwnership.addr, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = 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)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

        _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128.
        unchecked {
            _addressData[prevOwnership.addr].balance -= 1;
            _addressData[prevOwnership.addr].numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            _ownerships[tokenId].addr = prevOwnership.addr;
            _ownerships[tokenId].startTimestamp = uint64(block.timestamp);
            _ownerships[tokenId].burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn 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)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId < _currentIndex) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(prevOwnership.addr, address(0), tokenId);
        _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked { 
            _burnCounter++;
        }
    }

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

    /**
     * @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 TransferToNonERC721ReceiverImplementer();
                } 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.
     * And also called before burning one token.
     *
     * 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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    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.
     * And also called after one token has been burned.
     *
     * 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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 17 : IMerkle.sol
pragma solidity 0.8.10;

interface IMerkle {
    function leaf(address) external pure returns (bytes32);
    function verify(bytes32 leaf, bytes32[] memory proof) external view returns (bool);
    function isPermitted(address account, bytes32[] memory proof) external view returns (bool);
    function setRoot(bytes32 _root) external;
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 17 : OpenSeaGasFreeListing.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

// Inspired by BaseOpenSea by Simon Fremaux (@dievardump) but without the need
// to pass specific addresses depending on deployment network.
// https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/

import "./ProxyRegistry.sol";

/// @notice Library to achieve gas-free listings on OpenSea.
library OpenSeaGasFreeListing {
    /**
    @notice Returns whether the operator is an OpenSea proxy for the owner, thus
    allowing it to list without the token owner paying gas.
    @dev ERC{721,1155}.isApprovedForAll should be overriden to also check if
    this function returns true.
     */
    function isApprovedForAll(address owner, address operator)
        internal
        view
        returns (bool)
    {
        address proxy = proxyFor(owner);
        return proxy != address(0) && proxy == operator;
    }

    /**
    @notice Returns the OpenSea proxy address for the owner.
     */
    function proxyFor(address owner) internal view returns (address) {
        address registry;
        uint256 chainId;

        assembly {
            chainId := chainid()
            switch chainId
            // Production networks are placed higher to minimise the number of
            // checks performed and therefore reduce gas. By the same rationale,
            // mainnet comes before Polygon as it's more expensive.
            case 1 {
                // mainnet
                registry := 0xa5409ec958c83c3f309868babaca7c86dcb077c1
            }
            case 137 {
                // polygon
                registry := 0x58807baD0B376efc12F5AD86aAc70E78ed67deaE
            }
            case 4 {
                // rinkeby
                registry := 0xf57b2c51ded3a29e6891aba85459d600256cf317
            }
            case 80001 {
                // mumbai
                registry := 0xff7Ca10aF37178BdD056628eF42fD7F799fAc77c
            }
            case 1337 {
                // The geth SimulatedBackend iff used with the ethier
                // openseatest package. This is mocked as a Wyvern proxy as it's
                // more complex than the 0x ones.
                registry := 0xE1a2bbc877b29ADBC56D2659DBcb0ae14ee62071
            }
        }

        // Unlike Wyvern, the registry itself is the proxy for all owners on 0x
        // chains.
        if (registry == address(0) || chainId == 137 || chainId == 80001) {
            return registry;
        }

        return address(ProxyRegistry(registry).proxies(owner));
    }
}

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

pragma solidity ^0.8.0;

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

File 17 of 17 : ProxyRegistry.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

/// @notice A minimal interface describing OpenSea's Wyvern proxy registry.
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

/**
@dev This pattern of using an empty contract is cargo-culted directly from
OpenSea's example code. TODO: it's likely that the above mapping can be changed
to address => address without affecting anything, but further investigation is
needed (i.e. is there a subtle reason that OpenSea released it like this?).
 */
contract OwnableDelegateProxy {

}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "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"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"live","type":"bool"}],"name":"RaffleLive","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"live","type":"bool"}],"name":"WhitelistLive","type":"event"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"config","outputs":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"wlPrice","type":"uint256"},{"internalType":"uint256","name":"rafflePrice","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"maxWhitelist","type":"uint256"},{"internalType":"uint256","name":"maxRaffle","type":"uint256"},{"internalType":"uint256","name":"maxWhitelistPerTx","type":"uint256"},{"internalType":"uint256","name":"maxRafflePerTx","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTx","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffle","outputs":[{"internalType":"contract IMerkle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"raffleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"mintPrice","type":"uint256"},{"internalType":"uint256","name":"wlPrice","type":"uint256"},{"internalType":"uint256","name":"rafflePrice","type":"uint256"},{"internalType":"uint256","name":"maxMint","type":"uint256"},{"internalType":"uint256","name":"maxWhitelist","type":"uint256"},{"internalType":"uint256","name":"maxRaffle","type":"uint256"},{"internalType":"uint256","name":"maxWhitelistPerTx","type":"uint256"},{"internalType":"uint256","name":"maxRafflePerTx","type":"uint256"},{"internalType":"uint256","name":"maxMintPerTx","type":"uint256"}],"internalType":"struct Cosmos.Config","name":"_config","type":"tuple"}],"name":"setConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_extension","type":"string"}],"name":"setExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMerkle","name":"_whitelist","type":"address"}],"name":"setMerkle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_paymentSplitter","type":"address"}],"name":"setPaymentSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMerkle","name":"_raffle","type":"address"}],"name":"setRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleRaffleLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWhitelistLive","outputs":[],"stateMutability":"nonpayable","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":[],"name":"whitelist","outputs":[{"internalType":"contract IMerkle","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101006040526044608081815290620036f960a03980516200002a91600a916020909101906200022f565b5061270f600b5560408051808201909152600580825264173539b7b760d91b60209092019182526200005f91600c916200022f565b503480156200006d57600080fd5b506040516200373d3803806200373d8339810160408190526200009091620003a2565b815182908290620000a99060019060208501906200022f565b508051620000bf9060029060208401906200022f565b505050620000dc620000d66200013b60201b60201c565b6200013f565b60016008556009805460ff19169055620000f562000191565b50506701aa535d3d0c0000601081905567016345785d8a000060115560125560056013819055600360148190556002601581905560169190915560175560185562000449565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60095460ff1615620001dc5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002123390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200023d906200040c565b90600052602060002090601f016020900481019282620002615760008555620002ac565b82601f106200027c57805160ff1916838001178555620002ac565b82800160010185558215620002ac579182015b82811115620002ac5782518255916020019190600101906200028f565b50620002ba929150620002be565b5090565b5b80821115620002ba5760008155600101620002bf565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002fd57600080fd5b81516001600160401b03808211156200031a576200031a620002d5565b604051601f8301601f19908116603f01168101908282118183101715620003455762000345620002d5565b816040528381526020925086838588010111156200036257600080fd5b600091505b8382101562000386578582018301518183018401529082019062000367565b83821115620003985760008385830101525b9695505050505050565b60008060408385031215620003b657600080fd5b82516001600160401b0380821115620003ce57600080fd5b620003dc86838701620002eb565b93506020850151915080821115620003f357600080fd5b506200040285828601620002eb565b9150509250929050565b600181811c908216806200042157607f821691505b602082108114156200044357634e487b7160e01b600052602260045260246000fd5b50919050565b6132a080620004596000396000f3fe6080604052600436106102885760003560e01c80635c975abb1161015a57806395d89b41116100c1578063b88d4fde1161007a578063b88d4fde146107d4578063c87b56dd146107f4578063d2cab05614610814578063e985e9c514610827578063ed4a6b0c14610847578063f2fde38b1461086d57600080fd5b806395d89b411461073d5780639979a194146107525780639abc83201461076c5780639b642de114610781578063a0712d68146107a1578063a22cb465146107b457600080fd5b8063715018a611610113578063715018a61461063c5780637890b2c91461065157806379502c55146106645780637e2285aa146106df5780638da5cb5b146106ff57806393e59dc11461071d57600080fd5b80635c975abb146105845780636352211e1461059c5780636396c429146105bc5780636b29b79f146105dc57806370480275146105fc57806370a082311461061c57600080fd5b806318160ddd116101fe5780633b4c4b25116101b75780633b4c4b25146104da5780633ccfd60b146104fa57806342842e0e1461050f57806342966c681461052f5780634f6ccce71461054f578063568c32a31461056f57600080fd5b806318160ddd1461041657806323b872dd146104455780632d5537b0146104655780632f745c591461047a57806333c1420a1461049a5780633b0403e6146104ba57600080fd5b8063095ea7b311610250578063095ea7b31461035f5780630a04680b146103815780630dc28efe1461039657806315ed71f2146103b657806316c38b3c146103d65780631785f53c146103f657600080fd5b806301ffc9a71461028d578063047fc9aa146102c25780630638b979146102e657806306fdde0314610305578063081812fc14610327575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612a34565b61088d565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d8600b5481565b6040519081526020016102b9565b3480156102f257600080fd5b50600d546102ad90610100900460ff1681565b34801561031157600080fd5b5061031a6108fa565b6040516102b99190612aa9565b34801561033357600080fd5b50610347610342366004612abc565b61098c565b6040516001600160a01b0390911681526020016102b9565b34801561036b57600080fd5b5061037f61037a366004612aea565b6109d0565b005b34801561038d57600080fd5b5061037f610a5e565b3480156103a257600080fd5b5061037f6103b1366004612b16565b610afe565b3480156103c257600080fd5b5061037f6103d1366004612b46565b610b50565b3480156103e257600080fd5b5061037f6103f1366004612b71565b610bb6565b34801561040257600080fd5b5061037f610411366004612b46565b610c13565b34801561042257600080fd5b506102d86000546001600160801b03600160801b82048116918116919091031690565b34801561045157600080fd5b5061037f610460366004612b8e565b610c78565b34801561047157600080fd5b5061031a610c83565b34801561048657600080fd5b506102d8610495366004612aea565b610d11565b3480156104a657600080fd5b50600f54610347906001600160a01b031681565b3480156104c657600080fd5b5061037f6104d5366004612b46565b610e0d565b3480156104e657600080fd5b5061037f6104f5366004612abc565b610e73565b34801561050657600080fd5b5061037f610ebc565b34801561051b57600080fd5b5061037f61052a366004612b8e565b610f9c565b34801561053b57600080fd5b5061037f61054a366004612abc565b610fb7565b34801561055b57600080fd5b506102d861056a366004612abc565b611052565b34801561057b57600080fd5b5061037f6110fc565b34801561059057600080fd5b5060095460ff166102ad565b3480156105a857600080fd5b506103476105b7366004612abc565b611184565b3480156105c857600080fd5b5061037f6105d7366004612c3e565b611196565b3480156105e857600080fd5b5061037f6105f7366004612b46565b611221565b34801561060857600080fd5b5061037f610617366004612b46565b61128f565b34801561062857600080fd5b506102d8610637366004612b46565b6112f7565b34801561064857600080fd5b5061037f611345565b61037f61065f366004612cb9565b6113ab565b34801561067057600080fd5b5060105460115460125460135460145460155460165460175460185461069b98979695949392919089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015260e0830152610100820152610120016102b9565b3480156106eb57600080fd5b5061037f6106fa366004612dc1565b6115ac565b34801561070b57600080fd5b506007546001600160a01b0316610347565b34801561072957600080fd5b50600e54610347906001600160a01b031681565b34801561074957600080fd5b5061031a611603565b34801561075e57600080fd5b50600d546102ad9060ff1681565b34801561077857600080fd5b5061031a611612565b34801561078d57600080fd5b5061037f61079c366004612dc1565b61161f565b61037f6107af366004612abc565b611676565b3480156107c057600080fd5b5061037f6107cf366004612e09565b6117c5565b3480156107e057600080fd5b5061037f6107ef366004612e37565b61185b565b34801561080057600080fd5b5061031a61080f366004612abc565b611895565b61037f610822366004612cb9565b6119d8565b34801561083357600080fd5b506102ad610842366004612eb6565b611bbd565b34801561085357600080fd5b50600d54610347906201000090046001600160a01b031681565b34801561087957600080fd5b5061037f610888366004612b46565b611bf8565b60006001600160e01b031982166380ac58cd60e01b14806108be57506001600160e01b03198216635b5e139f60e01b145b806108d957506001600160e01b0319821663780e9d6360e01b145b806108f457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461090990612ee4565b80601f016020809104026020016040519081016040528092919081815260200182805461093590612ee4565b80156109825780601f1061095757610100808354040283529160200191610982565b820191906000526020600020905b81548152906001019060200180831161096557829003601f168201915b5050505050905090565b600061099782611cc0565b6109b4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109db82611184565b9050806001600160a01b0316836001600160a01b03161415610a105760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a305750610a2e8133611bbd565b155b15610a4e576040516367d9dca160e11b815260040160405180910390fd5b610a59838383611cf4565b505050565b6007546001600160a01b0316331480610a865750336000908152601a602052604090205460ff165b610aab5760405162461bcd60e51b8152600401610aa290612f1f565b60405180910390fd5b600d805461ff001981166101009182900460ff1615918202179091556040518181527f4b3d7e8dff6d386ef3309e9723f56510b77fd85595c06e523b05d46e5ab21bed906020015b60405180910390a150565b6007546001600160a01b0316331480610b265750336000908152601a602052604090205460ff165b610b425760405162461bcd60e51b8152600401610aa290612f1f565b610b4c8282611d50565b5050565b6007546001600160a01b0316331480610b785750336000908152601a602052604090205460ff165b610b945760405162461bcd60e51b8152600401610aa290612f1f565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331480610bde5750336000908152601a602052604090205460ff165b610bfa5760405162461bcd60e51b8152600401610aa290612f1f565b8015610c0b57610c08611e03565b50565b610c08611e9b565b6007546001600160a01b0316331480610c3b5750336000908152601a602052604090205460ff165b610c575760405162461bcd60e51b8152600401610aa290612f1f565b6001600160a01b03166000908152601a60205260409020805460ff19169055565b610a59838383611f15565b600c8054610c9090612ee4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbc90612ee4565b8015610d095780601f10610cde57610100808354040283529160200191610d09565b820191906000526020600020905b815481529060010190602001808311610cec57829003601f168201915b505050505081565b6000610d1c836112f7565b8210610d3b576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610e0757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610db35750610dff565b80516001600160a01b031615610dc857805192505b876001600160a01b0316836001600160a01b03161415610dfd5786841415610df6575093506108f492505050565b6001909301925b505b600101610d4c565b50600080fd5b6007546001600160a01b0316331480610e355750336000908152601a602052604090205460ff165b610e515760405162461bcd60e51b8152600401610aa290612f1f565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331480610e9b5750336000908152601a602052604090205460ff165b610eb75760405162461bcd60e51b8152600401610aa290612f1f565b600b55565b6007546001600160a01b0316331480610ee45750336000908152601a602052604090205460ff165b610f005760405162461bcd60e51b8152600401610aa290612f1f565b600d546040516000916201000090046001600160a01b03169047908381818185875af1925050503d8060008114610f53576040519150601f19603f3d011682016040523d82523d6000602084013e610f58565b606091505b5050905080610c085760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610aa2565b610a598383836040518060200160405280600081525061185b565b6000610fc282612132565b80519091506000906001600160a01b0316336001600160a01b03161480610ff057508151610ff09033611bbd565b8061100b5750336110008461098c565b6001600160a01b0316145b9050806110495760405162461bcd60e51b815260206004820152600c60248201526b139bdd08185c1c1c9bdd995960a21b6044820152606401610aa2565b610a5983612254565b600080546001600160801b031681805b828110156110e257600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906110d957858314156110d25750949350505050565b6001909201915b50600101611062565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314806111245750336000908152601a602052604090205460ff165b6111405760405162461bcd60e51b8152600401610aa290612f1f565b600d805460ff81161560ff1990911681179091556040518181527f033fcfd9cc0d1245d0975739b3bd6fa38727f20cfda54f4c8f817e2825ee7b8c90602001610af3565b600061118f82612132565b5192915050565b6007546001600160a01b03163314806111be5750336000908152601a602052604090205460ff165b6111da5760405162461bcd60e51b8152600401610aa290612f1f565b8051601055602081015160115560408101516012556060810151601355608081015160145560a081015160155560c081015160165560e08101516017556101000151601855565b6007546001600160a01b03163314806112495750336000908152601a602052604090205460ff165b6112655760405162461bcd60e51b8152600401610aa290612f1f565b600d80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6007546001600160a01b03163314806112b75750336000908152601a602052604090205460ff165b6112d35760405162461bcd60e51b8152600401610aa290612f1f565b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b60006001600160a01b038216611320576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa2565b6113a960006123f7565b565b600260085414156113ce5760405162461bcd60e51b8152600401610aa290612f45565b60026008553332146113f25760405162461bcd60e51b8152600401610aa290612f7c565b600d54610100900460ff166114345760405162461bcd60e51b81526020600482015260086024820152674e6f74206c69766560c01b6044820152606401610aa2565b6017548211156114565760405162461bcd60e51b8152600401610aa290612f9d565b600f5460405163f0ba58a160e01b81526001600160a01b039091169063f0ba58a1906114889033908590600401612fc2565b602060405180830381865afa1580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190613018565b6115055760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420696e20726166666c6560981b6044820152606401610aa2565b6015543360009081526019602052604090206002015461152690849061304b565b11156115445760405162461bcd60e51b8152600401610aa290612f9d565b601254611552908390613063565b3410156115715760405162461bcd60e51b8152600401610aa290613082565b336000908152601960205260408120600201805484929061159390849061304b565b909155506115a390508233611d50565b50506001600855565b6007546001600160a01b03163314806115d45750336000908152601a602052604090205460ff165b6115f05760405162461bcd60e51b8152600401610aa290612f1f565b8051610b4c90600c906020840190612985565b60606002805461090990612ee4565b600a8054610c9090612ee4565b6007546001600160a01b03163314806116475750336000908152601a602052604090205460ff165b6116635760405162461bcd60e51b8152600401610aa290612f1f565b8051610b4c90600a906020840190612985565b600260085414156116995760405162461bcd60e51b8152600401610aa290612f45565b600260085560095460ff16156116e45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aa2565b3332146117035760405162461bcd60e51b8152600401610aa290612f7c565b6018548111156117255760405162461bcd60e51b8152600401610aa290612f9d565b6013543360009081526019602052604090205461174390839061304b565b11156117615760405162461bcd60e51b8152600401610aa290612f9d565b60105461176f908290613063565b34101561178e5760405162461bcd60e51b8152600401610aa290613082565b33600090815260196020526040812080548392906117ad90849061304b565b909155506117bd90508133611d50565b506001600855565b6001600160a01b0382163314156117ef5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611866848484611f15565b61187284848484612449565b61188f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606118a082611cc0565b6118f65760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610aa2565b6000600a805461190590612ee4565b80601f016020809104026020016040519081016040528092919081815260200182805461193190612ee4565b801561197e5780601f106119535761010080835404028352916020019161197e565b820191906000526020600020905b81548152906001019060200180831161196157829003601f168201915b5050505050905060008151116119a357604051806020016040528060008152506119d1565b806119ad84612549565b600c6040516020016119c1939291906130a9565b6040516020818303038152906040525b9392505050565b600260085414156119fb5760405162461bcd60e51b8152600401610aa290612f45565b6002600855333214611a1f5760405162461bcd60e51b8152600401610aa290612f7c565b600d5460ff16611a5c5760405162461bcd60e51b81526020600482015260086024820152674e6f74206c69766560c01b6044820152606401610aa2565b601654821115611a7e5760405162461bcd60e51b8152600401610aa290612f9d565b600e5460405163f0ba58a160e01b81526001600160a01b039091169063f0ba58a190611ab09033908590600401612fc2565b602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af19190613018565b611b2f5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610aa2565b60145433600090815260196020526040902060010154611b5090849061304b565b1115611b6e5760405162461bcd60e51b8152600401610aa290612f9d565b601154611b7c908390613063565b341015611b9b5760405162461bcd60e51b8152600401610aa290613082565b336000908152601960205260408120600101805484929061159390849061304b565b6001600160a01b03808316600090815260066020908152604080832093851683529290529081205460ff16806119d157506119d18383612646565b6007546001600160a01b03163314611c525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa2565b6001600160a01b038116611cb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aa2565b610c08816123f7565b600080546001600160801b0316821080156108f4575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611d746000546001600160801b03600160801b82048116918116919091031690565b905060008311611db35760405162461bcd60e51b815260206004820152600a6024820152690436f756e7420697320360b41b6044820152606401610aa2565b600b54611dc0848361304b565b1115611df95760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610aa2565b610a598284612684565b60095460ff1615611e495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aa2565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e7e3390565b6040516001600160a01b03909116815260200160405180910390a1565b60095460ff16611ee45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610aa2565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e7e565b6000611f2082612132565b80519091506000906001600160a01b0316336001600160a01b03161480611f4e57508151611f4e9033611bbd565b80611f69575033611f5e8461098c565b6001600160a01b0316145b905080611f8957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fbe5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611fe557604051633a954ecd60e21b815260040160405180910390fd5b611ff56000848460000151611cf4565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166120e8576000546001600160801b03168110156120e857825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561223b57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122395780516001600160a01b0316156121d0579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612234579392505050565b6121d0565b505b604051636f96cda160e11b815260040160405180910390fd5b600061225f82612132565b90506122716000838360000151611cf4565b80516001600160a01b039081166000908152600460209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260039094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116612391576000546001600160801b031681101561239157815160008281526003602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506000805460016001600160801b03600160801b80840482169290920181169091029116179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561253d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061248d90339089908890889060040161316d565b6020604051808303816000875af19250505080156124c8575060408051601f3d908101601f191682019092526124c5918101906131aa565b60015b612523573d8080156124f6576040519150601f19603f3d011682016040523d82523d6000602084013e6124fb565b606091505b50805161251b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612541565b5060015b949350505050565b60608161256d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125975780612581816131c7565b91506125909050600a836131f8565b9150612571565b6000816001600160401b038111156125b1576125b1612bcf565b6040519080825280601f01601f1916602001820160405280156125db576020820181803683370190505b5090505b8415612541576125f060018361320c565b91506125fd600a86613223565b61260890603061304b565b60f81b81838151811061261d5761261d613237565b60200101906001600160f81b031916908160001a90535061263f600a866131f8565b94506125df565b6000806126528461269e565b90506001600160a01b038116158015906125415750826001600160a01b0316816001600160a01b031614949350505050565b610b4c8282604051806020016040528060008152506127f5565b6000804680600181146126d357608981146126ef576004811461270b576201388181146127275761053981146127435761275b565b73a5409ec958c83c3f309868babaca7c86dcb077c1925061275b565b7358807bad0b376efc12f5ad86aac70e78ed67deae925061275b565b73f57b2c51ded3a29e6891aba85459d600256cf317925061275b565b73ff7ca10af37178bdd056628ef42fd7f799fac77c925061275b565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806127725750806089145b8061277f57508062013881145b1561278b575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa1580156127d1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612541919061324d565b610a5983838360016000546001600160801b03166001600160a01b03851661282f57604051622e076360e81b815260040160405180910390fd5b8361284d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561295f5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561293557506129336000888488612449565b155b15612953576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016128de565b50600080546001600160801b0319166001600160801b039290921691909117905561212b565b82805461299190612ee4565b90600052602060002090601f0160209004810192826129b357600085556129f9565b82601f106129cc57805160ff19168380011785556129f9565b828001600101855582156129f9579182015b828111156129f95782518255916020019190600101906129de565b50612a05929150612a09565b5090565b5b80821115612a055760008155600101612a0a565b6001600160e01b031981168114610c0857600080fd5b600060208284031215612a4657600080fd5b81356119d181612a1e565b60005b83811015612a6c578181015183820152602001612a54565b8381111561188f5750506000910152565b60008151808452612a95816020860160208601612a51565b601f01601f19169290920160200192915050565b6020815260006119d16020830184612a7d565b600060208284031215612ace57600080fd5b5035919050565b6001600160a01b0381168114610c0857600080fd5b60008060408385031215612afd57600080fd5b8235612b0881612ad5565b946020939093013593505050565b60008060408385031215612b2957600080fd5b823591506020830135612b3b81612ad5565b809150509250929050565b600060208284031215612b5857600080fd5b81356119d181612ad5565b8015158114610c0857600080fd5b600060208284031215612b8357600080fd5b81356119d181612b63565b600080600060608486031215612ba357600080fd5b8335612bae81612ad5565b92506020840135612bbe81612ad5565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715612c0857612c08612bcf565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612c3657612c36612bcf565b604052919050565b60006101208284031215612c5157600080fd5b612c59612be5565b823581526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201526101008084013581830152508091505092915050565b60008060408385031215612ccc57600080fd5b823591506020808401356001600160401b0380821115612ceb57600080fd5b818601915086601f830112612cff57600080fd5b813581811115612d1157612d11612bcf565b8060051b9150612d22848301612c0e565b8181529183018401918481019089841115612d3c57600080fd5b938501935b83851015612d5a57843582529385019390850190612d41565b8096505050505050509250929050565b60006001600160401b03831115612d8357612d83612bcf565b612d96601f8401601f1916602001612c0e565b9050828152838383011115612daa57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612dd357600080fd5b81356001600160401b03811115612de957600080fd5b8201601f81018413612dfa57600080fd5b61254184823560208401612d6a565b60008060408385031215612e1c57600080fd5b8235612e2781612ad5565b91506020830135612b3b81612b63565b60008060008060808587031215612e4d57600080fd5b8435612e5881612ad5565b93506020850135612e6881612ad5565b92506040850135915060608501356001600160401b03811115612e8a57600080fd5b8501601f81018713612e9b57600080fd5b612eaa87823560208401612d6a565b91505092959194509250565b60008060408385031215612ec957600080fd5b8235612ed481612ad5565b91506020830135612b3b81612ad5565b600181811c90821680612ef857607f821691505b60208210811415612f1957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600790820152666e6f20626f747360c81b604082015260600190565b6020808252600b908201526a08af0c6cacac8e640dac2f60ab1b604082015260600190565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b8181101561300b57845183529383019391830191600101612fef565b5090979650505050505050565b60006020828403121561302a57600080fd5b81516119d181612b63565b634e487b7160e01b600052601160045260246000fd5b6000821982111561305e5761305e613035565b500190565b600081600019048311821515161561307d5761307d613035565b500290565b6020808252600d908201526c696e76616c696420707269636560981b604082015260600190565b6000845160206130bc8285838a01612a51565b8551918401916130cf8184848a01612a51565b8554920191600090600181811c90808316806130ec57607f831692505b85831081141561310a57634e487b7160e01b85526022600452602485fd5b80801561311e576001811461312f5761315c565b60ff1985168852838801955061315c565b60008b81526020902060005b858110156131545781548a82015290840190880161313b565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131a090830184612a7d565b9695505050505050565b6000602082840312156131bc57600080fd5b81516119d181612a1e565b60006000198214156131db576131db613035565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613207576132076131e2565b500490565b60008282101561321e5761321e613035565b500390565b600082613232576132326131e2565b500690565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561325f57600080fd5b81516119d181612ad556fea26469706673582212206b3256aaec7734db8f58b683da84eef232fcc1162cd4d29ee1fdac633dcf406164736f6c634300080a003368747470733a2f2f697066732e696f2f697066732f516d61547875334b77316a5a685a454378684b746a56346745664176355175517757676f6378374d4676574535762f000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006436f736d6f7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006434f534d4f530000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102885760003560e01c80635c975abb1161015a57806395d89b41116100c1578063b88d4fde1161007a578063b88d4fde146107d4578063c87b56dd146107f4578063d2cab05614610814578063e985e9c514610827578063ed4a6b0c14610847578063f2fde38b1461086d57600080fd5b806395d89b411461073d5780639979a194146107525780639abc83201461076c5780639b642de114610781578063a0712d68146107a1578063a22cb465146107b457600080fd5b8063715018a611610113578063715018a61461063c5780637890b2c91461065157806379502c55146106645780637e2285aa146106df5780638da5cb5b146106ff57806393e59dc11461071d57600080fd5b80635c975abb146105845780636352211e1461059c5780636396c429146105bc5780636b29b79f146105dc57806370480275146105fc57806370a082311461061c57600080fd5b806318160ddd116101fe5780633b4c4b25116101b75780633b4c4b25146104da5780633ccfd60b146104fa57806342842e0e1461050f57806342966c681461052f5780634f6ccce71461054f578063568c32a31461056f57600080fd5b806318160ddd1461041657806323b872dd146104455780632d5537b0146104655780632f745c591461047a57806333c1420a1461049a5780633b0403e6146104ba57600080fd5b8063095ea7b311610250578063095ea7b31461035f5780630a04680b146103815780630dc28efe1461039657806315ed71f2146103b657806316c38b3c146103d65780631785f53c146103f657600080fd5b806301ffc9a71461028d578063047fc9aa146102c25780630638b979146102e657806306fdde0314610305578063081812fc14610327575b600080fd5b34801561029957600080fd5b506102ad6102a8366004612a34565b61088d565b60405190151581526020015b60405180910390f35b3480156102ce57600080fd5b506102d8600b5481565b6040519081526020016102b9565b3480156102f257600080fd5b50600d546102ad90610100900460ff1681565b34801561031157600080fd5b5061031a6108fa565b6040516102b99190612aa9565b34801561033357600080fd5b50610347610342366004612abc565b61098c565b6040516001600160a01b0390911681526020016102b9565b34801561036b57600080fd5b5061037f61037a366004612aea565b6109d0565b005b34801561038d57600080fd5b5061037f610a5e565b3480156103a257600080fd5b5061037f6103b1366004612b16565b610afe565b3480156103c257600080fd5b5061037f6103d1366004612b46565b610b50565b3480156103e257600080fd5b5061037f6103f1366004612b71565b610bb6565b34801561040257600080fd5b5061037f610411366004612b46565b610c13565b34801561042257600080fd5b506102d86000546001600160801b03600160801b82048116918116919091031690565b34801561045157600080fd5b5061037f610460366004612b8e565b610c78565b34801561047157600080fd5b5061031a610c83565b34801561048657600080fd5b506102d8610495366004612aea565b610d11565b3480156104a657600080fd5b50600f54610347906001600160a01b031681565b3480156104c657600080fd5b5061037f6104d5366004612b46565b610e0d565b3480156104e657600080fd5b5061037f6104f5366004612abc565b610e73565b34801561050657600080fd5b5061037f610ebc565b34801561051b57600080fd5b5061037f61052a366004612b8e565b610f9c565b34801561053b57600080fd5b5061037f61054a366004612abc565b610fb7565b34801561055b57600080fd5b506102d861056a366004612abc565b611052565b34801561057b57600080fd5b5061037f6110fc565b34801561059057600080fd5b5060095460ff166102ad565b3480156105a857600080fd5b506103476105b7366004612abc565b611184565b3480156105c857600080fd5b5061037f6105d7366004612c3e565b611196565b3480156105e857600080fd5b5061037f6105f7366004612b46565b611221565b34801561060857600080fd5b5061037f610617366004612b46565b61128f565b34801561062857600080fd5b506102d8610637366004612b46565b6112f7565b34801561064857600080fd5b5061037f611345565b61037f61065f366004612cb9565b6113ab565b34801561067057600080fd5b5060105460115460125460135460145460155460165460175460185461069b98979695949392919089565b60408051998a5260208a0198909852968801959095526060870193909352608086019190915260a085015260c084015260e0830152610100820152610120016102b9565b3480156106eb57600080fd5b5061037f6106fa366004612dc1565b6115ac565b34801561070b57600080fd5b506007546001600160a01b0316610347565b34801561072957600080fd5b50600e54610347906001600160a01b031681565b34801561074957600080fd5b5061031a611603565b34801561075e57600080fd5b50600d546102ad9060ff1681565b34801561077857600080fd5b5061031a611612565b34801561078d57600080fd5b5061037f61079c366004612dc1565b61161f565b61037f6107af366004612abc565b611676565b3480156107c057600080fd5b5061037f6107cf366004612e09565b6117c5565b3480156107e057600080fd5b5061037f6107ef366004612e37565b61185b565b34801561080057600080fd5b5061031a61080f366004612abc565b611895565b61037f610822366004612cb9565b6119d8565b34801561083357600080fd5b506102ad610842366004612eb6565b611bbd565b34801561085357600080fd5b50600d54610347906201000090046001600160a01b031681565b34801561087957600080fd5b5061037f610888366004612b46565b611bf8565b60006001600160e01b031982166380ac58cd60e01b14806108be57506001600160e01b03198216635b5e139f60e01b145b806108d957506001600160e01b0319821663780e9d6360e01b145b806108f457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606001805461090990612ee4565b80601f016020809104026020016040519081016040528092919081815260200182805461093590612ee4565b80156109825780601f1061095757610100808354040283529160200191610982565b820191906000526020600020905b81548152906001019060200180831161096557829003601f168201915b5050505050905090565b600061099782611cc0565b6109b4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006109db82611184565b9050806001600160a01b0316836001600160a01b03161415610a105760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610a305750610a2e8133611bbd565b155b15610a4e576040516367d9dca160e11b815260040160405180910390fd5b610a59838383611cf4565b505050565b6007546001600160a01b0316331480610a865750336000908152601a602052604090205460ff165b610aab5760405162461bcd60e51b8152600401610aa290612f1f565b60405180910390fd5b600d805461ff001981166101009182900460ff1615918202179091556040518181527f4b3d7e8dff6d386ef3309e9723f56510b77fd85595c06e523b05d46e5ab21bed906020015b60405180910390a150565b6007546001600160a01b0316331480610b265750336000908152601a602052604090205460ff165b610b425760405162461bcd60e51b8152600401610aa290612f1f565b610b4c8282611d50565b5050565b6007546001600160a01b0316331480610b785750336000908152601a602052604090205460ff165b610b945760405162461bcd60e51b8152600401610aa290612f1f565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331480610bde5750336000908152601a602052604090205460ff165b610bfa5760405162461bcd60e51b8152600401610aa290612f1f565b8015610c0b57610c08611e03565b50565b610c08611e9b565b6007546001600160a01b0316331480610c3b5750336000908152601a602052604090205460ff165b610c575760405162461bcd60e51b8152600401610aa290612f1f565b6001600160a01b03166000908152601a60205260409020805460ff19169055565b610a59838383611f15565b600c8054610c9090612ee4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cbc90612ee4565b8015610d095780601f10610cde57610100808354040283529160200191610d09565b820191906000526020600020905b815481529060010190602001808311610cec57829003601f168201915b505050505081565b6000610d1c836112f7565b8210610d3b576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b83811015610e0757600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161580159282019290925290610db35750610dff565b80516001600160a01b031615610dc857805192505b876001600160a01b0316836001600160a01b03161415610dfd5786841415610df6575093506108f492505050565b6001909301925b505b600101610d4c565b50600080fd5b6007546001600160a01b0316331480610e355750336000908152601a602052604090205460ff165b610e515760405162461bcd60e51b8152600401610aa290612f1f565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b0316331480610e9b5750336000908152601a602052604090205460ff165b610eb75760405162461bcd60e51b8152600401610aa290612f1f565b600b55565b6007546001600160a01b0316331480610ee45750336000908152601a602052604090205460ff165b610f005760405162461bcd60e51b8152600401610aa290612f1f565b600d546040516000916201000090046001600160a01b03169047908381818185875af1925050503d8060008114610f53576040519150601f19603f3d011682016040523d82523d6000602084013e610f58565b606091505b5050905080610c085760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610aa2565b610a598383836040518060200160405280600081525061185b565b6000610fc282612132565b80519091506000906001600160a01b0316336001600160a01b03161480610ff057508151610ff09033611bbd565b8061100b5750336110008461098c565b6001600160a01b0316145b9050806110495760405162461bcd60e51b815260206004820152600c60248201526b139bdd08185c1c1c9bdd995960a21b6044820152606401610aa2565b610a5983612254565b600080546001600160801b031681805b828110156110e257600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906110d957858314156110d25750949350505050565b6001909201915b50600101611062565b506040516329c8c00760e21b815260040160405180910390fd5b6007546001600160a01b03163314806111245750336000908152601a602052604090205460ff165b6111405760405162461bcd60e51b8152600401610aa290612f1f565b600d805460ff81161560ff1990911681179091556040518181527f033fcfd9cc0d1245d0975739b3bd6fa38727f20cfda54f4c8f817e2825ee7b8c90602001610af3565b600061118f82612132565b5192915050565b6007546001600160a01b03163314806111be5750336000908152601a602052604090205460ff165b6111da5760405162461bcd60e51b8152600401610aa290612f1f565b8051601055602081015160115560408101516012556060810151601355608081015160145560a081015160155560c081015160165560e08101516017556101000151601855565b6007546001600160a01b03163314806112495750336000908152601a602052604090205460ff165b6112655760405162461bcd60e51b8152600401610aa290612f1f565b600d80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6007546001600160a01b03163314806112b75750336000908152601a602052604090205460ff165b6112d35760405162461bcd60e51b8152600401610aa290612f1f565b6001600160a01b03166000908152601a60205260409020805460ff19166001179055565b60006001600160a01b038216611320576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b0316331461139f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa2565b6113a960006123f7565b565b600260085414156113ce5760405162461bcd60e51b8152600401610aa290612f45565b60026008553332146113f25760405162461bcd60e51b8152600401610aa290612f7c565b600d54610100900460ff166114345760405162461bcd60e51b81526020600482015260086024820152674e6f74206c69766560c01b6044820152606401610aa2565b6017548211156114565760405162461bcd60e51b8152600401610aa290612f9d565b600f5460405163f0ba58a160e01b81526001600160a01b039091169063f0ba58a1906114889033908590600401612fc2565b602060405180830381865afa1580156114a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c99190613018565b6115055760405162461bcd60e51b815260206004820152600d60248201526c4e6f7420696e20726166666c6560981b6044820152606401610aa2565b6015543360009081526019602052604090206002015461152690849061304b565b11156115445760405162461bcd60e51b8152600401610aa290612f9d565b601254611552908390613063565b3410156115715760405162461bcd60e51b8152600401610aa290613082565b336000908152601960205260408120600201805484929061159390849061304b565b909155506115a390508233611d50565b50506001600855565b6007546001600160a01b03163314806115d45750336000908152601a602052604090205460ff165b6115f05760405162461bcd60e51b8152600401610aa290612f1f565b8051610b4c90600c906020840190612985565b60606002805461090990612ee4565b600a8054610c9090612ee4565b6007546001600160a01b03163314806116475750336000908152601a602052604090205460ff165b6116635760405162461bcd60e51b8152600401610aa290612f1f565b8051610b4c90600a906020840190612985565b600260085414156116995760405162461bcd60e51b8152600401610aa290612f45565b600260085560095460ff16156116e45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aa2565b3332146117035760405162461bcd60e51b8152600401610aa290612f7c565b6018548111156117255760405162461bcd60e51b8152600401610aa290612f9d565b6013543360009081526019602052604090205461174390839061304b565b11156117615760405162461bcd60e51b8152600401610aa290612f9d565b60105461176f908290613063565b34101561178e5760405162461bcd60e51b8152600401610aa290613082565b33600090815260196020526040812080548392906117ad90849061304b565b909155506117bd90508133611d50565b506001600855565b6001600160a01b0382163314156117ef5760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611866848484611f15565b61187284848484612449565b61188f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60606118a082611cc0565b6118f65760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610aa2565b6000600a805461190590612ee4565b80601f016020809104026020016040519081016040528092919081815260200182805461193190612ee4565b801561197e5780601f106119535761010080835404028352916020019161197e565b820191906000526020600020905b81548152906001019060200180831161196157829003601f168201915b5050505050905060008151116119a357604051806020016040528060008152506119d1565b806119ad84612549565b600c6040516020016119c1939291906130a9565b6040516020818303038152906040525b9392505050565b600260085414156119fb5760405162461bcd60e51b8152600401610aa290612f45565b6002600855333214611a1f5760405162461bcd60e51b8152600401610aa290612f7c565b600d5460ff16611a5c5760405162461bcd60e51b81526020600482015260086024820152674e6f74206c69766560c01b6044820152606401610aa2565b601654821115611a7e5760405162461bcd60e51b8152600401610aa290612f9d565b600e5460405163f0ba58a160e01b81526001600160a01b039091169063f0ba58a190611ab09033908590600401612fc2565b602060405180830381865afa158015611acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611af19190613018565b611b2f5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610aa2565b60145433600090815260196020526040902060010154611b5090849061304b565b1115611b6e5760405162461bcd60e51b8152600401610aa290612f9d565b601154611b7c908390613063565b341015611b9b5760405162461bcd60e51b8152600401610aa290613082565b336000908152601960205260408120600101805484929061159390849061304b565b6001600160a01b03808316600090815260066020908152604080832093851683529290529081205460ff16806119d157506119d18383612646565b6007546001600160a01b03163314611c525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610aa2565b6001600160a01b038116611cb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aa2565b610c08816123f7565b600080546001600160801b0316821080156108f4575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000611d746000546001600160801b03600160801b82048116918116919091031690565b905060008311611db35760405162461bcd60e51b815260206004820152600a6024820152690436f756e7420697320360b41b6044820152606401610aa2565b600b54611dc0848361304b565b1115611df95760405162461bcd60e51b815260206004820152600860248201526714dbdb19081bdd5d60c21b6044820152606401610aa2565b610a598284612684565b60095460ff1615611e495760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aa2565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e7e3390565b6040516001600160a01b03909116815260200160405180910390a1565b60095460ff16611ee45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610aa2565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611e7e565b6000611f2082612132565b80519091506000906001600160a01b0316336001600160a01b03161480611f4e57508151611f4e9033611bbd565b80611f69575033611f5e8461098c565b6001600160a01b0316145b905080611f8957604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b031614611fbe5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038416611fe557604051633a954ecd60e21b815260040160405180910390fd5b611ff56000848460000151611cf4565b6001600160a01b038581166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166120e8576000546001600160801b03168110156120e857825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b60408051606081018252600080825260208201819052918101829052905482906001600160801b031681101561223b57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122395780516001600160a01b0316156121d0579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612234579392505050565b6121d0565b505b604051636f96cda160e11b815260040160405180910390fd5b600061225f82612132565b90506122716000838360000151611cf4565b80516001600160a01b039081166000908152600460209081526040808320805467ffffffffffffffff1981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260039094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116612391576000546001600160801b031681101561239157815160008281526003602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a450506000805460016001600160801b03600160801b80840482169290920181169091029116179055565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b1561253d57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061248d90339089908890889060040161316d565b6020604051808303816000875af19250505080156124c8575060408051601f3d908101601f191682019092526124c5918101906131aa565b60015b612523573d8080156124f6576040519150601f19603f3d011682016040523d82523d6000602084013e6124fb565b606091505b50805161251b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612541565b5060015b949350505050565b60608161256d5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125975780612581816131c7565b91506125909050600a836131f8565b9150612571565b6000816001600160401b038111156125b1576125b1612bcf565b6040519080825280601f01601f1916602001820160405280156125db576020820181803683370190505b5090505b8415612541576125f060018361320c565b91506125fd600a86613223565b61260890603061304b565b60f81b81838151811061261d5761261d613237565b60200101906001600160f81b031916908160001a90535061263f600a866131f8565b94506125df565b6000806126528461269e565b90506001600160a01b038116158015906125415750826001600160a01b0316816001600160a01b031614949350505050565b610b4c8282604051806020016040528060008152506127f5565b6000804680600181146126d357608981146126ef576004811461270b576201388181146127275761053981146127435761275b565b73a5409ec958c83c3f309868babaca7c86dcb077c1925061275b565b7358807bad0b376efc12f5ad86aac70e78ed67deae925061275b565b73f57b2c51ded3a29e6891aba85459d600256cf317925061275b565b73ff7ca10af37178bdd056628ef42fd7f799fac77c925061275b565b73e1a2bbc877b29adbc56d2659dbcb0ae14ee6207192505b506001600160a01b03821615806127725750806089145b8061277f57508062013881145b1561278b575092915050565b60405163c455279160e01b81526001600160a01b03858116600483015283169063c455279190602401602060405180830381865afa1580156127d1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612541919061324d565b610a5983838360016000546001600160801b03166001600160a01b03851661282f57604051622e076360e81b815260040160405180910390fd5b8361284d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8581101561295f5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561293557506129336000888488612449565b155b15612953576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016128de565b50600080546001600160801b0319166001600160801b039290921691909117905561212b565b82805461299190612ee4565b90600052602060002090601f0160209004810192826129b357600085556129f9565b82601f106129cc57805160ff19168380011785556129f9565b828001600101855582156129f9579182015b828111156129f95782518255916020019190600101906129de565b50612a05929150612a09565b5090565b5b80821115612a055760008155600101612a0a565b6001600160e01b031981168114610c0857600080fd5b600060208284031215612a4657600080fd5b81356119d181612a1e565b60005b83811015612a6c578181015183820152602001612a54565b8381111561188f5750506000910152565b60008151808452612a95816020860160208601612a51565b601f01601f19169290920160200192915050565b6020815260006119d16020830184612a7d565b600060208284031215612ace57600080fd5b5035919050565b6001600160a01b0381168114610c0857600080fd5b60008060408385031215612afd57600080fd5b8235612b0881612ad5565b946020939093013593505050565b60008060408385031215612b2957600080fd5b823591506020830135612b3b81612ad5565b809150509250929050565b600060208284031215612b5857600080fd5b81356119d181612ad5565b8015158114610c0857600080fd5b600060208284031215612b8357600080fd5b81356119d181612b63565b600080600060608486031215612ba357600080fd5b8335612bae81612ad5565b92506020840135612bbe81612ad5565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b0381118282101715612c0857612c08612bcf565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612c3657612c36612bcf565b604052919050565b60006101208284031215612c5157600080fd5b612c59612be5565b823581526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201526101008084013581830152508091505092915050565b60008060408385031215612ccc57600080fd5b823591506020808401356001600160401b0380821115612ceb57600080fd5b818601915086601f830112612cff57600080fd5b813581811115612d1157612d11612bcf565b8060051b9150612d22848301612c0e565b8181529183018401918481019089841115612d3c57600080fd5b938501935b83851015612d5a57843582529385019390850190612d41565b8096505050505050509250929050565b60006001600160401b03831115612d8357612d83612bcf565b612d96601f8401601f1916602001612c0e565b9050828152838383011115612daa57600080fd5b828260208301376000602084830101529392505050565b600060208284031215612dd357600080fd5b81356001600160401b03811115612de957600080fd5b8201601f81018413612dfa57600080fd5b61254184823560208401612d6a565b60008060408385031215612e1c57600080fd5b8235612e2781612ad5565b91506020830135612b3b81612b63565b60008060008060808587031215612e4d57600080fd5b8435612e5881612ad5565b93506020850135612e6881612ad5565b92506040850135915060608501356001600160401b03811115612e8a57600080fd5b8501601f81018713612e9b57600080fd5b612eaa87823560208401612d6a565b91505092959194509250565b60008060408385031215612ec957600080fd5b8235612ed481612ad5565b91506020830135612b3b81612ad5565b600181811c90821680612ef857607f821691505b60208210811415612f1957634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252600790820152666e6f20626f747360c81b604082015260600190565b6020808252600b908201526a08af0c6cacac8e640dac2f60ab1b604082015260600190565b6001600160a01b038316815260406020808301829052835191830182905260009184820191906060850190845b8181101561300b57845183529383019391830191600101612fef565b5090979650505050505050565b60006020828403121561302a57600080fd5b81516119d181612b63565b634e487b7160e01b600052601160045260246000fd5b6000821982111561305e5761305e613035565b500190565b600081600019048311821515161561307d5761307d613035565b500290565b6020808252600d908201526c696e76616c696420707269636560981b604082015260600190565b6000845160206130bc8285838a01612a51565b8551918401916130cf8184848a01612a51565b8554920191600090600181811c90808316806130ec57607f831692505b85831081141561310a57634e487b7160e01b85526022600452602485fd5b80801561311e576001811461312f5761315c565b60ff1985168852838801955061315c565b60008b81526020902060005b858110156131545781548a82015290840190880161313b565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906131a090830184612a7d565b9695505050505050565b6000602082840312156131bc57600080fd5b81516119d181612a1e565b60006000198214156131db576131db613035565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082613207576132076131e2565b500490565b60008282101561321e5761321e613035565b500390565b600082613232576132326131e2565b500690565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561325f57600080fd5b81516119d181612ad556fea26469706673582212206b3256aaec7734db8f58b683da84eef232fcc1162cd4d29ee1fdac633dcf406164736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000006436f736d6f7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006434f534d4f530000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): Cosmos
Arg [1] : symbol (string): COSMOS

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [3] : 436f736d6f730000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 434f534d4f530000000000000000000000000000000000000000000000000000


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.