ETH Price: $3,288.41 (+1.44%)
Gas: 2 Gwei

Token

Pinaverse Juice (j)
 

Overview

Max Total Supply

1,163 j

Holders

94

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
reemixed.eth
0x41a3c90f8084878762946584b318bf6f44263b83
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:
Juice

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

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

/*                                                                                      
                                        ▒▒▒▒
                                      ▒▒▒▒▒▒▒▒▒▒▒▒
                                      ▒▒▒▒  ▒▒▒▒▒▒▓▓
                                      ▒▒▒▒      ▒▒▒▒
                                  ████▒▒▒▒
                              ████░░▒▒▒▒████
                        ██████░░░░░░▒▒▒▒░░░░██
                  ██████░░░░░░░░░░░░░░░░░░██████
                ██████░░░░██░░░░░░░░██████░░░░██
                ██░░░░████░░░░░░████░░░░░░░░░░██
                ██░░██░░░░██████░░░░░░░░░░░░░░██
                ████░░░░████░░░░░░░░░░░░░░░░░░██
                ████░░██░░██░░░░░░░░░░░░░░░░░░██
                ██░░██░░░░██░░░░▒▒░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░░░░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░░ORANGE░░░░░░░██
                ██░░░░░░░░██░░░░░░JUICE░░░░░░░██
                ██░░░░░░░░██░░░░░░░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░░░░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░░░░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░░░░░░░░░░░░░░░██
                ██░░░░░░░░██░░░░▒▒░░░░▒▒░░░░████
                  ██░░░░░░██░░░░░░░░░░░░████
                    ████░░██░░░░░░░░████
                        ████░░██████
                          ████
*/

import "../token/WizardsERC1155.sol";

error MaxJuiceSupplyReached();
error TooManyForRandomRequest();
error RandomRequestsDisabled();
error BurnNotPermitted();
error PaymentFailed();
error NoMoreSelectable();
error MustSetPinaverse();

contract Juice is WizardsERC1155 {
    struct PaymentToken {
        address token;
        uint256 price;
    }

    bool private _allowMerge = false;
    bool private _allowRandom = true;
    address private _pinaverse;

    uint256[5] private _juiceBurnAmount = [3, 3, 3, 10, 1];
    uint256[4] private _jmi = [3555, 1222, 666, 112];
    PaymentToken[] private _paymentToken;

    constructor(
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyRecipient,
        uint24 royaltyValue,
        PaymentToken[] memory paymentTokens
    )
        WizardsERC1155(
            "Pinaverse Juice",
            "j",
            baseTokenURI,
            contractURI,
            royaltyRecipient,
            royaltyValue,
            _msgSender()
        )
    {
        setMaxSupply(0, 3555);
        setMaxSupply(1, 1622);
        setMaxSupply(2, 866);
        setMaxSupply(3, 212);
        setMaxSupply(4, 5);

        for (uint256 i = 0; i < paymentTokens.length; i++) {
            _paymentToken.push(paymentTokens[i]);
        }
    }

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

    function getPaymentToken(uint256 id)
        public
        view
        returns (PaymentToken memory)
    {
        return _paymentToken[id];
    }

    function addPaymentToken(PaymentToken memory paymentToken)
        external
        isAdmin
    {
        _paymentToken.push(paymentToken);
    }

    function updatePaymentToken(uint256 id, uint256 price) external isAdmin {
        _paymentToken[id].price = price;
    }

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

    function toggleAllowMerge() external isAdmin {
        _allowMerge = !_allowMerge;
    }

    function toggleAllowRandom() external isAdmin {
        _allowRandom = !_allowRandom;
    }

    function amountRequired() public view returns (uint256[5] memory) {
        return _juiceBurnAmount;
    }

    function amountRequired(uint256 tier) public view returns (uint256) {
        return _juiceBurnAmount[tier];
    }

    function allowRandom() public view returns (bool) {
        return _allowRandom;
    }

    function allowMerge() public view returns (bool) {
        return _allowMerge;
    }

    function purchase(uint256 quantity, uint256 paymentToken)
        public
        payable
        whenNotPaused
    {
        _payment(quantity, paymentToken);
        _mint(_msgSender(), 0, quantity, "");
    }

    function randomPurchase(uint256 quantity, uint256 paymentToken)
        public
        payable
        whenNotPaused
    {
        if (!_allowRandom) revert RandomRequestsDisabled();
        _payment(quantity, paymentToken);
        _randomMint(_msgSender(), quantity);
    }

    function _payment(uint256 quantity, uint256 paymentToken) private {
        PaymentToken memory p = _paymentToken[paymentToken];
        if (p.price == uint256(0)) revert PaymentFailed();

        uint256 total = quantity * p.price;

        if (p.token == address(0)) {
            if (msg.value < total) revert PaymentFailed();
            return;
        }

        IERC20 erc20 = IERC20(p.token);
        if (erc20.transferFrom(_msgSender(), address(this), total) != true) {
            revert PaymentFailed();
        }
    }

    function randomMint(address to, uint256 quantity)
        public
        isMinter
        whenNotPaused
    {
        if (!_allowRandom) revert RandomRequestsDisabled();
        _randomMint(to, quantity);
    }

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public override(WizardsERC1155) {
        super.burn(account, id, value);
        if (_allowMerge) {
            _merge(account, id, value);
        }
    }

    function _randomMint(address account, uint256 quantity) private {
        if (quantity == 1) {
            _mint(account, _weightedSelection(), quantity, "");
        } else {
            if (quantity > 10) revert TooManyForRandomRequest();
            uint256[] memory selected = _expandedWeightedSelection(quantity);
            for (uint256 i = 0; i < selected.length; i++) {
                if (selected[i] > 0) {
                    _mint(account, i, selected[i], "");
                }
            }
        }
    }

    function _weightedSelection() private view returns (uint256) {
        uint256[] memory cumulativeWeights = _juiceCumulativeWeights();

        unchecked {
            uint256 maxWeight = cumulativeWeights[cumulativeWeights.length - 1];
            if (maxWeight == 0) revert NoMoreSelectable();

            uint256 r = _determanisticRandom(1, maxWeight);
            for (uint256 i = 0; i < _jmi.length; i++) {
                if (cumulativeWeights[i] >= r) {
                    return i;
                }
            }
        }
        revert NoMoreSelectable();
    }

    function _expandedWeightedSelection(uint256 n)
        private
        view
        returns (uint256[] memory expandedValues)
    {
        uint256[] memory cumulativeWeights = _juiceCumulativeWeights();
        expandedValues = new uint256[](4);

        unchecked {
            uint256 maxWeight = cumulativeWeights[cumulativeWeights.length - 1];
            if (maxWeight == 0) revert NoMoreSelectable();

            for (uint256 j = 0; j < n; j++) {
                uint256 r = _determanisticRandom(j, maxWeight);
                for (uint256 i = 0; i < _jmi.length; i++) {
                    if (cumulativeWeights[i] >= r) {
                        expandedValues[i]++;
                        break;
                    }
                }
            }
        }
    }

    function _juiceCumulativeWeights() private view returns (uint256[] memory) {
        uint256[] memory cw = new uint256[](4);

        unchecked {
            for (uint256 i = 0; i < _jmi.length; i++) {
                cw[i] =
                    _jmi[i] +
                    (i == 0 ? uint256(0) : cw[i - 1]) -
                    totalMinted(i);
            }
        }
        return cw;
    }

    function _determanisticRandom(uint256 v, uint256 m)
        private
        view
        returns (uint256)
    {
        // this is for fun and random enough
        uint256 r = uint256(keccak256(abi.encodePacked(block.timestamp, v)));
        return r % m;
    }

    function _merge(
        address account,
        uint256 id,
        uint256 value
    ) internal {
        // if user is burning highest tier, revert
        if (id == _juiceBurnAmount.length - 1) revert BurnNotPermitted();

        uint256 tierId = id;
        uint256 nextTierId = tierId + 1;
        uint256 mintQty;
        uint256 tierBurn = _juiceBurnAmount[tierId];

        unchecked {
            // calculate max quantity to be minted
            mintQty = value / tierBurn;
            if (mintQty == 0) return;

            // verify new amount to be minted is not greater than allowable amount
            if (mintQty + totalMinted(tierId) > maxSupply(nextTierId)) {
                revert MaxJuiceSupplyReached();
            }

            // for each higher level, determine if user could receive the next highest tier
            for (uint256 i = nextTierId; i < _juiceBurnAmount.length; i++) {
                uint256 nextTierBurn = _juiceBurnAmount[i];

                if (mintQty >= nextTierBurn) {
                    uint256 tmpToMint = mintQty / nextTierBurn;
                    uint256 remainder = mintQty - (tmpToMint * nextTierBurn);

                    // verify new amount to be minted is not greater than allowable amount
                    if (mintQty + totalMinted(i) > maxSupply(i)) {
                        revert MaxJuiceSupplyReached();
                    }

                    // Issue and burn the tokens for the tier
                    if (i != _juiceBurnAmount.length - 1) {
                        _issuanceCounter[i] += mintQty - remainder;
                        _burnCounter[i] += mintQty - remainder;
                    }

                    // mint the remaining balance resulting from the left over
                    if (remainder > 0) {
                        _mint(account, i, remainder, "");
                    }

                    mintQty = tmpToMint;
                    tierId++;
                } else {
                    // no other conditions met, but the current tier by 1
                    tierId++;
                    break;
                }
            }
        }
        // finally mint the new juice
        _mint(account, tierId, mintQty, "");
    }

    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 transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "../royalties/ERC2981ContractWideRoyalties.sol";
import "../utils/ERC1155Metadata.sol";
import "../utils/Administration.sol";

error MaxSupplyUnchangeable();
error MaxSupplyReached();
error TransferCallerNotOwnerNorApproved();

contract WizardsERC1155 is
    ERC1155,
    ERC1155Metadata,
    ERC2981ContractWideRoyalties,
    Administration
{
    string private _name;
    string private _symbol;

    mapping(uint256 => uint256) private _maxSupply;
    mapping(uint256 => uint256) internal _issuanceCounter;
    mapping(uint256 => uint256) internal _burnCounter;

    constructor(
        string memory name_,
        string memory symbol_,
        string memory baseTokenURI,
        string memory contractURI,
        address royaltyRecipient,
        uint24 royaltyValue,
        address owner
    ) ERC1155(baseTokenURI) Administration(owner) {
        _symbol = symbol_;
        _name = name_;

        _setContractURI(contractURI);
        _setRoyalties(royaltyRecipient, royaltyValue);
    }

    function symbol() public view returns (string memory) {
        return _symbol;
    }

    function name() public view returns (string memory) {
        return _name;
    }

    function totalMinted(uint256 id) public view returns (uint256) {
        return _issuanceCounter[id];
    }

    function totalBurned(uint256 id) public view returns (uint256) {
        return _burnCounter[id];
    }

    function totalSupply(uint256 id) public view returns (uint256) {
        unchecked {
            return _issuanceCounter[id] - _burnCounter[id];
        }
    }

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

    function setMaxSupply(uint256 id, uint256 maxSupply_) public isAdmin {
        if (_maxSupply[id] > 0) revert MaxSupplyUnchangeable();
        _maxSupply[id] = 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 {
        _setURI(uri_);
    }

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

    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        bool isApprovedOrOwner = (_msgSender() == account ||
            isApprovedForAll(account, _msgSender()));
        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();

        unchecked {
            _burnCounter[id] = _burnCounter[id] + value;
        }

        _burn(account, id, value);
    }

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

    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual override {
        unchecked {
            _issuanceCounter[id] = _issuanceCounter[id] + amount;
            if (_maxSupply[id] > 0 && totalMinted(id) >= _maxSupply[id]) {
                revert MaxSupplyReached();
            }
        }
        super._mint(account, id, amount, data);
    }

    function uri(uint256 id)
        public
        view
        virtual
        override(ERC1155, ERC1155Metadata)
        returns (string memory)
    {
        return ERC1155Metadata.uri(id);
    }

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

File 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 : ERC1155Metadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

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

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

    string private _contractURI;

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

    function uri(uint256 id)
        public
        view
        virtual
        override
        returns (string memory)
    {
        string memory _tokenURI = _tokenURIs[id];

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

        return string(abi.encodePacked(super.uri(id), id.toString()));
    }

    // INTERNAL FUNCTIONS

    /**
     * @dev Sets `_contractURI` as the contractURI
     */
    function _setContractURI(string memory contractURI_) internal virtual {
        _contractURI = contractURI_;
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI)
        internal
        virtual
    {
        _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 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 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 : 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 13 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 14 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 15 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 16 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 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"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct Juice.PaymentToken[]","name":"paymentTokens","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnNotPermitted","type":"error"},{"inputs":[],"name":"InsufficientAccess","type":"error"},{"inputs":[],"name":"InvalidOwner","type":"error"},{"inputs":[],"name":"MaxJuiceSupplyReached","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MaxSupplyUnchangeable","type":"error"},{"inputs":[],"name":"MustSetPinaverse","type":"error"},{"inputs":[],"name":"NoMoreSelectable","type":"error"},{"inputs":[],"name":"PaymentFailed","type":"error"},{"inputs":[],"name":"RandomRequestsDisabled","type":"error"},{"inputs":[],"name":"TooManyForRandomRequest","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct Juice.PaymentToken","name":"paymentToken","type":"tuple"}],"name":"addPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowMerge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowRandom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"amountRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountRequired","outputs":[{"internalType":"uint256[5]","name":"","type":"uint256[5]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getPaymentToken","outputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"}],"internalType":"struct Juice.PaymentToken","name":"","type":"tuple"}],"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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","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":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","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":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"paymentToken","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"randomMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"paymentToken","type":"uint256"}],"name":"randomPurchase","outputs":[],"stateMutability":"payable","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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"id","type":"uint256"},{"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":"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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleAllowMerge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleAllowRandom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"updatePaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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"}]

