ETH Price: $2,524.60 (-0.72%)

Token

Catboticans (3DCBOT)
 

Overview

Max Total Supply

1,671 3DCBOT

Holders

333

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
metapathfinder.eth
Balance
2 3DCBOT
0x95a11a4fd99ae948329f17317f6f23b7072342b7
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:
Catboticans

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 22 : Catbotican.sol
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.16;

import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/interfaces/IERC20.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/interfaces/IERC165.sol';
import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import '@openzeppelin/contracts/interfaces/IERC721.sol';
import './IERC1155.sol';


contract Catboticans is ERC721Enumerable, Ownable, Pausable, ReentrancyGuard, IERC2981 {
    using Strings for uint256;
    using Counters for Counters.Counter;
    Counters.Counter private _redeemIds;
    Counters.Counter private _tokenIds;

    bool public mintActive = false;
    string private baseURI;

    string private tokenSuffixURI;
    string private contractMetadata = 'contract.json';
    uint256 public constant RESERVED_TOKEN_ID_OFFSET = 12000; // Tokens reserved for replicats

    address[] private recipients;
    uint16[] private splits;
    uint16 public constant SPLIT_BASE = 10000;

    uint256 public descendicatMintPrice;

    mapping(address => bool) public proxyRegistryAddress;

    mapping(uint256 => uint16[]) descendicatMapping;

    event ReplicatMinted(address indexed owner, uint256 indexed id);
    event ReplicatBatchMinted(address indexed owner, uint256[] ids);
    event DescendicatMinted(address indexed owner, uint256 indexed id, uint256 indexed catbotId, uint8 mainLock, uint8 additionalLock);
    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);

    uint16 internal royalty = 1000; // base 10000, 10%
    uint16 public constant BASE = 10000;

    IERC721 cbotContract;

    IERC1155 nvContract;

    constructor(
        string memory _baseContractURI,
        string memory _tokenSuffixURI,
        address[] memory _recipients,
        uint16[] memory _splits,
        address _cbotContract,
        address _nvContract,
        address _proxyAddress
    ) ERC721('Catboticans', '3DCBOT') {
        baseURI = _baseContractURI;
        tokenSuffixURI = _tokenSuffixURI;
        recipients = _recipients;
        splits = _splits;
        cbotContract = IERC721(_cbotContract);
        nvContract = IERC1155(_nvContract);
        proxyRegistryAddress[_proxyAddress] = true;
    }

    function mintRelpicat(uint256 id) external nonReentrant {
        require(mintActive,'mint disabled');
        require(cbotContract.ownerOf(id) == msg.sender,'Catbot not owned');
        require(nvContract.balanceOf(msg.sender,1) > 0 ,'Not enough NV1');
        emit ReplicatMinted(msg.sender, id);
        _safeMint(msg.sender, id);
        nvContract.burn(msg.sender, 1, 1);
    }

    function batchMintRelpicat(uint256[] calldata ids) external nonReentrant {
        require(mintActive,'mint disabled');
        require(nvContract.balanceOf(msg.sender,1) >= ids.length ,'Not enough NV1');
        emit ReplicatBatchMinted(msg.sender, ids);
        for (uint256 i = 0; i < ids.length; i++) {
            require(cbotContract.ownerOf(ids[i]) == msg.sender,'Catbot not owned');
            _safeMint(msg.sender, ids[i]);
        }
        nvContract.burn(msg.sender, 1, ids.length);
    }

    function mintDescendicat(uint256 id, uint8 mainLock, uint8 additionalLock) external payable nonReentrant {
        require(mintActive,'mint disabled');
        require(cbotContract.ownerOf(id) == msg.sender,'Catbot not owned');
        require(msg.value >= descendicatMintPrice, 'Insufficient ETH');
        uint256 requiredNV2 = 1;
        if(additionalLock > 0) {
            requiredNV2 = 2;
        }
        require(nvContract.balanceOf(msg.sender,2) > requiredNV2 ,'Not enough NV2');
        _tokenIds.increment();
        uint256 currentTokenId = _tokenIds.current()+RESERVED_TOKEN_ID_OFFSET;
        uint256 count = descendicatMapping[id].length;
        descendicatMapping[id][count] = uint16(currentTokenId);
        emit DescendicatMinted(msg.sender, currentTokenId, id, mainLock, additionalLock);
        _safeMint(msg.sender, currentTokenId);
        nvContract.burn(msg.sender, 2, requiredNV2);
    }

    function descendicatCount(uint256 id) external view returns (uint256){
        return descendicatMapping[id].length;
    }

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

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

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

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

    /**
     * @dev returns the base contract metadata json object
     * this metadat file is used by OpenSea see {https://docs.opensea.io/docs/contract-level-metadata}
     *
     */
    function contractURI() public view returns (string memory) {
        string memory baseContractURI = _baseURI();
        return string(abi.encodePacked(baseContractURI, contractMetadata));
    }

    /**
     * @dev withdraws the contract balance and send it to the withdraw Addresses based on split ratio.
     *
     * Emits a {ContractWithdraw} event.
     */
    function withdraw() external nonReentrant {
        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);
    }


    /// @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) public onlyOwner {
        require(_royalty >= 0 && _royalty <= 1000, 'Royalty must be between 0% and 10%.');

        royalty = _royalty;
    }

    /// @dev withdraw ERC20 tokens divided by splits
    function withdrawTokens(address _tokenContract) external nonReentrant {
        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(ERC721Enumerable, IERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Allows replacing an existing withdraw address
     *
     * Emits a {WithdrawAddressChanged} event.
     */
    function changeWithdrawAddress(address _recipient) external {
        require(_recipient != address(0), 'Cannot use zero address');
        require(_recipient != address(this), 'Cannot use this 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);
    }

    /*
     * 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(ERC721, IERC721) 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 to set Descendicat minting ETH price
     *
     */
    function setMintPrice(uint256 _price) external onlyOwner {
        descendicatMintPrice = _price;
    }

    /*
     * Function to activate and deactivate minting
     *
     */
    function flipMintActive() external onlyOwner {
        mintActive = !mintActive;
    }

    function burn(uint256 tokenId) external {
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: caller is not token owner or approved");
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 22 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

pragma solidity ^0.8.0;

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

File 10 of 22 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

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

File 13 of 22 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/interfaces/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 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;

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) external;

    function burnBatch(
        address account,
        uint256[] calldata ids,
        uint256[] calldata values
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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":"_baseContractURI","type":"string"},{"internalType":"string","name":"_tokenSuffixURI","type":"string"},{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint16[]","name":"_splits","type":"uint16[]"},{"internalType":"address","name":"_cbotContract","type":"address"},{"internalType":"address","name":"_nvContract","type":"address"},{"internalType":"address","name":"_proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"catbotId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"mainLock","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"additionalLock","type":"uint8"}],"name":"DescendicatMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"ReplicatBatchMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"ReplicatMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"RESERVED_TOKEN_ID_OFFSET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPLIT_BASE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"batchMintRelpicat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","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":"descendicatCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"descendicatMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint8","name":"mainLock","type":"uint8"},{"internalType":"uint8","name":"additionalLock","type":"uint8"}],"name":"mintDescendicat","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintRelpicat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxyRegistryAddress","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","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":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenContract","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

600e805460ff1916905560c0604052600d60809081526c31b7b73a3930b1ba173539b7b760991b60a052601190620000389082620003d6565b506017805461ffff19166103e81790553480156200005557600080fd5b50604051620040e0380380620040e0833981016040819052620000789162000695565b6040518060400160405280600b81526020016a436174626f746963616e7360a81b815250604051806040016040528060068152602001650cd110d093d560d21b8152508160009081620000cc9190620003d6565b506001620000db8282620003d6565b505050620000f8620000f2620001b460201b60201c565b620001b8565b600a805460ff60a01b191690556001600b55600f620001188882620003d6565b506010620001278782620003d6565b5084516200013d9060129060208801906200020a565b5083516200015390601390602087019062000274565b506017805462010000600160b01b031916620100006001600160a01b0395861602179055601880546001600160a01b03191692841692909217909155166000908152601560205260409020805460ff19166001179055506200078692505050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000262579160200282015b828111156200026257825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200022b565b50620002709291506200031a565b5090565b82805482825590600052602060002090600f01601090048101928215620002625791602002820160005b83821115620002e057835183826101000a81548161ffff021916908361ffff16021790555092602001926002016020816001010492830192600103026200029e565b8015620003105782816101000a81549061ffff0219169055600201602081600101049283019260010302620002e0565b5050620002709291505b5b808211156200027057600081556001016200031b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035c57607f821691505b6020821081036200037d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003d157600081815260208120601f850160051c81016020861015620003ac5750805b601f850160051c820191505b81811015620003cd57828155600101620003b8565b5050505b505050565b81516001600160401b03811115620003f257620003f262000331565b6200040a8162000403845462000347565b8462000383565b602080601f831160018114620004425760008415620004295750858301515b600019600386901b1c1916600185901b178555620003cd565b600085815260208120601f198616915b82811015620004735788860151825594840194600190910190840162000452565b5085821015620004925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604051601f8201601f191681016001600160401b0381118282101715620004cd57620004cd62000331565b604052919050565b600082601f830112620004e757600080fd5b81516001600160401b0381111562000503576200050362000331565b602062000519601f8301601f19168201620004a2565b82815285828487010111156200052e57600080fd5b60005b838110156200054e57858101830151828201840152820162000531565b506000928101909101919091529392505050565b60006001600160401b038211156200057e576200057e62000331565b5060051b60200190565b80516001600160a01b0381168114620005a057600080fd5b919050565b600082601f830112620005b757600080fd5b81516020620005d0620005ca8362000562565b620004a2565b82815260059290921b84018101918181019086841115620005f057600080fd5b8286015b848110156200061657620006088162000588565b8352918301918301620005f4565b509695505050505050565b600082601f8301126200063357600080fd5b8151602062000646620005ca8362000562565b82815260059290921b840181019181810190868411156200066657600080fd5b8286015b848110156200061657805161ffff81168114620006875760008081fd5b83529183019183016200066a565b600080600080600080600060e0888a031215620006b157600080fd5b87516001600160401b0380821115620006c957600080fd5b620006d78b838c01620004d5565b985060208a0151915080821115620006ee57600080fd5b620006fc8b838c01620004d5565b975060408a01519150808211156200071357600080fd5b620007218b838c01620005a5565b965060608a01519150808211156200073857600080fd5b50620007478a828b0162000621565b945050620007586080890162000588565b92506200076860a0890162000588565b91506200077860c0890162000588565b905092959891949750929550565b61394a80620007966000396000f3fe6080604052600436106102ca5760003560e01c806351a39a5811610179578063b2ef884b116100d6578063e8a3d4851161008a578063eef75dbe11610064578063eef75dbe146107ac578063f2fde38b146107bf578063f4a0a528146107df57600080fd5b8063e8a3d48514610777578063e985e9c51461078c578063ec342ad01461072e57600080fd5b8063b88d4fde116100bb578063b88d4fde1461070e578063c197b0f71461072e578063c87b56dd1461075757600080fd5b8063b2ef884b146106d9578063b5bfcfa8146106f957600080fd5b806370a082311161012d5780638da5cb5b116101125780638da5cb5b1461068657806395d89b41146106a4578063a22cb465146106b957600080fd5b806370a0823114610651578063715018a61461067157600080fd5b80635c975abb1161015e5780635c975abb146105eb5780636352211e1461061b5780636d1355f51461063b57600080fd5b806351a39a58146105ab57806355f804b3146105cb57600080fd5b80632a55205a1161022757806342842e0e116101db57806349df728c116101c057806349df728c146105555780634bd71adc146105755780634f6ccce71461058b57600080fd5b806342842e0e1461051557806342966c681461053557600080fd5b806333d9fdcb1161020c57806333d9fdcb146104c057806336e79a5a146104e05780633ccfd60b1461050057600080fd5b80632a55205a146104615780632f745c59146104a057600080fd5b80631453671d1161027e5780631f3e1be9116102635780631f3e1be9146103f757806323b872dd1461042757806325fd90f31461044757600080fd5b80631453671d146103c257806318160ddd146103e257600080fd5b806306fdde03116102af57806306fdde0314610346578063081812fc14610368578063095ea7b3146103a057600080fd5b806301ffc9a7146102d657806302375d4d1461030b57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f136600461310a565b6107ff565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610338610326366004613127565b60009081526016602052604090205490565b604051908152602001610302565b34801561035257600080fd5b5061035b610843565b6040516103029190613190565b34801561037457600080fd5b50610388610383366004613127565b6108d5565b6040516001600160a01b039091168152602001610302565b3480156103ac57600080fd5b506103c06103bb3660046131b8565b61096f565b005b3480156103ce57600080fd5b506103c06103dd3660046131e4565b610aa0565b3480156103ee57600080fd5b50600854610338565b34801561040357600080fd5b506102f66104123660046131e4565b60156020526000908152604090205460ff1681565b34801561043357600080fd5b506103c0610442366004613201565b610c78565b34801561045357600080fd5b50600e546102f69060ff1681565b34801561046d57600080fd5b5061048161047c366004613242565b610cff565b604080516001600160a01b039093168352602083019190915201610302565b3480156104ac57600080fd5b506103386104bb3660046131b8565b610d30565b3480156104cc57600080fd5b506103c06104db366004613127565b610dd8565b3480156104ec57600080fd5b506103c06104fb366004613264565b611096565b34801561050c57600080fd5b506103c0611184565b34801561052157600080fd5b506103c0610530366004613201565b611346565b34801561054157600080fd5b506103c0610550366004613127565b611361565b34801561056157600080fd5b506103c06105703660046131e4565b6113e9565b34801561058157600080fd5b50610338612ee081565b34801561059757600080fd5b506103386105a6366004613127565b611629565b3480156105b757600080fd5b506103c06105c6366004613296565b6116cd565b3480156105d757600080fd5b506103c06105e636600461335b565b611752565b3480156105f757600080fd5b50600a5474010000000000000000000000000000000000000000900460ff166102f6565b34801561062757600080fd5b50610388610636366004613127565b6117bc565b34801561064757600080fd5b5061033860145481565b34801561065d57600080fd5b5061033861066c3660046131e4565b611847565b34801561067d57600080fd5b506103c06118e1565b34801561069257600080fd5b50600a546001600160a01b0316610388565b3480156106b057600080fd5b5061035b611947565b3480156106c557600080fd5b506103c06106d4366004613296565b611956565b3480156106e557600080fd5b506103c06106f43660046133a4565b611961565b34801561070557600080fd5b506103c0611c8a565b34801561071a57600080fd5b506103c0610729366004613419565b611cf8565b34801561073a57600080fd5b5061074461271081565b60405161ffff9091168152602001610302565b34801561076357600080fd5b5061035b610772366004613127565b611d86565b34801561078357600080fd5b5061035b611e72565b34801561079857600080fd5b506102f66107a7366004613499565b611ea9565b6103c06107ba3660046134dd565b611f00565b3480156107cb57600080fd5b506103c06107da3660046131e4565b6122bd565b3480156107eb57600080fd5b506103c06107fa366004613127565b61239c565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061083d575061083d826123fb565b92915050565b60606000805461085290613519565b80601f016020809104026020016040519081016040528092919081815260200182805461087e90613519565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097a826117bc565b9050806001600160a01b0316836001600160a01b031603610a035760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161094a565b336001600160a01b0382161480610a1f5750610a1f8133611ea9565b610a915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161094a565b610a9b8383612439565b505050565b6001600160a01b038116610af65760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420757365207a65726f2061646472657373000000000000000000604482015260640161094a565b306001600160a01b03821603610b4e5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e74726163742061646472657373604482015260640161094a565b6000805b601254811015610bf057336001600160a01b031660128281548110610b7957610b79613553565b6000918252602090912001546001600160a01b031603610bde578260128281548110610ba757610ba7613553565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610bf0565b80610be88161357f565b915050610b52565b5080610c3e5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e0000604482015260640161094a565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b610c8233826124a7565b610cf45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094a565b610a9b83838361257e565b6017546000908190309061271090610d1b9061ffff1686613598565b610d2591906135cd565b915091509250929050565b6000610d3b83611847565b8210610daf5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161094a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b5403610e2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff16610e715760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b6017546040516331a9108f60e11b81526004810183905233916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015610ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee491906135e1565b6001600160a01b031614610f2d5760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b601854604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f91906135fe565b11610fec5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5631000000000000000000000000000000000000604482015260640161094a565b604051819033907f09a09ebfff8a88e1a147005968d6d9bfe2698b3ec8912900b56eb262b6cef43f90600090a36110233382612756565b601854604051637a94c56560e11b815233600482015260016024820181905260448201526001600160a01b039091169063f5298aca90606401600060405180830381600087803b15801561107657600080fd5b505af115801561108a573d6000803e3d6000fd5b50506001600b55505050565b600a546001600160a01b031633146110f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6103e88161ffff16111561116c5760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e0000000000000000000000000000000000000000000000000000000000606482015260840161094a565b6017805461ffff191661ffff92909216919091179055565b6002600b54036111d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b554760005b601254811015611308576000601282815481106111fe576111fe613553565b600091825260209091200154601380546001600160a01b039092169161271091908590811061122f5761122f613553565b6000918252602090912060108204015461125991600f166002026101000a900461ffff1686613598565b61126391906135cd565b604051600081818185875af1925050503d806000811461129f576040519150601f19603f3d011682016040523d82523d6000602084013e6112a4565b606091505b50509050806112f55760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e00000000000000000000000000000000604482015260640161094a565b50806113008161357f565b9150506111df565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600b55565b610a9b83838360405180602001604052806000815250611cf8565b61136b33826124a7565b6113dd5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161094a565b6113e681612770565b50565b6002600b540361143b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b556040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156114a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c691906135fe565b905060005b6012548110156115de57826001600160a01b031663a9059cbb601283815481106114f7576114f7613553565b600091825260209091200154601380546001600160a01b039092169161271091908690811061152857611528613553565b6000918252602090912060108204015461155291600f166002026101000a900461ffff1687613598565b61155c91906135cd565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cb9190613617565b50806115d68161357f565b9150506114cb565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a350506001600b5550565b600061163460085490565b82106116a85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161094a565b600882815481106116bb576116bb613553565b90600052602060002001549050919050565b600a546001600160a01b031633146117275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b600a546001600160a01b031633146117ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b600f6117b88282613682565b5050565b6000818152600260205260408120546001600160a01b03168061083d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161094a565b60006001600160a01b0382166118c55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161094a565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461193b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6119456000612817565b565b60606001805461085290613519565b6117b8338383612869565b6002600b54036119b35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff166119fa5760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b601854604051627eeac760e11b81523360048201526001602482015282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6b91906135fe565b1015611ab95760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5631000000000000000000000000000000000000604482015260640161094a565b336001600160a01b03167f2bd49468c3b52599d5739bdc5e2e4cbb24542e59bd9a66ed4b866d65a673008e8383604051611af4929190613742565b60405180910390a260005b81811015611c155760175433906201000090046001600160a01b0316636352211e858585818110611b3257611b32613553565b905060200201356040518263ffffffff1660e01b8152600401611b5791815260200190565b602060405180830381865afa158015611b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9891906135e1565b6001600160a01b031614611be15760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b611c0333848484818110611bf757611bf7613553565b90506020020135612756565b80611c0d8161357f565b915050611aff565b50601854604051637a94c56560e11b815233600482015260016024820152604481018390526001600160a01b039091169063f5298aca90606401600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b50506001600b5550505050565b600a546001600160a01b03163314611ce45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b600e805460ff19811660ff90911615179055565b611d0233836124a7565b611d745760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094a565b611d8084848484612937565b50505050565b6000818152600260205260409020546060906001600160a01b0316611e135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161094a565b6000611e1d6129b5565b90506000815111611e3d5760405180602001604052806000815250611e6b565b80611e47846129c4565b6010604051602001611e5b93929190613807565b6040516020818303038152906040525b9392505050565b60606000611e7e6129b5565b9050806011604051602001611e94929190613844565b60405160208183030381529060405291505090565b6001600160a01b03811660009081526015602052604081205460ff1615611ed25750600161083d565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16611e6b565b6002600b5403611f525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff16611f995760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b6017546040516331a9108f60e11b81526004810185905233916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015611fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200c91906135e1565b6001600160a01b0316146120555760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b6014543410156120a75760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e742045544800000000000000000000000000000000604482015260640161094a565b600160ff8216156120b6575060025b601854604051627eeac760e11b81523360048201526002602482015282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015612103573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212791906135fe565b116121745760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5632000000000000000000000000000000000000604482015260640161094a565b612182600d80546001019055565b6000612ee0612190600d5490565b61219a919061386b565b600086815260166020526040902080549192508290826121b8613553565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508582336001600160a01b03167f9326c01d843d1d6ea7a695f169fe080d53bddc40d72117c62a433320a44cd210888860405161223392919060ff92831681529116602082015260400190565b60405180910390a46122453383612756565b601854604051637a94c56560e11b815233600482015260026024820152604481018590526001600160a01b039091169063f5298aca90606401600060405180830381600087803b15801561229857600080fd5b505af11580156122ac573d6000803e3d6000fd5b50506001600b555050505050505050565b600a546001600160a01b031633146123175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6001600160a01b0381166123935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161094a565b6113e681612817565b600a546001600160a01b031633146123f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b601455565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061083d575061083d82612af9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061246e826117bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166125205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161094a565b600061252b836117bc565b9050806001600160a01b0316846001600160a01b031614806125665750836001600160a01b031661255b846108d5565b6001600160a01b0316145b8061257657506125768185611ea9565b949350505050565b826001600160a01b0316612591826117bc565b6001600160a01b03161461260d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161094a565b6001600160a01b0382166126885760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161094a565b612693838383612b94565b61269e600082612439565b6001600160a01b03831660009081526003602052604081208054600192906126c790849061387e565b90915550506001600160a01b03821660009081526003602052604081208054600192906126f590849061386b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117b8828260405180602001604052806000815250612c4c565b600061277b826117bc565b905061278981600084612b94565b612794600083612439565b6001600160a01b03811660009081526003602052604081208054600192906127bd90849061387e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036128ca5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161094a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61294284848461257e565b61294e84848484612cca565b611d805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b6060600f805461085290613519565b606081600003612a0757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a315780612a1b8161357f565b9150612a2a9050600a836135cd565b9150612a0b565b60008167ffffffffffffffff811115612a4c57612a4c6132cf565b6040519080825280601f01601f191660200182016040528015612a76576020820181803683370190505b5090505b841561257657612a8b60018361387e565b9150612a98600a86613891565b612aa390603061386b565b60f81b818381518110612ab857612ab8613553565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612af2600a866135cd565b9450612a7a565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612b5c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461083d565b6001600160a01b038316612bef57612bea81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c12565b816001600160a01b0316836001600160a01b031614612c1257612c128382612e16565b6001600160a01b038216612c2957610a9b81612eb3565b826001600160a01b0316826001600160a01b031614610a9b57610a9b8282612f62565b612c568383612fa6565b612c636000848484612cca565b610a9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b60006001600160a01b0384163b15612e0b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d0e9033908990889088906004016138a5565b6020604051808303816000875af1925050508015612d49575060408051601f3d908101601f19168201909252612d46918101906138e1565b60015b612df1573d808015612d77576040519150601f19603f3d011682016040523d82523d6000602084013e612d7c565b606091505b508051600003612de95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612576565b506001949350505050565b60006001612e2384611847565b612e2d919061387e565b600083815260076020526040902054909150808214612e80576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ec59060019061387e565b60008381526009602052604081205460088054939450909284908110612eed57612eed613553565b906000526020600020015490508060088381548110612f0e57612f0e613553565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612f4657612f466138fe565b6001900381819060005260206000200160009055905550505050565b6000612f6d83611847565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612ffc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161094a565b6000818152600260205260409020546001600160a01b0316156130615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161094a565b61306d60008383612b94565b6001600160a01b038216600090815260036020526040812080546001929061309690849061386b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146113e657600080fd5b60006020828403121561311c57600080fd5b8135611e6b816130f4565b60006020828403121561313957600080fd5b5035919050565b60005b8381101561315b578181015183820152602001613143565b50506000910152565b6000815180845261317c816020860160208601613140565b601f01601f19169290920160200192915050565b602081526000611e6b6020830184613164565b6001600160a01b03811681146113e657600080fd5b600080604083850312156131cb57600080fd5b82356131d6816131a3565b946020939093013593505050565b6000602082840312156131f657600080fd5b8135611e6b816131a3565b60008060006060848603121561321657600080fd5b8335613221816131a3565b92506020840135613231816131a3565b929592945050506040919091013590565b6000806040838503121561325557600080fd5b50508035926020909101359150565b60006020828403121561327657600080fd5b813561ffff81168114611e6b57600080fd5b80151581146113e657600080fd5b600080604083850312156132a957600080fd5b82356132b4816131a3565b915060208301356132c481613288565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613300576133006132cf565b604051601f8501601f19908116603f01168101908282118183101715613328576133286132cf565b8160405280935085815286868601111561334157600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561336d57600080fd5b813567ffffffffffffffff81111561338457600080fd5b8201601f8101841361339557600080fd5b612576848235602084016132e5565b600080602083850312156133b757600080fd5b823567ffffffffffffffff808211156133cf57600080fd5b818501915085601f8301126133e357600080fd5b8135818111156133f257600080fd5b8660208260051b850101111561340757600080fd5b60209290920196919550909350505050565b6000806000806080858703121561342f57600080fd5b843561343a816131a3565b9350602085013561344a816131a3565b925060408501359150606085013567ffffffffffffffff81111561346d57600080fd5b8501601f8101871361347e57600080fd5b61348d878235602084016132e5565b91505092959194509250565b600080604083850312156134ac57600080fd5b82356134b7816131a3565b915060208301356132c4816131a3565b803560ff811681146134d857600080fd5b919050565b6000806000606084860312156134f257600080fd5b83359250613502602085016134c7565b9150613510604085016134c7565b90509250925092565b600181811c9082168061352d57607f821691505b60208210810361354d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161359157613591613569565b5060010190565b60008160001904831182151516156135b2576135b2613569565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135dc576135dc6135b7565b500490565b6000602082840312156135f357600080fd5b8151611e6b816131a3565b60006020828403121561361057600080fd5b5051919050565b60006020828403121561362957600080fd5b8151611e6b81613288565b601f821115610a9b57600081815260208120601f850160051c8101602086101561365b5750805b601f850160051c820191505b8181101561367a57828155600101613667565b505050505050565b815167ffffffffffffffff81111561369c5761369c6132cf565b6136b0816136aa8454613519565b84613634565b602080601f8311600181146136e557600084156136cd5750858301515b600019600386901b1c1916600185901b17855561367a565b600085815260208120601f198616915b82811015613714578886015182559484019460019091019084016136f5565b50858210156137325787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561377b57600080fd5b8260051b80856040850137919091016040019392505050565b600081546137a181613519565b600182811680156137b957600181146137ce576137fd565b60ff19841687528215158302870194506137fd565b8560005260208060002060005b858110156137f45781548a8201529084019082016137db565b50505082870194505b5050505092915050565b60008451613819818460208901613140565b84519083019061382d818360208901613140565b61383981830186613794565b979650505050505050565b60008351613856818460208801613140565b61386281840185613794565b95945050505050565b8082018082111561083d5761083d613569565b8181038181111561083d5761083d613569565b6000826138a0576138a06135b7565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138d76080830184613164565b9695505050505050565b6000602082840312156138f357600080fd5b8151611e6b816130f4565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207e7a6091239ca7373b2f24f5090e9d840bc2c3c8d3ccc22693cf4cb90fcef03e64736f6c6343000810003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f70000000000000000000000006c709966ead8fdc5bc6d49463d258b9d3432fe38000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f746f6b656e6d642e636174626f746963612e6c696e6b2f0000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b0ba5b0d7e754889968972920ab1012d544ca5a300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710

Deployed Bytecode

0x6080604052600436106102ca5760003560e01c806351a39a5811610179578063b2ef884b116100d6578063e8a3d4851161008a578063eef75dbe11610064578063eef75dbe146107ac578063f2fde38b146107bf578063f4a0a528146107df57600080fd5b8063e8a3d48514610777578063e985e9c51461078c578063ec342ad01461072e57600080fd5b8063b88d4fde116100bb578063b88d4fde1461070e578063c197b0f71461072e578063c87b56dd1461075757600080fd5b8063b2ef884b146106d9578063b5bfcfa8146106f957600080fd5b806370a082311161012d5780638da5cb5b116101125780638da5cb5b1461068657806395d89b41146106a4578063a22cb465146106b957600080fd5b806370a0823114610651578063715018a61461067157600080fd5b80635c975abb1161015e5780635c975abb146105eb5780636352211e1461061b5780636d1355f51461063b57600080fd5b806351a39a58146105ab57806355f804b3146105cb57600080fd5b80632a55205a1161022757806342842e0e116101db57806349df728c116101c057806349df728c146105555780634bd71adc146105755780634f6ccce71461058b57600080fd5b806342842e0e1461051557806342966c681461053557600080fd5b806333d9fdcb1161020c57806333d9fdcb146104c057806336e79a5a146104e05780633ccfd60b1461050057600080fd5b80632a55205a146104615780632f745c59146104a057600080fd5b80631453671d1161027e5780631f3e1be9116102635780631f3e1be9146103f757806323b872dd1461042757806325fd90f31461044757600080fd5b80631453671d146103c257806318160ddd146103e257600080fd5b806306fdde03116102af57806306fdde0314610346578063081812fc14610368578063095ea7b3146103a057600080fd5b806301ffc9a7146102d657806302375d4d1461030b57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f136600461310a565b6107ff565b60405190151581526020015b60405180910390f35b34801561031757600080fd5b50610338610326366004613127565b60009081526016602052604090205490565b604051908152602001610302565b34801561035257600080fd5b5061035b610843565b6040516103029190613190565b34801561037457600080fd5b50610388610383366004613127565b6108d5565b6040516001600160a01b039091168152602001610302565b3480156103ac57600080fd5b506103c06103bb3660046131b8565b61096f565b005b3480156103ce57600080fd5b506103c06103dd3660046131e4565b610aa0565b3480156103ee57600080fd5b50600854610338565b34801561040357600080fd5b506102f66104123660046131e4565b60156020526000908152604090205460ff1681565b34801561043357600080fd5b506103c0610442366004613201565b610c78565b34801561045357600080fd5b50600e546102f69060ff1681565b34801561046d57600080fd5b5061048161047c366004613242565b610cff565b604080516001600160a01b039093168352602083019190915201610302565b3480156104ac57600080fd5b506103386104bb3660046131b8565b610d30565b3480156104cc57600080fd5b506103c06104db366004613127565b610dd8565b3480156104ec57600080fd5b506103c06104fb366004613264565b611096565b34801561050c57600080fd5b506103c0611184565b34801561052157600080fd5b506103c0610530366004613201565b611346565b34801561054157600080fd5b506103c0610550366004613127565b611361565b34801561056157600080fd5b506103c06105703660046131e4565b6113e9565b34801561058157600080fd5b50610338612ee081565b34801561059757600080fd5b506103386105a6366004613127565b611629565b3480156105b757600080fd5b506103c06105c6366004613296565b6116cd565b3480156105d757600080fd5b506103c06105e636600461335b565b611752565b3480156105f757600080fd5b50600a5474010000000000000000000000000000000000000000900460ff166102f6565b34801561062757600080fd5b50610388610636366004613127565b6117bc565b34801561064757600080fd5b5061033860145481565b34801561065d57600080fd5b5061033861066c3660046131e4565b611847565b34801561067d57600080fd5b506103c06118e1565b34801561069257600080fd5b50600a546001600160a01b0316610388565b3480156106b057600080fd5b5061035b611947565b3480156106c557600080fd5b506103c06106d4366004613296565b611956565b3480156106e557600080fd5b506103c06106f43660046133a4565b611961565b34801561070557600080fd5b506103c0611c8a565b34801561071a57600080fd5b506103c0610729366004613419565b611cf8565b34801561073a57600080fd5b5061074461271081565b60405161ffff9091168152602001610302565b34801561076357600080fd5b5061035b610772366004613127565b611d86565b34801561078357600080fd5b5061035b611e72565b34801561079857600080fd5b506102f66107a7366004613499565b611ea9565b6103c06107ba3660046134dd565b611f00565b3480156107cb57600080fd5b506103c06107da3660046131e4565b6122bd565b3480156107eb57600080fd5b506103c06107fa366004613127565b61239c565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061083d575061083d826123fb565b92915050565b60606000805461085290613519565b80601f016020809104026020016040519081016040528092919081815260200182805461087e90613519565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166109535760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061097a826117bc565b9050806001600160a01b0316836001600160a01b031603610a035760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161094a565b336001600160a01b0382161480610a1f5750610a1f8133611ea9565b610a915760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161094a565b610a9b8383612439565b505050565b6001600160a01b038116610af65760405162461bcd60e51b815260206004820152601760248201527f43616e6e6f7420757365207a65726f2061646472657373000000000000000000604482015260640161094a565b306001600160a01b03821603610b4e5760405162461bcd60e51b815260206004820181905260248201527f43616e6e6f7420757365207468697320636f6e74726163742061646472657373604482015260640161094a565b6000805b601254811015610bf057336001600160a01b031660128281548110610b7957610b79613553565b6000918252602090912001546001600160a01b031603610bde578260128281548110610ba757610ba7613553565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610bf0565b80610be88161357f565b915050610b52565b5080610c3e5760405162461bcd60e51b815260206004820152601e60248201527f5468652073656e646572206973206e6f74206120726563697069656e742e0000604482015260640161094a565b6040516001600160a01b0383169033907f49309b5d08d7bbaebcda96dda577818eee99f98cd01bb4a546ffb81653b4004190600090a35050565b610c8233826124a7565b610cf45760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094a565b610a9b83838361257e565b6017546000908190309061271090610d1b9061ffff1686613598565b610d2591906135cd565b915091509250929050565b6000610d3b83611847565b8210610daf5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161094a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6002600b5403610e2a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff16610e715760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b6017546040516331a9108f60e11b81526004810183905233916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015610ec0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee491906135e1565b6001600160a01b031614610f2d5760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b601854604051627eeac760e11b8152336004820152600160248201526000916001600160a01b03169062fdd58e90604401602060405180830381865afa158015610f7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9f91906135fe565b11610fec5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5631000000000000000000000000000000000000604482015260640161094a565b604051819033907f09a09ebfff8a88e1a147005968d6d9bfe2698b3ec8912900b56eb262b6cef43f90600090a36110233382612756565b601854604051637a94c56560e11b815233600482015260016024820181905260448201526001600160a01b039091169063f5298aca90606401600060405180830381600087803b15801561107657600080fd5b505af115801561108a573d6000803e3d6000fd5b50506001600b55505050565b600a546001600160a01b031633146110f05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6103e88161ffff16111561116c5760405162461bcd60e51b815260206004820152602360248201527f526f79616c7479206d757374206265206265747765656e20302520616e64203160448201527f30252e0000000000000000000000000000000000000000000000000000000000606482015260840161094a565b6017805461ffff191661ffff92909216919091179055565b6002600b54036111d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b554760005b601254811015611308576000601282815481106111fe576111fe613553565b600091825260209091200154601380546001600160a01b039092169161271091908590811061122f5761122f613553565b6000918252602090912060108204015461125991600f166002026101000a900461ffff1686613598565b61126391906135cd565b604051600081818185875af1925050503d806000811461129f576040519150601f19603f3d011682016040523d82523d6000602084013e6112a4565b606091505b50509050806112f55760405162461bcd60e51b815260206004820152601060248201527f5769746864726177204661696c65642e00000000000000000000000000000000604482015260640161094a565b50806113008161357f565b9150506111df565b5060405181815233907f434a43765b3cd21fa5b240a88fef750a558ba196a12784bdd49335beabc1a39d9060200160405180910390a2506001600b55565b610a9b83838360405180602001604052806000815250611cf8565b61136b33826124a7565b6113dd5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161094a565b6113e681612770565b50565b6002600b540361143b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b556040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156114a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c691906135fe565b905060005b6012548110156115de57826001600160a01b031663a9059cbb601283815481106114f7576114f7613553565b600091825260209091200154601380546001600160a01b039092169161271091908690811061152857611528613553565b6000918252602090912060108204015461155291600f166002026101000a900461ffff1687613598565b61155c91906135cd565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af11580156115a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cb9190613617565b50806115d68161357f565b9150506114cb565b506040518181526001600160a01b0384169033907f73298854beb73cf7c63db725c9e244a4c6c2bde8fa5b477fc56d5a8b5c6150d39060200160405180910390a350506001600b5550565b600061163460085490565b82106116a85760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161094a565b600882815481106116bb576116bb613553565b90600052602060002001549050919050565b600a546001600160a01b031633146117275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6001600160a01b03919091166000908152601560205260409020805460ff1916911515919091179055565b600a546001600160a01b031633146117ac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b600f6117b88282613682565b5050565b6000818152600260205260408120546001600160a01b03168061083d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161094a565b60006001600160a01b0382166118c55760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161094a565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b0316331461193b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6119456000612817565b565b60606001805461085290613519565b6117b8338383612869565b6002600b54036119b35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff166119fa5760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b601854604051627eeac760e11b81523360048201526001602482015282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015611a47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a6b91906135fe565b1015611ab95760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5631000000000000000000000000000000000000604482015260640161094a565b336001600160a01b03167f2bd49468c3b52599d5739bdc5e2e4cbb24542e59bd9a66ed4b866d65a673008e8383604051611af4929190613742565b60405180910390a260005b81811015611c155760175433906201000090046001600160a01b0316636352211e858585818110611b3257611b32613553565b905060200201356040518263ffffffff1660e01b8152600401611b5791815260200190565b602060405180830381865afa158015611b74573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b9891906135e1565b6001600160a01b031614611be15760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b611c0333848484818110611bf757611bf7613553565b90506020020135612756565b80611c0d8161357f565b915050611aff565b50601854604051637a94c56560e11b815233600482015260016024820152604481018390526001600160a01b039091169063f5298aca90606401600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b50506001600b5550505050565b600a546001600160a01b03163314611ce45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b600e805460ff19811660ff90911615179055565b611d0233836124a7565b611d745760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161094a565b611d8084848484612937565b50505050565b6000818152600260205260409020546060906001600160a01b0316611e135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606482015260840161094a565b6000611e1d6129b5565b90506000815111611e3d5760405180602001604052806000815250611e6b565b80611e47846129c4565b6010604051602001611e5b93929190613807565b6040516020818303038152906040525b9392505050565b60606000611e7e6129b5565b9050806011604051602001611e94929190613844565b60405160208183030381529060405291505090565b6001600160a01b03811660009081526015602052604081205460ff1615611ed25750600161083d565b6001600160a01b0380841660009081526005602090815260408083209386168352929052205460ff16611e6b565b6002600b5403611f525760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161094a565b6002600b55600e5460ff16611f995760405162461bcd60e51b815260206004820152600d60248201526c1b5a5b9d08191a5cd8589b1959609a1b604482015260640161094a565b6017546040516331a9108f60e11b81526004810185905233916201000090046001600160a01b031690636352211e90602401602060405180830381865afa158015611fe8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200c91906135e1565b6001600160a01b0316146120555760405162461bcd60e51b815260206004820152601060248201526f10d85d189bdd081b9bdd081bdddb995960821b604482015260640161094a565b6014543410156120a75760405162461bcd60e51b815260206004820152601060248201527f496e73756666696369656e742045544800000000000000000000000000000000604482015260640161094a565b600160ff8216156120b6575060025b601854604051627eeac760e11b81523360048201526002602482015282916001600160a01b03169062fdd58e90604401602060405180830381865afa158015612103573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212791906135fe565b116121745760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420656e6f756768204e5632000000000000000000000000000000000000604482015260640161094a565b612182600d80546001019055565b6000612ee0612190600d5490565b61219a919061386b565b600086815260166020526040902080549192508290826121b8613553565b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508582336001600160a01b03167f9326c01d843d1d6ea7a695f169fe080d53bddc40d72117c62a433320a44cd210888860405161223392919060ff92831681529116602082015260400190565b60405180910390a46122453383612756565b601854604051637a94c56560e11b815233600482015260026024820152604481018590526001600160a01b039091169063f5298aca90606401600060405180830381600087803b15801561229857600080fd5b505af11580156122ac573d6000803e3d6000fd5b50506001600b555050505050505050565b600a546001600160a01b031633146123175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b6001600160a01b0381166123935760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161094a565b6113e681612817565b600a546001600160a01b031633146123f65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161094a565b601455565b60006001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000148061083d575061083d82612af9565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061246e826117bc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166125205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161094a565b600061252b836117bc565b9050806001600160a01b0316846001600160a01b031614806125665750836001600160a01b031661255b846108d5565b6001600160a01b0316145b8061257657506125768185611ea9565b949350505050565b826001600160a01b0316612591826117bc565b6001600160a01b03161461260d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161094a565b6001600160a01b0382166126885760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161094a565b612693838383612b94565b61269e600082612439565b6001600160a01b03831660009081526003602052604081208054600192906126c790849061387e565b90915550506001600160a01b03821660009081526003602052604081208054600192906126f590849061386b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6117b8828260405180602001604052806000815250612c4c565b600061277b826117bc565b905061278981600084612b94565b612794600083612439565b6001600160a01b03811660009081526003602052604081208054600192906127bd90849061387e565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316036128ca5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161094a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61294284848461257e565b61294e84848484612cca565b611d805760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b6060600f805461085290613519565b606081600003612a0757505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612a315780612a1b8161357f565b9150612a2a9050600a836135cd565b9150612a0b565b60008167ffffffffffffffff811115612a4c57612a4c6132cf565b6040519080825280601f01601f191660200182016040528015612a76576020820181803683370190505b5090505b841561257657612a8b60018361387e565b9150612a98600a86613891565b612aa390603061386b565b60f81b818381518110612ab857612ab8613553565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612af2600a866135cd565b9450612a7a565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480612b5c57506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061083d57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b031983161461083d565b6001600160a01b038316612bef57612bea81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612c12565b816001600160a01b0316836001600160a01b031614612c1257612c128382612e16565b6001600160a01b038216612c2957610a9b81612eb3565b826001600160a01b0316826001600160a01b031614610a9b57610a9b8282612f62565b612c568383612fa6565b612c636000848484612cca565b610a9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b60006001600160a01b0384163b15612e0b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612d0e9033908990889088906004016138a5565b6020604051808303816000875af1925050508015612d49575060408051601f3d908101601f19168201909252612d46918101906138e1565b60015b612df1573d808015612d77576040519150601f19603f3d011682016040523d82523d6000602084013e612d7c565b606091505b508051600003612de95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606482015260840161094a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612576565b506001949350505050565b60006001612e2384611847565b612e2d919061387e565b600083815260076020526040902054909150808214612e80576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612ec59060019061387e565b60008381526009602052604081205460088054939450909284908110612eed57612eed613553565b906000526020600020015490508060088381548110612f0e57612f0e613553565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612f4657612f466138fe565b6001900381819060005260206000200160009055905550505050565b6000612f6d83611847565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612ffc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161094a565b6000818152600260205260409020546001600160a01b0316156130615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161094a565b61306d60008383612b94565b6001600160a01b038216600090815260036020526040812080546001929061309690849061386b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b0319811681146113e657600080fd5b60006020828403121561311c57600080fd5b8135611e6b816130f4565b60006020828403121561313957600080fd5b5035919050565b60005b8381101561315b578181015183820152602001613143565b50506000910152565b6000815180845261317c816020860160208601613140565b601f01601f19169290920160200192915050565b602081526000611e6b6020830184613164565b6001600160a01b03811681146113e657600080fd5b600080604083850312156131cb57600080fd5b82356131d6816131a3565b946020939093013593505050565b6000602082840312156131f657600080fd5b8135611e6b816131a3565b60008060006060848603121561321657600080fd5b8335613221816131a3565b92506020840135613231816131a3565b929592945050506040919091013590565b6000806040838503121561325557600080fd5b50508035926020909101359150565b60006020828403121561327657600080fd5b813561ffff81168114611e6b57600080fd5b80151581146113e657600080fd5b600080604083850312156132a957600080fd5b82356132b4816131a3565b915060208301356132c481613288565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613300576133006132cf565b604051601f8501601f19908116603f01168101908282118183101715613328576133286132cf565b8160405280935085815286868601111561334157600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561336d57600080fd5b813567ffffffffffffffff81111561338457600080fd5b8201601f8101841361339557600080fd5b612576848235602084016132e5565b600080602083850312156133b757600080fd5b823567ffffffffffffffff808211156133cf57600080fd5b818501915085601f8301126133e357600080fd5b8135818111156133f257600080fd5b8660208260051b850101111561340757600080fd5b60209290920196919550909350505050565b6000806000806080858703121561342f57600080fd5b843561343a816131a3565b9350602085013561344a816131a3565b925060408501359150606085013567ffffffffffffffff81111561346d57600080fd5b8501601f8101871361347e57600080fd5b61348d878235602084016132e5565b91505092959194509250565b600080604083850312156134ac57600080fd5b82356134b7816131a3565b915060208301356132c4816131a3565b803560ff811681146134d857600080fd5b919050565b6000806000606084860312156134f257600080fd5b83359250613502602085016134c7565b9150613510604085016134c7565b90509250925092565b600181811c9082168061352d57607f821691505b60208210810361354d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161359157613591613569565b5060010190565b60008160001904831182151516156135b2576135b2613569565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826135dc576135dc6135b7565b500490565b6000602082840312156135f357600080fd5b8151611e6b816131a3565b60006020828403121561361057600080fd5b5051919050565b60006020828403121561362957600080fd5b8151611e6b81613288565b601f821115610a9b57600081815260208120601f850160051c8101602086101561365b5750805b601f850160051c820191505b8181101561367a57828155600101613667565b505050505050565b815167ffffffffffffffff81111561369c5761369c6132cf565b6136b0816136aa8454613519565b84613634565b602080601f8311600181146136e557600084156136cd5750858301515b600019600386901b1c1916600185901b17855561367a565b600085815260208120601f198616915b82811015613714578886015182559484019460019091019084016136f5565b50858210156137325787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561377b57600080fd5b8260051b80856040850137919091016040019392505050565b600081546137a181613519565b600182811680156137b957600181146137ce576137fd565b60ff19841687528215158302870194506137fd565b8560005260208060002060005b858110156137f45781548a8201529084019082016137db565b50505082870194505b5050505092915050565b60008451613819818460208901613140565b84519083019061382d818360208901613140565b61383981830186613794565b979650505050505050565b60008351613856818460208801613140565b61386281840185613794565b95945050505050565b8082018082111561083d5761083d613569565b8181038181111561083d5761083d613569565b6000826138a0576138a06135b7565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526138d76080830184613164565b9695505050505050565b6000602082840312156138f357600080fd5b8151611e6b816130f4565b634e487b7160e01b600052603160045260246000fdfea26469706673582212207e7a6091239ca7373b2f24f5090e9d840bc2c3c8d3ccc22693cf4cb90fcef03e64736f6c63430008100033

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

00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f70000000000000000000000006c709966ead8fdc5bc6d49463d258b9d3432fe38000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f746f6b656e6d642e636174626f746963612e6c696e6b2f0000000000000000000000000000000000000000000000000000000000000000052e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b0ba5b0d7e754889968972920ab1012d544ca5a300000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000002710

-----Decoded View---------------
Arg [0] : _baseContractURI (string): https://tokenmd.catbotica.link/
Arg [1] : _tokenSuffixURI (string): .json
Arg [2] : _recipients (address[]): 0xb0Ba5b0D7E754889968972920AB1012d544ca5a3
Arg [3] : _splits (uint16[]): 10000
Arg [4] : _cbotContract (address): 0x25E5e2b4b8F11c32CDd48c2FB394fbda9a2861F7
Arg [5] : _nvContract (address): 0x6C709966eAd8fdc5bC6d49463D258B9d3432fe38
Arg [6] : _proxyAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000025e5e2b4b8f11c32cdd48c2fb394fbda9a2861f7
Arg [5] : 0000000000000000000000006c709966ead8fdc5bc6d49463d258b9d3432fe38
Arg [6] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [7] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [8] : 68747470733a2f2f746f6b656e6d642e636174626f746963612e6c696e6b2f00
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 2e6a736f6e000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 000000000000000000000000b0ba5b0d7e754889968972920ab1012d544ca5a3
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000002710


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.