ETH Price: $3,313.88 (-0.62%)
 

Overview

Max Total Supply

834 p

Holders

88

Total Transfers

-

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

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

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

/// @entity: Pinaverse
/// @author: Wizard

/*
       ____  _                                     
      / __ \(_)___  ____ __   _____  _____________ 
     / /_/ / / __ \/ __ `/ | / / _ \/ ___/ ___/ _ \
    / ____/ / / / / /_/ /| |/ /  __/ /  (__  )  __/
   /_/   /_/_/ /_/\__,_/ |___/\___/_/  /____/\___/ 

*/

import "../token/WizardsERC721A.sol";

error MustApproveContract();
error MustBeOwner();
error PaymentFailed();
error TooManyForRequest();
error MustSetPinaverse();

contract Pineapples is WizardsERC721A {
    IERC1155 private juice;
    IERC721 private op;

    address private _pinaverse;
    uint256 private _swapPrice;
    mapping(uint256 => bool) private _hasReceivedJuice;

    constructor(
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyRecipient,
        uint24 royaltyValue,
        uint256 swapPrice_,
        address juice_,
        address op_
    )
        WizardsERC721A(
            "Pinaverse Pineapples",
            "p",
            baseTokenURI,
            contractURI,
            royaltyRecipient,
            royaltyValue,
            _msgSender()
        )
    {
        _swapPrice = swapPrice_;
        juice = IERC1155(juice_);
        op = IERC721(op_);
    }

    function _startTokenId() internal view virtual override returns (uint256) {
        return 3556;
    }

    function getPinaverseAddress() public view returns (address) {
        return _pinaverse;
    }

    function setSwapPrice(uint256 swapPrice_) public isAdmin {
        _swapPrice = swapPrice_;
    }

    function hasReceivedJuice(uint256 id) public view returns (bool) {
        return _hasReceivedJuice[id];
    }

    function getSwapPrice() public view returns (uint256) {
        return _swapPrice;
    }

    function swap(uint256 id) public payable whenNotPaused {
        if (msg.value != _swapPrice) {
            revert PaymentFailed();
        }
        if (!op.isApprovedForAll(_msgSender(), address(this))) {
            revert MustApproveContract();
        }

        _swap(_msgSender(), id);

        if (_hasReceivedJuice[id] == true) return;
        _hasReceivedJuice[id] = true;
        _mintJuice(_msgSender(), 1);
    }

    function swapBatch(uint256[] memory ids) public payable whenNotPaused {
        if (ids.length > 10) revert TooManyForRequest();
        uint256 qtyToSwap = ids.length;
        uint256 juiceToMint = ids.length;

        unchecked {
            uint256 totalSwapPrice = qtyToSwap * _swapPrice;
            if (msg.value != totalSwapPrice) revert PaymentFailed();
        }

        if (!op.isApprovedForAll(_msgSender(), address(this))) {
            revert MustApproveContract();
        }

        for (uint256 i = 0; i < qtyToSwap; i++) {
            _swap(_msgSender(), ids[i]);
            if (_hasReceivedJuice[ids[i]] == true) {
                juiceToMint--;
            }
            _hasReceivedJuice[ids[i]] = true;
        }

        _mintJuice(_msgSender(), juiceToMint);
    }

    function exit(uint256 id) public whenNotPaused {
        if (ownerOf(id) != _msgSender()) revert MustBeOwner();
        if (isApprovedForAll(_msgSender(), address(this))) {
            revert MustApproveContract();
        }

        _burn(id);
        op.transferFrom(address(this), _msgSender(), id);
    }

    function _swap(address from, uint256 id) internal virtual {
        if (op.ownerOf(id) != from) revert MustBeOwner();

        op.transferFrom(from, address(this), id);
        _mintById(from, id, "", false);
    }

    function _mintJuice(address to, uint256 amount) internal virtual {
        if (juice.allowRandom()) juice.randomMint(to, amount);
        else juice.mint(to, 0, amount);
    }

    function setPinaverse(address pinaverse) external isAdmin {
        _pinaverse = pinaverse;
    }

    function withdraw() external isAdmin {
        if (_pinaverse == address(0)) revert MustSetPinaverse();
        payable(_pinaverse).transfer(address(this).balance);
    }

    function withdrawToken(address token) external isAdmin {
        if (_pinaverse == address(0)) revert MustSetPinaverse();
        IERC20 erc20 = IERC20(token);
        erc20.transfer(_pinaverse, erc20.balanceOf(address(this)));
    }

    receive() external payable {}
}

interface IERC20 {
    function transfer(address recipient, uint256 amount)
        external
        returns (bool);

    function balanceOf(address account) external view returns (uint256);
}

interface IERC1155 {
    function mint(
        address to,
        uint256 id,
        uint256 amount
    ) external;

    function randomMint(address to, uint256 quantity) external;

    function allowRandom() external view returns (bool);
}

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

pragma solidity ^0.8.4;

import "../token/721A/ERC721A.sol";
import "../royalties/ERC2981ContractWideRoyalties.sol";
import "../utils/ERC721AMetadata.sol";
import "../utils/Administration.sol";

error MaxSupplyUnchangeable();
error MaxSupplyReached();
error InvalidBatchRequest();