600d805461ffff19166101009081179091556101206040526003608081815260a082905260c091909152600a60e05260019091526200004390600e9060056200054f565b5060408051608081018252610de381526104c6602082015261029a91810191909152607060608201526200007c90601390600462000597565b503480156200008a57600080fd5b506040516200486438038062004864833981016040819052620000ad9162000710565b6040518060400160405280600f81526020016e50696e617665727365204a7569636560881b815250604051806040016040528060018152602001603560f91b8152508686868662000103620002e260201b60201c565b80856200011081620002e6565b506007805460ff19169055336001600160a01b03821614620001395762000139600033620002ff565b62000146600082620002ff565b620001727fdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec4282620002ff565b6200019e7ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc982620002ff565b620001a9816200030b565b508551620001bf906009906020890190620005ce565b508651620001d59060089060208a0190620005ce565b50620001e18462000365565b620001f28362ffffff84166200037a565b505050505050506200020e6000610de36200041b60201b60201c565b6200021d60016106566200041b565b6200022c60026103626200041b565b6200023a600360d46200041b565b62000248600460056200041b565b60005b8151811015620002d65760178282815181106200027857634e487b7160e01b600052603260045260246000fd5b602090810291909101810151825460018082018555600094855293839020825160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015580620002cd8162000906565b9150506200024b565b50505050505062000944565b3390565b8051620002fb906002906020840190620005ce565b5050565b620002fb8282620004ab565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620002fb906004906020840190620005ce565b612710811115620003d15760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260058054600160a01b9093026001600160b81b0319909316909117919091179055565b3360009081527f31f4bc5980931cfff8fcc0887a354f492c853dee1983bdef4d9cb3e8a5ff876e602052604090205460ff166200046b57604051630318bf7160e11b815260040160405180910390fd5b6000828152600a602052604090205415620004995760405163fafbb43760e01b815260040160405180910390fd5b6000918252600a602052604090912055565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620002fb5760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200050b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b826005810192821562000585579160200282015b8281111562000585578251829060ff1690559160200191906001019062000563565b50620005939291506200064b565b5090565b826004810192821562000585579160200282015b8281111562000585578251829061ffff16905591602001919060010190620005ab565b828054620005dc90620008c9565b90600052602060002090601f01602090048101928262000600576000855562000585565b82601f106200061b57805160ff191683800117855562000585565b8280016001018555821562000585579182015b82811115620005855782518255916020019190600101906200062e565b5b808211156200059357600081556001016200064c565b80516001600160a01b03811681146200067a57600080fd5b919050565b600082601f83011262000690578081fd5b81516001600160401b03811115620006ac57620006ac6200092e565b6020620006c2601f8301601f1916820162000896565b8281528582848701011115620006d6578384fd5b835b83811015620006f5578581018301518282018401528201620006d8565b838111156200070657848385840101525b5095945050505050565b600080600080600060a0868803121562000728578081fd5b85516001600160401b03808211156200073f578283fd5b6200074d89838a016200067f565b965060209150818801518181111562000764578384fd5b620007728a828b016200067f565b965050604062000784818a0162000662565b9550606089015162ffffff811681146200079c578485fd5b60808a015190955082811115620007b1578485fd5b8901601f81018b13620007c2578485fd5b805183811115620007d757620007d76200092e565b620007e7858260051b0162000896565b8181528581019450828601600683901b840187018e101562000807578788fd5b8793505b82841015620008575784818f03121562000823578788fd5b6200082d6200086b565b620008388262000662565b815281880151888201528652948601946001939093019284016200080b565b508096505050505050509295509295909350565b604080519081016001600160401b03811182821017156200089057620008906200092e565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620008c157620008c16200092e565b604052919050565b600181811c90821680620008de57607f821691505b602082108114156200090057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200092757634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b613f1080620009546000396000f3fe6080604052600436106103015760003560e01c80638456cb5911610190578063b9e47ae4116100dc578063d869d3e511610095578063f242432a1161006f578063f242432a14610998578063f2fde38b146109b8578063f5298aca146109d8578063fe6d8124146109f857600080fd5b8063d869d3e51461091a578063e8a3d4851461093a578063e985e9c51461094f57600080fd5b8063b9e47ae414610829578063bd85b0391461083c578063c547618014610876578063c6e6c87114610896578063cdc2aebf146108b6578063d547741f146108fa57600080fd5b806395d89b4111610149578063a217fddf11610123578063a217fddf146107ae578063a22cb465146107c3578063a26d24e3146107e3578063a626c7ce1461080557600080fd5b806395d89b41146107545780639b1dbbd0146107695780639d7f4ebf1461078157600080fd5b80638456cb591461067b578063869f75941461069057806389476069146106bd5780638da5cb5b146106dd57806391d1485414610714578063938e3d7b1461073457600080fd5b80632f2ff15d1161024f5780634e1273f4116102085780636ebdd69a116101e25780636ebdd69a146105fb5780636ef82ecc1461061b57806370876c981461064857806379ad5bdc1461065b57600080fd5b80634e1273f41461059657806355f804b3146105c35780635c975abb146105e357600080fd5b80632f2ff15d146104ef57806336568abe1461050f57806337da577c1461052f5780633ccfd60b1461054f5780633f4ba83a14610564578063499dc7cc1461057957600080fd5b806310ffbbdc116102bc578063248a9ca311610296578063248a9ca31461043e5780632a0acc6a1461046e5780632a55205a146104905780632eb2c2d6146104cf57600080fd5b806310ffbbdc146103de578063156e29f6146103fe578063162094c41461041e57600080fd5b806236b41d1461030d578062fdd58e1461032457806301ffc9a71461035757806306fdde031461038757806307575134146103a95780630e89341c146103be57600080fd5b3661030857005b600080fd5b34801561031957600080fd5b50610322610a2c565b005b34801561033057600080fd5b5061034461033f366004613685565b610a75565b6040519081526020015b60405180910390f35b34801561036357600080fd5b506103776103723660046137f6565b610b0c565b604051901515815260200161034e565b34801561039357600080fd5b5061039c610b88565b60405161034e9190613b47565b3480156103b557600080fd5b50610322610c1a565b3480156103ca57600080fd5b5061039c6103d93660046137bc565b610c6c565b3480156103ea57600080fd5b506103226103f9366004613907565b610c77565b34801561040a57600080fd5b506103226104193660046136ae565b610ce7565b34801561042a57600080fd5b506103226104393660046138cd565b610d71565b34801561044a57600080fd5b506103446104593660046137bc565b60009081526006602052604090206001015490565b34801561047a57600080fd5b50610344600080516020613ebb83398151915281565b34801561049c57600080fd5b506104b06104ab366004613907565b610db4565b604080516001600160a01b03909316835260208301919091520161034e565b3480156104db57600080fd5b506103226104ea366004613516565b610e09565b3480156104fb57600080fd5b5061032261050a3660046137d4565b610ea0565b34801561051b57600080fd5b5061032261052a3660046137d4565b610ec6565b34801561053b57600080fd5b5061032261054a366004613907565b610f40565b34801561055b57600080fd5b50610322610fb4565b34801561057057600080fd5b5061032261105c565b34801561058557600080fd5b50600d54610100900460ff16610377565b3480156105a257600080fd5b506105b66105b13660046136e0565b61108e565b60405161034e9190613b06565b3480156105cf57600080fd5b506103226105de36600461382e565b6111ef565b3480156105ef57600080fd5b5060075460ff16610377565b34801561060757600080fd5b506103226106163660046134ca565b61122d565b34801561062757600080fd5b506103446106363660046137bc565b6000908152600c602052604090205490565b610322610656366004613907565b61128c565b34801561066757600080fd5b506103446106763660046137bc565b6112d5565b34801561068757600080fd5b50610322611300565b34801561069c57600080fd5b506103446106ab3660046137bc565b6000908152600a602052604090205490565b3480156106c957600080fd5b506103226106d83660046134ca565b611330565b3480156106e957600080fd5b5060075461010090046001600160a01b03165b6040516001600160a01b03909116815260200161034e565b34801561072057600080fd5b5061037761072f3660046137d4565b6114a1565b34801561074057600080fd5b5061032261074f36600461382e565b6114cc565b34801561076057600080fd5b5061039c61150a565b34801561077557600080fd5b50600d5460ff16610377565b34801561078d57600080fd5b5061034461079c3660046137bc565b6000908152600b602052604090205490565b3480156107ba57600080fd5b50610344600081565b3480156107cf57600080fd5b506103226107de36600461361d565b611519565b3480156107ef57600080fd5b506107f86115f0565b60405161034e9190613ad5565b34801561081157600080fd5b50600d546201000090046001600160a01b03166106fc565b610322610837366004613907565b61162b565b34801561084857600080fd5b506103446108573660046137bc565b6000908152600c6020908152604080832054600b909252909120540390565b34801561088257600080fd5b50610322610891366004613860565b61168a565b3480156108a257600080fd5b506103226108b1366004613653565b611744565b3480156108c257600080fd5b506108d66108d13660046137bc565b611788565b6040805182516001600160a01b03168152602092830151928101929092520161034e565b34801561090657600080fd5b506103226109153660046137d4565b6117f6565b34801561092657600080fd5b50610322610935366004613685565b61181c565b34801561094657600080fd5b5061039c6118b8565b34801561095b57600080fd5b5061037761096a3660046134e4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156109a457600080fd5b506103226109b33660046135bb565b6118c7565b3480156109c457600080fd5b506103226109d33660046134ca565b61194e565b3480156109e457600080fd5b506103226109f33660046136ae565b6119b3565b348015610a0457600080fd5b506103447ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b610a44600080516020613ebb833981519152336114a1565b610a6157604051630318bf7160e11b815260040160405180910390fd5b600d805460ff19811660ff90911615179055565b60006001600160a01b038316610ae65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663e62ae09960e01b1480610b3d57506001600160e01b031982166301ffc9a760e01b145b80610b5857506001600160e01b0319821663152a902d60e11b145b80610b7357506001600160e01b031982166308eee7ad60e11b145b80610b825750610b82826119d4565b92915050565b606060088054610b9790613d23565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc390613d23565b8015610c105780601f10610be557610100808354040283529160200191610c10565b820191906000526020600020905b815481529060010190602001808311610bf357829003601f168201915b5050505050905090565b610c32600080516020613ebb833981519152336114a1565b610c4f57604051630318bf7160e11b815260040160405180910390fd5b600d805461ff001981166101009182900460ff1615909102179055565b6060610b8282611a14565b610c8f600080516020613ebb833981519152336114a1565b610cac57604051630318bf7160e11b815260040160405180910390fd5b8060178381548110610cce57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101819055505050565b610d117ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9336114a1565b610d2e57604051630318bf7160e11b815260040160405180910390fd5b60075460ff1615610d515760405162461bcd60e51b8152600401610add90613ba2565b610d6c83838360405180602001604052806000815250611afc565b505050565b610d89600080516020613ebb833981519152336114a1565b610da657604051630318bf7160e11b815260040160405180910390fd5b610db08282611b72565b5050565b604080518082019091526005546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610df59086613caa565b610dff9190613c96565b9150509250929050565b6001600160a01b038516331480610e255750610e25853361096a565b610e8c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610add565b610e998585858585611b91565b5050505050565b600082815260066020526040902060010154610ebc8133611d8a565b610d6c8383611dee565b6001600160a01b0381163314610f365760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610add565b610db08282611e74565b610f58600080516020613ebb833981519152336114a1565b610f7557604051630318bf7160e11b815260040160405180910390fd5b6000828152600a602052604090205415610fa25760405163fafbb43760e01b815260040160405180910390fd5b6000918252600a602052604090912055565b610fcc600080516020613ebb833981519152336114a1565b610fe957604051630318bf7160e11b815260040160405180910390fd5b600d546201000090046001600160a01b031661101857604051634725e8d760e11b815260040160405180910390fd5b600d546040516001600160a01b036201000090920491909116904780156108fc02916000818181858888f19350505050158015611059573d6000803e3d6000fd5b50565b6110676000336114a1565b61108457604051630318bf7160e11b815260040160405180910390fd5b61108c611edb565b565b606081518351146110f35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610add565b600083516001600160401b0381111561111c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611145578160200160208202803683370190505b50905060005b84518110156111e7576111ac85828151811061117757634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061119f57634e487b7160e01b600052603260045260246000fd5b6020026020010151610a75565b8282815181106111cc57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526111e081613d84565b905061114b565b509392505050565b611207600080516020613ebb833981519152336114a1565b61122457604051630318bf7160e11b815260040160405180910390fd5b61105981611f6e565b611245600080516020613ebb833981519152336114a1565b61126257604051630318bf7160e11b815260040160405180910390fd5b600d80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60075460ff16156112af5760405162461bcd60e51b8152600401610add90613ba2565b6112b98282611f81565b610db03360008460405180602001604052806000815250611afc565b6000600e82600581106112f857634e487b7160e01b600052603260045260246000fd5b015492915050565b61130b6000336114a1565b61132857604051630318bf7160e11b815260040160405180910390fd5b61108c6120f4565b611348600080516020613ebb833981519152336114a1565b61136557604051630318bf7160e11b815260040160405180910390fd5b600d546201000090046001600160a01b031661139457604051634725e8d760e11b815260040160405180910390fd5b600d546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb926201000090049091169083906370a082319060240160206040518083038186803b1580156113eb57600080fd5b505afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142391906138b5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561146957600080fd5b505af115801561147d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6c91906137a0565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6114e4600080516020613ebb833981519152336114a1565b61150157604051630318bf7160e11b815260040160405180910390fd5b6110598161214c565b606060098054610b9790613d23565b336001600160a01b03831614156115845760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610add565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f8613315565b6040805160a081019182905290600e9060059082845b81548152602001906001019080831161160e575050505050905090565b60075460ff161561164e5760405162461bcd60e51b8152600401610add90613ba2565b600d54610100900460ff166116765760405163f53e777160e01b815260040160405180910390fd5b6116808282611f81565b610db0338361215f565b6116a2600080516020613ebb833981519152336114a1565b6116bf57604051630318bf7160e11b815260040160405180910390fd5b6017805460018101825560009190915281517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15600290920291820180546001600160a01b0319166001600160a01b039092169190911790556020909101517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1690910155565b61175c600080516020613ebb833981519152336114a1565b61177957604051630318bf7160e11b815260040160405180910390fd5b610db0828262ffffff16612249565b6040805180820190915260008082526020820152601782815481106117bd57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915260029092020180546001600160a01b03168252600101549181019190915292915050565b6000828152600660205260409020600101546118128133611d8a565b610d6c8383611e74565b6118467ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9336114a1565b61186357604051630318bf7160e11b815260040160405180910390fd5b60075460ff16156118865760405162461bcd60e51b8152600401610add90613ba2565b600d54610100900460ff166118ae5760405163f53e777160e01b815260040160405180910390fd5b610db0828261215f565b606060048054610b9790613d23565b6001600160a01b0385163314806118e357506118e3853361096a565b6119415760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610add565b610e9985858585856122e5565b611966600080516020613ebb833981519152336114a1565b61198357604051630318bf7160e11b815260040160405180910390fd5b6001600160a01b0381166119aa576040516349e27cff60e01b815260040160405180910390fd5b6110598161240b565b6119be838383612465565b600d5460ff1615610d6c57610d6c8383836124c2565b60006001600160e01b0319821663da8def7360e01b1480611a0557506001600160e01b03198216635c975abb60e01b145b80610b825750610b82826126cd565b600081815260036020526040812080546060929190611a3290613d23565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5e90613d23565b8015611aab5780601f10611a8057610100808354040283529160200191611aab565b820191906000526020600020905b815481529060010190602001808311611a8e57829003601f168201915b50505050509050600081511115611ac25792915050565b611acb836126f2565b611ad484612786565b604051602001611ae592919061398e565b604051602081830303815290604052915050919050565b6000838152600b60209081526040808320805486019055600a90915290205415801590611b4257506000838152600a6020908152604080832054600b9092529091205410155b15611b605760405163d05cb60960e01b815260040160405180910390fd5b611b6c848484846128a7565b50505050565b60008281526003602090815260409091208251610d6c92840190613333565b8151835114611bf35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610add565b6001600160a01b038416611c195760405162461bcd60e51b8152600401610add90613bcc565b3360005b8451811015611d1c576000858281518110611c4857634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611c7457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611cc45760405162461bcd60e51b8152600401610add90613c11565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d01908490613c7e565b9250508190555050505080611d1590613d84565b9050611c1d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d6c929190613b19565b60405180910390a4611d828187878787876129a8565b505050505050565b611d9482826114a1565b610db057611dac816001600160a01b03166014612b13565b611db7836020612b13565b604051602001611dc89291906139bd565b60408051601f198184030181529082905262461bcd60e51b8252610add91600401613b47565b611df882826114a1565b610db05760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e303390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e7e82826114a1565b15610db05760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60075460ff16611f245760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610add565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8051610db0906002906020840190613333565b600060178281548110611fa457634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915260029092020180546001600160a01b03168252600101549181018290529150611ff5576040516307a4ced160e51b815260040160405180910390fd5b60008160200151846120079190613caa565b82519091506001600160a01b031661203a5780341015611b6c576040516307a4ced160e51b815260040160405180910390fd5b81516001600160a01b0381166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101859052606401602060405180830381600087803b15801561209a57600080fd5b505af11580156120ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d291906137a0565b1515600114610e99576040516307a4ced160e51b815260040160405180910390fd5b60075460ff16156121175760405162461bcd60e51b8152600401610add90613ba2565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f513390565b8051610db0906004906020840190613333565b806001141561218a57610db082612174612cfb565b8360405180602001604052806000815250611afc565b600a8111156121ac57604051635022635160e11b815260040160405180910390fd5b60006121b782612dcf565b905060005b8151811015611b6c5760008282815181106121e757634e487b7160e01b600052603260045260246000fd5b6020026020010151111561223757612237848284848151811061221a57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611afc565b8061224181613d84565b9150506121bc565b61271081111561229b5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610add565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260058054600160a01b9093026001600160b81b0319909316909117919091179055565b6001600160a01b03841661230b5760405162461bcd60e51b8152600401610add90613bcc565b3361232481878761231b88612ef3565b610e9988612ef3565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123655760405162461bcd60e51b8152600401610add90613c11565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906123a2908490613c7e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612402828888888888612f4c565b50505050505050565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000336001600160a01b03851614806124835750612483843361096a565b9050806124a357604051632ce44b5f60e11b815260040160405180910390fd5b6000838152600c60205260409020805483019055611b6c848484613016565b6124ce60016005613cc9565b8214156124ee576040516326738ae560e21b815260040160405180910390fd5b8160006124fc826001613c7e565b9050600080600e846005811061252257634e487b7160e01b600052603260045260246000fd5b0154905080858161254357634e487b7160e01b600052601260045260246000fd5b049150816125545750505050505050565b6000838152600a60205260409020546000858152600b60205260409020548301111561259357604051630249c5d960e31b815260040160405180910390fd5b825b60058110156126b1576000600e82600581106125c157634e487b7160e01b600052603260045260246000fd5b0154905080841061269c5760008185816125eb57634e487b7160e01b600052601260045260246000fd5b0490508181028503612609846000908152600a602052604090205490565b6000858152600b60205260409020548701111561263957604051630249c5d960e31b815260040160405180910390fd5b6004841461266d576000848152600b602090815260408083208054858b03908101909155600c909252909120805490910190555b801561268e5761268e8b858360405180602001604052806000815250611afc565b5060019096019593506126a8565b506001909401936126b1565b50600101612595565b5061240287858460405180602001604052806000815250611afc565b60006001600160e01b03198216637965db0b60e01b1480610b825750610b8282613190565b60606002805461270190613d23565b80601f016020809104026020016040519081016040528092919081815260200182805461272d90613d23565b801561277a5780601f1061274f5761010080835404028352916020019161277a565b820191906000526020600020905b81548152906001019060200180831161275d57829003601f168201915b50505050509050919050565b6060816127aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127d457806127be81613d84565b91506127cd9050600a83613c96565b91506127ae565b6000816001600160401b038111156127fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612826576020820181803683370190505b5090505b841561289f5761283b600183613cc9565b9150612848600a86613d9f565b612853906030613c7e565b60f81b81838151811061287657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612898600a86613c96565b945061282a565b949350505050565b6001600160a01b0384166129075760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610add565b336129188160008761231b88612ef3565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612948908490613c7e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e9981600087878787612f4c565b6001600160a01b0384163b15611d825760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906129ec9089908990889088908890600401613a32565b602060405180830381600087803b158015612a0657600080fd5b505af1925050508015612a36575060408051601f3d908101601f19168201909252612a3391810190613812565b60015b612ae357612a42613df5565b806308c379a01415612a7c5750612a57613e0d565b80612a625750612a7e565b8060405162461bcd60e51b8152600401610add9190613b47565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610add565b6001600160e01b0319811663bc197c8160e01b146124025760405162461bcd60e51b8152600401610add90613b5a565b60606000612b22836002613caa565b612b2d906002613c7e565b6001600160401b03811115612b5257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b7c576020820181803683370190505b509050600360fc1b81600081518110612ba557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612be257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612c06846002613caa565b612c11906001613c7e565b90505b6001811115612ca5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c5357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612c7757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612c9e81613d0c565b9050612c14565b508315612cf45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610add565b9392505050565b600080612d066131b5565b9050600081600183510381518110612d2e57634e487b7160e01b600052603260045260246000fd5b602002602001015190508060001415612d5a5760405163176eaca360e31b815260040160405180910390fd5b6000612d6760018361328e565b905060005b6004811015612db35781848281518110612d9657634e487b7160e01b600052603260045260246000fd5b602002602001015110612dab57949350505050565b600101612d6c565b50505060405163176eaca360e31b815260040160405180910390fd5b60606000612ddb6131b5565b60408051600480825260a0820190925291925060208201608080368337019050509150600081600183510381518110612e2457634e487b7160e01b600052603260045260246000fd5b602002602001015190508060001415612e505760405163176eaca360e31b815260040160405180910390fd5b60005b84811015612eeb576000612e67828461328e565b905060005b6004811015612ee15781858281518110612e9657634e487b7160e01b600052603260045260246000fd5b602002602001015110612ed957858181518110612ec357634e487b7160e01b600052603260045260246000fd5b6020908102919091010180516001019052612ee1565b600101612e6c565b5050600101612e53565b505050919050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f3b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611d825760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f909089908990889088908890600401613a90565b602060405180830381600087803b158015612faa57600080fd5b505af1925050508015612fda575060408051601f3d908101601f19168201909252612fd791810190613812565b60015b612fe657612a42613df5565b6001600160e01b0319811663f23a6e6160e01b146124025760405162461bcd60e51b8152600401610add90613b5a565b6001600160a01b0383166130785760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610add565b336130a88185600061308987612ef3565b61309287612ef3565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156131255760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610add565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b0319821663152a902d60e11b1480610b825750610b82826132c5565b60408051600480825260a08201909252606091600091906020820160808036833701905050905060005b6004811015613288576000818152600b6020526040902054811561322d5782600183038151811061322057634e487b7160e01b600052603260045260246000fd5b6020026020010151613230565b60005b6013836004811061325157634e487b7160e01b600052603260045260246000fd5b0154010382828151811061327557634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001016131df565b50919050565b60408051426020808301919091528183018590528251808303840181526060909201909252805191012060009061289f8382613d9f565b60006001600160e01b03198216636cdb3d1360e11b14806132f657506001600160e01b031982166303a24d0760e21b145b80610b8257506301ffc9a760e01b6001600160e01b0319831614610b82565b6040518060a001604052806005906020820280368337509192915050565b82805461333f90613d23565b90600052602060002090601f01602090048101928261336157600085556133a7565b82601f1061337a57805160ff19168380011785556133a7565b828001600101855582156133a7579182015b828111156133a757825182559160200191906001019061338c565b506133b39291506133b7565b5090565b5b808211156133b357600081556001016133b8565b80356001600160a01b03811681146133e357600080fd5b919050565b600082601f8301126133f8578081fd5b8135602061340582613c5b565b6040516134128282613d58565b8381528281019150858301600585901b87018401881015613431578586fd5b855b8581101561344f57813584529284019290840190600101613433565b5090979650505050505050565b600082601f83011261346c578081fd5b81356001600160401b0381111561348557613485613ddf565b60405161349c601f8301601f191660200182613d58565b8181528460208386010111156134b0578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156134db578081fd5b612cf4826133cc565b600080604083850312156134f6578081fd5b6134ff836133cc565b915061350d602084016133cc565b90509250929050565b600080600080600060a0868803121561352d578081fd5b613536866133cc565b9450613544602087016133cc565b935060408601356001600160401b038082111561355f578283fd5b61356b89838a016133e8565b94506060880135915080821115613580578283fd5b61358c89838a016133e8565b935060808801359150808211156135a1578283fd5b506135ae8882890161345c565b9150509295509295909350565b600080600080600060a086880312156135d2578081fd5b6135db866133cc565b94506135e9602087016133cc565b9350604086013592506060860135915060808601356001600160401b03811115613611578182fd5b6135ae8882890161345c565b6000806040838503121561362f578182fd5b613638836133cc565b9150602083013561364881613e96565b809150509250929050565b60008060408385031215613665578182fd5b61366e836133cc565b9150602083013562ffffff81168114613648578182fd5b60008060408385031215613697578182fd5b6136a0836133cc565b946020939093013593505050565b6000806000606084860312156136c2578081fd5b6136cb846133cc565b95602085013595506040909401359392505050565b600080604083850312156136f2578182fd5b82356001600160401b0380821115613708578384fd5b818501915085601f83011261371b578384fd5b8135602061372882613c5b565b6040516137358282613d58565b8381528281019150858301600585901b870184018b1015613754578889fd5b8896505b8487101561377d57613769816133cc565b835260019690960195918301918301613758565b5096505086013592505080821115613793578283fd5b50610dff858286016133e8565b6000602082840312156137b1578081fd5b8151612cf481613e96565b6000602082840312156137cd578081fd5b5035919050565b600080604083850312156137e6578182fd5b8235915061350d602084016133cc565b600060208284031215613807578081fd5b8135612cf481613ea4565b600060208284031215613823578081fd5b8151612cf481613ea4565b60006020828403121561383f578081fd5b81356001600160401b03811115613854578182fd5b61289f8482850161345c565b600060408284031215613871578081fd5b604051604081018181106001600160401b038211171561389357613893613ddf565b60405261389f836133cc565b8152602083013560208201528091505092915050565b6000602082840312156138c6578081fd5b5051919050565b600080604083850312156138df578182fd5b8235915060208301356001600160401b038111156138fb578182fd5b610dff8582860161345c565b60008060408385031215613919578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156139575781518752958201959082019060010161393b565b509495945050505050565b6000815180845261397a816020860160208601613ce0565b601f01601f19169290920160200192915050565b600083516139a0818460208801613ce0565b8351908301906139b4818360208801613ce0565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516139f5816017850160208801613ce0565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a26816028840160208801613ce0565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613a5e90830186613928565b8281036060840152613a708186613928565b90508281036080840152613a848185613962565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613aca90830184613962565b979650505050505050565b60a08101818360005b6005811015613afd578151835260209283019290910190600101613ade565b50505092915050565b602081526000612cf46020830184613928565b604081526000613b2c6040830185613928565b8281036020840152613b3e8185613928565b95945050505050565b602081526000612cf46020830184613962565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b03821115613c7457613c74613ddf565b5060051b60200190565b60008219821115613c9157613c91613db3565b500190565b600082613ca557613ca5613dc9565b500490565b6000816000190483118215151615613cc457613cc4613db3565b500290565b600082821015613cdb57613cdb613db3565b500390565b60005b83811015613cfb578181015183820152602001613ce3565b83811115611b6c5750506000910152565b600081613d1b57613d1b613db3565b506000190190565b600181811c90821680613d3757607f821691505b6020821081141561328857634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613d7d57613d7d613ddf565b6040525050565b6000600019821415613d9857613d98613db3565b5060010190565b600082613dae57613dae613dc9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613e0a57600481823e5160e01c5b90565b600060443d1015613e1b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e4a57505050505090565b8285019150815181811115613e625750505050505090565b843d8701016020828501011115613e7c5750505050505090565b613e8b60208286010187613d58565b509095945050505050565b801515811461105957600080fd5b6001600160e01b03198116811461105957600080fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220e34f70ac973761caf8026b1c7272bb28a429f75b43ac1a77414d9e19d4b912c964736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696766667379686269617a736e377376743673613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696766667379686269617a736e377376743673613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000763bfbd22000000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe00000000000000000000000000000000000000000000000000000000004c4b4000000000000000000000000074b988156925937bd4e082f0ed7429da8eaea8db0000000000000000000000000000000000000000000069e10de76676d0800000

