ETH Price: $3,391.05 (+6.25%)
Gas: 24 Gwei

Token

NANOCATS (NCAT)
 

Overview

Max Total Supply

0 NCAT

Holders

411

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x2cf0a035a3a626beedba2a137ba9a29bacface23
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:
NANOCATS

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 19 : CatbotNV.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/interfaces/IERC20.sol';
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import '@openzeppelin/contracts/utils/Strings.sol';

contract NANOCATS is ERC1155Supply, Ownable, ReentrancyGuard, IERC2981 {
    using Strings for uint256;

    uint8 public seasonNumber = 0;      // Seasons start at # 1
    uint8 private constant NV1_id = 1;  // first of two types
    uint8 private constant NV2_id = 2;  // second of two types
    uint8 private constant mintBatchLimit = 5;  // limit of how many NV2s can be minted in a single transaction
    uint16 public constant NV1_SALE_SUPPLY = 12095; // Max number of NV1s that can be minted
    uint16 public constant NV1_RESERVE = 405; // Reserved NV1s for the team
                                                // Total NV1 will be 12500
    bool private nv1ReserveMinted = false;
    bool private nv2ReserveMinted = false;

    uint16 public NV2_SEASON_SUPPLY; // Max number of NV2s that can be minted in a season
    uint16 public NV2_SEASON_RESERVE; // Max number of NV2s that can be minted in a season
    uint16 public NV2_SEASON_MINTED; // Total number of NV2s minted so far in the season

    uint16 internal royalty = 1250; // base 10000, 12.5%
    uint16 public constant SPLIT_BASE = 10000;
    uint16 public constant BASE = 10000;
    uint32 public redeemStart;              // May 20, 2022 9pm EST
    uint32 public redeemEnd;                // June 3, 2022 9pm EST
    string public symbol;                   // NCAT
    string public name;                     // NANOCATS
    string public uriPrefix;
    string public uriSuffix;
    string private contractMetadata = 'contract.json';

    struct SeasonDate {
        uint32 seasonPrivateSaleStart;
        uint32 seasonPrivateSaleEnd;
        uint32 seasonPublicSaleStart;
        uint32 seasonPublicSaleEnd;
    }

    SeasonDate public seasonDates;

    bool[12000] private mintedCBOT;  // To keep track of Catbots used to mint NV2
   
    uint256 public constant NV2_PUBLIC_PRICE = 80000000000000000;   // 0.08 ETH 
	uint256 public constant NV2_PRIVATE_PRICE = 60000000000000000;	// 0.06 ETH 

    address[] private recipients;
    uint16[] private splits;

    mapping(address => bool) public proxyRegistryAddress;

    mapping(address => bool) public approvedBurnAddress;

    IERC721 cbotContract;

    event NV1Redeem(address indexed owner, uint256[] ids);
    event NV2PrivateMint(address indexed owner, uint256[] ids);
    event NV2PublicMint(address indexed owner, uint256 amount);
    event ContractWithdraw(address indexed initiator, uint256 amount);
    event ContractWithdrawToken(address indexed initiator, address indexed token, uint256 amount);
    event WithdrawAddressChanged(address indexed previousAddress, address indexed newAddress);
    event SeasonDataUpdate(uint8 indexed season, uint32 seasonPrivateSaleStart, uint32 seasonPrivateSaleEnd, uint32 seasonPublicSaleStart, uint32 seasonPublicSaleEnd, uint16 nv2SeasonSupply, uint16 nv2SeasonReserve);

    constructor(
        string memory name_, 
        string memory symbol_, 
        string memory uriPrefix_, 
        string memory uriSuffix_, 
        address _cbotContract,
        address[] memory _recipients,
        uint16[] memory _splits,
        address _proxyAddress
    ) ERC1155(uriPrefix_) {
        name = name_;
        symbol = symbol_;
        uriPrefix = uriPrefix_;
        uriSuffix = uriSuffix_;
        cbotContract = IERC721(_cbotContract);
        recipients = _recipients;
        splits = _splits;
        proxyRegistryAddress[_proxyAddress] = true;
    }

    function setRedeemDates(uint32 _redeemStart, uint32 _redeemEnd) public onlyOwner {
        require(_redeemEnd > _redeemStart && uint256(_redeemStart) > block.timestamp ,'Invalid dates');
        redeemStart = _redeemStart;
        redeemEnd = _redeemEnd;
    }

    /// @dev start a new season and set the season supply
    /// @param _supply the season NV2 supply
    /// @param _seasonPrivateSaleStart season start date
    /// @param _seasonPrivateSaleEnd season end date
    /// @param _seasonPublicSaleStart season start date
    /// @param _seasonPublicSaleEnd season end date
    function newSeason(uint16 _supply, uint16 _reserve, uint32 _seasonPrivateSaleStart, uint32 _seasonPrivateSaleEnd, uint32 _seasonPublicSaleStart, uint32 _seasonPublicSaleEnd) public onlyOwner {
        require(uint256(_seasonPublicSaleStart) > block.timestamp && block.timestamp > uint256(seasonDates.seasonPublicSaleEnd),'Season ongoing');
        seasonDates.seasonPrivateSaleStart = _seasonPrivateSaleStart;
        seasonDates.seasonPrivateSaleEnd = _seasonPrivateSaleEnd;
        seasonDates.seasonPublicSaleStart = _seasonPublicSaleStart;
        seasonDates.seasonPublicSaleEnd = _seasonPublicSaleEnd;
        seasonNumber++;
        delete mintedCBOT;
        nv2ReserveMinted = false;
        NV2_SEASON_SUPPLY = _supply;
        NV2_SEASON_RESERVE = _reserve;
        NV2_SEASON_MINTED = 0;
        emit SeasonDataUpdate(seasonNumber, _seasonPrivateSaleStart, _seasonPrivateSaleEnd, _seasonPublicSaleStart, _seasonPublicSaleEnd, NV2_SEASON_SUPPLY, NV2_SEASON_RESERVE);
    }
   
    function sendRedeem(address _account, uint256[] memory _ids) external onlyOwner {
        // require(_ids.length > 0,"Invalid amount");
        require(totalSupply(NV1_id) + _ids.length <= uint256(NV1_SALE_SUPPLY),'No more tokens');
        uint256 time = (block.timestamp);
        require(time > uint256(redeemStart) && time < uint256(redeemEnd), 'redeem not started');
        emit NV1Redeem(_account, _ids);
        for (uint16 i = 0; i < _ids.length; i++) {
            require(cbotContract.ownerOf(_ids[i]) == _account,'unauthorized');
            _mint(_account,NV1_id,1,"");
        }
    }

    function mintNV1Reserve(address _account) external onlyOwner {
        require(!nv1ReserveMinted, 'already minted');
        uint256 time = (block.timestamp);
        require(time > uint256(redeemStart), 'Sale not live');
        nv1ReserveMinted = true;
        _mint(_account,NV1_id,uint256(NV1_RESERVE),"0x000");
    }

    function mintNV2Reserve(address _account) external onlyOwner {
        require(!nv2ReserveMinted, 'already minted');
        uint256 time = (block.timestamp);
        require(time > uint256(seasonDates.seasonPrivateSaleStart) && time < uint256(seasonDates.seasonPublicSaleStart), 'Sale not live');
        nv2ReserveMinted = true;
        NV2_SEASON_MINTED = NV2_SEASON_MINTED + NV2_SEASON_RESERVE;
        emit NV2PublicMint(_account, uint256(NV2_SEASON_RESERVE));
        _mint(_account,NV2_id,uint256(NV2_SEASON_RESERVE),"0x000");
    }

    function mintPrivateSale(uint256[] memory _ids) external payable {
        require(NV2_SEASON_MINTED + _ids.length <= uint256(NV2_SEASON_SUPPLY - NV2_SEASON_RESERVE),'No more tokens');
        require(msg.value >= NV2_PRIVATE_PRICE * _ids.length, 'Insufficient ETH');
        uint256 time = (block.timestamp);
        require(time > uint256(seasonDates.seasonPrivateSaleStart) && time < uint256(seasonDates.seasonPrivateSaleEnd), 'Sale not live');
        emit NV2PrivateMint(msg.sender, _ids);
        for (uint8 i = 0; i < _ids.length; i++) {
            require(cbotContract.ownerOf(_ids[i]) == msg.sender,'unauthorized');
            require(!mintedCBOT[_ids[i] - 1],'token already used');
            mintedCBOT[_ids[i] - 1] = true;
            NV2_SEASON_MINTED++;
            _mint(msg.sender,NV2_id,1,"0x000");
        }
    }

    function mintPublicSale(uint256 _amount) external payable {
        require(_amount > 0 && _amount <= uint256(mintBatchLimit), 'Batch limit is 5');
        require(NV2_SEASON_MINTED + _amount <= uint256(NV2_SEASON_SUPPLY),'No more tokens');
        require(msg.value >= NV2_PUBLIC_PRICE * _amount, 'Insufficient ETH');
        uint256 time = (block.timestamp);
        require(time > uint256(seasonDates.seasonPublicSaleStart) && time < uint256(seasonDates.seasonPublicSaleEnd), 'Sale not live');
        NV2_SEASON_MINTED = NV2_SEASON_MINTED + uint16(_amount);
        emit NV2PublicMint(msg.sender, _amount);
        _mint(msg.sender,NV2_id,_amount,"0x000");
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     */
    function uri(uint256 tokenId) public view override returns (string memory) {
        require(exists(tokenId),'ERC1155Metadata: URI query for nonexistent token');
        return
            bytes(uriPrefix).length > 0
                ? string(abi.encodePacked(uriPrefix, tokenId.toString(), uriSuffix))
                : '';
    }
   
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked(uriPrefix, contractMetadata));
    }

    function isMintedCBOT(uint256 _id) public view returns (bool) {
        return mintedCBOT[_id - 1];
    }

    function setBaseURI(string memory baseContractURI) external onlyOwner {
        uriPrefix = baseContractURI;
    }

    /**
    * @dev withdraws the contract balance and send it to the withdraw Addresses based on split ratio.
    *
    * Emits a {ContractWithdraw} event.
    */
    function withdraw() external nonReentrant onlyOwner {
        uint256 balance = address(this).balance;
        for (uint256 i = 0; i < recipients.length; i++) {
        (bool sent, ) = payable(recipients[i]).call{value: (balance * splits[i]) / SPLIT_BASE}('');
        require(sent, 'Withdraw Failed.');
        }
        emit ContractWithdraw(msg.sender, balance);
    }

    /// @dev withdraw ERC20 tokens divided by splits
    function withdrawTokens(address _tokenContract) external nonReentrant onlyOwner {
        IERC20 tokenContract = IERC20(_tokenContract);
        // transfer the token from address of Catbotica address
        uint256 balance = tokenContract.balanceOf(address(this));
        for (uint256 i = 0; i < recipients.length; i++) {
        tokenContract.transfer(recipients[i], (balance * splits[i]) / SPLIT_BASE);
        }
        emit ContractWithdrawToken(msg.sender, _tokenContract, balance);
    }

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

    function changeWithdrawAddress(address _recipient) external {
        require(_recipient != address(0), 'Cannot use zero address.');
        require(_recipient != address(this), 'Cannot use this contract address');
        require(!Address.isContract(_recipient), 'Cannot set recipient to a contract address');

        // loop over all the recipients and update the address
        bool _found = false;
        for (uint256 i = 0; i < recipients.length; i++) {
        // if the sender matches one of the recipients, update the address
        if (recipients[i] == msg.sender) {
            recipients[i] = _recipient;
            _found = true;
            break;
        }
        }
        require(_found, 'The sender is not a recipient.');
        emit WithdrawAddressChanged(msg.sender, _recipient);
    } 
   
    /// @notice Calculate the royalty payment
    /// @param _salePrice the sale price of the token
    function royaltyInfo(uint256, uint256 _salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (address(this), (_salePrice * royalty) / BASE);
    }

    /// @dev set the royalty
    /// @param _royalty the royalty in base 10000, 500 = 5%
    function setRoyalty(uint16 _royalty) external virtual onlyOwner {
        require(_royalty >= 0 && _royalty <= 1000, 'Royalty must be between 0% and 10%.');

        royalty = _royalty;
    }
 
    /**
     * Function to allow receiving ETH sent to contract
     *
     */
    receive() external payable {}

    /**
     * Override isApprovedForAll to whitelisted marketplaces to enable gas-free listings.
     *
     */
    function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) {
        // check if this is an approved marketplace
        if (proxyRegistryAddress[_operator]) {
            return true;
        }
        // otherwise, use the default ERC721 isApprovedForAll()
        return super.isApprovedForAll(_owner, _operator);
    }

    /**
     * Function to set status of proxy contracts addresses
     *
     */
    function setProxy(address _proxyAddress, bool _value) external onlyOwner {
        proxyRegistryAddress[_proxyAddress] = _value;
    }

    function setApprovedBurningAddress(address _address, bool _status) external onlyOwner {
        approvedBurnAddress[_address] = _status;
    }

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) external {
        require(
            account == _msgSender() || approvedBurnAddress[_msgSender()] || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) external {
        require(
            account == _msgSender() || approvedBurnAddress[_msgSender()] || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

File 2 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

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

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 accountBalance = _balances[id][account];
        require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][account] = accountBalance - amount;
        }

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 accountBalance = _balances[id][account];
            require(accountBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][account] = accountBalance - amount;
            }
        }

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 3 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates weither any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_mint}.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        super._mint(account, id, amount, data);
        _totalSupply[id] += amount;
    }

    /**
     * @dev See {ERC1155-_mintBatch}.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._mintBatch(to, ids, amounts, data);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] += amounts[i];
        }
    }

    /**
     * @dev See {ERC1155-_burn}.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual override {
        super._burn(account, id, amount);
        _totalSupply[id] -= amount;
    }

    /**
     * @dev See {ERC1155-_burnBatch}.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual override {
        super._burnBatch(account, ids, amounts);
        for (uint256 i = 0; i < ids.length; ++i) {
            _totalSupply[ids[i]] -= amounts[i];
        }
    }
}

File 4 of 19 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

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

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

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

File 5 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 6 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 7 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 8 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 9 of 19 : Strings.sol
// SPDX-License-Identifier: MIT

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 10 of 19 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 11 of 19 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 19 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 13 of 19 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 19 : Context.sol
// SPDX-License-Identifier: MIT

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 15 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT

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 16 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT

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 19 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 19 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"uriPrefix_","type":"string"},{"internalType":"string","name":"uriSuffix_","type":"string"},{"internalType":"address","name":"_cbotContract","type":"address"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint16[]","name":"_splits","type":"uint16[]"},{"internalType":"address","name":"_proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"initiator","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ContractWithdrawToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"NV1Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"NV2PrivateMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"NV2PublicMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"season","type":"uint8"},{"indexed":false,"internalType":"uint32","name":"seasonPrivateSaleStart","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPrivateSaleEnd","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPublicSaleStart","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"seasonPublicSaleEnd","type":"uint32"},{"indexed":false,"internalType":"uint16","name":"nv2SeasonSupply","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"nv2SeasonReserve","type":"uint16"}],"name":"SeasonDataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"WithdrawAddressChanged","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV1_RESERVE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV1_SALE_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_PRIVATE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_PUBLIC_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_MINTED","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_RESERVE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NV2_SEASON_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPLIT_BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedBurnAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"changeWithdrawAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isMintedCBOT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"mintNV1Reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"mintNV2Reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"mintPrivateSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_supply","type":"uint16"},{"internalType":"uint16","name":"_reserve","type":"uint16"},{"internalType":"uint32","name":"_seasonPrivateSaleStart","type":"uint32"},{"internalType":"uint32","name":"_seasonPrivateSaleEnd","type":"uint32"},{"internalType":"uint32","name":"_seasonPublicSaleStart","type":"uint32"},{"internalType":"uint32","name":"_seasonPublicSaleEnd","type":"uint32"}],"name":"newSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyRegistryAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemEnd","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeemStart","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seasonDates","outputs":[{"internalType":"uint32","name":"seasonPrivateSaleStart","type":"uint32"},{"internalType":"uint32","name":"seasonPrivateSaleEnd","type":"uint32"},{"internalType":"uint32","name":"seasonPublicSaleStart","type":"uint32"},{"internalType":"uint32","name":"seasonPublicSaleEnd","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seasonNumber","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"sendRedeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setApprovedBurningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyAddress","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_redeemStart","type":"uint32"},{"internalType":"uint32","name":"_redeemEnd","type":"uint32"}],"name":"setRedeemDates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royalty","type":"uint16"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6006805462ffffff61ffff60481b0119166a04e200000000000000000017905560c0604052600d60808190526c31b7b73a3930b1ba173539b7b760991b60a09081526200005091600b9190620001dc565b503480156200005e57600080fd5b5060405162004ede38038062004ede833981016040819052620000819162000591565b856200008d8162000171565b5062000099336200018a565b60016005558751620000b39060089060208b0190620001dc565b508651620000c99060079060208a0190620001dc565b508551620000df906009906020890190620001dc565b508451620000f590600a906020880190620001dc565b5061018880546001600160a01b0319166001600160a01b038616179055825162000128906101849060208601906200026b565b5081516200013f90610185906020850190620002c3565b506001600160a01b0316600090815261018660205260409020805460ff1916600117905550620006fc95505050505050565b805162000186906002906020840190620001dc565b5050565b600480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001ea90620006bf565b90600052602060002090601f0160209004810192826200020e576000855562000259565b82601f106200022957805160ff191683800117855562000259565b8280016001018555821562000259579182015b82811115620002595782518255916020019190600101906200023c565b506200026792915062000369565b5090565b82805482825590600052602060002090810192821562000259579160200282015b828111156200025957825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200028c565b82805482825590600052602060002090600f01601090048101928215620002595791602002820160005b838211156200032f57835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302620002ed565b80156200035f5782816101000a81549061ffff02191690556002016020816001010492830192600103026200032f565b5050620002679291505b5b808211156200026757600081556001016200036a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620003c157620003c162000380565b604052919050565b600082601f830112620003db57600080fd5b81516001600160401b03811115620003f757620003f762000380565b60206200040d601f8301601f1916820162000396565b82815285828487010111156200042257600080fd5b60005b838110156200044257858101830151828201840152820162000425565b83811115620004545760008385840101525b5095945050505050565b80516001600160a01b03811681146200047657600080fd5b919050565b60006001600160401b0382111562000497576200049762000380565b5060051b60200190565b600082601f830112620004b357600080fd5b81516020620004cc620004c6836200047b565b62000396565b82815260059290921b84018101918181019086841115620004ec57600080fd5b8286015b84811015620005125762000504816200045e565b8352918301918301620004f0565b509695505050505050565b600082601f8301126200052f57600080fd5b8151602062000542620004c6836200047b565b82815260059290921b840181019181810190868411156200056257600080fd5b8286015b848110156200051257805161ffff81168114620005835760008081fd5b835291830191830162000566565b600080600080600080600080610100898b031215620005af57600080fd5b88516001600160401b0380821115620005c757600080fd5b620005d58c838d01620003c9565b995060208b0151915080821115620005ec57600080fd5b620005fa8c838d01620003c9565b985060408b01519150808211156200061157600080fd5b6200061f8c838d01620003c9565b975060608b01519150808211156200063657600080fd5b620006448c838d01620003c9565b96506200065460808c016200045e565b955060a08b01519150808211156200066b57600080fd5b620006798c838d01620004a1565b945060c08b01519150808211156200069057600080fd5b506200069f8b828c016200051d565b925050620006b060e08a016200045e565b90509295985092959890939650565b600181811c90821680620006d457607f821691505b60208210811415620006f657634e487b7160e01b600052602260045260246000fd5b50919050565b6147d2806200070c6000396000f3fe6080604052600436106103375760003560e01c806362b99ad4116101b0578063a22cb465116100ec578063e8a3d48511610095578063f242432a1161006f578063f242432a146109ad578063f2fde38b146109cd578063f5298aca146109ed578063fe7c345114610a0d57600080fd5b8063e8a3d48514610978578063e985e9c51461098d578063ec342ad01461093e57600080fd5b8063bd85b039116100c6578063bd85b03914610911578063c197b0f71461093e578063d1994d711461095457600080fd5b8063a22cb465146108be578063aa5dcab9146108de578063ab1184b3146108fe57600080fd5b806387761df9116101595780638da5cb5b116101335780638da5cb5b1461082457806392f99e611461084c57806395d89b411461087d57806397cbf9cf1461089257600080fd5b806387761df9146107d65780638b6c4674146107f85780638c4bc1431461080e57600080fd5b8063715018a61161018a578063715018a61461072f57806378acb03514610744578063828b57c9146107b657600080fd5b806362b99ad4146106c35780636629b508146106d85780636b20c4541461070f57600080fd5b80633ccfd60b1161027f57806351a39a58116102285780635a5e5d58116102025780635a5e5d58146106375780635abb31271461064a578063606647c81461066a57806361d6fa2b146106a357600080fd5b806351a39a58146105e25780635503a0e81461060257806355f804b31461061757600080fd5b806349df728c1161025957806349df728c146105665780634e1273f4146105865780634f558e79146105b357600080fd5b80633ccfd60b146105165780633fb226221461052b57806346b777481461054657600080fd5b8063147589a7116102e15780632eb2c2d6116102bb5780632eb2c2d6146104ba57806335ab565a146104da57806336e79a5a146104f657600080fd5b8063147589a71461042a5780631f3e1be91461044a5780632a55205a1461047b57600080fd5b806307a038c61161031257806307a038c6146103c85780630e89341c146103e85780631453671d1461040857600080fd5b8062fdd58e1461034357806301ffc9a71461037657806306fdde03146103a657600080fd5b3661033e57005b600080fd5b34801561034f57600080fd5b5061036361035e366004613bac565b610a2f565b6040519081526020015b60405180910390f35b34801561038257600080fd5b50610396610391366004613bee565b610adb565b604051901515815260200161036d565b3480156103b257600080fd5b506103bb610b19565b60405161036d9190613c63565b3480156103d457600080fd5b506103966103e3366004613c76565b610ba7565b3480156103f457600080fd5b506103bb610403366004613c76565b610be3565b34801561041457600080fd5b50610428610423366004613c8f565b610cc6565b005b34801561043657600080fd5b50610428610445366004613d84565b610f18565b34801561045657600080fd5b50610396610465366004613c8f565b6101866020526000908152604090205460ff1681565b34801561048757600080fd5b5061049b610496366004613dd4565b6111c8565b604080516001600160a01b03909316835260208301919091520161036d565b3480156104c657600080fd5b506104286104d5366004613e74565b611206565b3480156104e657600080fd5b5061036367011c37937e08000081565b34801561050257600080fd5b50610428610511366004613f39565b6112a8565b34801561052257600080fd5b5061042861139a565b34801561053757600080fd5b5061036366d529ae9e86000081565b34801561055257600080fd5b50610428610561366004613f62565b6115a8565b34801561057257600080fd5b50610428610581366004613c8f565b61161c565b34801561059257600080fd5b506105a66105a1366004613f9b565b6118c6565b60405161036d9190614099565b3480156105bf57600080fd5b506103966105ce366004613c76565b600090815260036020526040902054151590565b3480156105ee57600080fd5b506104286105fd366004613f62565b611a04565b34801561060e57600080fd5b506103bb611a78565b34801561062357600080fd5b506104286106323660046140ac565b611a85565b610428610645366004613c76565b611ae4565b34801561065657600080fd5b50610428610665366004613c8f565b611d13565b34801561067657600080fd5b5060065461068e90600160781b900463ffffffff1681565b60405163ffffffff909116815260200161036d565b3480156106af57600080fd5b506104286106be366004614109565b611e40565b3480156106cf57600080fd5b506103bb61207a565b3480156106e457600080fd5b506006546106fc9065010000000000900461ffff1681565b60405161ffff909116815260200161036d565b34801561071b57600080fd5b5061042861072a36600461417d565b612087565b34801561073b57600080fd5b5061042861212c565b34801561075057600080fd5b50600c546107869063ffffffff808216916401000000008104821691680100000000000000008204811691600160601b90041684565b6040805163ffffffff9586168152938516602085015291841691830191909152909116606082015260800161036d565b3480156107c257600080fd5b506104286107d1366004613c8f565b612180565b3480156107e257600080fd5b506006546106fc906301000000900461ffff1681565b34801561080457600080fd5b506106fc61019581565b34801561081a57600080fd5b506106fc612f3f81565b34801561083057600080fd5b506004546040516001600160a01b03909116815260200161036d565b34801561085857600080fd5b50610396610867366004613c8f565b6101876020526000908152604090205460ff1681565b34801561088957600080fd5b506103bb612362565b34801561089e57600080fd5b506006546108ac9060ff1681565b60405160ff909116815260200161036d565b3480156108ca57600080fd5b506104286108d9366004613f62565b61236f565b3480156108ea57600080fd5b506104286108f93660046141f3565b61245a565b61042861090c366004614226565b61257a565b34801561091d57600080fd5b5061036361092c366004613c76565b60009081526003602052604090205490565b34801561094a57600080fd5b506106fc61271081565b34801561096057600080fd5b5060065461068e90600160581b900463ffffffff1681565b34801561098457600080fd5b506103bb612970565b34801561099957600080fd5b506103966109a836600461425b565b61299b565b3480156109b957600080fd5b506104286109c8366004614289565b6129f6565b3480156109d957600080fd5b506104286109e8366004613c8f565b612a7d565b3480156109f957600080fd5b50610428610a083660046142f2565b612b4d565b348015610a1957600080fd5b506006546106fc90600160381b900461ffff1681565b60006001600160a01b038316610ab25760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610ad55750610ad582612bed565b60088054610b2690614327565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5290614327565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b505050505081565b6000600d610bb6600184614378565b612ee08110610bc757610bc761438f565b602081049091015460ff601f9092166101000a90041692915050565b600081815260036020526040902054606090610c675760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610aa9565b600060098054610c7690614327565b905011610c925760405180602001604052806000815250610ad5565b6009610c9d83612c88565b600a604051602001610cb19392919061443f565b60405160208183030381529060405292915050565b6001600160a01b038116610d1c5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420757365207a65726f20616464726573732e00000000000000006044820152606401610aa9565b6001600160a01b038116301415610d755760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e747261637420616464726573736044820152606401610aa9565b803b15610dea5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742073657420726563697069656e7420746f206120636f6e74726160448201527f63742061646472657373000000000000000000000000000000000000000000006064820152608401610aa9565b6000805b61018454811015610e9057336001600160a01b03166101848281548110610e1757610e1761438f565b6000918252602090912001546001600160a01b03161415610e7e57826101848281548110610e4757610e4761438f565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610e90565b80610e8881614472565b915050610dee565b5080610ede5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e00006044820152606401610aa9565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b6004546001600160a01b03163314610f605760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8051600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612f3f91610f9b9161448d565b1115610fda5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b6006544290600160581b900463ffffffff16811180156110085750600654600160781b900463ffffffff1681105b6110545760405162461bcd60e51b815260206004820152601260248201527f72656465656d206e6f74207374617274656400000000000000000000000000006044820152606401610aa9565b826001600160a01b03167f97cc16e6c137f44d6456df14a2df4aaf9c87b168053c85e6dd253d88e10e73968360405161108d9190614099565b60405180910390a260005b82518161ffff1610156111c2576101885483516001600160a01b03808716921690636352211e90869061ffff86169081106110d5576110d561438f565b60200260200101516040518263ffffffff1660e01b81526004016110fb91815260200190565b60206040518083038186803b15801561111357600080fd5b505afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906144a5565b6001600160a01b0316146111905760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610aa9565b6111b084600160ff16600160405180602001604052806000815250612dc2565b806111ba816144c2565b915050611098565b50505050565b60065460009081903090612710906111f1906901000000000000000000900461ffff16866144e4565b6111fb9190614519565b915091509250929050565b6001600160a01b0385163314806112225750611222853361299b565b6112945760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610aa9565b6112a18585858585612df7565b5050505050565b6004546001600160a01b031633146112f05760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6103e88161ffff16111561136c5760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e00000000000000000000000000000000000000000000000000000000006064820152608401610aa9565b6006805461ffff9092166901000000000000000000026affff00000000000000000019909216919091179055565b600260055414156113ed5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aa9565b60026005556004546001600160a01b0316331461143a5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b4760005b6101845481101561156a576000610184828154811061145f5761145f61438f565b60009182526020909120015461018580546001600160a01b03909216916127109190859081106114915761149161438f565b600091825260209091206010820401546114bb91600f166002026101000a900461ffff16866144e4565b6114c59190614519565b604051600081818185875af1925050503d8060008114611501576040519150601f19603f3d011682016040523d82523d6000602084013e611506565b606091505b50509050806115575760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e000000000000000000000000000000006044820152606401610aa9565b508061156281614472565b91505061143e565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600555565b6004546001600160a01b031633146115f05760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b0391909116600090815261018760205260409020805460ff1916911515919091179055565b6002600554141561166f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aa9565b60026005556004546001600160a01b031633146116bc5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561171957600080fd5b505afa15801561172d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611751919061452d565b905060005b6101845481101561187b57826001600160a01b031663a9059cbb61018483815481106117845761178461438f565b60009182526020909120015461018580546001600160a01b03909216916127109190869081106117b6576117b661438f565b600091825260209091206010820401546117e091600f166002026101000a900461ffff16876144e4565b6117ea9190614519565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561183057600080fd5b505af1158015611844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118689190614546565b508061187381614472565b915050611756565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a35050600160055550565b6060815183511461193f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610aa9565b6000835167ffffffffffffffff81111561195b5761195b613cac565b604051908082528060200260200182016040528015611984578160200160208202803683370190505b50905060005b84518110156119fc576119cf8582815181106119a8576119a861438f565b60200260200101518583815181106119c2576119c261438f565b6020026020010151610a2f565b8282815181106119e1576119e161438f565b60209081029190910101526119f581614472565b905061198a565b509392505050565b6004546001600160a01b03163314611a4c5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b0391909116600090815261018660205260409020805460ff1916911515919091179055565b600a8054610b2690614327565b6004546001600160a01b03163314611acd5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8051611ae0906009906020840190613af2565b5050565b600081118015611af5575060058111155b611b415760405162461bcd60e51b815260206004820152601060248201527f4261746368206c696d69742069732035000000000000000000000000000000006044820152606401610aa9565b60065461ffff63010000008204811691611b64918491600160381b90041661448d565b1115611ba35760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b611bb58167011c37937e0800006144e4565b341015611c045760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610aa9565b600c54429068010000000000000000900463ffffffff1681118015611c375750600c54600160601b900463ffffffff1681105b611c735760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b600654611c8c908390600160381b900461ffff16614563565b6006805461ffff92909216600160381b0268ffff000000000000001990921691909117905560405182815233907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a2611ae033600260ff168460405180604001604052806005815260200164030783030360dc1b815250612dc2565b6004546001600160a01b03163314611d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b600654610100900460ff1615611db35760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610aa9565b6006544290600160581b900463ffffffff168111611e035760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b6006805461ff001916610100179055604080518082019091526005815264030783030360dc1b6020820152611ae090839060019061019590612dc2565b6004546001600160a01b03163314611e885760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b428263ffffffff16118015611eab5750600c54600160601b900463ffffffff1642115b611ef75760405162461bcd60e51b815260206004820152600e60248201527f536561736f6e206f6e676f696e670000000000000000000000000000000000006044820152606401610aa9565b600c805463ffffffff86811667ffffffffffffffff199092169190911764010000000086831602177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000858316027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1617600160601b918416919091021790556006805460ff16906000611f9483614589565b91906101000a81548160ff021916908360ff16021790555050600d6000611fbb9190613b76565b6006805468ffff000000000000001961ffff8881166501000000000090810266ffff0000000000198c841663010000009081029190911666ffffffffff0000199096169590951717928316948590556040805163ffffffff8b811682528a8116602083015289811682840152881660608201529486048316608086015294041660a0830152915160ff909216917f8b57e925cbbf6dec3f6c68a501423af24334900f8f5214b670402eea7d2928969181900360c00190a2505050505050565b60098054610b2690614327565b6001600160a01b0383163314806120ae5750336000908152610187602052604090205460ff165b806120be57506120be833361299b565b61211c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b612127838383613055565b505050565b6004546001600160a01b031633146121745760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b61217e60006130d7565b565b6004546001600160a01b031633146121c85760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b60065462010000900460ff16156122215760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610aa9565b600c54429063ffffffff168111801561224d5750600c5468010000000000000000900463ffffffff1681105b6122895760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b6006805462ff000019166201000017908190556122bc9061ffff650100000000008204811691600160381b900416614563565b6006805468ffff000000000000001916600160381b61ffff9384160217908190556040516501000000000090910490911681526001600160a01b038316907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a2600654604080518082019091526005815264030783030360dc1b6020820152611ae091849160029165010000000000900461ffff1690612dc2565b60078054610b2690614327565b336001600160a01b03831614156123ee5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610aa9565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146124a25760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8163ffffffff168163ffffffff161180156124c25750428263ffffffff16115b61250e5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206461746573000000000000000000000000000000000000006044820152606401610aa9565b600680547fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffffff16600160581b63ffffffff948516027fffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffff1617600160781b9290931691909102919091179055565b60065461259d9061ffff65010000000000820481169163010000009004166145a9565b815160065461ffff928316926125bb9291600160381b90041661448d565b11156125fa5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b805161260d9066d529ae9e8600006144e4565b34101561265c5760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610aa9565b600c54429063ffffffff16811180156126845750600c54640100000000900463ffffffff1681105b6126c05760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b336001600160a01b03167fe3a5f55aca44c01d3b0217df332b3a5629a86f76408d0e4c4ff5abfc37ad4261836040516126f99190614099565b60405180910390a260005b82518160ff1610156121275761018854835133916001600160a01b031690636352211e90869060ff861690811061273d5761273d61438f565b60200260200101516040518263ffffffff1660e01b815260040161276391815260200190565b60206040518083038186803b15801561277b57600080fd5b505afa15801561278f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b391906144a5565b6001600160a01b0316146127f85760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610aa9565b600d6001848360ff16815181106128115761281161438f565b60200260200101516128239190614378565b612ee081106128345761283461438f565b602081049091015460ff601f9092166101000a900416156128975760405162461bcd60e51b815260206004820152601260248201527f746f6b656e20616c7265616479207573656400000000000000000000000000006044820152606401610aa9565b6001600d6001858460ff16815181106128b2576128b261438f565b60200260200101516128c49190614378565b612ee081106128d5576128d561438f565b602081049091018054921515601f9092166101000a91820260ff909202199092161790556006805461ffff600160381b90910416906007612915836144c2565b91906101000a81548161ffff021916908361ffff1602179055505061295e33600260ff16600160405180604001604052806005815260200164030783030360dc1b815250612dc2565b8061296881614589565b915050612704565b60606009600b6040516020016129879291906145cc565b604051602081830303815290604052905090565b6001600160a01b0381166000908152610186602052604081205460ff16156129c557506001610ad5565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b038516331480612a125750612a12853361299b565b612a705760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b6112a18585858585613141565b6004546001600160a01b03163314612ac55760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b038116612b415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aa9565b612b4a816130d7565b50565b6001600160a01b038316331480612b745750336000908152610187602052604090205460ff165b80612b845750612b84833361299b565b612be25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b6121278383836132e8565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480612c5057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610ad557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610ad5565b606081612cc857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612cf25780612cdc81614472565b9150612ceb9050600a83614519565b9150612ccc565b60008167ffffffffffffffff811115612d0d57612d0d613cac565b6040519080825280601f01601f191660200182016040528015612d37576020820181803683370190505b5090505b8415612dba57612d4c600183614378565b9150612d59600a866145e1565b612d6490603061448d565b60f81b818381518110612d7957612d7961438f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612db3600a86614519565b9450612d3b565b949350505050565b612dce8484848461331b565b60008381526003602052604081208054849290612dec90849061448d565b909155505050505050565b8151835114612e595760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610aa9565b6001600160a01b038416612ebd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa9565b3360005b8451811015612fe7576000858281518110612ede57612ede61438f565b602002602001015190506000858381518110612efc57612efc61438f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612f8f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610aa9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612fcc90849061448d565b9250508190555050505080612fe090614472565b9050612ec1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130379291906145f5565b60405180910390a461304d818787878787613438565b505050505050565b6130608383836135ed565b60005b82518110156111c25781818151811061307e5761307e61438f565b60200260200101516003600085848151811061309c5761309c61438f565b6020026020010151815260200190815260200160002060008282546130c19190614378565b909155506130d0905081614472565b9050613063565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166131a55760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa9565b336131be8187876131b588613822565b6112a188613822565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156132425760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610aa9565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061327f90849061448d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132df82888888888861386d565b50505050505050565b6132f3838383613978565b60008281526003602052604081208054839290613311908490614378565b9091555050505050565b6001600160a01b0384166133975760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610aa9565b336133a8816000876131b588613822565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906133d890849061448d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112a18160008787878761386d565b6001600160a01b0384163b1561304d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061347c9089908990889088908890600401614623565b602060405180830381600087803b15801561349657600080fd5b505af19250505080156134c6575060408051601f3d908101601f191682019092526134c391810190614681565b60015b61357c576134d261469e565b806308c379a0141561350c57506134e76146ba565b806134f2575061350e565b8060405162461bcd60e51b8152600401610aa99190613c63565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610aa9565b6001600160e01b0319811663bc197c8160e01b146132df5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610aa9565b6001600160a01b03831661364f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa9565b80518251146136b15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610aa9565b604080516020810190915260009081905233905b83518110156137c35760008482815181106136e2576136e261438f565b6020026020010151905060008483815181106137005761370061438f565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561378c5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610aa9565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806137bb81614472565b9150506136c5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516138149291906145f5565b60405180910390a450505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061385c5761385c61438f565b602090810291909101015292915050565b6001600160a01b0384163b1561304d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906138b19089908990889088908890600401614744565b602060405180830381600087803b1580156138cb57600080fd5b505af19250505080156138fb575060408051601f3d908101601f191682019092526138f891810190614681565b60015b613907576134d261469e565b6001600160e01b0319811663f23a6e6160e01b146132df5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610aa9565b6001600160a01b0383166139da5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa9565b33613a0a818560006139eb87613822565b6139f487613822565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613a875760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610aa9565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054613afe90614327565b90600052602060002090601f016020900481019282613b205760008555613b66565b82601f10613b3957805160ff1916838001178555613b66565b82800160010185558215613b66579182015b82811115613b66578251825591602001919060010190613b4b565b50613b72929150613b82565b5090565b50612b4a906101778101905b5b80821115613b725760008155600101613b83565b6001600160a01b0381168114612b4a57600080fd5b60008060408385031215613bbf57600080fd5b8235613bca81613b97565b946020939093013593505050565b6001600160e01b031981168114612b4a57600080fd5b600060208284031215613c0057600080fd5b81356129ef81613bd8565b60005b83811015613c26578181015183820152602001613c0e565b838111156111c25750506000910152565b60008151808452613c4f816020860160208601613c0b565b601f01601f19169290920160200192915050565b6020815260006129ef6020830184613c37565b600060208284031215613c8857600080fd5b5035919050565b600060208284031215613ca157600080fd5b81356129ef81613b97565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715613ce857613ce8613cac565b6040525050565b600067ffffffffffffffff821115613d0957613d09613cac565b5060051b60200190565b600082601f830112613d2457600080fd5b81356020613d3182613cef565b604051613d3e8282613cc2565b83815260059390931b8501820192828101915086841115613d5e57600080fd5b8286015b84811015613d795780358352918301918301613d62565b509695505050505050565b60008060408385031215613d9757600080fd5b8235613da281613b97565b9150602083013567ffffffffffffffff811115613dbe57600080fd5b613dca85828601613d13565b9150509250929050565b60008060408385031215613de757600080fd5b50508035926020909101359150565b600067ffffffffffffffff831115613e1057613e10613cac565b604051613e27601f8501601f191660200182613cc2565b809150838152848484011115613e3c57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613e6557600080fd5b6129ef83833560208501613df6565b600080600080600060a08688031215613e8c57600080fd5b8535613e9781613b97565b94506020860135613ea781613b97565b9350604086013567ffffffffffffffff80821115613ec457600080fd5b613ed089838a01613d13565b94506060880135915080821115613ee657600080fd5b613ef289838a01613d13565b93506080880135915080821115613f0857600080fd5b50613f1588828901613e54565b9150509295509295909350565b803561ffff81168114613f3457600080fd5b919050565b600060208284031215613f4b57600080fd5b6129ef82613f22565b8015158114612b4a57600080fd5b60008060408385031215613f7557600080fd5b8235613f8081613b97565b91506020830135613f9081613f54565b809150509250929050565b60008060408385031215613fae57600080fd5b823567ffffffffffffffff80821115613fc657600080fd5b818501915085601f830112613fda57600080fd5b81356020613fe782613cef565b604051613ff48282613cc2565b83815260059390931b850182019282810191508984111561401457600080fd5b948201945b8386101561403b57853561402c81613b97565b82529482019490820190614019565b9650508601359250508082111561405157600080fd5b50613dca85828601613d13565b600081518084526020808501945080840160005b8381101561408e57815187529582019590820190600101614072565b509495945050505050565b6020815260006129ef602083018461405e565b6000602082840312156140be57600080fd5b813567ffffffffffffffff8111156140d557600080fd5b8201601f810184136140e657600080fd5b612dba84823560208401613df6565b803563ffffffff81168114613f3457600080fd5b60008060008060008060c0878903121561412257600080fd5b61412b87613f22565b955061413960208801613f22565b9450614147604088016140f5565b9350614155606088016140f5565b9250614163608088016140f5565b915061417160a088016140f5565b90509295509295509295565b60008060006060848603121561419257600080fd5b833561419d81613b97565b9250602084013567ffffffffffffffff808211156141ba57600080fd5b6141c687838801613d13565b935060408601359150808211156141dc57600080fd5b506141e986828701613d13565b9150509250925092565b6000806040838503121561420657600080fd5b61420f836140f5565b915061421d602084016140f5565b90509250929050565b60006020828403121561423857600080fd5b813567ffffffffffffffff81111561424f57600080fd5b612dba84828501613d13565b6000806040838503121561426e57600080fd5b823561427981613b97565b91506020830135613f9081613b97565b600080600080600060a086880312156142a157600080fd5b85356142ac81613b97565b945060208601356142bc81613b97565b93506040860135925060608601359150608086013567ffffffffffffffff8111156142e657600080fd5b613f1588828901613e54565b60008060006060848603121561430757600080fd5b833561431281613b97565b95602085013595506040909401359392505050565b600181811c9082168061433b57607f821691505b6020821081141561435c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561438a5761438a614362565b500390565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806143bf57607f831692505b60208084108214156143e157634e487b7160e01b600052602260045260246000fd5b8180156143f5576001811461440657614433565b60ff19861689528489019650614433565b60008881526020902060005b8681101561442b5781548b820152908501908301614412565b505084890196505b50505050505092915050565b600061444b82866143a5565b845161445b818360208901613c0b565b614467818301866143a5565b979650505050505050565b600060001982141561448657614486614362565b5060010190565b600082198211156144a0576144a0614362565b500190565b6000602082840312156144b757600080fd5b81516129ef81613b97565b600061ffff808316818114156144da576144da614362565b6001019392505050565b60008160001904831182151516156144fe576144fe614362565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261452857614528614503565b500490565b60006020828403121561453f57600080fd5b5051919050565b60006020828403121561455857600080fd5b81516129ef81613f54565b600061ffff80831681851680830382111561458057614580614362565b01949350505050565b600060ff821660ff8114156145a0576145a0614362565b60010192915050565b600061ffff838116908316818110156145c4576145c4614362565b039392505050565b6000612dba6145db83866143a5565b846143a5565b6000826145f0576145f0614503565b500690565b604081526000614608604083018561405e565b828103602084015261461a818561405e565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261464f60a083018661405e565b8281036060840152614661818661405e565b905082810360808401526146758185613c37565b98975050505050505050565b60006020828403121561469357600080fd5b81516129ef81613bd8565b600060033d11156146b75760046000803e5060005160e01c5b90565b600060443d10156146c85790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156146f857505050505090565b82850191508151818111156147105750505050505090565b843d870101602082850101111561472a5750505050505090565b61473960208286010187613cc2565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261446760a0830184613c3756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cfc0b2b97b28108d7029e5c35b54507d2f50fe12cd363ecc162d17bc49921f8f64736f6c63430008090033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000084e414e4f4341545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e43415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f75642f697066732f516d5171666d5a37713543756b587259517632464545796a324e5344426a31474e68464d5a6252777357356f31482f000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e3550000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001f40

Deployed Bytecode

0x6080604052600436106103375760003560e01c806362b99ad4116101b0578063a22cb465116100ec578063e8a3d48511610095578063f242432a1161006f578063f242432a146109ad578063f2fde38b146109cd578063f5298aca146109ed578063fe7c345114610a0d57600080fd5b8063e8a3d48514610978578063e985e9c51461098d578063ec342ad01461093e57600080fd5b8063bd85b039116100c6578063bd85b03914610911578063c197b0f71461093e578063d1994d711461095457600080fd5b8063a22cb465146108be578063aa5dcab9146108de578063ab1184b3146108fe57600080fd5b806387761df9116101595780638da5cb5b116101335780638da5cb5b1461082457806392f99e611461084c57806395d89b411461087d57806397cbf9cf1461089257600080fd5b806387761df9146107d65780638b6c4674146107f85780638c4bc1431461080e57600080fd5b8063715018a61161018a578063715018a61461072f57806378acb03514610744578063828b57c9146107b657600080fd5b806362b99ad4146106c35780636629b508146106d85780636b20c4541461070f57600080fd5b80633ccfd60b1161027f57806351a39a58116102285780635a5e5d58116102025780635a5e5d58146106375780635abb31271461064a578063606647c81461066a57806361d6fa2b146106a357600080fd5b806351a39a58146105e25780635503a0e81461060257806355f804b31461061757600080fd5b806349df728c1161025957806349df728c146105665780634e1273f4146105865780634f558e79146105b357600080fd5b80633ccfd60b146105165780633fb226221461052b57806346b777481461054657600080fd5b8063147589a7116102e15780632eb2c2d6116102bb5780632eb2c2d6146104ba57806335ab565a146104da57806336e79a5a146104f657600080fd5b8063147589a71461042a5780631f3e1be91461044a5780632a55205a1461047b57600080fd5b806307a038c61161031257806307a038c6146103c85780630e89341c146103e85780631453671d1461040857600080fd5b8062fdd58e1461034357806301ffc9a71461037657806306fdde03146103a657600080fd5b3661033e57005b600080fd5b34801561034f57600080fd5b5061036361035e366004613bac565b610a2f565b6040519081526020015b60405180910390f35b34801561038257600080fd5b50610396610391366004613bee565b610adb565b604051901515815260200161036d565b3480156103b257600080fd5b506103bb610b19565b60405161036d9190613c63565b3480156103d457600080fd5b506103966103e3366004613c76565b610ba7565b3480156103f457600080fd5b506103bb610403366004613c76565b610be3565b34801561041457600080fd5b50610428610423366004613c8f565b610cc6565b005b34801561043657600080fd5b50610428610445366004613d84565b610f18565b34801561045657600080fd5b50610396610465366004613c8f565b6101866020526000908152604090205460ff1681565b34801561048757600080fd5b5061049b610496366004613dd4565b6111c8565b604080516001600160a01b03909316835260208301919091520161036d565b3480156104c657600080fd5b506104286104d5366004613e74565b611206565b3480156104e657600080fd5b5061036367011c37937e08000081565b34801561050257600080fd5b50610428610511366004613f39565b6112a8565b34801561052257600080fd5b5061042861139a565b34801561053757600080fd5b5061036366d529ae9e86000081565b34801561055257600080fd5b50610428610561366004613f62565b6115a8565b34801561057257600080fd5b50610428610581366004613c8f565b61161c565b34801561059257600080fd5b506105a66105a1366004613f9b565b6118c6565b60405161036d9190614099565b3480156105bf57600080fd5b506103966105ce366004613c76565b600090815260036020526040902054151590565b3480156105ee57600080fd5b506104286105fd366004613f62565b611a04565b34801561060e57600080fd5b506103bb611a78565b34801561062357600080fd5b506104286106323660046140ac565b611a85565b610428610645366004613c76565b611ae4565b34801561065657600080fd5b50610428610665366004613c8f565b611d13565b34801561067657600080fd5b5060065461068e90600160781b900463ffffffff1681565b60405163ffffffff909116815260200161036d565b3480156106af57600080fd5b506104286106be366004614109565b611e40565b3480156106cf57600080fd5b506103bb61207a565b3480156106e457600080fd5b506006546106fc9065010000000000900461ffff1681565b60405161ffff909116815260200161036d565b34801561071b57600080fd5b5061042861072a36600461417d565b612087565b34801561073b57600080fd5b5061042861212c565b34801561075057600080fd5b50600c546107869063ffffffff808216916401000000008104821691680100000000000000008204811691600160601b90041684565b6040805163ffffffff9586168152938516602085015291841691830191909152909116606082015260800161036d565b3480156107c257600080fd5b506104286107d1366004613c8f565b612180565b3480156107e257600080fd5b506006546106fc906301000000900461ffff1681565b34801561080457600080fd5b506106fc61019581565b34801561081a57600080fd5b506106fc612f3f81565b34801561083057600080fd5b506004546040516001600160a01b03909116815260200161036d565b34801561085857600080fd5b50610396610867366004613c8f565b6101876020526000908152604090205460ff1681565b34801561088957600080fd5b506103bb612362565b34801561089e57600080fd5b506006546108ac9060ff1681565b60405160ff909116815260200161036d565b3480156108ca57600080fd5b506104286108d9366004613f62565b61236f565b3480156108ea57600080fd5b506104286108f93660046141f3565b61245a565b61042861090c366004614226565b61257a565b34801561091d57600080fd5b5061036361092c366004613c76565b60009081526003602052604090205490565b34801561094a57600080fd5b506106fc61271081565b34801561096057600080fd5b5060065461068e90600160581b900463ffffffff1681565b34801561098457600080fd5b506103bb612970565b34801561099957600080fd5b506103966109a836600461425b565b61299b565b3480156109b957600080fd5b506104286109c8366004614289565b6129f6565b3480156109d957600080fd5b506104286109e8366004613c8f565b612a7d565b3480156109f957600080fd5b50610428610a083660046142f2565b612b4d565b348015610a1957600080fd5b506006546106fc90600160381b900461ffff1681565b60006001600160a01b038316610ab25760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610ad55750610ad582612bed565b60088054610b2690614327565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5290614327565b8015610b9f5780601f10610b7457610100808354040283529160200191610b9f565b820191906000526020600020905b815481529060010190602001808311610b8257829003601f168201915b505050505081565b6000600d610bb6600184614378565b612ee08110610bc757610bc761438f565b602081049091015460ff601f9092166101000a90041692915050565b600081815260036020526040902054606090610c675760405162461bcd60e51b815260206004820152603060248201527f455243313135354d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610aa9565b600060098054610c7690614327565b905011610c925760405180602001604052806000815250610ad5565b6009610c9d83612c88565b600a604051602001610cb19392919061443f565b60405160208183030381529060405292915050565b6001600160a01b038116610d1c5760405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420757365207a65726f20616464726573732e00000000000000006044820152606401610aa9565b6001600160a01b038116301415610d755760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e747261637420616464726573736044820152606401610aa9565b803b15610dea5760405162461bcd60e51b815260206004820152602a60248201527f43616e6e6f742073657420726563697069656e7420746f206120636f6e74726160448201527f63742061646472657373000000000000000000000000000000000000000000006064820152608401610aa9565b6000805b61018454811015610e9057336001600160a01b03166101848281548110610e1757610e1761438f565b6000918252602090912001546001600160a01b03161415610e7e57826101848281548110610e4757610e4761438f565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610e90565b80610e8881614472565b915050610dee565b5080610ede5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e00006044820152606401610aa9565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b6004546001600160a01b03163314610f605760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8051600160005260036020527fa15bc60c955c405d20d9149c709e2460f1c2d9a497496a7f46004d1772c3054c54612f3f91610f9b9161448d565b1115610fda5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b6006544290600160581b900463ffffffff16811180156110085750600654600160781b900463ffffffff1681105b6110545760405162461bcd60e51b815260206004820152601260248201527f72656465656d206e6f74207374617274656400000000000000000000000000006044820152606401610aa9565b826001600160a01b03167f97cc16e6c137f44d6456df14a2df4aaf9c87b168053c85e6dd253d88e10e73968360405161108d9190614099565b60405180910390a260005b82518161ffff1610156111c2576101885483516001600160a01b03808716921690636352211e90869061ffff86169081106110d5576110d561438f565b60200260200101516040518263ffffffff1660e01b81526004016110fb91815260200190565b60206040518083038186803b15801561111357600080fd5b505afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906144a5565b6001600160a01b0316146111905760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610aa9565b6111b084600160ff16600160405180602001604052806000815250612dc2565b806111ba816144c2565b915050611098565b50505050565b60065460009081903090612710906111f1906901000000000000000000900461ffff16866144e4565b6111fb9190614519565b915091509250929050565b6001600160a01b0385163314806112225750611222853361299b565b6112945760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610aa9565b6112a18585858585612df7565b5050505050565b6004546001600160a01b031633146112f05760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6103e88161ffff16111561136c5760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e00000000000000000000000000000000000000000000000000000000006064820152608401610aa9565b6006805461ffff9092166901000000000000000000026affff00000000000000000019909216919091179055565b600260055414156113ed5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aa9565b60026005556004546001600160a01b0316331461143a5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b4760005b6101845481101561156a576000610184828154811061145f5761145f61438f565b60009182526020909120015461018580546001600160a01b03909216916127109190859081106114915761149161438f565b600091825260209091206010820401546114bb91600f166002026101000a900461ffff16866144e4565b6114c59190614519565b604051600081818185875af1925050503d8060008114611501576040519150601f19603f3d011682016040523d82523d6000602084013e611506565b606091505b50509050806115575760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e000000000000000000000000000000006044820152606401610aa9565b508061156281614472565b91505061143e565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600555565b6004546001600160a01b031633146115f05760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b0391909116600090815261018760205260409020805460ff1916911515919091179055565b6002600554141561166f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610aa9565b60026005556004546001600160a01b031633146116bc5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b15801561171957600080fd5b505afa15801561172d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611751919061452d565b905060005b6101845481101561187b57826001600160a01b031663a9059cbb61018483815481106117845761178461438f565b60009182526020909120015461018580546001600160a01b03909216916127109190869081106117b6576117b661438f565b600091825260209091206010820401546117e091600f166002026101000a900461ffff16876144e4565b6117ea9190614519565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561183057600080fd5b505af1158015611844573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118689190614546565b508061187381614472565b915050611756565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a35050600160055550565b6060815183511461193f5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610aa9565b6000835167ffffffffffffffff81111561195b5761195b613cac565b604051908082528060200260200182016040528015611984578160200160208202803683370190505b50905060005b84518110156119fc576119cf8582815181106119a8576119a861438f565b60200260200101518583815181106119c2576119c261438f565b6020026020010151610a2f565b8282815181106119e1576119e161438f565b60209081029190910101526119f581614472565b905061198a565b509392505050565b6004546001600160a01b03163314611a4c5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b0391909116600090815261018660205260409020805460ff1916911515919091179055565b600a8054610b2690614327565b6004546001600160a01b03163314611acd5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8051611ae0906009906020840190613af2565b5050565b600081118015611af5575060058111155b611b415760405162461bcd60e51b815260206004820152601060248201527f4261746368206c696d69742069732035000000000000000000000000000000006044820152606401610aa9565b60065461ffff63010000008204811691611b64918491600160381b90041661448d565b1115611ba35760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b611bb58167011c37937e0800006144e4565b341015611c045760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610aa9565b600c54429068010000000000000000900463ffffffff1681118015611c375750600c54600160601b900463ffffffff1681105b611c735760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b600654611c8c908390600160381b900461ffff16614563565b6006805461ffff92909216600160381b0268ffff000000000000001990921691909117905560405182815233907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a2611ae033600260ff168460405180604001604052806005815260200164030783030360dc1b815250612dc2565b6004546001600160a01b03163314611d5b5760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b600654610100900460ff1615611db35760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610aa9565b6006544290600160581b900463ffffffff168111611e035760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b6006805461ff001916610100179055604080518082019091526005815264030783030360dc1b6020820152611ae090839060019061019590612dc2565b6004546001600160a01b03163314611e885760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b428263ffffffff16118015611eab5750600c54600160601b900463ffffffff1642115b611ef75760405162461bcd60e51b815260206004820152600e60248201527f536561736f6e206f6e676f696e670000000000000000000000000000000000006044820152606401610aa9565b600c805463ffffffff86811667ffffffffffffffff199092169190911764010000000086831602177fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff1668010000000000000000858316027fffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffff1617600160601b918416919091021790556006805460ff16906000611f9483614589565b91906101000a81548160ff021916908360ff16021790555050600d6000611fbb9190613b76565b6006805468ffff000000000000001961ffff8881166501000000000090810266ffff0000000000198c841663010000009081029190911666ffffffffff0000199096169590951717928316948590556040805163ffffffff8b811682528a8116602083015289811682840152881660608201529486048316608086015294041660a0830152915160ff909216917f8b57e925cbbf6dec3f6c68a501423af24334900f8f5214b670402eea7d2928969181900360c00190a2505050505050565b60098054610b2690614327565b6001600160a01b0383163314806120ae5750336000908152610187602052604090205460ff165b806120be57506120be833361299b565b61211c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b612127838383613055565b505050565b6004546001600160a01b031633146121745760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b61217e60006130d7565b565b6004546001600160a01b031633146121c85760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b60065462010000900460ff16156122215760405162461bcd60e51b815260206004820152600e60248201527f616c7265616479206d696e7465640000000000000000000000000000000000006044820152606401610aa9565b600c54429063ffffffff168111801561224d5750600c5468010000000000000000900463ffffffff1681105b6122895760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b6006805462ff000019166201000017908190556122bc9061ffff650100000000008204811691600160381b900416614563565b6006805468ffff000000000000001916600160381b61ffff9384160217908190556040516501000000000090910490911681526001600160a01b038316907ffaedd5d221017b98a49d7300b563fc9ba53ba5a8d8719f484e4d69dde8b083a59060200160405180910390a2600654604080518082019091526005815264030783030360dc1b6020820152611ae091849160029165010000000000900461ffff1690612dc2565b60078054610b2690614327565b336001600160a01b03831614156123ee5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610aa9565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6004546001600160a01b031633146124a25760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b8163ffffffff168163ffffffff161180156124c25750428263ffffffff16115b61250e5760405162461bcd60e51b815260206004820152600d60248201527f496e76616c6964206461746573000000000000000000000000000000000000006044820152606401610aa9565b600680547fffffffffffffffffffffffffff0000000000000000ffffffffffffffffffffff16600160581b63ffffffff948516027fffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffff1617600160781b9290931691909102919091179055565b60065461259d9061ffff65010000000000820481169163010000009004166145a9565b815160065461ffff928316926125bb9291600160381b90041661448d565b11156125fa5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206d6f726520746f6b656e7360901b6044820152606401610aa9565b805161260d9066d529ae9e8600006144e4565b34101561265c5760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e7420455448000000000000000000000000000000006044820152606401610aa9565b600c54429063ffffffff16811180156126845750600c54640100000000900463ffffffff1681105b6126c05760405162461bcd60e51b815260206004820152600d60248201526c53616c65206e6f74206c69766560981b6044820152606401610aa9565b336001600160a01b03167fe3a5f55aca44c01d3b0217df332b3a5629a86f76408d0e4c4ff5abfc37ad4261836040516126f99190614099565b60405180910390a260005b82518160ff1610156121275761018854835133916001600160a01b031690636352211e90869060ff861690811061273d5761273d61438f565b60200260200101516040518263ffffffff1660e01b815260040161276391815260200190565b60206040518083038186803b15801561277b57600080fd5b505afa15801561278f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127b391906144a5565b6001600160a01b0316146127f85760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b6044820152606401610aa9565b600d6001848360ff16815181106128115761281161438f565b60200260200101516128239190614378565b612ee081106128345761283461438f565b602081049091015460ff601f9092166101000a900416156128975760405162461bcd60e51b815260206004820152601260248201527f746f6b656e20616c7265616479207573656400000000000000000000000000006044820152606401610aa9565b6001600d6001858460ff16815181106128b2576128b261438f565b60200260200101516128c49190614378565b612ee081106128d5576128d561438f565b602081049091018054921515601f9092166101000a91820260ff909202199092161790556006805461ffff600160381b90910416906007612915836144c2565b91906101000a81548161ffff021916908361ffff1602179055505061295e33600260ff16600160405180604001604052806005815260200164030783030360dc1b815250612dc2565b8061296881614589565b915050612704565b60606009600b6040516020016129879291906145cc565b604051602081830303815290604052905090565b6001600160a01b0381166000908152610186602052604081205460ff16156129c557506001610ad5565b6001600160a01b0380841660009081526001602090815260408083209386168352929052205460ff165b9392505050565b6001600160a01b038516331480612a125750612a12853361299b565b612a705760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b6112a18585858585613141565b6004546001600160a01b03163314612ac55760405162461bcd60e51b8152602060048201819052602482015260008051602061477d8339815191526044820152606401610aa9565b6001600160a01b038116612b415760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610aa9565b612b4a816130d7565b50565b6001600160a01b038316331480612b745750336000908152610187602052604090205460ff165b80612b845750612b84833361299b565b612be25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610aa9565b6121278383836132e8565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480612c5057506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610ad557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610ad5565b606081612cc857505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612cf25780612cdc81614472565b9150612ceb9050600a83614519565b9150612ccc565b60008167ffffffffffffffff811115612d0d57612d0d613cac565b6040519080825280601f01601f191660200182016040528015612d37576020820181803683370190505b5090505b8415612dba57612d4c600183614378565b9150612d59600a866145e1565b612d6490603061448d565b60f81b818381518110612d7957612d7961438f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612db3600a86614519565b9450612d3b565b949350505050565b612dce8484848461331b565b60008381526003602052604081208054849290612dec90849061448d565b909155505050505050565b8151835114612e595760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610aa9565b6001600160a01b038416612ebd5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa9565b3360005b8451811015612fe7576000858281518110612ede57612ede61438f565b602002602001015190506000858381518110612efc57612efc61438f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612f8f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610aa9565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612fcc90849061448d565b9250508190555050505080612fe090614472565b9050612ec1565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516130379291906145f5565b60405180910390a461304d818787878787613438565b505050505050565b6130608383836135ed565b60005b82518110156111c25781818151811061307e5761307e61438f565b60200260200101516003600085848151811061309c5761309c61438f565b6020026020010151815260200190815260200160002060008282546130c19190614378565b909155506130d0905081614472565b9050613063565b600480546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166131a55760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610aa9565b336131be8187876131b588613822565b6112a188613822565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156132425760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610aa9565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061327f90849061448d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132df82888888888861386d565b50505050505050565b6132f3838383613978565b60008281526003602052604081208054839290613311908490614378565b9091555050505050565b6001600160a01b0384166133975760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610aa9565b336133a8816000876131b588613822565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906133d890849061448d565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112a18160008787878761386d565b6001600160a01b0384163b1561304d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061347c9089908990889088908890600401614623565b602060405180830381600087803b15801561349657600080fd5b505af19250505080156134c6575060408051601f3d908101601f191682019092526134c391810190614681565b60015b61357c576134d261469e565b806308c379a0141561350c57506134e76146ba565b806134f2575061350e565b8060405162461bcd60e51b8152600401610aa99190613c63565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610aa9565b6001600160e01b0319811663bc197c8160e01b146132df5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610aa9565b6001600160a01b03831661364f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa9565b80518251146136b15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610aa9565b604080516020810190915260009081905233905b83518110156137c35760008482815181106136e2576136e261438f565b6020026020010151905060008483815181106137005761370061438f565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561378c5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610aa9565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806137bb81614472565b9150506136c5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516138149291906145f5565b60405180910390a450505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061385c5761385c61438f565b602090810291909101015292915050565b6001600160a01b0384163b1561304d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906138b19089908990889088908890600401614744565b602060405180830381600087803b1580156138cb57600080fd5b505af19250505080156138fb575060408051601f3d908101601f191682019092526138f891810190614681565b60015b613907576134d261469e565b6001600160e01b0319811663f23a6e6160e01b146132df5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610aa9565b6001600160a01b0383166139da5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610aa9565b33613a0a818560006139eb87613822565b6139f487613822565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613a875760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610aa9565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b828054613afe90614327565b90600052602060002090601f016020900481019282613b205760008555613b66565b82601f10613b3957805160ff1916838001178555613b66565b82800160010185558215613b66579182015b82811115613b66578251825591602001919060010190613b4b565b50613b72929150613b82565b5090565b50612b4a906101778101905b5b80821115613b725760008155600101613b83565b6001600160a01b0381168114612b4a57600080fd5b60008060408385031215613bbf57600080fd5b8235613bca81613b97565b946020939093013593505050565b6001600160e01b031981168114612b4a57600080fd5b600060208284031215613c0057600080fd5b81356129ef81613bd8565b60005b83811015613c26578181015183820152602001613c0e565b838111156111c25750506000910152565b60008151808452613c4f816020860160208601613c0b565b601f01601f19169290920160200192915050565b6020815260006129ef6020830184613c37565b600060208284031215613c8857600080fd5b5035919050565b600060208284031215613ca157600080fd5b81356129ef81613b97565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715613ce857613ce8613cac565b6040525050565b600067ffffffffffffffff821115613d0957613d09613cac565b5060051b60200190565b600082601f830112613d2457600080fd5b81356020613d3182613cef565b604051613d3e8282613cc2565b83815260059390931b8501820192828101915086841115613d5e57600080fd5b8286015b84811015613d795780358352918301918301613d62565b509695505050505050565b60008060408385031215613d9757600080fd5b8235613da281613b97565b9150602083013567ffffffffffffffff811115613dbe57600080fd5b613dca85828601613d13565b9150509250929050565b60008060408385031215613de757600080fd5b50508035926020909101359150565b600067ffffffffffffffff831115613e1057613e10613cac565b604051613e27601f8501601f191660200182613cc2565b809150838152848484011115613e3c57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613e6557600080fd5b6129ef83833560208501613df6565b600080600080600060a08688031215613e8c57600080fd5b8535613e9781613b97565b94506020860135613ea781613b97565b9350604086013567ffffffffffffffff80821115613ec457600080fd5b613ed089838a01613d13565b94506060880135915080821115613ee657600080fd5b613ef289838a01613d13565b93506080880135915080821115613f0857600080fd5b50613f1588828901613e54565b9150509295509295909350565b803561ffff81168114613f3457600080fd5b919050565b600060208284031215613f4b57600080fd5b6129ef82613f22565b8015158114612b4a57600080fd5b60008060408385031215613f7557600080fd5b8235613f8081613b97565b91506020830135613f9081613f54565b809150509250929050565b60008060408385031215613fae57600080fd5b823567ffffffffffffffff80821115613fc657600080fd5b818501915085601f830112613fda57600080fd5b81356020613fe782613cef565b604051613ff48282613cc2565b83815260059390931b850182019282810191508984111561401457600080fd5b948201945b8386101561403b57853561402c81613b97565b82529482019490820190614019565b9650508601359250508082111561405157600080fd5b50613dca85828601613d13565b600081518084526020808501945080840160005b8381101561408e57815187529582019590820190600101614072565b509495945050505050565b6020815260006129ef602083018461405e565b6000602082840312156140be57600080fd5b813567ffffffffffffffff8111156140d557600080fd5b8201601f810184136140e657600080fd5b612dba84823560208401613df6565b803563ffffffff81168114613f3457600080fd5b60008060008060008060c0878903121561412257600080fd5b61412b87613f22565b955061413960208801613f22565b9450614147604088016140f5565b9350614155606088016140f5565b9250614163608088016140f5565b915061417160a088016140f5565b90509295509295509295565b60008060006060848603121561419257600080fd5b833561419d81613b97565b9250602084013567ffffffffffffffff808211156141ba57600080fd5b6141c687838801613d13565b935060408601359150808211156141dc57600080fd5b506141e986828701613d13565b9150509250925092565b6000806040838503121561420657600080fd5b61420f836140f5565b915061421d602084016140f5565b90509250929050565b60006020828403121561423857600080fd5b813567ffffffffffffffff81111561424f57600080fd5b612dba84828501613d13565b6000806040838503121561426e57600080fd5b823561427981613b97565b91506020830135613f9081613b97565b600080600080600060a086880312156142a157600080fd5b85356142ac81613b97565b945060208601356142bc81613b97565b93506040860135925060608601359150608086013567ffffffffffffffff8111156142e657600080fd5b613f1588828901613e54565b60008060006060848603121561430757600080fd5b833561431281613b97565b95602085013595506040909401359392505050565b600181811c9082168061433b57607f821691505b6020821081141561435c57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561438a5761438a614362565b500390565b634e487b7160e01b600052603260045260246000fd5b8054600090600181811c90808316806143bf57607f831692505b60208084108214156143e157634e487b7160e01b600052602260045260246000fd5b8180156143f5576001811461440657614433565b60ff19861689528489019650614433565b60008881526020902060005b8681101561442b5781548b820152908501908301614412565b505084890196505b50505050505092915050565b600061444b82866143a5565b845161445b818360208901613c0b565b614467818301866143a5565b979650505050505050565b600060001982141561448657614486614362565b5060010190565b600082198211156144a0576144a0614362565b500190565b6000602082840312156144b757600080fd5b81516129ef81613b97565b600061ffff808316818114156144da576144da614362565b6001019392505050565b60008160001904831182151516156144fe576144fe614362565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261452857614528614503565b500490565b60006020828403121561453f57600080fd5b5051919050565b60006020828403121561455857600080fd5b81516129ef81613f54565b600061ffff80831681851680830382111561458057614580614362565b01949350505050565b600060ff821660ff8114156145a0576145a0614362565b60010192915050565b600061ffff838116908316818110156145c4576145c4614362565b039392505050565b6000612dba6145db83866143a5565b846143a5565b6000826145f0576145f0614503565b500690565b604081526000614608604083018561405e565b828103602084015261461a818561405e565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261464f60a083018661405e565b8281036060840152614661818661405e565b905082810360808401526146758185613c37565b98975050505050505050565b60006020828403121561469357600080fd5b81516129ef81613bd8565b600060033d11156146b75760046000803e5060005160e01c5b90565b600060443d10156146c85790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156146f857505050505090565b82850191508151818111156147105750505050505090565b843d870101602082850101111561472a5750505050505090565b61473960208286010187613cc2565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261446760a0830184613c3756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220cfc0b2b97b28108d7029e5c35b54507d2f50fe12cd363ecc162d17bc49921f8f64736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000020000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000000084e414e4f4341545300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e43415400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005568747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f75642f697066732f516d5171666d5a37713543756b587259517632464545796a324e5344426a31474e68464d5a6252777357356f31482f000000000000000000000000000000000000000000000000000000000000000000000000000000000000052e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e3550000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000005dc0000000000000000000000000000000000000000000000000000000000001f40

-----Decoded View---------------
Arg [0] : name_ (string): NANOCATS
Arg [1] : symbol_ (string): NCAT
Arg [2] : uriPrefix_ (string): https://catbotica.mypinata.cloud/ipfs/QmQqfmZ7q5CukXrYQv2FEEyj2NSDBj1GNhFMZbRwsW5o1H/
Arg [3] : uriSuffix_ (string): .json
Arg [4] : _cbotContract (address): 0x25E5e2b4b8F11c32CDd48c2FB394fbda9a2861F7
Arg [5] : _recipients (address[]): 0x8d97009c21A17197f9e256D51923bDB858A7e355,0x6f9C72972B4603eAf8FE29C60f428A1C2F474F6D,0x179dBb893c4a8E09605CC0a6C8a2dC8Ce0AdCEe1
Arg [6] : _splits (uint16[]): 500,1500,8000
Arg [7] : _proxyAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
26 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [4] : 00000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000240
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [7] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [9] : 4e414e4f43415453000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4e43415400000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000055
Arg [13] : 68747470733a2f2f636174626f746963612e6d7970696e6174612e636c6f7564
Arg [14] : 2f697066732f516d5171666d5a37713543756b587259517632464545796a324e
Arg [15] : 5344426a31474e68464d5a6252777357356f31482f0000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [19] : 0000000000000000000000008d97009c21a17197f9e256d51923bdb858a7e355
Arg [20] : 0000000000000000000000006f9c72972b4603eaf8fe29c60f428a1c2f474f6d
Arg [21] : 000000000000000000000000179dbb893c4a8e09605cc0a6c8a2dc8ce0adcee1
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [23] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [24] : 00000000000000000000000000000000000000000000000000000000000005dc
Arg [25] : 0000000000000000000000000000000000000000000000000000000000001f40


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.