contract WizardsERC721A is
    ERC721A,
    ERC721AMetadata,
    ERC2981ContractWideRoyalties,
    Administration
{
    uint256 private _maxSupply;

    mapping(bytes32 => bool) public nonces;

    constructor(
        string memory name_,
        string memory symbol_,
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyRecipient,
        uint24 royaltyValue,
        address owner
    ) ERC721A(name_, symbol_) Administration(owner) {
        _setBaseURI(baseTokenURI);
        _setContractURI(contractURI);
        _setRoyalties(royaltyRecipient, royaltyValue);
    }

    function maxSupply() public view returns (uint256) {
        return _maxSupply;
    }

    function setMaxSupply(uint256 maxSupply_) external isAdmin {
        if (_maxSupply > 0) revert MaxSupplyUnchangeable();
        _maxSupply = maxSupply_;
    }

    function setRoyalties(address recipient, uint24 value) external isAdmin {
        _setRoyalties(recipient, value);
    }

    function setContractURI(string memory contractURI) external isAdmin {
        _setContractURI(contractURI);
    }

    function setBaseURI(string memory uri) external isAdmin {
        _setBaseURI(uri);
    }

    function setTokenURI(uint256 tokenId, string memory tokenURI_)
        external
        isAdmin
    {
        _setTokenURI(tokenId, tokenURI_);
    }

    function mintById(address to, uint256 id) external isMinter whenNotPaused {
        _mintById(to, id, "", true);
    }

    function mint(address to, uint256 quantity)
        external
        isMinter
        whenNotPaused
    {
        _mint(to, quantity, "", true);
    }

    function mintBatch(address[] memory to, uint256[] memory quantity)
        external
        isMinter
        whenNotPaused
    {
        if (to.length != quantity.length) revert InvalidBatchRequest();

        unchecked {
            for (uint256 i = 0; i < to.length; i++) {
                _mint(to[i], quantity[i], "", true);
            }
        }
    }

    function burn(uint256 tokenId) public virtual {
        _burn(tokenId, true);
    }

    // Overides

    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal override {
        unchecked {
            if (_maxSupply > 0 && totalMinted() >= _maxSupply) {
                revert MaxSupplyReached();
            }
        }

        super._mint(to, quantity, _data, safe);
    }

    function _mintById(
        address to,
        uint256 id,
        bytes memory _data,
        bool safe
    ) internal override {
        unchecked {
            if (_maxSupply > 0 && totalMinted() >= _maxSupply) {
                revert MaxSupplyReached();
            }
        }

        super._mintById(to, id, _data, safe);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721A, ERC721AMetadata)
        returns (string memory)
    {
        return ERC721AMetadata.tokenURI(tokenId);
    }

    function _baseURI()
        internal
        view
        virtual
        override(ERC721A, ERC721AMetadata)
        returns (string memory)
    {
        return ERC721AMetadata._baseURI();
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, ERC2981Base, Administration)
        returns (bool)
    {
        return
            interfaceId == type(ERC721AMetadata).interfaceId ||
            interfaceId == type(ERC2981Base).interfaceId ||
            interfaceId == type(ERC2981ContractWideRoyalties).interfaceId ||
            interfaceId == type(Administration).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 3 of 19 : ERC721A.sol
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error MintInvalidId();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

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

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    // The number of tokens minted preceding _startTokenId.
    uint256 internal _precedingCounter;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to preceding mint flag
    mapping(uint256 => bool) private _precedingMint;

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

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

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return
                _currentIndex -
                _burnCounter -
                _startTokenId() +
                _precedingCounter;
        }
    }

    /**
     * @dev Returns the total amount of tokens burned in the contract.
     */
    function totalBurned() public view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function totalMinted() public view returns (uint256) {
        return _totalMinted();
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId() + _precedingCounter;
        }
    }

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

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint` or `_mintedById`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        // return _ownershipOf(tokenId).addr != address(0);
        return
            ((_startTokenId() <= tokenId && tokenId < _currentIndex) ||
                _precedingMint[tokenId]) && !_ownerships[tokenId].burned;
    }

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

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

    /**
     * @dev Safely mints `id` token and transfers to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `id` must be less than _startTokenId.
     *
     * Emits a {Transfer} event.
     */
    function _safeMintById(
        address to,
        uint256 id,
        bytes memory _data
    ) internal {
        _mintById(to, id, _data, true);
    }

    /**
     * @dev Mint `id` token and transfer to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `id` must be less than _startTokenId.
     *
     * Emits a {Transfer} event.
     */
    function _mintById(
        address to,
        uint256 id,
        bytes memory _data,
        bool safe
    ) internal virtual {
        if (id >= _startTokenId()) revert MintInvalidId();
        if (to == address(0)) revert MintToZeroAddress();

        _beforeTokenTransfers(address(0), to, id, 1);

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

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

            // Set prededing mint to true for `id`
            _precedingMint[id] = true;

            // If `id` was previously burned, perform `move`
            if (_ownerships[id].burned == true) {
                _ownerships[id].burned == false;
                AddressData storage addressData = _addressData[to];
                addressData.numberBurned--;
                _burnCounter--;
            } else {
                // Track the number of tokens minted priot to the start token id
                _precedingCounter++;
            }

            if (safe && to.isContract()) {
                emit Transfer(address(0), to, id);
                if (
                    !_checkContractOnERC721Received(address(0), to, id, _data)
                ) {
                    revert TransferToNonERC721ReceiverImplementer();
                }
            } else {
                emit Transfer(address(0), to, id);
            }
        }
        _afterTokenTransfers(address(0), to, id, 1);
    }

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

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

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

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

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (safe && to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (
                        !_checkContractOnERC721Received(
                            address(0),
                            to,
                            updatedIndex++,
                            _data
                        )
                    ) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex != end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex != end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

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

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

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

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

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

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try
            IERC721Receiver(to).onERC721Received(
                _msgSender(),
                from,
                tokenId,
                _data
            )
        returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

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

File 4 of 19 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, "ERC2981Royalties: Too high");
        _royalties = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 5 of 19 : ERC721AMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../token/721A/ERC721A.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

/**
 * @dev ERC721A token with storage based token URI management.
 */
abstract contract ERC721AMetadata is ERC721A {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    string private _uri;
    string private _contractURI;

    function contractURI() public view virtual returns (string memory) {
        return _contractURI;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is a token URI, return it
        if (bytes(_tokenURI).length > 0) return _tokenURI;

        return super.tokenURI(tokenId);
    }

    // INTERNAL FUNCTIONS

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

    function _setBaseURI(string memory uri) internal virtual {
        _uri = uri;
    }

    function _setContractURI(string memory contractURI_) internal virtual {
        _contractURI = contractURI_;
    }

    function _setTokenURI(uint256 tokenId, string memory _tokenURI)
        internal
        virtual
    {
        require(_exists(tokenId), "URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }
}

File 6 of 19 : Administration.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

error InsufficientAccess();
error InvalidOwner();

abstract contract Administration is AccessControl, Pausable {
    address private _owner;

    bytes32 public constant ADMIN = keccak256("ADMIN");
    bytes32 public constant MINTER = keccak256("MINTER");

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

    modifier isAdmin() {
        if (!hasRole(ADMIN, _msgSender())) {
            revert InsufficientAccess();
        }
        _;
    }

    modifier isMinter() {
        if (!hasRole(MINTER, _msgSender())) {
            revert InsufficientAccess();
        }
        _;
    }

    modifier isGlobalAdmin() {
        if (!hasRole(DEFAULT_ADMIN_ROLE, _msgSender())) {
            revert InsufficientAccess();
        }
        _;
    }

    constructor(address globalAdmin) {
        if (_msgSender() != globalAdmin)
            _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(DEFAULT_ADMIN_ROLE, globalAdmin);
        _setupRole(ADMIN, globalAdmin);
        _setupRole(MINTER, globalAdmin);
        _setOwner(globalAdmin);
    }

    function pause() public isGlobalAdmin {
        _pause();
    }

    function unpause() public isGlobalAdmin {
        _unpause();
    }

    function owner() public view returns (address) {
        return _owner;
    }

    function transferOwnership(address newOwner) public virtual isAdmin {
        if (newOwner == address(0)) revert InvalidOwner();
        _setOwner(newOwner);
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 15 of 19 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IERC2981Royalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

File 16 of 19 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

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

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

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

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"string","name":"contractURI","type":"string"},{"internalType":"address","name":"royaltyRecipient","type":"address"},{"internalType":"uint24","name":"royaltyValue","type":"uint24"},{"internalType":"uint256","name":"swapPrice_","type":"uint256"},{"internalType":"address","name":"juice_","type":"address"},{"internalType":"address","name":"op_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InsufficientAccess","type":"error"},{"inputs":[],"name":"InvalidBatchRequest","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MaxSupplyUnchangeable","type":"error"},{"inputs":[],"name":"MintInvalidId","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MustApproveContract","type":"error"},{"inputs":[],"name":"MustBeOwner","type":"error"},{"inputs":[],"name":"MustSetPinaverse","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"PaymentFailed","type":"error"},{"inputs":[],"name":"TooManyForRequest","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"tokenId","type":"uint256"}],"name":"burn","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":"exit","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":[],"name":"getPinaverseAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSwapPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"hasReceivedJuice","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintById","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"nonces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pinaverse","type":"address"}],"name":"setPinaverse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"swapPrice_","type":"uint256"}],"name":"setSwapPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"}],"name":"setTokenURI","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":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"swapBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162003f7738038062003f7783398101604081905262000034916200052d565b6040518060400160405280601481526020017f50696e6176657273652050696e656170706c6573000000000000000000000000815250604051806040016040528060018152602001600760fc1b8152508888888862000098620001da60201b60201c565b8087878160039080519060200190620000b3929190620003b7565b508051620000c9906004906020840190620003b7565b5050610de460015550600f805460ff19169055336001600160a01b03821614620000fa57620000fa600033620001de565b62000107600082620001de565b620001337fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282620001de565b6200015f7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc982620001de565b6200016a81620001ee565b50620001768562000248565b62000181846200025d565b620001928362ffffff841662000272565b5050506015969096555050601280546001600160a01b039485166001600160a01b03199182161790915560138054939094169216919091179091555062000644945050505050565b3390565b620001ea828262000313565b5050565b600f80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620001ea90600b906020840190620003b7565b8051620001ea90600c906020840190620003b7565b612710811115620002c95760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff9091166020909201829052600d8054600160a01b9093026001600160b81b0319909316909117919091179055565b6000828152600e602090815260408083206001600160a01b038516845290915290205460ff16620001ea576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003733390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620003c590620005f1565b90600052602060002090601f016020900481019282620003e9576000855562000434565b82601f106200040457805160ff191683800117855562000434565b8280016001018555821562000434579182015b828111156200043457825182559160200191906001019062000417565b506200044292915062000446565b5090565b5b8082111562000442576000815560010162000447565b80516001600160a01b03811681146200047557600080fd5b919050565b600082601f8301126200048b578081fd5b81516001600160401b0380821115620004a857620004a86200062e565b604051601f8301601f19908116603f01168101908282118183101715620004d357620004d36200062e565b81604052838152602092508683858801011115620004ef578485fd5b8491505b83821015620005125785820183015181830184015290820190620004f3565b838211156200052357848385830101525b9695505050505050565b600080600080600080600060e0888a03121562000548578283fd5b87516001600160401b03808211156200055f578485fd5b6200056d8b838c016200047a565b985060208a015191508082111562000583578485fd5b50620005928a828b016200047a565b965050620005a3604089016200045d565b9450606088015162ffffff81168114620005bb578384fd5b60808901519094509250620005d360a089016200045d565b9150620005e360c089016200045d565b905092959891949750929550565b600181811c908216806200060657607f821691505b602082108114156200062857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61392380620006546000396000f3fe6080604052600436106103035760003560e01c80637f8661a111610190578063b88d4fde116100dc578063d89135cd11610095578063e985e9c51161006f578063e985e9c514610903578063f2fde38b1461094c578063fc22e8ec1461096c578063fe6d81241461099c57600080fd5b8063d89135cd146108c4578063db0e973a146108d9578063e8a3d485146108ee57600080fd5b8063b88d4fde1461081c578063c6e6c8711461083c578063c87b56dd1461085c578063d4f1315b1461087c578063d547741f1461088f578063d5abeb01146108af57600080fd5b806394b918de11610149578063a217fddf11610123578063a217fddf146107b4578063a22cb465146107c9578063a2309ff8146107e9578063a626c7ce146107fe57600080fd5b806394b918de1461075c57806395d89b411461076f5780639e317f121461078457600080fd5b80637f8661a1146106a45780638456cb59146106c457806389476069146106d95780638da5cb5b146106f957806391d148541461071c578063938e3d7b1461073c57600080fd5b80633ccfd60b1161024f5780635c975abb116102085780636ebdd69a116101e25780636ebdd69a146106245780636f8b44b01461064457806370a08231146106645780637c88e3d91461068457600080fd5b80635c975abb146105cc5780636352211e146105e45780636b3b48101461060457600080fd5b80633ccfd60b146105225780633f4ba83a1461053757806340c10f191461054c57806342842e0e1461056c57806342966c681461058c57806355f804b3146105ac57600080fd5b806318160ddd116102bc5780632a0acc6a116102965780632a0acc6a146104815780632a55205a146104a35780632f2ff15d146104e257806336568abe1461050257600080fd5b806318160ddd1461040057806323b872dd14610431578063248a9ca31461045157600080fd5b806301ffc9a71461030f57806306fdde0314610344578063081812fc14610366578063095ea7b31461039e5780630f041ff6146103c0578063162094c4146103e057600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b5061032f61032a366004613489565b6109be565b60405190151581526020015b60405180910390f35b34801561035057600080fd5b50610359610a3a565b60405161033b9190613673565b34801561037257600080fd5b5061038661038136600461344d565b610acc565b6040516001600160a01b03909116815260200161033b565b3480156103aa57600080fd5b506103be6103b936600461331c565b610b10565b005b3480156103cc57600080fd5b506103be6103db36600461331c565b610b9e565b3480156103ec57600080fd5b506103be6103fb36600461350b565b610c1f565b34801561040c57600080fd5b506104236000546002546001540301610de3190190565b60405190815260200161033b565b34801561043d57600080fd5b506103be61044c3660046131ff565b610c5e565b34801561045d57600080fd5b5061042361046c36600461344d565b6000908152600e602052604090206001015490565b34801561048d57600080fd5b506104236000805160206138ae83398151915281565b3480156104af57600080fd5b506104c36104be366004613545565b610c69565b604080516001600160a01b03909316835260208301919091520161033b565b3480156104ee57600080fd5b506103be6104fd366004613465565b610cbe565b34801561050e57600080fd5b506103be61051d366004613465565b610ce4565b34801561052e57600080fd5b506103be610d5e565b34801561054357600080fd5b506103be610df8565b34801561055857600080fd5b506103be61056736600461331c565b610e2a565b34801561057857600080fd5b506103be6105873660046131ff565b610e9e565b34801561059857600080fd5b506103be6105a736600461344d565b610eb9565b3480156105b857600080fd5b506103be6105c73660046134c1565b610ec4565b3480156105d857600080fd5b50600f5460ff1661032f565b3480156105f057600080fd5b506103866105ff36600461344d565b610f02565b34801561061057600080fd5b506103be61061f36600461344d565b610f14565b34801561063057600080fd5b506103be61063f36600461318f565b610f4e565b34801561065057600080fd5b506103be61065f36600461344d565b610fa5565b34801561067057600080fd5b5061042361067f36600461318f565b611000565b34801561069057600080fd5b506103be61069f366004613347565b61104e565b3480156106b057600080fd5b506103be6106bf36600461344d565b611146565b3480156106d057600080fd5b506103be61125c565b3480156106e557600080fd5b506103be6106f436600461318f565b61128c565b34801561070557600080fd5b50600f5461010090046001600160a01b0316610386565b34801561072857600080fd5b5061032f610737366004613465565b6113f2565b34801561074857600080fd5b506103be6107573660046134c1565b61141d565b6103be61076a36600461344d565b61145b565b34801561077b57600080fd5b5061035961159f565b34801561079057600080fd5b5061032f61079f36600461344d565b60116020526000908152604090205460ff1681565b3480156107c057600080fd5b50610423600081565b3480156107d557600080fd5b506103be6107e43660046132bb565b6115ae565b3480156107f557600080fd5b50610423611644565b34801561080a57600080fd5b506014546001600160a01b0316610386565b34801561082857600080fd5b506103be61083736600461323f565b61165d565b34801561084857600080fd5b506103be6108573660046132e8565b6116ae565b34801561086857600080fd5b5061035961087736600461344d565b6116f2565b6103be61088a3660046133ff565b6116fd565b34801561089b57600080fd5b506103be6108aa366004613465565b611920565b3480156108bb57600080fd5b50601054610423565b3480156108d057600080fd5b50600254610423565b3480156108e557600080fd5b50601554610423565b3480156108fa57600080fd5b50610359611946565b34801561090f57600080fd5b5061032f61091e3660046131c7565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561095857600080fd5b506103be61096736600461318f565b611955565b34801561097857600080fd5b5061032f61098736600461344d565b60009081526016602052604090205460ff1690565b3480156109a857600080fd5b5061042360008051602061388e83398151915281565b60006001600160e01b0319821663041b104b60e31b14806109ef57506001600160e01b031982166301ffc9a760e01b145b80610a0a57506001600160e01b0319821663152a902d60e11b145b80610a2557506001600160e01b031982166308eee7ad60e11b145b80610a345750610a34826119ba565b92915050565b606060038054610a49906137a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a75906137a8565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000610ad7826119fa565b610af4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610b1b82610f02565b9050806001600160a01b0316836001600160a01b03161415610b505760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b705750610b6e813361091e565b155b15610b8e576040516367d9dca160e11b815260040160405180910390fd5b610b99838383611a4d565b505050565b610bb660008051602061388e833981519152336113f2565b610bd357604051630318bf7160e11b815260040160405180910390fd5b600f5460ff1615610bff5760405162461bcd60e51b8152600401610bf690613686565b60405180910390fd5b610c1b8282604051806020016040528060008152506001611aa9565b5050565b610c376000805160206138ae833981519152336113f2565b610c5457604051630318bf7160e11b815260040160405180910390fd5b610c1b8282611aee565b610b99838383611b62565b60408051808201909152600d546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610caa908661372f565b610cb4919061371b565b9150509250929050565b6000828152600e6020526040902060010154610cda8133611d3b565b610b998383611d9f565b6001600160a01b0381163314610d545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bf6565b610c1b8282611e25565b610d766000805160206138ae833981519152336113f2565b610d9357604051630318bf7160e11b815260040160405180910390fd5b6014546001600160a01b0316610dbc57604051634725e8d760e11b815260040160405180910390fd5b6014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610df5573d6000803e3d6000fd5b50565b610e036000336113f2565b610e2057604051630318bf7160e11b815260040160405180910390fd5b610e28611e8c565b565b610e4260008051602061388e833981519152336113f2565b610e5f57604051630318bf7160e11b815260040160405180910390fd5b600f5460ff1615610e825760405162461bcd60e51b8152600401610bf690613686565b610c1b8282604051806020016040528060008152506001611f1f565b610b998383836040518060200160405280600081525061165d565b610df5816001611f64565b610edc6000805160206138ae833981519152336113f2565b610ef957604051630318bf7160e11b815260040160405180910390fd5b610df581612118565b6000610f0d8261212b565b5192915050565b610f2c6000805160206138ae833981519152336113f2565b610f4957604051630318bf7160e11b815260040160405180910390fd5b601555565b610f666000805160206138ae833981519152336113f2565b610f8357604051630318bf7160e11b815260040160405180910390fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610fbd6000805160206138ae833981519152336113f2565b610fda57604051630318bf7160e11b815260040160405180910390fd5b60105415610ffb5760405163fafbb43760e01b815260040160405180910390fd5b601055565b60006001600160a01b038216611029576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b61106660008051602061388e833981519152336113f2565b61108357604051630318bf7160e11b815260040160405180910390fd5b600f5460ff16156110a65760405162461bcd60e51b8152600401610bf690613686565b80518251146110c8576040516355ca07b760e11b815260040160405180910390fd5b60005b8251811015610b995761113e8382815181106110f757634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061111f57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806020016040528060008152506001611f1f565b6001016110cb565b600f5460ff16156111695760405162461bcd60e51b8152600401610bf690613686565b3361117382610f02565b6001600160a01b03161461119a5760405163587bee2b60e11b815260040160405180910390fd5b33600090815260096020908152604080832030845290915290205460ff16156111d657604051636b73ff7960e11b815260040160405180910390fd5b6111df8161226c565b6013546001600160a01b03166323b872dd30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b15801561124157600080fd5b505af1158015611255573d6000803e3d6000fd5b5050505050565b6112676000336113f2565b61128457604051630318bf7160e11b815260040160405180910390fd5b610e28612277565b6112a46000805160206138ae833981519152336113f2565b6112c157604051630318bf7160e11b815260040160405180910390fd5b6014546001600160a01b03166112ea57604051634725e8d760e11b815260040160405180910390fd5b6014546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb92919091169083906370a082319060240160206040518083038186803b15801561133c57600080fd5b505afa158015611350573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137491906134f3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156113ba57600080fd5b505af11580156113ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b999190613431565b6000918252600e602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6114356000805160206138ae833981519152336113f2565b61145257604051630318bf7160e11b815260040160405180910390fd5b610df5816122cf565b600f5460ff161561147e5760405162461bcd60e51b8152600401610bf690613686565b60155434146114a0576040516307a4ced160e51b815260040160405180910390fd5b6013546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156114f757600080fd5b505afa15801561150b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152f9190613431565b61154c57604051636b73ff7960e11b815260040160405180910390fd5b61155633826122e2565b60008181526016602052604090205460ff161515600114156115755750565b6000818152601660205260409020805460ff19166001179055610df56115983390565b600161240f565b606060048054610a49906137a8565b6001600160a01b0382163314156115d85760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061165860005460015401610de3190190565b905090565b611668848484611b62565b6001600160a01b0383163b1515801561168a575061168884848484612545565b155b156116a8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116c66000805160206138ae833981519152336113f2565b6116e357604051630318bf7160e11b815260040160405180910390fd5b610c1b828262ffffff1661263d565b6060610a34826126d9565b600f5460ff16156117205760405162461bcd60e51b8152600401610bf690613686565b600a815111156117435760405163526f2d2960e01b815260040160405180910390fd5b80516015548190810234811461176c576040516307a4ced160e51b815260040160405180910390fd5b506013546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156117c457600080fd5b505afa1580156117d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117fc9190613431565b61181957604051636b73ff7960e11b815260040160405180910390fd5b60005b82811015611915576118553385838151811061184857634e487b7160e01b600052603260045260246000fd5b60200260200101516122e2565b6016600085838151811061187957634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff161515600114156118af57816118ab81613791565b9250505b6001601660008684815181106118d557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061190d906137e3565b91505061181c565b50610b99338261240f565b6000828152600e602052604090206001015461193c8133611d3b565b610b998383611e25565b6060600c8054610a49906137a8565b61196d6000805160206138ae833981519152336113f2565b61198a57604051630318bf7160e11b815260040160405180910390fd5b6001600160a01b0381166119b1576040516349e27cff60e01b815260040160405180910390fd5b610df5816127e9565b60006001600160e01b0319821663da8def7360e01b14806119eb57506001600160e01b03198216635c975abb60e01b145b80610a345750610a3482612843565b600081610de411158015611a0f575060015482105b80611a28575060008281526005602052604090205460ff165b8015610a34575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000601054118015611ac45750601054611ac1611644565b10155b15611ae25760405163d05cb60960e01b815260040160405180910390fd5b6116a884848484612868565b611af7826119fa565b611b435760405162461bcd60e51b815260206004820152601c60248201527f55524920736574206f66206e6f6e6578697374656e7420746f6b656e000000006044820152606401610bf6565b6000828152600a602090815260409091208251610b9992840190613011565b6000611b6d8261212b565b9050836001600160a01b031681600001516001600160a01b031614611ba45760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bc25750611bc2853361091e565b80611bdd575033611bd284610acc565b6001600160a01b0316145b905080611bfd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c2457604051633a954ecd60e21b815260040160405180910390fd5b611c3060008487611a4d565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611d04576001548214611d0457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206138ce83398151915260405160405180910390a4611255565b611d4582826113f2565b610c1b57611d5d816001600160a01b03166014612a67565b611d68836020612a67565b604051602001611d799291906135c1565b60408051601f198184030181529082905262461bcd60e51b8252610bf691600401613673565b611da982826113f2565b610c1b576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611de13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e2f82826113f2565b15610c1b576000828152600e602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600f5460ff16611ed55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bf6565b600f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000601054118015611f3a5750601054611f37611644565b10155b15611f585760405163d05cb60960e01b815260040160405180910390fd5b6116a884848484612c48565b6000611f6f8361212b565b80519091508215611fd5576000336001600160a01b0383161480611f985750611f98823361091e565b80611fb3575033611fa886610acc565b6001600160a01b0316145b905080611fd357604051632ce44b5f60e11b815260040160405180910390fd5b505b611fe160008583611a4d565b6001600160a01b0380821660008181526007602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526006909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166120df5760015482146120df57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206138ce833981519152908390a450506002805460010190555050565b8051610c1b90600b906020840190613011565b60408051606081018252600080825260208201819052918101919091528180610de41115801561215c575060015481105b80612175575060008181526005602052604090205460ff165b1561225357600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122515780516001600160a01b0316156121e8579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561224c579392505050565b6121e8565b505b604051636f96cda160e11b815260040160405180910390fd5b610df5816000611f64565b600f5460ff161561229a5760405162461bcd60e51b8152600401610bf690613686565b600f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f023390565b8051610c1b90600c906020840190613011565b6013546040516331a9108f60e11b8152600481018390526001600160a01b03848116921690636352211e9060240160206040518083038186803b15801561232857600080fd5b505afa15801561233c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236091906131ab565b6001600160a01b0316146123875760405163587bee2b60e11b815260040160405180910390fd5b6013546040516323b872dd60e01b81526001600160a01b03848116600483015230602483015260448201849052909116906323b872dd90606401600060405180830381600087803b1580156123db57600080fd5b505af11580156123ef573d6000803e3d6000fd5b50505050610c1b8282604051806020016040528060008152506000611aa9565b601260009054906101000a90046001600160a01b03166001600160a01b031663499dc7cc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561245d57600080fd5b505afa158015612471573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124959190613431565b156125055760125460405163d869d3e560e01b81526001600160a01b038481166004830152602482018490529091169063d869d3e5906044015b600060405180830381600087803b1580156124e957600080fd5b505af11580156124fd573d6000803e3d6000fd5b505050505050565b601254604051630ab714fb60e11b81526001600160a01b03848116600483015260006024830152604482018490529091169063156e29f6906064016124cf565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061257a903390899088908890600401613636565b602060405180830381600087803b15801561259457600080fd5b505af19250505080156125c4575060408051601f3d908101601f191682019092526125c1918101906134a5565b60015b61261f573d8080156125f2576040519150601f19603f3d011682016040523d82523d6000602084013e6125f7565b606091505b508051612617576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b61271081111561268f5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610bf6565b604080518082019091526001600160a01b0390921680835262ffffff9091166020909201829052600d8054600160a01b9093026001600160b81b0319909316909117919091179055565b60606126e4826119fa565b6127305760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bf6565b6000828152600a602052604081208054612749906137a8565b80601f0160208091040260200160405190810160405280929190818152602001828054612775906137a8565b80156127c25780601f10612797576101008083540402835291602001916127c2565b820191906000526020600020905b8154815290600101906020018083116127a557829003601f168201915b505050505090506000815111156127d95792915050565b6127e283612de6565b9392505050565b600f80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160e01b03198216637965db0b60e01b1480610a345750610a3482612e6a565b610de4831061288a57604051630db70b0b60e21b815260040160405180910390fd5b6001600160a01b0384166128b057604051622e076360e81b815260040160405180910390fd5b6001600160a01b03841660008181526007602090815260408083208054600160401b6001600160401b038083166001908101821667ffffffffffffffff19851681178490048316820183169093026001600160801b0319909416909217929092179092558885526006808552838620805442909316600160a01b026001600160e01b03199093169097179190911786556005845291909320805460ff19168417905590529054600160e01b900460ff16151514156129c2576001600160a01b038416600090815260076020526040902080546000196001600160401b03600160801b808404821683019091160267ffffffffffffffff60801b19909216919091179091556002805490910190556129cc565b6000805460010190555b8080156129e257506001600160a01b0384163b15155b15612a3c5760405183906001600160a01b038616906000906000805160206138ce833981519152908290a4612a1a6000858585612545565b612a37576040516368d2bf6b60e11b815260040160405180910390fd5b6116a8565b60405183906001600160a01b038616906000906000805160206138ce833981519152908290a46116a8565b60606000612a7683600261372f565b612a81906002613703565b6001600160401b03811115612aa657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad0576020820181803683370190505b509050600360fc1b81600081518110612af957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b3657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612b5a84600261372f565b612b65906001613703565b90505b6001811115612bf9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ba757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612bcb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612bf281613791565b9050612b68565b5083156127e25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bf6565b6001546001600160a01b038516612c7157604051622e076360e81b815260040160405180910390fd5b83612c8f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d3257506001600160a01b0387163b15155b15612da9575b60405182906001600160a01b038916906000906000805160206138ce833981519152908290a4612d716000888480600101955088612545565b612d8e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d38578260015414612da457600080fd5b612ddd565b5b6040516001830192906001600160a01b038916906000906000805160206138ce833981519152908290a480821415612daa575b50600155611255565b6060612df1826119fa565b612e0e57604051630a14c4b560e41b815260040160405180910390fd5b6000612e18612e8f565b9050805160001415612e3957604051806020016040528060008152506127e2565b80612e4384612e99565b604051602001612e54929190613592565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663152a902d60e11b1480610a345750610a3482612fb2565b6060611658613002565b606081612ebd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ee75780612ed1816137e3565b9150612ee09050600a8361371b565b9150612ec1565b6000816001600160401b03811115612f0f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f39576020820181803683370190505b5090505b841561263557612f4e60018361374e565b9150612f5b600a866137fe565b612f66906030613703565b60f81b818381518110612f8957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612fab600a8661371b565b9450612f3d565b60006001600160e01b031982166380ac58cd60e01b1480612fe357506001600160e01b03198216635b5e139f60e01b145b80610a3457506301ffc9a760e01b6001600160e01b0319831614610a34565b6060600b8054610a49906137a8565b82805461301d906137a8565b90600052602060002090601f01602090048101928261303f5760008555613085565b82601f1061305857805160ff1916838001178555613085565b82800160010185558215613085579182015b8281111561308557825182559160200191906001019061306a565b50613091929150613095565b5090565b5b808211156130915760008155600101613096565b60006001600160401b038311156130c3576130c361383e565b6130d6601f8401601f19166020016136b0565b90508281528383830111156130ea57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613111578081fd5b81356020613126613121836136e0565b6136b0565b80838252828201915082860187848660051b8901011115613145578586fd5b855b8581101561316357813584529284019290840190600101613147565b5090979650505050505050565b600082601f830112613180578081fd5b6127e2838335602085016130aa565b6000602082840312156131a0578081fd5b81356127e281613854565b6000602082840312156131bc578081fd5b81516127e281613854565b600080604083850312156131d9578081fd5b82356131e481613854565b915060208301356131f481613854565b809150509250929050565b600080600060608486031215613213578081fd5b833561321e81613854565b9250602084013561322e81613854565b929592945050506040919091013590565b60008060008060808587031215613254578081fd5b843561325f81613854565b9350602085013561326f81613854565b92506040850135915060608501356001600160401b03811115613290578182fd5b8501601f810187136132a0578182fd5b6132af878235602084016130aa565b91505092959194509250565b600080604083850312156132cd578182fd5b82356132d881613854565b915060208301356131f481613869565b600080604083850312156132fa578182fd5b823561330581613854565b9150602083013562ffffff811681146131f4578182fd5b6000806040838503121561332e578182fd5b823561333981613854565b946020939093013593505050565b60008060408385031215613359578182fd5b82356001600160401b038082111561336f578384fd5b818501915085601f830112613382578384fd5b81356020613392613121836136e0565b8083825282820191508286018a848660051b89010111156133b1578889fd5b8896505b848710156133dc5780356133c881613854565b8352600196909601959183019183016133b5565b50965050860135925050808211156133f2578283fd5b50610cb485828601613101565b600060208284031215613410578081fd5b81356001600160401b03811115613425578182fd5b61263584828501613101565b600060208284031215613442578081fd5b81516127e281613869565b60006020828403121561345e578081fd5b5035919050565b60008060408385031215613477578182fd5b8235915060208301356131f481613854565b60006020828403121561349a578081fd5b81356127e281613877565b6000602082840312156134b6578081fd5b81516127e281613877565b6000602082840312156134d2578081fd5b81356001600160401b038111156134e7578182fd5b61263584828501613170565b600060208284031215613504578081fd5b5051919050565b6000806040838503121561351d578182fd5b8235915060208301356001600160401b03811115613539578182fd5b610cb485828601613170565b60008060408385031215613557578182fd5b50508035926020909101359150565b6000815180845261357e816020860160208601613765565b601f01601f19169290920160200192915050565b600083516135a4818460208801613765565b8351908301906135b8818360208801613765565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135f9816017850160208801613765565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161362a816028840160208801613765565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061366990830184613566565b9695505050505050565b6020815260006127e26020830184613566565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156136d8576136d861383e565b604052919050565b60006001600160401b038211156136f9576136f961383e565b5060051b60200190565b6000821982111561371657613716613812565b500190565b60008261372a5761372a613828565b500490565b600081600019048311821515161561374957613749613812565b500290565b60008282101561376057613760613812565b500390565b60005b83811015613780578181015183820152602001613768565b838111156116a85750506000910152565b6000816137a0576137a0613812565b506000190190565b600181811c908216806137bc57607f821691505b602082108114156137dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137f7576137f7613812565b5060010190565b60008261380d5761380d613828565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df557600080fd5b8015158114610df557600080fd5b6001600160e01b031981168114610df557600080fdfef0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200c9d71f0de52d016d74842f970562852f9ac3083eeb13a3af3e64f6adab24a3664736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002aa1efb94e0000000000000000000000000000e5c65ab5b67e6c9c4341a9e835bebd63285c4c8a00000000000000000000000085f06f0dc7ac62f006ab09227e81709b7c39f50c000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166796265696162326b61616d6336776e716c78656571776c346e69787065746c61646679626236346e7a746f647468723374367171637567612f00000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166796265696162326b61616d6336776e716c78656571776c346e69787065746c61646679626236346e7a746f647468723374367171637567612f00000000000000

Deployed Bytecode

0x6080604052600436106103035760003560e01c80637f8661a111610190578063b88d4fde116100dc578063d89135cd11610095578063e985e9c51161006f578063e985e9c514610903578063f2fde38b1461094c578063fc22e8ec1461096c578063fe6d81241461099c57600080fd5b8063d89135cd146108c4578063db0e973a146108d9578063e8a3d485146108ee57600080fd5b8063b88d4fde1461081c578063c6e6c8711461083c578063c87b56dd1461085c578063d4f1315b1461087c578063d547741f1461088f578063d5abeb01146108af57600080fd5b806394b918de11610149578063a217fddf11610123578063a217fddf146107b4578063a22cb465146107c9578063a2309ff8146107e9578063a626c7ce146107fe57600080fd5b806394b918de1461075c57806395d89b411461076f5780639e317f121461078457600080fd5b80637f8661a1146106a45780638456cb59146106c457806389476069146106d95780638da5cb5b146106f957806391d148541461071c578063938e3d7b1461073c57600080fd5b80633ccfd60b1161024f5780635c975abb116102085780636ebdd69a116101e25780636ebdd69a146106245780636f8b44b01461064457806370a08231146106645780637c88e3d91461068457600080fd5b80635c975abb146105cc5780636352211e146105e45780636b3b48101461060457600080fd5b80633ccfd60b146105225780633f4ba83a1461053757806340c10f191461054c57806342842e0e1461056c57806342966c681461058c57806355f804b3146105ac57600080fd5b806318160ddd116102bc5780632a0acc6a116102965780632a0acc6a146104815780632a55205a146104a35780632f2ff15d146104e257806336568abe1461050257600080fd5b806318160ddd1461040057806323b872dd14610431578063248a9ca31461045157600080fd5b806301ffc9a71461030f57806306fdde0314610344578063081812fc14610366578063095ea7b31461039e5780630f041ff6146103c0578063162094c4146103e057600080fd5b3661030a57005b600080fd5b34801561031b57600080fd5b5061032f61032a366004613489565b6109be565b60405190151581526020015b60405180910390f35b34801561035057600080fd5b50610359610a3a565b60405161033b9190613673565b34801561037257600080fd5b5061038661038136600461344d565b610acc565b6040516001600160a01b03909116815260200161033b565b3480156103aa57600080fd5b506103be6103b936600461331c565b610b10565b005b3480156103cc57600080fd5b506103be6103db36600461331c565b610b9e565b3480156103ec57600080fd5b506103be6103fb36600461350b565b610c1f565b34801561040c57600080fd5b506104236000546002546001540301610de3190190565b60405190815260200161033b565b34801561043d57600080fd5b506103be61044c3660046131ff565b610c5e565b34801561045d57600080fd5b5061042361046c36600461344d565b6000908152600e602052604090206001015490565b34801561048d57600080fd5b506104236000805160206138ae83398151915281565b3480156104af57600080fd5b506104c36104be366004613545565b610c69565b604080516001600160a01b03909316835260208301919091520161033b565b3480156104ee57600080fd5b506103be6104fd366004613465565b610cbe565b34801561050e57600080fd5b506103be61051d366004613465565b610ce4565b34801561052e57600080fd5b506103be610d5e565b34801561054357600080fd5b506103be610df8565b34801561055857600080fd5b506103be61056736600461331c565b610e2a565b34801561057857600080fd5b506103be6105873660046131ff565b610e9e565b34801561059857600080fd5b506103be6105a736600461344d565b610eb9565b3480156105b857600080fd5b506103be6105c73660046134c1565b610ec4565b3480156105d857600080fd5b50600f5460ff1661032f565b3480156105f057600080fd5b506103866105ff36600461344d565b610f02565b34801561061057600080fd5b506103be61061f36600461344d565b610f14565b34801561063057600080fd5b506103be61063f36600461318f565b610f4e565b34801561065057600080fd5b506103be61065f36600461344d565b610fa5565b34801561067057600080fd5b5061042361067f36600461318f565b611000565b34801561069057600080fd5b506103be61069f366004613347565b61104e565b3480156106b057600080fd5b506103be6106bf36600461344d565b611146565b3480156106d057600080fd5b506103be61125c565b3480156106e557600080fd5b506103be6106f436600461318f565b61128c565b34801561070557600080fd5b50600f5461010090046001600160a01b0316610386565b34801561072857600080fd5b5061032f610737366004613465565b6113f2565b34801561074857600080fd5b506103be6107573660046134c1565b61141d565b6103be61076a36600461344d565b61145b565b34801561077b57600080fd5b5061035961159f565b34801561079057600080fd5b5061032f61079f36600461344d565b60116020526000908152604090205460ff1681565b3480156107c057600080fd5b50610423600081565b3480156107d557600080fd5b506103be6107e43660046132bb565b6115ae565b3480156107f557600080fd5b50610423611644565b34801561080a57600080fd5b506014546001600160a01b0316610386565b34801561082857600080fd5b506103be61083736600461323f565b61165d565b34801561084857600080fd5b506103be6108573660046132e8565b6116ae565b34801561086857600080fd5b5061035961087736600461344d565b6116f2565b6103be61088a3660046133ff565b6116fd565b34801561089b57600080fd5b506103be6108aa366004613465565b611920565b3480156108bb57600080fd5b50601054610423565b3480156108d057600080fd5b50600254610423565b3480156108e557600080fd5b50601554610423565b3480156108fa57600080fd5b50610359611946565b34801561090f57600080fd5b5061032f61091e3660046131c7565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b34801561095857600080fd5b506103be61096736600461318f565b611955565b34801561097857600080fd5b5061032f61098736600461344d565b60009081526016602052604090205460ff1690565b3480156109a857600080fd5b5061042360008051602061388e83398151915281565b60006001600160e01b0319821663041b104b60e31b14806109ef57506001600160e01b031982166301ffc9a760e01b145b80610a0a57506001600160e01b0319821663152a902d60e11b145b80610a2557506001600160e01b031982166308eee7ad60e11b145b80610a345750610a34826119ba565b92915050565b606060038054610a49906137a8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a75906137a8565b8015610ac25780601f10610a9757610100808354040283529160200191610ac2565b820191906000526020600020905b815481529060010190602001808311610aa557829003601f168201915b5050505050905090565b6000610ad7826119fa565b610af4576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610b1b82610f02565b9050806001600160a01b0316836001600160a01b03161415610b505760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610b705750610b6e813361091e565b155b15610b8e576040516367d9dca160e11b815260040160405180910390fd5b610b99838383611a4d565b505050565b610bb660008051602061388e833981519152336113f2565b610bd357604051630318bf7160e11b815260040160405180910390fd5b600f5460ff1615610bff5760405162461bcd60e51b8152600401610bf690613686565b60405180910390fd5b610c1b8282604051806020016040528060008152506001611aa9565b5050565b610c376000805160206138ae833981519152336113f2565b610c5457604051630318bf7160e11b815260040160405180910390fd5b610c1b8282611aee565b610b99838383611b62565b60408051808201909152600d546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610caa908661372f565b610cb4919061371b565b9150509250929050565b6000828152600e6020526040902060010154610cda8133611d3b565b610b998383611d9f565b6001600160a01b0381163314610d545760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bf6565b610c1b8282611e25565b610d766000805160206138ae833981519152336113f2565b610d9357604051630318bf7160e11b815260040160405180910390fd5b6014546001600160a01b0316610dbc57604051634725e8d760e11b815260040160405180910390fd5b6014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610df5573d6000803e3d6000fd5b50565b610e036000336113f2565b610e2057604051630318bf7160e11b815260040160405180910390fd5b610e28611e8c565b565b610e4260008051602061388e833981519152336113f2565b610e5f57604051630318bf7160e11b815260040160405180910390fd5b600f5460ff1615610e825760405162461bcd60e51b8152600401610bf690613686565b610c1b8282604051806020016040528060008152506001611f1f565b610b998383836040518060200160405280600081525061165d565b610df5816001611f64565b610edc6000805160206138ae833981519152336113f2565b610ef957604051630318bf7160e11b815260040160405180910390fd5b610df581612118565b6000610f0d8261212b565b5192915050565b610f2c6000805160206138ae833981519152336113f2565b610f4957604051630318bf7160e11b815260040160405180910390fd5b601555565b610f666000805160206138ae833981519152336113f2565b610f8357604051630318bf7160e11b815260040160405180910390fd5b601480546001600160a01b0319166001600160a01b0392909216919091179055565b610fbd6000805160206138ae833981519152336113f2565b610fda57604051630318bf7160e11b815260040160405180910390fd5b60105415610ffb5760405163fafbb43760e01b815260040160405180910390fd5b601055565b60006001600160a01b038216611029576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b61106660008051602061388e833981519152336113f2565b61108357604051630318bf7160e11b815260040160405180910390fd5b600f5460ff16156110a65760405162461bcd60e51b8152600401610bf690613686565b80518251146110c8576040516355ca07b760e11b815260040160405180910390fd5b60005b8251811015610b995761113e8382815181106110f757634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061111f57634e487b7160e01b600052603260045260246000fd5b6020026020010151604051806020016040528060008152506001611f1f565b6001016110cb565b600f5460ff16156111695760405162461bcd60e51b8152600401610bf690613686565b3361117382610f02565b6001600160a01b03161461119a5760405163587bee2b60e11b815260040160405180910390fd5b33600090815260096020908152604080832030845290915290205460ff16156111d657604051636b73ff7960e11b815260040160405180910390fd5b6111df8161226c565b6013546001600160a01b03166323b872dd30336040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b15801561124157600080fd5b505af1158015611255573d6000803e3d6000fd5b5050505050565b6112676000336113f2565b61128457604051630318bf7160e11b815260040160405180910390fd5b610e28612277565b6112a46000805160206138ae833981519152336113f2565b6112c157604051630318bf7160e11b815260040160405180910390fd5b6014546001600160a01b03166112ea57604051634725e8d760e11b815260040160405180910390fd5b6014546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb92919091169083906370a082319060240160206040518083038186803b15801561133c57600080fd5b505afa158015611350573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137491906134f3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156113ba57600080fd5b505af11580156113ce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b999190613431565b6000918252600e602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6114356000805160206138ae833981519152336113f2565b61145257604051630318bf7160e11b815260040160405180910390fd5b610df5816122cf565b600f5460ff161561147e5760405162461bcd60e51b8152600401610bf690613686565b60155434146114a0576040516307a4ced160e51b815260040160405180910390fd5b6013546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156114f757600080fd5b505afa15801561150b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152f9190613431565b61154c57604051636b73ff7960e11b815260040160405180910390fd5b61155633826122e2565b60008181526016602052604090205460ff161515600114156115755750565b6000818152601660205260409020805460ff19166001179055610df56115983390565b600161240f565b606060048054610a49906137a8565b6001600160a01b0382163314156115d85760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600061165860005460015401610de3190190565b905090565b611668848484611b62565b6001600160a01b0383163b1515801561168a575061168884848484612545565b155b156116a8576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6116c66000805160206138ae833981519152336113f2565b6116e357604051630318bf7160e11b815260040160405180910390fd5b610c1b828262ffffff1661263d565b6060610a34826126d9565b600f5460ff16156117205760405162461bcd60e51b8152600401610bf690613686565b600a815111156117435760405163526f2d2960e01b815260040160405180910390fd5b80516015548190810234811461176c576040516307a4ced160e51b815260040160405180910390fd5b506013546001600160a01b031663e985e9c5336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b1580156117c457600080fd5b505afa1580156117d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117fc9190613431565b61181957604051636b73ff7960e11b815260040160405180910390fd5b60005b82811015611915576118553385838151811061184857634e487b7160e01b600052603260045260246000fd5b60200260200101516122e2565b6016600085838151811061187957634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528101919091526040016000205460ff161515600114156118af57816118ab81613791565b9250505b6001601660008684815181106118d557634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061190d906137e3565b91505061181c565b50610b99338261240f565b6000828152600e602052604090206001015461193c8133611d3b565b610b998383611e25565b6060600c8054610a49906137a8565b61196d6000805160206138ae833981519152336113f2565b61198a57604051630318bf7160e11b815260040160405180910390fd5b6001600160a01b0381166119b1576040516349e27cff60e01b815260040160405180910390fd5b610df5816127e9565b60006001600160e01b0319821663da8def7360e01b14806119eb57506001600160e01b03198216635c975abb60e01b145b80610a345750610a3482612843565b600081610de411158015611a0f575060015482105b80611a28575060008281526005602052604090205460ff165b8015610a34575050600090815260066020526040902054600160e01b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000601054118015611ac45750601054611ac1611644565b10155b15611ae25760405163d05cb60960e01b815260040160405180910390fd5b6116a884848484612868565b611af7826119fa565b611b435760405162461bcd60e51b815260206004820152601c60248201527f55524920736574206f66206e6f6e6578697374656e7420746f6b656e000000006044820152606401610bf6565b6000828152600a602090815260409091208251610b9992840190613011565b6000611b6d8261212b565b9050836001600160a01b031681600001516001600160a01b031614611ba45760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611bc25750611bc2853361091e565b80611bdd575033611bd284610acc565b6001600160a01b0316145b905080611bfd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611c2457604051633a954ecd60e21b815260040160405180910390fd5b611c3060008487611a4d565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600690945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116611d04576001548214611d0457805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03166000805160206138ce83398151915260405160405180910390a4611255565b611d4582826113f2565b610c1b57611d5d816001600160a01b03166014612a67565b611d68836020612a67565b604051602001611d799291906135c1565b60408051601f198184030181529082905262461bcd60e51b8252610bf691600401613673565b611da982826113f2565b610c1b576000828152600e602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611de13390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e2f82826113f2565b15610c1b576000828152600e602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600f5460ff16611ed55760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bf6565b600f805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6000601054118015611f3a5750601054611f37611644565b10155b15611f585760405163d05cb60960e01b815260040160405180910390fd5b6116a884848484612c48565b6000611f6f8361212b565b80519091508215611fd5576000336001600160a01b0383161480611f985750611f98823361091e565b80611fb3575033611fa886610acc565b6001600160a01b0316145b905080611fd357604051632ce44b5f60e11b815260040160405180910390fd5b505b611fe160008583611a4d565b6001600160a01b0380821660008181526007602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526006909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166120df5760015482146120df57805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416906000805160206138ce833981519152908390a450506002805460010190555050565b8051610c1b90600b906020840190613011565b60408051606081018252600080825260208201819052918101919091528180610de41115801561215c575060015481105b80612175575060008181526005602052604090205460ff165b1561225357600081815260066020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906122515780516001600160a01b0316156121e8579392505050565b5060001901600081815260066020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff161515928101929092521561224c579392505050565b6121e8565b505b604051636f96cda160e11b815260040160405180910390fd5b610df5816000611f64565b600f5460ff161561229a5760405162461bcd60e51b8152600401610bf690613686565b600f805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f023390565b8051610c1b90600c906020840190613011565b6013546040516331a9108f60e11b8152600481018390526001600160a01b03848116921690636352211e9060240160206040518083038186803b15801561232857600080fd5b505afa15801561233c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061236091906131ab565b6001600160a01b0316146123875760405163587bee2b60e11b815260040160405180910390fd5b6013546040516323b872dd60e01b81526001600160a01b03848116600483015230602483015260448201849052909116906323b872dd90606401600060405180830381600087803b1580156123db57600080fd5b505af11580156123ef573d6000803e3d6000fd5b50505050610c1b8282604051806020016040528060008152506000611aa9565b601260009054906101000a90046001600160a01b03166001600160a01b031663499dc7cc6040518163ffffffff1660e01b815260040160206040518083038186803b15801561245d57600080fd5b505afa158015612471573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124959190613431565b156125055760125460405163d869d3e560e01b81526001600160a01b038481166004830152602482018490529091169063d869d3e5906044015b600060405180830381600087803b1580156124e957600080fd5b505af11580156124fd573d6000803e3d6000fd5b505050505050565b601254604051630ab714fb60e11b81526001600160a01b03848116600483015260006024830152604482018490529091169063156e29f6906064016124cf565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061257a903390899088908890600401613636565b602060405180830381600087803b15801561259457600080fd5b505af19250505080156125c4575060408051601f3d908101601f191682019092526125c1918101906134a5565b60015b61261f573d8080156125f2576040519150601f19603f3d011682016040523d82523d6000602084013e6125f7565b606091505b508051612617576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b61271081111561268f5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610bf6565b604080518082019091526001600160a01b0390921680835262ffffff9091166020909201829052600d8054600160a01b9093026001600160b81b0319909316909117919091179055565b60606126e4826119fa565b6127305760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610bf6565b6000828152600a602052604081208054612749906137a8565b80601f0160208091040260200160405190810160405280929190818152602001828054612775906137a8565b80156127c25780601f10612797576101008083540402835291602001916127c2565b820191906000526020600020905b8154815290600101906020018083116127a557829003601f168201915b505050505090506000815111156127d95792915050565b6127e283612de6565b9392505050565b600f80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160e01b03198216637965db0b60e01b1480610a345750610a3482612e6a565b610de4831061288a57604051630db70b0b60e21b815260040160405180910390fd5b6001600160a01b0384166128b057604051622e076360e81b815260040160405180910390fd5b6001600160a01b03841660008181526007602090815260408083208054600160401b6001600160401b038083166001908101821667ffffffffffffffff19851681178490048316820183169093026001600160801b0319909416909217929092179092558885526006808552838620805442909316600160a01b026001600160e01b03199093169097179190911786556005845291909320805460ff19168417905590529054600160e01b900460ff16151514156129c2576001600160a01b038416600090815260076020526040902080546000196001600160401b03600160801b808404821683019091160267ffffffffffffffff60801b19909216919091179091556002805490910190556129cc565b6000805460010190555b8080156129e257506001600160a01b0384163b15155b15612a3c5760405183906001600160a01b038616906000906000805160206138ce833981519152908290a4612a1a6000858585612545565b612a37576040516368d2bf6b60e11b815260040160405180910390fd5b6116a8565b60405183906001600160a01b038616906000906000805160206138ce833981519152908290a46116a8565b60606000612a7683600261372f565b612a81906002613703565b6001600160401b03811115612aa657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad0576020820181803683370190505b509050600360fc1b81600081518110612af957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612b3657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612b5a84600261372f565b612b65906001613703565b90505b6001811115612bf9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612ba757634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612bcb57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612bf281613791565b9050612b68565b5083156127e25760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bf6565b6001546001600160a01b038516612c7157604051622e076360e81b815260040160405180910390fd5b83612c8f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260076020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600690925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612d3257506001600160a01b0387163b15155b15612da9575b60405182906001600160a01b038916906000906000805160206138ce833981519152908290a4612d716000888480600101955088612545565b612d8e576040516368d2bf6b60e11b815260040160405180910390fd5b80821415612d38578260015414612da457600080fd5b612ddd565b5b6040516001830192906001600160a01b038916906000906000805160206138ce833981519152908290a480821415612daa575b50600155611255565b6060612df1826119fa565b612e0e57604051630a14c4b560e41b815260040160405180910390fd5b6000612e18612e8f565b9050805160001415612e3957604051806020016040528060008152506127e2565b80612e4384612e99565b604051602001612e54929190613592565b6040516020818303038152906040529392505050565b60006001600160e01b0319821663152a902d60e11b1480610a345750610a3482612fb2565b6060611658613002565b606081612ebd5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ee75780612ed1816137e3565b9150612ee09050600a8361371b565b9150612ec1565b6000816001600160401b03811115612f0f57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f39576020820181803683370190505b5090505b841561263557612f4e60018361374e565b9150612f5b600a866137fe565b612f66906030613703565b60f81b818381518110612f8957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612fab600a8661371b565b9450612f3d565b60006001600160e01b031982166380ac58cd60e01b1480612fe357506001600160e01b03198216635b5e139f60e01b145b80610a3457506301ffc9a760e01b6001600160e01b0319831614610a34565b6060600b8054610a49906137a8565b82805461301d906137a8565b90600052602060002090601f01602090048101928261303f5760008555613085565b82601f1061305857805160ff1916838001178555613085565b82800160010185558215613085579182015b8281111561308557825182559160200191906001019061306a565b50613091929150613095565b5090565b5b808211156130915760008155600101613096565b60006001600160401b038311156130c3576130c361383e565b6130d6601f8401601f19166020016136b0565b90508281528383830111156130ea57600080fd5b828260208301376000602084830101529392505050565b600082601f830112613111578081fd5b81356020613126613121836136e0565b6136b0565b80838252828201915082860187848660051b8901011115613145578586fd5b855b8581101561316357813584529284019290840190600101613147565b5090979650505050505050565b600082601f830112613180578081fd5b6127e2838335602085016130aa565b6000602082840312156131a0578081fd5b81356127e281613854565b6000602082840312156131bc578081fd5b81516127e281613854565b600080604083850312156131d9578081fd5b82356131e481613854565b915060208301356131f481613854565b809150509250929050565b600080600060608486031215613213578081fd5b833561321e81613854565b9250602084013561322e81613854565b929592945050506040919091013590565b60008060008060808587031215613254578081fd5b843561325f81613854565b9350602085013561326f81613854565b92506040850135915060608501356001600160401b03811115613290578182fd5b8501601f810187136132a0578182fd5b6132af878235602084016130aa565b91505092959194509250565b600080604083850312156132cd578182fd5b82356132d881613854565b915060208301356131f481613869565b600080604083850312156132fa578182fd5b823561330581613854565b9150602083013562ffffff811681146131f4578182fd5b6000806040838503121561332e578182fd5b823561333981613854565b946020939093013593505050565b60008060408385031215613359578182fd5b82356001600160401b038082111561336f578384fd5b818501915085601f830112613382578384fd5b81356020613392613121836136e0565b8083825282820191508286018a848660051b89010111156133b1578889fd5b8896505b848710156133dc5780356133c881613854565b8352600196909601959183019183016133b5565b50965050860135925050808211156133f2578283fd5b50610cb485828601613101565b600060208284031215613410578081fd5b81356001600160401b03811115613425578182fd5b61263584828501613101565b600060208284031215613442578081fd5b81516127e281613869565b60006020828403121561345e578081fd5b5035919050565b60008060408385031215613477578182fd5b8235915060208301356131f481613854565b60006020828403121561349a578081fd5b81356127e281613877565b6000602082840312156134b6578081fd5b81516127e281613877565b6000602082840312156134d2578081fd5b81356001600160401b038111156134e7578182fd5b61263584828501613170565b600060208284031215613504578081fd5b5051919050565b6000806040838503121561351d578182fd5b8235915060208301356001600160401b03811115613539578182fd5b610cb485828601613170565b60008060408385031215613557578182fd5b50508035926020909101359150565b6000815180845261357e816020860160208601613765565b601f01601f19169290920160200192915050565b600083516135a4818460208801613765565b8351908301906135b8818360208801613765565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516135f9816017850160208801613765565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161362a816028840160208801613765565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061366990830184613566565b9695505050505050565b6020815260006127e26020830184613566565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b604051601f8201601f191681016001600160401b03811182821017156136d8576136d861383e565b604052919050565b60006001600160401b038211156136f9576136f961383e565b5060051b60200190565b6000821982111561371657613716613812565b500190565b60008261372a5761372a613828565b500490565b600081600019048311821515161561374957613749613812565b500290565b60008282101561376057613760613812565b500390565b60005b83811015613780578181015183820152602001613768565b838111156116a85750506000910152565b6000816137a0576137a0613812565b506000190190565b600181811c908216806137bc57607f821691505b602082108114156137dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156137f7576137f7613812565b5060010190565b60008261380d5761380d613828565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610df557600080fd5b8015158114610df557600080fd5b6001600160e01b031981168114610df557600080fdfef0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212200c9d71f0de52d016d74842f970562852f9ac3083eeb13a3af3e64f6adab24a3664736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002aa1efb94e0000000000000000000000000000e5c65ab5b67e6c9c4341a9e835bebd63285c4c8a00000000000000000000000085f06f0dc7ac62f006ab09227e81709b7c39f50c000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166796265696162326b61616d6336776e716c78656571776c346e69787065746c61646679626236346e7a746f647468723374367171637567612f00000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166796265696162326b61616d6336776e716c78656571776c346e69787065746c61646679626236346e7a746f647468723374367171637567612f00000000000000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://nftstorage.link/ipfs/bafybeiab2kaamc6wnqlxeeqwl4nixpetladfybb64nztodthr3t6qqcuga/
Arg [1] : contractURI (string): https://nftstorage.link/ipfs/bafybeiab2kaamc6wnqlxeeqwl4nixpetladfybb64nztodthr3t6qqcuga/
Arg [2] : royaltyRecipient (address): 0x0000000000000000000000000000000000000000
Arg [3] : royaltyValue (uint24): 0
Arg [4] : swapPrice_ (uint256): 12000000000000000
Arg [5] : juice_ (address): 0xe5C65ab5B67E6c9C4341A9E835Bebd63285c4C8a
Arg [6] : op_ (address): 0x85f06f0Dc7AC62f006Ab09227e81709B7C39F50C

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 000000000000000000000000000000000000000000000000002aa1efb94e0000
Arg [5] : 000000000000000000000000e5c65ab5b67e6c9c4341a9e835bebd63285c4c8a
Arg [6] : 00000000000000000000000085f06f0dc7ac62f006ab09227e81709b7c39f50c
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [8] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [9] : 796265696162326b61616d6336776e716c78656571776c346e69787065746c61
Arg [10] : 646679626236346e7a746f647468723374367171637567612f00000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [12] : 68747470733a2f2f6e667473746f726167652e6c696e6b2f697066732f626166
Arg [13] : 796265696162326b61616d6336776e716c78656571776c346e69787065746c61
Arg [14] : 646679626236346e7a746f647468723374367171637567612f00000000000000


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.