Deployed Bytecode

0x6080604052600436106103015760003560e01c80638456cb5911610190578063b9e47ae4116100dc578063d869d3e511610095578063f242432a1161006f578063f242432a14610998578063f2fde38b146109b8578063f5298aca146109d8578063fe6d8124146109f857600080fd5b8063d869d3e51461091a578063e8a3d4851461093a578063e985e9c51461094f57600080fd5b8063b9e47ae414610829578063bd85b0391461083c578063c547618014610876578063c6e6c87114610896578063cdc2aebf146108b6578063d547741f146108fa57600080fd5b806395d89b4111610149578063a217fddf11610123578063a217fddf146107ae578063a22cb465146107c3578063a26d24e3146107e3578063a626c7ce1461080557600080fd5b806395d89b41146107545780639b1dbbd0146107695780639d7f4ebf1461078157600080fd5b80638456cb591461067b578063869f75941461069057806389476069146106bd5780638da5cb5b146106dd57806391d1485414610714578063938e3d7b1461073457600080fd5b80632f2ff15d1161024f5780634e1273f4116102085780636ebdd69a116101e25780636ebdd69a146105fb5780636ef82ecc1461061b57806370876c981461064857806379ad5bdc1461065b57600080fd5b80634e1273f41461059657806355f804b3146105c35780635c975abb146105e357600080fd5b80632f2ff15d146104ef57806336568abe1461050f57806337da577c1461052f5780633ccfd60b1461054f5780633f4ba83a14610564578063499dc7cc1461057957600080fd5b806310ffbbdc116102bc578063248a9ca311610296578063248a9ca31461043e5780632a0acc6a1461046e5780632a55205a146104905780632eb2c2d6146104cf57600080fd5b806310ffbbdc146103de578063156e29f6146103fe578063162094c41461041e57600080fd5b806236b41d1461030d578062fdd58e1461032457806301ffc9a71461035757806306fdde031461038757806307575134146103a95780630e89341c146103be57600080fd5b3661030857005b600080fd5b34801561031957600080fd5b50610322610a2c565b005b34801561033057600080fd5b5061034461033f366004613685565b610a75565b6040519081526020015b60405180910390f35b34801561036357600080fd5b506103776103723660046137f6565b610b0c565b604051901515815260200161034e565b34801561039357600080fd5b5061039c610b88565b60405161034e9190613b47565b3480156103b557600080fd5b50610322610c1a565b3480156103ca57600080fd5b5061039c6103d93660046137bc565b610c6c565b3480156103ea57600080fd5b506103226103f9366004613907565b610c77565b34801561040a57600080fd5b506103226104193660046136ae565b610ce7565b34801561042a57600080fd5b506103226104393660046138cd565b610d71565b34801561044a57600080fd5b506103446104593660046137bc565b60009081526006602052604090206001015490565b34801561047a57600080fd5b50610344600080516020613ebb83398151915281565b34801561049c57600080fd5b506104b06104ab366004613907565b610db4565b604080516001600160a01b03909316835260208301919091520161034e565b3480156104db57600080fd5b506103226104ea366004613516565b610e09565b3480156104fb57600080fd5b5061032261050a3660046137d4565b610ea0565b34801561051b57600080fd5b5061032261052a3660046137d4565b610ec6565b34801561053b57600080fd5b5061032261054a366004613907565b610f40565b34801561055b57600080fd5b50610322610fb4565b34801561057057600080fd5b5061032261105c565b34801561058557600080fd5b50600d54610100900460ff16610377565b3480156105a257600080fd5b506105b66105b13660046136e0565b61108e565b60405161034e9190613b06565b3480156105cf57600080fd5b506103226105de36600461382e565b6111ef565b3480156105ef57600080fd5b5060075460ff16610377565b34801561060757600080fd5b506103226106163660046134ca565b61122d565b34801561062757600080fd5b506103446106363660046137bc565b6000908152600c602052604090205490565b610322610656366004613907565b61128c565b34801561066757600080fd5b506103446106763660046137bc565b6112d5565b34801561068757600080fd5b50610322611300565b34801561069c57600080fd5b506103446106ab3660046137bc565b6000908152600a602052604090205490565b3480156106c957600080fd5b506103226106d83660046134ca565b611330565b3480156106e957600080fd5b5060075461010090046001600160a01b03165b6040516001600160a01b03909116815260200161034e565b34801561072057600080fd5b5061037761072f3660046137d4565b6114a1565b34801561074057600080fd5b5061032261074f36600461382e565b6114cc565b34801561076057600080fd5b5061039c61150a565b34801561077557600080fd5b50600d5460ff16610377565b34801561078d57600080fd5b5061034461079c3660046137bc565b6000908152600b602052604090205490565b3480156107ba57600080fd5b50610344600081565b3480156107cf57600080fd5b506103226107de36600461361d565b611519565b3480156107ef57600080fd5b506107f86115f0565b60405161034e9190613ad5565b34801561081157600080fd5b50600d546201000090046001600160a01b03166106fc565b610322610837366004613907565b61162b565b34801561084857600080fd5b506103446108573660046137bc565b6000908152600c6020908152604080832054600b909252909120540390565b34801561088257600080fd5b50610322610891366004613860565b61168a565b3480156108a257600080fd5b506103226108b1366004613653565b611744565b3480156108c257600080fd5b506108d66108d13660046137bc565b611788565b6040805182516001600160a01b03168152602092830151928101929092520161034e565b34801561090657600080fd5b506103226109153660046137d4565b6117f6565b34801561092657600080fd5b50610322610935366004613685565b61181c565b34801561094657600080fd5b5061039c6118b8565b34801561095b57600080fd5b5061037761096a3660046134e4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156109a457600080fd5b506103226109b33660046135bb565b6118c7565b3480156109c457600080fd5b506103226109d33660046134ca565b61194e565b3480156109e457600080fd5b506103226109f33660046136ae565b6119b3565b348015610a0457600080fd5b506103447ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc981565b610a44600080516020613ebb833981519152336114a1565b610a6157604051630318bf7160e11b815260040160405180910390fd5b600d805460ff19811660ff90911615179055565b60006001600160a01b038316610ae65760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b0319821663e62ae09960e01b1480610b3d57506001600160e01b031982166301ffc9a760e01b145b80610b5857506001600160e01b0319821663152a902d60e11b145b80610b7357506001600160e01b031982166308eee7ad60e11b145b80610b825750610b82826119d4565b92915050565b606060088054610b9790613d23565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc390613d23565b8015610c105780601f10610be557610100808354040283529160200191610c10565b820191906000526020600020905b815481529060010190602001808311610bf357829003601f168201915b5050505050905090565b610c32600080516020613ebb833981519152336114a1565b610c4f57604051630318bf7160e11b815260040160405180910390fd5b600d805461ff001981166101009182900460ff1615909102179055565b6060610b8282611a14565b610c8f600080516020613ebb833981519152336114a1565b610cac57604051630318bf7160e11b815260040160405180910390fd5b8060178381548110610cce57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060020201600101819055505050565b610d117ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9336114a1565b610d2e57604051630318bf7160e11b815260040160405180910390fd5b60075460ff1615610d515760405162461bcd60e51b8152600401610add90613ba2565b610d6c83838360405180602001604052806000815250611afc565b505050565b610d89600080516020613ebb833981519152336114a1565b610da657604051630318bf7160e11b815260040160405180910390fd5b610db08282611b72565b5050565b604080518082019091526005546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610df59086613caa565b610dff9190613c96565b9150509250929050565b6001600160a01b038516331480610e255750610e25853361096a565b610e8c5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610add565b610e998585858585611b91565b5050505050565b600082815260066020526040902060010154610ebc8133611d8a565b610d6c8383611dee565b6001600160a01b0381163314610f365760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610add565b610db08282611e74565b610f58600080516020613ebb833981519152336114a1565b610f7557604051630318bf7160e11b815260040160405180910390fd5b6000828152600a602052604090205415610fa25760405163fafbb43760e01b815260040160405180910390fd5b6000918252600a602052604090912055565b610fcc600080516020613ebb833981519152336114a1565b610fe957604051630318bf7160e11b815260040160405180910390fd5b600d546201000090046001600160a01b031661101857604051634725e8d760e11b815260040160405180910390fd5b600d546040516001600160a01b036201000090920491909116904780156108fc02916000818181858888f19350505050158015611059573d6000803e3d6000fd5b50565b6110676000336114a1565b61108457604051630318bf7160e11b815260040160405180910390fd5b61108c611edb565b565b606081518351146110f35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610add565b600083516001600160401b0381111561111c57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611145578160200160208202803683370190505b50905060005b84518110156111e7576111ac85828151811061117757634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061119f57634e487b7160e01b600052603260045260246000fd5b6020026020010151610a75565b8282815181106111cc57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526111e081613d84565b905061114b565b509392505050565b611207600080516020613ebb833981519152336114a1565b61122457604051630318bf7160e11b815260040160405180910390fd5b61105981611f6e565b611245600080516020613ebb833981519152336114a1565b61126257604051630318bf7160e11b815260040160405180910390fd5b600d80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60075460ff16156112af5760405162461bcd60e51b8152600401610add90613ba2565b6112b98282611f81565b610db03360008460405180602001604052806000815250611afc565b6000600e82600581106112f857634e487b7160e01b600052603260045260246000fd5b015492915050565b61130b6000336114a1565b61132857604051630318bf7160e11b815260040160405180910390fd5b61108c6120f4565b611348600080516020613ebb833981519152336114a1565b61136557604051630318bf7160e11b815260040160405180910390fd5b600d546201000090046001600160a01b031661139457604051634725e8d760e11b815260040160405180910390fd5b600d546040516370a0823160e01b815230600482015282916001600160a01b038084169263a9059cbb926201000090049091169083906370a082319060240160206040518083038186803b1580156113eb57600080fd5b505afa1580156113ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142391906138b5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561146957600080fd5b505af115801561147d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6c91906137a0565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6114e4600080516020613ebb833981519152336114a1565b61150157604051630318bf7160e11b815260040160405180910390fd5b6110598161214c565b606060098054610b9790613d23565b336001600160a01b03831614156115845760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610add565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6115f8613315565b6040805160a081019182905290600e9060059082845b81548152602001906001019080831161160e575050505050905090565b60075460ff161561164e5760405162461bcd60e51b8152600401610add90613ba2565b600d54610100900460ff166116765760405163f53e777160e01b815260040160405180910390fd5b6116808282611f81565b610db0338361215f565b6116a2600080516020613ebb833981519152336114a1565b6116bf57604051630318bf7160e11b815260040160405180910390fd5b6017805460018101825560009190915281517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15600290920291820180546001600160a01b0319166001600160a01b039092169190911790556020909101517fc624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c1690910155565b61175c600080516020613ebb833981519152336114a1565b61177957604051630318bf7160e11b815260040160405180910390fd5b610db0828262ffffff16612249565b6040805180820190915260008082526020820152601782815481106117bd57634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915260029092020180546001600160a01b03168252600101549181019190915292915050565b6000828152600660205260409020600101546118128133611d8a565b610d6c8383611e74565b6118467ff0887ba65ee2024ea881d91b74c2450ef19e1557f03bed3ea9f16b037cbe2dc9336114a1565b61186357604051630318bf7160e11b815260040160405180910390fd5b60075460ff16156118865760405162461bcd60e51b8152600401610add90613ba2565b600d54610100900460ff166118ae5760405163f53e777160e01b815260040160405180910390fd5b610db0828261215f565b606060048054610b9790613d23565b6001600160a01b0385163314806118e357506118e3853361096a565b6119415760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610add565b610e9985858585856122e5565b611966600080516020613ebb833981519152336114a1565b61198357604051630318bf7160e11b815260040160405180910390fd5b6001600160a01b0381166119aa576040516349e27cff60e01b815260040160405180910390fd5b6110598161240b565b6119be838383612465565b600d5460ff1615610d6c57610d6c8383836124c2565b60006001600160e01b0319821663da8def7360e01b1480611a0557506001600160e01b03198216635c975abb60e01b145b80610b825750610b82826126cd565b600081815260036020526040812080546060929190611a3290613d23565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5e90613d23565b8015611aab5780601f10611a8057610100808354040283529160200191611aab565b820191906000526020600020905b815481529060010190602001808311611a8e57829003601f168201915b50505050509050600081511115611ac25792915050565b611acb836126f2565b611ad484612786565b604051602001611ae592919061398e565b604051602081830303815290604052915050919050565b6000838152600b60209081526040808320805486019055600a90915290205415801590611b4257506000838152600a6020908152604080832054600b9092529091205410155b15611b605760405163d05cb60960e01b815260040160405180910390fd5b611b6c848484846128a7565b50505050565b60008281526003602090815260409091208251610d6c92840190613333565b8151835114611bf35760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610add565b6001600160a01b038416611c195760405162461bcd60e51b8152600401610add90613bcc565b3360005b8451811015611d1c576000858281518110611c4857634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611c7457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611cc45760405162461bcd60e51b8152600401610add90613c11565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d01908490613c7e565b9250508190555050505080611d1590613d84565b9050611c1d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d6c929190613b19565b60405180910390a4611d828187878787876129a8565b505050505050565b611d9482826114a1565b610db057611dac816001600160a01b03166014612b13565b611db7836020612b13565b604051602001611dc89291906139bd565b60408051601f198184030181529082905262461bcd60e51b8252610add91600401613b47565b611df882826114a1565b610db05760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e303390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e7e82826114a1565b15610db05760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60075460ff16611f245760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610add565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b8051610db0906002906020840190613333565b600060178281548110611fa457634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805180820190915260029092020180546001600160a01b03168252600101549181018290529150611ff5576040516307a4ced160e51b815260040160405180910390fd5b60008160200151846120079190613caa565b82519091506001600160a01b031661203a5780341015611b6c576040516307a4ced160e51b815260040160405180910390fd5b81516001600160a01b0381166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101859052606401602060405180830381600087803b15801561209a57600080fd5b505af11580156120ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120d291906137a0565b1515600114610e99576040516307a4ced160e51b815260040160405180910390fd5b60075460ff16156121175760405162461bcd60e51b8152600401610add90613ba2565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f513390565b8051610db0906004906020840190613333565b806001141561218a57610db082612174612cfb565b8360405180602001604052806000815250611afc565b600a8111156121ac57604051635022635160e11b815260040160405180910390fd5b60006121b782612dcf565b905060005b8151811015611b6c5760008282815181106121e757634e487b7160e01b600052603260045260246000fd5b6020026020010151111561223757612237848284848151811061221a57634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611afc565b8061224181613d84565b9150506121bc565b61271081111561229b5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610add565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260058054600160a01b9093026001600160b81b0319909316909117919091179055565b6001600160a01b03841661230b5760405162461bcd60e51b8152600401610add90613bcc565b3361232481878761231b88612ef3565b610e9988612ef3565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156123655760405162461bcd60e51b8152600401610add90613c11565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906123a2908490613c7e565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612402828888888888612f4c565b50505050505050565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000336001600160a01b03851614806124835750612483843361096a565b9050806124a357604051632ce44b5f60e11b815260040160405180910390fd5b6000838152600c60205260409020805483019055611b6c848484613016565b6124ce60016005613cc9565b8214156124ee576040516326738ae560e21b815260040160405180910390fd5b8160006124fc826001613c7e565b9050600080600e846005811061252257634e487b7160e01b600052603260045260246000fd5b0154905080858161254357634e487b7160e01b600052601260045260246000fd5b049150816125545750505050505050565b6000838152600a60205260409020546000858152600b60205260409020548301111561259357604051630249c5d960e31b815260040160405180910390fd5b825b60058110156126b1576000600e82600581106125c157634e487b7160e01b600052603260045260246000fd5b0154905080841061269c5760008185816125eb57634e487b7160e01b600052601260045260246000fd5b0490508181028503612609846000908152600a602052604090205490565b6000858152600b60205260409020548701111561263957604051630249c5d960e31b815260040160405180910390fd5b6004841461266d576000848152600b602090815260408083208054858b03908101909155600c909252909120805490910190555b801561268e5761268e8b858360405180602001604052806000815250611afc565b5060019096019593506126a8565b506001909401936126b1565b50600101612595565b5061240287858460405180602001604052806000815250611afc565b60006001600160e01b03198216637965db0b60e01b1480610b825750610b8282613190565b60606002805461270190613d23565b80601f016020809104026020016040519081016040528092919081815260200182805461272d90613d23565b801561277a5780601f1061274f5761010080835404028352916020019161277a565b820191906000526020600020905b81548152906001019060200180831161275d57829003601f168201915b50505050509050919050565b6060816127aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127d457806127be81613d84565b91506127cd9050600a83613c96565b91506127ae565b6000816001600160401b038111156127fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612826576020820181803683370190505b5090505b841561289f5761283b600183613cc9565b9150612848600a86613d9f565b612853906030613c7e565b60f81b81838151811061287657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612898600a86613c96565b945061282a565b949350505050565b6001600160a01b0384166129075760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610add565b336129188160008761231b88612ef3565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612948908490613c7e565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e9981600087878787612f4c565b6001600160a01b0384163b15611d825760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906129ec9089908990889088908890600401613a32565b602060405180830381600087803b158015612a0657600080fd5b505af1925050508015612a36575060408051601f3d908101601f19168201909252612a3391810190613812565b60015b612ae357612a42613df5565b806308c379a01415612a7c5750612a57613e0d565b80612a625750612a7e565b8060405162461bcd60e51b8152600401610add9190613b47565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610add565b6001600160e01b0319811663bc197c8160e01b146124025760405162461bcd60e51b8152600401610add90613b5a565b60606000612b22836002613caa565b612b2d906002613c7e565b6001600160401b03811115612b5257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b7c576020820181803683370190505b509050600360fc1b81600081518110612ba557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612be257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612c06846002613caa565b612c11906001613c7e565b90505b6001811115612ca5576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612c5357634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612c7757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c93612c9e81613d0c565b9050612c14565b508315612cf45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610add565b9392505050565b600080612d066131b5565b9050600081600183510381518110612d2e57634e487b7160e01b600052603260045260246000fd5b602002602001015190508060001415612d5a5760405163176eaca360e31b815260040160405180910390fd5b6000612d6760018361328e565b905060005b6004811015612db35781848281518110612d9657634e487b7160e01b600052603260045260246000fd5b602002602001015110612dab57949350505050565b600101612d6c565b50505060405163176eaca360e31b815260040160405180910390fd5b60606000612ddb6131b5565b60408051600480825260a0820190925291925060208201608080368337019050509150600081600183510381518110612e2457634e487b7160e01b600052603260045260246000fd5b602002602001015190508060001415612e505760405163176eaca360e31b815260040160405180910390fd5b60005b84811015612eeb576000612e67828461328e565b905060005b6004811015612ee15781858281518110612e9657634e487b7160e01b600052603260045260246000fd5b602002602001015110612ed957858181518110612ec357634e487b7160e01b600052603260045260246000fd5b6020908102919091010180516001019052612ee1565b600101612e6c565b5050600101612e53565b505050919050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612f3b57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611d825760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f909089908990889088908890600401613a90565b602060405180830381600087803b158015612faa57600080fd5b505af1925050508015612fda575060408051601f3d908101601f19168201909252612fd791810190613812565b60015b612fe657612a42613df5565b6001600160e01b0319811663f23a6e6160e01b146124025760405162461bcd60e51b8152600401610add90613b5a565b6001600160a01b0383166130785760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610add565b336130a88185600061308987612ef3565b61309287612ef3565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156131255760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610add565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b0319821663152a902d60e11b1480610b825750610b82826132c5565b60408051600480825260a08201909252606091600091906020820160808036833701905050905060005b6004811015613288576000818152600b6020526040902054811561322d5782600183038151811061322057634e487b7160e01b600052603260045260246000fd5b6020026020010151613230565b60005b6013836004811061325157634e487b7160e01b600052603260045260246000fd5b0154010382828151811061327557634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001016131df565b50919050565b60408051426020808301919091528183018590528251808303840181526060909201909252805191012060009061289f8382613d9f565b60006001600160e01b03198216636cdb3d1360e11b14806132f657506001600160e01b031982166303a24d0760e21b145b80610b8257506301ffc9a760e01b6001600160e01b0319831614610b82565b6040518060a001604052806005906020820280368337509192915050565b82805461333f90613d23565b90600052602060002090601f01602090048101928261336157600085556133a7565b82601f1061337a57805160ff19168380011785556133a7565b828001600101855582156133a7579182015b828111156133a757825182559160200191906001019061338c565b506133b39291506133b7565b5090565b5b808211156133b357600081556001016133b8565b80356001600160a01b03811681146133e357600080fd5b919050565b600082601f8301126133f8578081fd5b8135602061340582613c5b565b6040516134128282613d58565b8381528281019150858301600585901b87018401881015613431578586fd5b855b8581101561344f57813584529284019290840190600101613433565b5090979650505050505050565b600082601f83011261346c578081fd5b81356001600160401b0381111561348557613485613ddf565b60405161349c601f8301601f191660200182613d58565b8181528460208386010111156134b0578283fd5b816020850160208301379081016020019190915292915050565b6000602082840312156134db578081fd5b612cf4826133cc565b600080604083850312156134f6578081fd5b6134ff836133cc565b915061350d602084016133cc565b90509250929050565b600080600080600060a0868803121561352d578081fd5b613536866133cc565b9450613544602087016133cc565b935060408601356001600160401b038082111561355f578283fd5b61356b89838a016133e8565b94506060880135915080821115613580578283fd5b61358c89838a016133e8565b935060808801359150808211156135a1578283fd5b506135ae8882890161345c565b9150509295509295909350565b600080600080600060a086880312156135d2578081fd5b6135db866133cc565b94506135e9602087016133cc565b9350604086013592506060860135915060808601356001600160401b03811115613611578182fd5b6135ae8882890161345c565b6000806040838503121561362f578182fd5b613638836133cc565b9150602083013561364881613e96565b809150509250929050565b60008060408385031215613665578182fd5b61366e836133cc565b9150602083013562ffffff81168114613648578182fd5b60008060408385031215613697578182fd5b6136a0836133cc565b946020939093013593505050565b6000806000606084860312156136c2578081fd5b6136cb846133cc565b95602085013595506040909401359392505050565b600080604083850312156136f2578182fd5b82356001600160401b0380821115613708578384fd5b818501915085601f83011261371b578384fd5b8135602061372882613c5b565b6040516137358282613d58565b8381528281019150858301600585901b870184018b1015613754578889fd5b8896505b8487101561377d57613769816133cc565b835260019690960195918301918301613758565b5096505086013592505080821115613793578283fd5b50610dff858286016133e8565b6000602082840312156137b1578081fd5b8151612cf481613e96565b6000602082840312156137cd578081fd5b5035919050565b600080604083850312156137e6578182fd5b8235915061350d602084016133cc565b600060208284031215613807578081fd5b8135612cf481613ea4565b600060208284031215613823578081fd5b8151612cf481613ea4565b60006020828403121561383f578081fd5b81356001600160401b03811115613854578182fd5b61289f8482850161345c565b600060408284031215613871578081fd5b604051604081018181106001600160401b038211171561389357613893613ddf565b60405261389f836133cc565b8152602083013560208201528091505092915050565b6000602082840312156138c6578081fd5b5051919050565b600080604083850312156138df578182fd5b8235915060208301356001600160401b038111156138fb578182fd5b610dff8582860161345c565b60008060408385031215613919578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b838110156139575781518752958201959082019060010161393b565b509495945050505050565b6000815180845261397a816020860160208601613ce0565b601f01601f19169290920160200192915050565b600083516139a0818460208801613ce0565b8351908301906139b4818360208801613ce0565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516139f5816017850160208801613ce0565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613a26816028840160208801613ce0565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613a5e90830186613928565b8281036060840152613a708186613928565b90508281036080840152613a848185613962565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613aca90830184613962565b979650505050505050565b60a08101818360005b6005811015613afd578151835260209283019290910190600101613ade565b50505092915050565b602081526000612cf46020830184613928565b604081526000613b2c6040830185613928565b8281036020840152613b3e8185613928565b95945050505050565b602081526000612cf46020830184613962565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60006001600160401b03821115613c7457613c74613ddf565b5060051b60200190565b60008219821115613c9157613c91613db3565b500190565b600082613ca557613ca5613dc9565b500490565b6000816000190483118215151615613cc457613cc4613db3565b500290565b600082821015613cdb57613cdb613db3565b500390565b60005b83811015613cfb578181015183820152602001613ce3565b83811115611b6c5750506000910152565b600081613d1b57613d1b613db3565b506000190190565b600181811c90821680613d3757607f821691505b6020821081141561328857634e487b7160e01b600052602260045260246000fd5b601f8201601f191681016001600160401b0381118282101715613d7d57613d7d613ddf565b6040525050565b6000600019821415613d9857613d98613db3565b5060010190565b600082613dae57613dae613dc9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613e0a57600481823e5160e01c5b90565b600060443d1015613e1b5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e4a57505050505090565b8285019150815181811115613e625750505050505090565b843d8701016020828501011115613e7c5750505050505090565b613e8b60208286010187613d58565b509095945050505050565b801515811461105957600080fd5b6001600160e01b03198116811461105957600080fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42a2646970667358221220e34f70ac973761caf8026b1c7272bb28a429f75b43ac1a77414d9e19d4b912c964736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696766667379686269617a736e377376743673613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f626166796265696766667379686269617a736e377376743673613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000763bfbd22000000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe00000000000000000000000000000000000000000000000000000000004c4b4000000000000000000000000074b988156925937bd4e082f0ed7429da8eaea8db0000000000000000000000000000000000000000000069e10de76676d0800000

-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://bafybeigffsyhbiazsn7svt6sa3tijls5zgpc6vaa4omhjukkbiudkrzyya.ipfs.nftstorage.link/
Arg [1] : contractURI (string): https://bafybeigffsyhbiazsn7svt6sa3tijls5zgpc6vaa4omhjukkbiudkrzyya.ipfs.nftstorage.link/
Arg [2] : royaltyRecipient (address): 0x0000000000000000000000000000000000000000
Arg [3] : royaltyValue (uint24): 0
Arg [4] : paymentTokens (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
20 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [6] : 68747470733a2f2f626166796265696766667379686269617a736e3773767436
Arg [7] : 73613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a
Arg [8] : 7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [10] : 68747470733a2f2f626166796265696766667379686269617a736e3773767436
Arg [11] : 73613374696a6c73357a67706336766161346f6d686a756b6b626975646b727a
Arg [12] : 7979612e697066732e6e667473746f726167652e6c696e6b2f00000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000763bfbd22000
Arg [16] : 000000000000000000000000d5525d397898e5502075ea5e830d8914f6f0affe
Arg [17] : 00000000000000000000000000000000000000000000000000000000004c4b40
Arg [18] : 00000000000000000000000074b988156925937bd4e082f0ed7429da8eaea8db
Arg [19] : 0000000000000000000000000000000000000000000069e10de76676d0800000


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.