ETH Price: $3,341.15 (-1.02%)

Token

 

Overview

Max Total Supply

4,542

Holders

294

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0xb095e367a73Ef25490884Df479E4516b3F25eE08
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:
Bodega

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : bodega.sol
// SPDX-License-Identifier: MIT

/*___   __  ____  ____  ___   __  
(  _ \ /  \(    \(  __)/ __) / _\ 
 ) _ ((  O )) D ( ) _)( (_ \/    \
(____/ \__/(____/(____)\___/\_/\_/  */

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

pragma solidity 0.8.14;

interface IGoodGuys {
    function balanceOf(address) external view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

struct Collection {
    uint256 lower;
    uint256 upper;
    uint256 supply;
    uint256 currentSupply;
    bool paused;
}

contract Bodega is ERC1155, Ownable {
    using Strings for uint256;

    event CollectionToggled(bool indexed newState);
    event CollectionCreated(uint256 indexed index, uint256 indexed collectionId, bool indexed fungible);
    event URISet(string indexed newUri);

    error Unauthorized();
    error Paused();
    error UnknownCollection();
    error UnknownToken();
    error ClaimantMismatch();
    error CannotMintPasses();
    error MintingExceedsSupply();
    error InsufficientPassBalance();
    error InvalidSignature();
    error GGsNotFound();
    error ZeroSupply();
    error ZeroQuantity();

    address private constant GG = 0x13e7d08Ed191346d9FEE3b46a91c1596393dCd66;
    IGoodGuys private constant IGG = IGoodGuys(GG);

    address public constant OS_PRA = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;

    uint256 private constant PASSES_PER_GG = 3;
    uint256 private constant PASS_ID = 0;

    mapping(uint256 => uint256) private _ggUsed;
    mapping(uint256 => Collection) public collections;
    uint256 public collectionsCount;
    string private _uri;

    /* =============== INIT =============== */
    constructor(string memory uri_) ERC1155(uri_) {
        _uri = uri_;
        _createCollection(0, 0, 0, false, true);
    }

    /* =============== VIEWS =============== */
    function claimable(address by) external view returns (uint256) {
        (, uint256 unclaimed) = _collectUnclaimed(by);
        return (unclaimed * PASSES_PER_GG);
    }

    function used(uint256 ggId) external view returns (bool) {
        return _isClaimed(ggId);
    }

    function uri(uint256 tokenId)
        public view virtual override returns (string memory)
    {
        uint256 collectionId = _collectionByTokenId(tokenId);
        Collection storage coll = collections[collectionId];

        if (coll.lower == coll.upper) {
            if (collectionId > 0 && coll.currentSupply == 0) revert UnknownToken();
            return string(abi.encodePacked(_uri, collectionId.toString(), "/default.json"));
        } else {
            if (tokenId >= coll.lower + coll.currentSupply) revert UnknownToken();
            return string(abi.encodePacked(_uri, collectionId.toString(), "/", tokenId.toString(), ".json"));
        }
    }

    function isApprovedForAll(address owner_, address operator)
        public view override returns (bool)
    {
        ProxyRegistry proxyRegistry = ProxyRegistry(OS_PRA);
        if (address(proxyRegistry.proxies(owner_)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner_, operator);
    }

    /* =============== PUBLIC MUTATORS =============== */
    
    function claim() external {
        _whenNotPaused(PASS_ID);

        // only returns unclaimed tokens
        (uint256[] memory ggs, uint256 unclaimed) = _collectUnclaimed(
            msg.sender
        );

        for (uint256 t = 0; t < unclaimed; t++) {
            _setClaimed(ggs[t]);
        }

        _mintPasses(msg.sender, unclaimed * PASSES_PER_GG);
    }

    function mintToken(uint256 collectionId, uint256 qt) external {
        _collectionExists(collectionId);
        if (collectionId == 0) revert CannotMintPasses();
        _whenNotPaused(collectionId);
        if (qt == 0) revert ZeroQuantity();

        Collection storage coll = collections[collectionId];
        if (coll.currentSupply + qt > coll.supply)
            revert MintingExceedsSupply();
        if (balanceOf(msg.sender, PASS_ID) < qt)
            revert InsufficientPassBalance();

        _burnPasses(msg.sender, qt);

        uint256 currentSupply = coll.currentSupply;
        coll.currentSupply += qt;

        if (coll.upper == coll.lower) {
            _mint(msg.sender, coll.lower, qt, "");
        } else {
            uint256 base = coll.lower + currentSupply;
            for (uint256 t = base; t < base + qt; t++) {
                _mint(msg.sender, t, 1, "");
            }
        }
    }

    /* =============== ADMIN MUTATORS  =============== */
    function setURI(string memory uri_) external {
        _onlyOwner();
        emit URISet(uri_);
        _uri = uri_;
    }

    function createCollection(uint256 supply, bool fungible) external {
        _onlyOwner();
        if (supply == 0) revert ZeroSupply();

        Collection storage lastColl = collections[collectionsCount - 1];

        uint256 lower = lastColl.upper + 1;

        if (fungible) {
            _createCollection(lower, lower, supply, true, true);
        } else {
            _createCollection(lower, lower + supply - 1, supply, true, false);
        }
    }

    function claimOwner(uint256 qt) external {
        _onlyOwner();
        if (qt == 0) revert ZeroQuantity();

        _mintPasses(msg.sender, qt);
    }

    function toggle(uint256 collectionId) external {
        _onlyOwner();
        _collectionExists(collectionId);
        bool newState = !collections[collectionId].paused;
        emit CollectionToggled(newState);
        collections[collectionId].paused = newState;
    }

    /* =============== INTERNALS/MODIFIERS =============== */
    function _collectionByTokenId(uint256 tokenId)
        internal
        view
        returns (uint256 collectionId)
    {
        bool found = false;
        for (uint256 c = 0; c < collectionsCount; c++) {
            Collection storage coll = collections[c];
            if (coll.lower <= tokenId && coll.upper >= tokenId) {
                collectionId = c;
                found = true;
                break;
            }
        }

        if (!found) revert UnknownCollection();
    }

    function _createCollection(uint256 lower, uint256 upper, uint256 supply, bool paused, bool fungible) internal {
        collections[collectionsCount] = Collection(lower, upper, supply, 0, paused);

        emit CollectionCreated(lower, collectionsCount, fungible);
        collectionsCount++;
    }

    function _onlyOwner() internal view {
        if (msg.sender != owner()) revert Unauthorized();
    }

    function _collectionExists(uint256 collectionId) internal view {
        if (collectionId >= collectionsCount) revert UnknownCollection();
    }

    function _whenNotPaused(uint256 collectionId) internal view {
        if (collections[collectionId].paused) revert Paused();
    }

    function _setClaimed(uint256 index) internal {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        _ggUsed[claimedWordIndex] =
            _ggUsed[claimedWordIndex] |
            (1 << claimedBitIndex);
    }

    function _isClaimed(uint256 index) internal view returns (bool) {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        uint256 claimedWord = _ggUsed[claimedWordIndex];
        uint256 mask = (1 << claimedBitIndex);
        return claimedWord & mask == mask;
    }

    function _collectUnclaimed(address by)
        internal
        view
        returns (uint256[] memory, uint256)
    {
        uint256 callerGGBalance = IGG.balanceOf(by);
        if (callerGGBalance == 0) revert GGsNotFound();

        uint256 unclaimedCount = 0;
        uint256[] memory unclaimedIds = new uint256[](callerGGBalance);

        for (uint256 t = 0; t < callerGGBalance; t++) {
            uint256 tokenId = IGG.tokenOfOwnerByIndex(by, t);
            if (!_isClaimed(tokenId)) {
                unclaimedIds[unclaimedCount] = tokenId;
                unclaimedCount++;
            }
        }

        if (unclaimedCount == 0) revert GGsNotFound();
        return (unclaimedIds, unclaimedCount);
    }

    function _mintPasses(address to, uint256 qt) internal {
        collections[PASS_ID].currentSupply += qt;
        _mint(to, PASS_ID, qt, "");
    }

    function _burnPasses(address from, uint256 qt) internal {
        collections[PASS_ID].currentSupply -= qt;
        _burn(from, PASS_ID, qt);
    }
}

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

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: address zero is not a valid owner");
        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 {
        _setApprovalForAll(_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 token 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: caller is not token 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();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, 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);

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

        _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);

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

        _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 `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

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

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

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * 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 _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);

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

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

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

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

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

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

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

        address operator = _msgSender();

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

        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: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

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

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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 `ids` and `amounts` 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 {}

    /**
     * @dev Hook that is called after 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 _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

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

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

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

        return array;
    }
}

File 3 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 4 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

File 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 11 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

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 9 of 11 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

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.
     *
     * NOTE: 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.
     *
     * NOTE: 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 10 of 11 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

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 have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotMintPasses","type":"error"},{"inputs":[],"name":"ClaimantMismatch","type":"error"},{"inputs":[],"name":"GGsNotFound","type":"error"},{"inputs":[],"name":"InsufficientPassBalance","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintingExceedsSupply","type":"error"},{"inputs":[],"name":"Paused","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnknownCollection","type":"error"},{"inputs":[],"name":"UnknownToken","type":"error"},{"inputs":[],"name":"ZeroQuantity","type":"error"},{"inputs":[],"name":"ZeroSupply","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":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"collectionId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"fungible","type":"bool"}],"name":"CollectionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"newState","type":"bool"}],"name":"CollectionToggled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"newUri","type":"string"}],"name":"URISet","type":"event"},{"inputs":[],"name":"OS_PRA","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"qt","type":"uint256"}],"name":"claimOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"by","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collections","outputs":[{"internalType":"uint256","name":"lower","type":"uint256"},{"internalType":"uint256","name":"upper","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"currentSupply","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"bool","name":"fungible","type":"bool"}],"name":"createCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"},{"internalType":"uint256","name":"qt","type":"uint256"}],"name":"mintToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collectionId","type":"uint256"}],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ggId","type":"uint256"}],"name":"used","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162004b3138038062004b318339818101604052810190620000379190620004b7565b806200004981620000a260201b60201c565b506200006a6200005e620000be60201b60201c565b620000c660201b60201c565b8060079080519060200190620000829291906200026a565b506200009b60008060008060016200018c60201b60201c565b50620005f2565b8060029080519060200190620000ba9291906200026a565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6040518060a00160405280868152602001858152602001848152602001600081526020018315158152506005600060065481526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050801515600654867ff07330ef2b4571f1108d25a75cfb8e1873301a81d6e6d8f634b4b9e67397886c60405160405180910390a4600660008154809291906200025e9062000541565b91905055505050505050565b8280546200027890620005bd565b90600052602060002090601f0160209004810192826200029c5760008555620002e8565b82601f10620002b757805160ff1916838001178555620002e8565b82800160010185558215620002e8579182015b82811115620002e7578251825591602001919060010190620002ca565b5b509050620002f79190620002fb565b5090565b5b8082111562000316576000816000905550600101620002fc565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003838262000338565b810181811067ffffffffffffffff82111715620003a557620003a462000349565b5b80604052505050565b6000620003ba6200031a565b9050620003c8828262000378565b919050565b600067ffffffffffffffff821115620003eb57620003ea62000349565b5b620003f68262000338565b9050602081019050919050565b60005b838110156200042357808201518184015260208101905062000406565b8381111562000433576000848401525b50505050565b6000620004506200044a84620003cd565b620003ae565b9050828152602081018484840111156200046f576200046e62000333565b5b6200047c84828562000403565b509392505050565b600082601f8301126200049c576200049b6200032e565b5b8151620004ae84826020860162000439565b91505092915050565b600060208284031215620004d057620004cf62000324565b5b600082015167ffffffffffffffff811115620004f157620004f062000329565b5b620004ff8482850162000484565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b60006200054e8262000537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000583576200058262000508565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620005d657607f821691505b602082108103620005ec57620005eb6200058e565b5b50919050565b61452f80620006026000396000f3fe608060405234801561001057600080fd5b50600436106101415760003560e01c80634e71d92d116100b8578063b61c94b01161007c578063b61c94b01461035e578063dfc0562d1461037a578063e985e9c514610398578063f242432a146103c8578063f2fde38b146103e4578063fdbda0ec1461040057610141565b80634e71d92d146102f4578063715018a6146102fe578063751ef753146103085780638da5cb5b14610324578063a22cb4651461034257610141565b806320cbf5f91161010a57806320cbf5f91461022257806324cc06621461023e5780632eb2c2d61461025c578063306e430314610278578063402914f5146102945780634e1273f4146102c457610141565b8062fdd58e1461014657806301ffc9a714610176578063020fe6e5146101a657806302fe5305146101d65780630e89341c146101f2575b600080fd5b610160600480360381019061015b9190612ace565b610434565b60405161016d9190612b1d565b60405180910390f35b610190600480360381019061018b9190612b90565b6104fc565b60405161019d9190612bd8565b60405180910390f35b6101c060048036038101906101bb9190612bf3565b6105de565b6040516101cd9190612bd8565b60405180910390f35b6101f060048036038101906101eb9190612d66565b6105f0565b005b61020c60048036038101906102079190612bf3565b610654565b6040516102199190612e37565b60405180910390f35b61023c60048036038101906102379190612e59565b610793565b005b610246610987565b6040516102539190612b1d565b60405180910390f35b61027660048036038101906102719190613002565b61098d565b005b610292600480360381019061028d91906130fd565b610a2e565b005b6102ae60048036038101906102a9919061313d565b610af0565b6040516102bb9190612b1d565b60405180910390f35b6102de60048036038101906102d9919061322d565b610b14565b6040516102eb9190613363565b60405180910390f35b6102fc610c2d565b005b610306610ca3565b005b610322600480360381019061031d9190612bf3565b610cb7565b005b61032c610d52565b6040516103399190613394565b60405180910390f35b61035c600480360381019061035791906133af565b610d7c565b005b61037860048036038101906103739190612bf3565b610d92565b005b610382610de1565b60405161038f9190613394565b60405180910390f35b6103b260048036038101906103ad91906133ef565b610df9565b6040516103bf9190612bd8565b60405180910390f35b6103e260048036038101906103dd919061342f565b610edd565b005b6103fe60048036038101906103f9919061313d565b610f7e565b005b61041a60048036038101906104159190612bf3565b611001565b60405161042b9594939291906134c6565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049b9061358b565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105d757506105d682611044565b5b9050919050565b60006105e9826110ae565b9050919050565b6105f8611104565b8060405161060691906135e7565b60405180910390207fde63cc2d19581e57e158d078c2df83f9ab70addd6257f7f12bfecb21c06c912860405160405180910390a28060079080519060200190610650929190612983565b5050565b6060600061066183611172565b9050600060056000838152602001908152602001600020905080600101548160000154036107085760008211801561069d575060008160030154145b156106d4576040517f8698bf3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60076106df83611219565b6040516020016106f092919061373e565b6040516020818303038152906040529250505061078e565b8060030154816000015461071c919061379c565b8410610754576040517f8698bf3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600761075f83611219565b61076886611219565b60405160200161077a9392919061388a565b604051602081830303815290604052925050505b919050565b61079c82611379565b600082036107d6576040517f7cd2f75800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107df826113b7565b60008103610819576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006005600084815260200190815260200160002090508060020154828260030154610845919061379c565b111561087d576040517fc204907b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81610889336000610434565b10156108c1576040517ffa836f3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108cb3383611415565b600081600301549050828260030160008282546108e8919061379c565b9250508190555081600001548260010154036109225761091d3383600001548560405180602001604052806000815250611452565b610981565b6000818360000154610934919061379c565b905060008190505b8482610948919061379c565b81101561097e5761096b3382600160405180602001604052806000815250611452565b8080610976906138d1565b91505061093c565b50505b50505050565b60065481565b610995611602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109db57506109da856109d5611602565b610df9565b5b610a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a119061398b565b60405180910390fd5b610a27858585858561160a565b5050505050565b610a36611104565b60008203610a70576040517fc16f3a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600560006001600654610a8591906139ab565b81526020019081526020016000209050600060018260010154610aa8919061379c565b90508215610ac357610abe81828660018061192b565b610aea565b610ae98160018684610ad5919061379c565b610adf91906139ab565b866001600061192b565b5b50505050565b600080610afc83611a07565b915050600381610b0c91906139df565b915050919050565b60608151835114610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190613aab565b60405180910390fd5b6000835167ffffffffffffffff811115610b7757610b76612c3b565b5b604051908082528060200260200182016040528015610ba55781602001602082028036833780820191505090505b50905060005b8451811015610c2257610bf2858281518110610bca57610bc9613acb565b5b6020026020010151858381518110610be557610be4613acb565b5b6020026020010151610434565b828281518110610c0557610c04613acb565b5b60200260200101818152505080610c1b906138d1565b9050610bab565b508091505092915050565b610c3760006113b7565b600080610c4333611a07565b9150915060005b81811015610c8857610c75838281518110610c6857610c67613acb565b5b6020026020010151611c5c565b8080610c80906138d1565b915050610c4a565b50610c9f33600383610c9a91906139df565b611cb6565b5050565b610cab611d03565b610cb56000611d81565b565b610cbf611104565b610cc881611379565b60006005600083815260200190815260200160002060040160009054906101000a900460ff161590508015157f16d4f5007f109cb3134102afe9b985ca582667ac474162cdd37db4e6a667987e60405160405180910390a2806005600084815260200190815260200160002060040160006101000a81548160ff0219169083151502179055505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d8e610d87611602565b8383611e47565b5050565b610d9a611104565b60008103610dd4576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dde3382611cb6565b50565b73a5409ec958c83c3f309868babaca7c86dcb077c181565b60008073a5409ec958c83c3f309868babaca7c86dcb077c190508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401610e639190613394565b602060405180830381865afa158015610e80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea49190613b38565b73ffffffffffffffffffffffffffffffffffffffff1603610ec9576001915050610ed7565b610ed38484611fb3565b9150505b92915050565b610ee5611602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f2b5750610f2a85610f25611602565b610df9565b5b610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f619061398b565b60405180910390fd5b610f778585858585612047565b5050505050565b610f86611d03565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fec90613bd7565b60405180910390fd5b610ffe81611d81565b50565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080610100836110bf9190613c26565b90506000610100846110d19190613c57565b90506000600460008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b61110c610d52565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611170576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000806000905060005b6006548110156111db576000600560008381526020019081526020016000209050848160000154111580156111b5575084816001015410155b156111c75781935060019250506111db565b5080806111d3906138d1565b91505061117c565b5080611213576040517f6f684e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b606060008203611260576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611374565b600082905060005b6000821461129257808061127b906138d1565b915050600a8261128b9190613c26565b9150611268565b60008167ffffffffffffffff8111156112ae576112ad612c3b565b5b6040519080825280601f01601f1916602001820160405280156112e05781602001600182028036833780820191505090505b5090505b6000851461136d576001826112f991906139ab565b9150600a856113089190613c57565b6030611314919061379c565b60f81b81838151811061132a57611329613acb565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856113669190613c26565b94506112e4565b8093505050505b919050565b60065481106113b4576040517f6f684e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6005600082815260200190815260200160002060040160009054906101000a900460ff1615611412576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b8060056000808152602001908152602001600020600301600082825461143b91906139ab565b9250508190555061144e826000836122e2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613cfa565b60405180910390fd5b60006114cb611602565b905060006114d885612528565b905060006114e585612528565b90506114f6836000898585896125a2565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611555919061379c565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516115d3929190613d1a565b60405180910390a46115ea836000898585896125aa565b6115f9836000898989896125b2565b50505050505050565b600033905090565b815183511461164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590613db5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490613e47565b60405180910390fd5b60006116c7611602565b90506116d78187878787876125a2565b60005b84518110156118885760008582815181106116f8576116f7613acb565b5b60200260200101519050600085838151811061171757611716613acb565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156117b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117af90613ed9565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461186d919061379c565b9250508190555050505080611881906138d1565b90506116da565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516118ff929190613ef9565b60405180910390a46119158187878787876125aa565b611923818787878787612789565b505050505050565b6040518060a00160405280868152602001858152602001848152602001600081526020018315158152506005600060065481526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050801515600654867ff07330ef2b4571f1108d25a75cfb8e1873301a81d6e6d8f634b4b9e67397886c60405160405180910390a4600660008154809291906119fb906138d1565b91905055505050505050565b60606000807313e7d08ed191346d9fee3b46a91c1596393dcd6673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401611a599190613394565b602060405180830381865afa158015611a76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9a9190613f45565b905060008103611ad6576040517f563165f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808267ffffffffffffffff811115611af357611af2612c3b565b5b604051908082528060200260200182016040528015611b215781602001602082028036833780820191505090505b50905060005b83811015611c135760007313e7d08ed191346d9fee3b46a91c1596393dcd6673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b8152600401611b80929190613f72565b602060405180830381865afa158015611b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc19190613f45565b9050611bcc816110ae565b611bff5780838581518110611be457611be3613acb565b5b6020026020010181815250508380611bfb906138d1565b9450505b508080611c0b906138d1565b915050611b27565b5060008203611c4e576040517f563165f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808294509450505050915091565b600061010082611c6c9190613c26565b9050600061010083611c7e9190613c57565b9050806001901b6004600084815260200190815260200160002054176004600084815260200190815260200160002081905550505050565b80600560008081526020019081526020016000206003016000828254611cdc919061379c565b92505081905550611cff8260008360405180602001604052806000815250611452565b5050565b611d0b611602565b73ffffffffffffffffffffffffffffffffffffffff16611d29610d52565b73ffffffffffffffffffffffffffffffffffffffff1614611d7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7690613fe7565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eac90614079565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fa69190612bd8565b60405180910390a3505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ad90613e47565b60405180910390fd5b60006120c0611602565b905060006120cd85612528565b905060006120da85612528565b90506120ea8389898585896125a2565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217890613ed9565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612236919061379c565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516122b3929190613d1a565b60405180910390a46122c9848a8a86868a6125aa565b6122d7848a8a8a8a8a6125b2565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123489061410b565b60405180910390fd5b600061235b611602565b9050600061236884612528565b9050600061237584612528565b9050612395838760008585604051806020016040528060008152506125a2565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561242c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124239061419d565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516124f9929190613d1a565b60405180910390a461251f848860008686604051806020016040528060008152506125aa565b50505050505050565b60606000600167ffffffffffffffff81111561254757612546612c3b565b5b6040519080825280602002602001820160405280156125755781602001602082028036833780820191505090505b509050828160008151811061258d5761258c613acb565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6125d18473ffffffffffffffffffffffffffffffffffffffff16612960565b15612781578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612617959493929190614212565b6020604051808303816000875af192505050801561265357506040513d601f19601f820116820180604052508101906126509190614281565b60015b6126f85761265f6142bb565b806308c379a0036126bb57506126736142dd565b8061267e57506126bd565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b29190612e37565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef906143df565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461277f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277690614471565b60405180910390fd5b505b505050505050565b6127a88473ffffffffffffffffffffffffffffffffffffffff16612960565b15612958578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016127ee959493929190614491565b6020604051808303816000875af192505050801561282a57506040513d601f19601f820116820180604052508101906128279190614281565b60015b6128cf576128366142bb565b806308c379a003612892575061284a6142dd565b806128555750612894565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128899190612e37565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c6906143df565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90614471565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461298f9061362d565b90600052602060002090601f0160209004810192826129b157600085556129f8565b82601f106129ca57805160ff19168380011785556129f8565b828001600101855582156129f8579182015b828111156129f75782518255916020019190600101906129dc565b5b509050612a059190612a09565b5090565b5b80821115612a22576000816000905550600101612a0a565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a6582612a3a565b9050919050565b612a7581612a5a565b8114612a8057600080fd5b50565b600081359050612a9281612a6c565b92915050565b6000819050919050565b612aab81612a98565b8114612ab657600080fd5b50565b600081359050612ac881612aa2565b92915050565b60008060408385031215612ae557612ae4612a30565b5b6000612af385828601612a83565b9250506020612b0485828601612ab9565b9150509250929050565b612b1781612a98565b82525050565b6000602082019050612b326000830184612b0e565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b6d81612b38565b8114612b7857600080fd5b50565b600081359050612b8a81612b64565b92915050565b600060208284031215612ba657612ba5612a30565b5b6000612bb484828501612b7b565b91505092915050565b60008115159050919050565b612bd281612bbd565b82525050565b6000602082019050612bed6000830184612bc9565b92915050565b600060208284031215612c0957612c08612a30565b5b6000612c1784828501612ab9565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c7382612c2a565b810181811067ffffffffffffffff82111715612c9257612c91612c3b565b5b80604052505050565b6000612ca5612a26565b9050612cb18282612c6a565b919050565b600067ffffffffffffffff821115612cd157612cd0612c3b565b5b612cda82612c2a565b9050602081019050919050565b82818337600083830152505050565b6000612d09612d0484612cb6565b612c9b565b905082815260208101848484011115612d2557612d24612c25565b5b612d30848285612ce7565b509392505050565b600082601f830112612d4d57612d4c612c20565b5b8135612d5d848260208601612cf6565b91505092915050565b600060208284031215612d7c57612d7b612a30565b5b600082013567ffffffffffffffff811115612d9a57612d99612a35565b5b612da684828501612d38565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612de9578082015181840152602081019050612dce565b83811115612df8576000848401525b50505050565b6000612e0982612daf565b612e138185612dba565b9350612e23818560208601612dcb565b612e2c81612c2a565b840191505092915050565b60006020820190508181036000830152612e518184612dfe565b905092915050565b60008060408385031215612e7057612e6f612a30565b5b6000612e7e85828601612ab9565b9250506020612e8f85828601612ab9565b9150509250929050565b600067ffffffffffffffff821115612eb457612eb3612c3b565b5b602082029050602081019050919050565b600080fd5b6000612edd612ed884612e99565b612c9b565b90508083825260208201905060208402830185811115612f0057612eff612ec5565b5b835b81811015612f295780612f158882612ab9565b845260208401935050602081019050612f02565b5050509392505050565b600082601f830112612f4857612f47612c20565b5b8135612f58848260208601612eca565b91505092915050565b600067ffffffffffffffff821115612f7c57612f7b612c3b565b5b612f8582612c2a565b9050602081019050919050565b6000612fa5612fa084612f61565b612c9b565b905082815260208101848484011115612fc157612fc0612c25565b5b612fcc848285612ce7565b509392505050565b600082601f830112612fe957612fe8612c20565b5b8135612ff9848260208601612f92565b91505092915050565b600080600080600060a0868803121561301e5761301d612a30565b5b600061302c88828901612a83565b955050602061303d88828901612a83565b945050604086013567ffffffffffffffff81111561305e5761305d612a35565b5b61306a88828901612f33565b935050606086013567ffffffffffffffff81111561308b5761308a612a35565b5b61309788828901612f33565b925050608086013567ffffffffffffffff8111156130b8576130b7612a35565b5b6130c488828901612fd4565b9150509295509295909350565b6130da81612bbd565b81146130e557600080fd5b50565b6000813590506130f7816130d1565b92915050565b6000806040838503121561311457613113612a30565b5b600061312285828601612ab9565b9250506020613133858286016130e8565b9150509250929050565b60006020828403121561315357613152612a30565b5b600061316184828501612a83565b91505092915050565b600067ffffffffffffffff82111561318557613184612c3b565b5b602082029050602081019050919050565b60006131a96131a48461316a565b612c9b565b905080838252602082019050602084028301858111156131cc576131cb612ec5565b5b835b818110156131f557806131e18882612a83565b8452602084019350506020810190506131ce565b5050509392505050565b600082601f83011261321457613213612c20565b5b8135613224848260208601613196565b91505092915050565b6000806040838503121561324457613243612a30565b5b600083013567ffffffffffffffff81111561326257613261612a35565b5b61326e858286016131ff565b925050602083013567ffffffffffffffff81111561328f5761328e612a35565b5b61329b85828601612f33565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132da81612a98565b82525050565b60006132ec83836132d1565b60208301905092915050565b6000602082019050919050565b6000613310826132a5565b61331a81856132b0565b9350613325836132c1565b8060005b8381101561335657815161333d88826132e0565b9750613348836132f8565b925050600181019050613329565b5085935050505092915050565b6000602082019050818103600083015261337d8184613305565b905092915050565b61338e81612a5a565b82525050565b60006020820190506133a96000830184613385565b92915050565b600080604083850312156133c6576133c5612a30565b5b60006133d485828601612a83565b92505060206133e5858286016130e8565b9150509250929050565b6000806040838503121561340657613405612a30565b5b600061341485828601612a83565b925050602061342585828601612a83565b9150509250929050565b600080600080600060a0868803121561344b5761344a612a30565b5b600061345988828901612a83565b955050602061346a88828901612a83565b945050604061347b88828901612ab9565b935050606061348c88828901612ab9565b925050608086013567ffffffffffffffff8111156134ad576134ac612a35565b5b6134b988828901612fd4565b9150509295509295909350565b600060a0820190506134db6000830188612b0e565b6134e86020830187612b0e565b6134f56040830186612b0e565b6135026060830185612b0e565b61350f6080830184612bc9565b9695505050505050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613575602a83612dba565b915061358082613519565b604082019050919050565b600060208201905081810360008301526135a481613568565b9050919050565b600081905092915050565b60006135c182612daf565b6135cb81856135ab565b93506135db818560208601612dcb565b80840191505092915050565b60006135f382846135b6565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061364557607f821691505b602082108103613658576136576135fe565b5b50919050565b60008190508160005260206000209050919050565b600081546136808161362d565b61368a81866135ab565b945060018216600081146136a557600181146136b6576136e9565b60ff198316865281860193506136e9565b6136bf8561365e565b60005b838110156136e1578154818901526001820191506020810190506136c2565b838801955050505b50505092915050565b7f2f64656661756c742e6a736f6e00000000000000000000000000000000000000600082015250565b6000613728600d836135ab565b9150613733826136f2565b600d82019050919050565b600061374a8285613673565b915061375682846135b6565b91506137618261371b565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137a782612a98565b91506137b283612a98565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137e7576137e661376d565b5b828201905092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006138286001836135ab565b9150613833826137f2565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138746005836135ab565b915061387f8261383e565b600582019050919050565b60006138968286613673565b91506138a282856135b6565b91506138ad8261381b565b91506138b982846135b6565b91506138c482613867565b9150819050949350505050565b60006138dc82612a98565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361390e5761390d61376d565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613975602f83612dba565b915061398082613919565b604082019050919050565b600060208201905081810360008301526139a481613968565b9050919050565b60006139b682612a98565b91506139c183612a98565b9250828210156139d4576139d361376d565b5b828203905092915050565b60006139ea82612a98565b91506139f583612a98565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a2e57613a2d61376d565b5b828202905092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613a95602983612dba565b9150613aa082613a39565b604082019050919050565b60006020820190508181036000830152613ac481613a88565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613b0582612a5a565b9050919050565b613b1581613afa565b8114613b2057600080fd5b50565b600081519050613b3281613b0c565b92915050565b600060208284031215613b4e57613b4d612a30565b5b6000613b5c84828501613b23565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613bc1602683612dba565b9150613bcc82613b65565b604082019050919050565b60006020820190508181036000830152613bf081613bb4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c3182612a98565b9150613c3c83612a98565b925082613c4c57613c4b613bf7565b5b828204905092915050565b6000613c6282612a98565b9150613c6d83612a98565b925082613c7d57613c7c613bf7565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ce4602183612dba565b9150613cef82613c88565b604082019050919050565b60006020820190508181036000830152613d1381613cd7565b9050919050565b6000604082019050613d2f6000830185612b0e565b613d3c6020830184612b0e565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613d9f602883612dba565b9150613daa82613d43565b604082019050919050565b60006020820190508181036000830152613dce81613d92565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613e31602583612dba565b9150613e3c82613dd5565b604082019050919050565b60006020820190508181036000830152613e6081613e24565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613ec3602a83612dba565b9150613ece82613e67565b604082019050919050565b60006020820190508181036000830152613ef281613eb6565b9050919050565b60006040820190508181036000830152613f138185613305565b90508181036020830152613f278184613305565b90509392505050565b600081519050613f3f81612aa2565b92915050565b600060208284031215613f5b57613f5a612a30565b5b6000613f6984828501613f30565b91505092915050565b6000604082019050613f876000830185613385565b613f946020830184612b0e565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613fd1602083612dba565b9150613fdc82613f9b565b602082019050919050565b6000602082019050818103600083015261400081613fc4565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614063602983612dba565b915061406e82614007565b604082019050919050565b6000602082019050818103600083015261409281614056565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006140f5602383612dba565b915061410082614099565b604082019050919050565b60006020820190508181036000830152614124816140e8565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614187602483612dba565b91506141928261412b565b604082019050919050565b600060208201905081810360008301526141b68161417a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006141e4826141bd565b6141ee81856141c8565b93506141fe818560208601612dcb565b61420781612c2a565b840191505092915050565b600060a0820190506142276000830188613385565b6142346020830187613385565b6142416040830186612b0e565b61424e6060830185612b0e565b818103608083015261426081846141d9565b90509695505050505050565b60008151905061427b81612b64565b92915050565b60006020828403121561429757614296612a30565b5b60006142a58482850161426c565b91505092915050565b60008160e01c9050919050565b600060033d11156142da5760046000803e6142d76000516142ae565b90505b90565b600060443d1061436a576142ef612a26565b60043d036004823e80513d602482011167ffffffffffffffff8211171561431757505061436a565b808201805167ffffffffffffffff811115614335575050505061436a565b80602083010160043d03850181111561435257505050505061436a565b61436182602001850186612c6a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006143c9603483612dba565b91506143d48261436d565b604082019050919050565b600060208201905081810360008301526143f8816143bc565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061445b602883612dba565b9150614466826143ff565b604082019050919050565b6000602082019050818103600083015261448a8161444e565b9050919050565b600060a0820190506144a66000830188613385565b6144b36020830187613385565b81810360408301526144c58186613305565b905081810360608301526144d98185613305565b905081810360808301526144ed81846141d9565b9050969550505050505056fea264697066735822122067f51abdd0498b06b32e853a0ab39659a114dc1f61a1381a0682312047e90bbc64736f6c634300080e00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f746865626f646567612e7774662f6d657461646174612f00

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101415760003560e01c80634e71d92d116100b8578063b61c94b01161007c578063b61c94b01461035e578063dfc0562d1461037a578063e985e9c514610398578063f242432a146103c8578063f2fde38b146103e4578063fdbda0ec1461040057610141565b80634e71d92d146102f4578063715018a6146102fe578063751ef753146103085780638da5cb5b14610324578063a22cb4651461034257610141565b806320cbf5f91161010a57806320cbf5f91461022257806324cc06621461023e5780632eb2c2d61461025c578063306e430314610278578063402914f5146102945780634e1273f4146102c457610141565b8062fdd58e1461014657806301ffc9a714610176578063020fe6e5146101a657806302fe5305146101d65780630e89341c146101f2575b600080fd5b610160600480360381019061015b9190612ace565b610434565b60405161016d9190612b1d565b60405180910390f35b610190600480360381019061018b9190612b90565b6104fc565b60405161019d9190612bd8565b60405180910390f35b6101c060048036038101906101bb9190612bf3565b6105de565b6040516101cd9190612bd8565b60405180910390f35b6101f060048036038101906101eb9190612d66565b6105f0565b005b61020c60048036038101906102079190612bf3565b610654565b6040516102199190612e37565b60405180910390f35b61023c60048036038101906102379190612e59565b610793565b005b610246610987565b6040516102539190612b1d565b60405180910390f35b61027660048036038101906102719190613002565b61098d565b005b610292600480360381019061028d91906130fd565b610a2e565b005b6102ae60048036038101906102a9919061313d565b610af0565b6040516102bb9190612b1d565b60405180910390f35b6102de60048036038101906102d9919061322d565b610b14565b6040516102eb9190613363565b60405180910390f35b6102fc610c2d565b005b610306610ca3565b005b610322600480360381019061031d9190612bf3565b610cb7565b005b61032c610d52565b6040516103399190613394565b60405180910390f35b61035c600480360381019061035791906133af565b610d7c565b005b61037860048036038101906103739190612bf3565b610d92565b005b610382610de1565b60405161038f9190613394565b60405180910390f35b6103b260048036038101906103ad91906133ef565b610df9565b6040516103bf9190612bd8565b60405180910390f35b6103e260048036038101906103dd919061342f565b610edd565b005b6103fe60048036038101906103f9919061313d565b610f7e565b005b61041a60048036038101906104159190612bf3565b611001565b60405161042b9594939291906134c6565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036104a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049b9061358b565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806105c757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806105d757506105d682611044565b5b9050919050565b60006105e9826110ae565b9050919050565b6105f8611104565b8060405161060691906135e7565b60405180910390207fde63cc2d19581e57e158d078c2df83f9ab70addd6257f7f12bfecb21c06c912860405160405180910390a28060079080519060200190610650929190612983565b5050565b6060600061066183611172565b9050600060056000838152602001908152602001600020905080600101548160000154036107085760008211801561069d575060008160030154145b156106d4576040517f8698bf3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60076106df83611219565b6040516020016106f092919061373e565b6040516020818303038152906040529250505061078e565b8060030154816000015461071c919061379c565b8410610754576040517f8698bf3700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600761075f83611219565b61076886611219565b60405160200161077a9392919061388a565b604051602081830303815290604052925050505b919050565b61079c82611379565b600082036107d6576040517f7cd2f75800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107df826113b7565b60008103610819576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006005600084815260200190815260200160002090508060020154828260030154610845919061379c565b111561087d576040517fc204907b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81610889336000610434565b10156108c1576040517ffa836f3c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108cb3383611415565b600081600301549050828260030160008282546108e8919061379c565b9250508190555081600001548260010154036109225761091d3383600001548560405180602001604052806000815250611452565b610981565b6000818360000154610934919061379c565b905060008190505b8482610948919061379c565b81101561097e5761096b3382600160405180602001604052806000815250611452565b8080610976906138d1565b91505061093c565b50505b50505050565b60065481565b610995611602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806109db57506109da856109d5611602565b610df9565b5b610a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a119061398b565b60405180910390fd5b610a27858585858561160a565b5050505050565b610a36611104565b60008203610a70576040517fc16f3a9300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600560006001600654610a8591906139ab565b81526020019081526020016000209050600060018260010154610aa8919061379c565b90508215610ac357610abe81828660018061192b565b610aea565b610ae98160018684610ad5919061379c565b610adf91906139ab565b866001600061192b565b5b50505050565b600080610afc83611a07565b915050600381610b0c91906139df565b915050919050565b60608151835114610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190613aab565b60405180910390fd5b6000835167ffffffffffffffff811115610b7757610b76612c3b565b5b604051908082528060200260200182016040528015610ba55781602001602082028036833780820191505090505b50905060005b8451811015610c2257610bf2858281518110610bca57610bc9613acb565b5b6020026020010151858381518110610be557610be4613acb565b5b6020026020010151610434565b828281518110610c0557610c04613acb565b5b60200260200101818152505080610c1b906138d1565b9050610bab565b508091505092915050565b610c3760006113b7565b600080610c4333611a07565b9150915060005b81811015610c8857610c75838281518110610c6857610c67613acb565b5b6020026020010151611c5c565b8080610c80906138d1565b915050610c4a565b50610c9f33600383610c9a91906139df565b611cb6565b5050565b610cab611d03565b610cb56000611d81565b565b610cbf611104565b610cc881611379565b60006005600083815260200190815260200160002060040160009054906101000a900460ff161590508015157f16d4f5007f109cb3134102afe9b985ca582667ac474162cdd37db4e6a667987e60405160405180910390a2806005600084815260200190815260200160002060040160006101000a81548160ff0219169083151502179055505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d8e610d87611602565b8383611e47565b5050565b610d9a611104565b60008103610dd4576040517ff4f5b73300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610dde3382611cb6565b50565b73a5409ec958c83c3f309868babaca7c86dcb077c181565b60008073a5409ec958c83c3f309868babaca7c86dcb077c190508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b8152600401610e639190613394565b602060405180830381865afa158015610e80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea49190613b38565b73ffffffffffffffffffffffffffffffffffffffff1603610ec9576001915050610ed7565b610ed38484611fb3565b9150505b92915050565b610ee5611602565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f2b5750610f2a85610f25611602565b610df9565b5b610f6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f619061398b565b60405180910390fd5b610f778585858585612047565b5050505050565b610f86611d03565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fec90613bd7565b60405180910390fd5b610ffe81611d81565b50565b60056020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040160009054906101000a900460ff16905085565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080610100836110bf9190613c26565b90506000610100846110d19190613c57565b90506000600460008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b61110c610d52565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611170576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000806000905060005b6006548110156111db576000600560008381526020019081526020016000209050848160000154111580156111b5575084816001015410155b156111c75781935060019250506111db565b5080806111d3906138d1565b91505061117c565b5080611213576040517f6f684e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50919050565b606060008203611260576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611374565b600082905060005b6000821461129257808061127b906138d1565b915050600a8261128b9190613c26565b9150611268565b60008167ffffffffffffffff8111156112ae576112ad612c3b565b5b6040519080825280601f01601f1916602001820160405280156112e05781602001600182028036833780820191505090505b5090505b6000851461136d576001826112f991906139ab565b9150600a856113089190613c57565b6030611314919061379c565b60f81b81838151811061132a57611329613acb565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856113669190613c26565b94506112e4565b8093505050505b919050565b60065481106113b4576040517f6f684e7200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6005600082815260200190815260200160002060040160009054906101000a900460ff1615611412576040517f9e87fac800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b8060056000808152602001908152602001600020600301600082825461143b91906139ab565b9250508190555061144e826000836122e2565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613cfa565b60405180910390fd5b60006114cb611602565b905060006114d885612528565b905060006114e585612528565b90506114f6836000898585896125a2565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611555919061379c565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516115d3929190613d1a565b60405180910390a46115ea836000898585896125aa565b6115f9836000898989896125b2565b50505050505050565b600033905090565b815183511461164e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164590613db5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036116bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b490613e47565b60405180910390fd5b60006116c7611602565b90506116d78187878787876125a2565b60005b84518110156118885760008582815181106116f8576116f7613acb565b5b60200260200101519050600085838151811061171757611716613acb565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050818110156117b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117af90613ed9565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461186d919061379c565b9250508190555050505080611881906138d1565b90506116da565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516118ff929190613ef9565b60405180910390a46119158187878787876125aa565b611923818787878787612789565b505050505050565b6040518060a00160405280868152602001858152602001848152602001600081526020018315158152506005600060065481526020019081526020016000206000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050801515600654867ff07330ef2b4571f1108d25a75cfb8e1873301a81d6e6d8f634b4b9e67397886c60405160405180910390a4600660008154809291906119fb906138d1565b91905055505050505050565b60606000807313e7d08ed191346d9fee3b46a91c1596393dcd6673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b8152600401611a599190613394565b602060405180830381865afa158015611a76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9a9190613f45565b905060008103611ad6576040517f563165f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000808267ffffffffffffffff811115611af357611af2612c3b565b5b604051908082528060200260200182016040528015611b215781602001602082028036833780820191505090505b50905060005b83811015611c135760007313e7d08ed191346d9fee3b46a91c1596393dcd6673ffffffffffffffffffffffffffffffffffffffff16632f745c5989846040518363ffffffff1660e01b8152600401611b80929190613f72565b602060405180830381865afa158015611b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bc19190613f45565b9050611bcc816110ae565b611bff5780838581518110611be457611be3613acb565b5b6020026020010181815250508380611bfb906138d1565b9450505b508080611c0b906138d1565b915050611b27565b5060008203611c4e576040517f563165f800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808294509450505050915091565b600061010082611c6c9190613c26565b9050600061010083611c7e9190613c57565b9050806001901b6004600084815260200190815260200160002054176004600084815260200190815260200160002081905550505050565b80600560008081526020019081526020016000206003016000828254611cdc919061379c565b92505081905550611cff8260008360405180602001604052806000815250611452565b5050565b611d0b611602565b73ffffffffffffffffffffffffffffffffffffffff16611d29610d52565b73ffffffffffffffffffffffffffffffffffffffff1614611d7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7690613fe7565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611eb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eac90614079565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fa69190612bd8565b60405180910390a3505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ad90613e47565b60405180910390fd5b60006120c0611602565b905060006120cd85612528565b905060006120da85612528565b90506120ea8389898585896125a2565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612181576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217890613ed9565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612236919061379c565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516122b3929190613d1a565b60405180910390a46122c9848a8a86868a6125aa565b6122d7848a8a8a8a8a6125b2565b505050505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123489061410b565b60405180910390fd5b600061235b611602565b9050600061236884612528565b9050600061237584612528565b9050612395838760008585604051806020016040528060008152506125a2565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508481101561242c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124239061419d565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516124f9929190613d1a565b60405180910390a461251f848860008686604051806020016040528060008152506125aa565b50505050505050565b60606000600167ffffffffffffffff81111561254757612546612c3b565b5b6040519080825280602002602001820160405280156125755781602001602082028036833780820191505090505b509050828160008151811061258d5761258c613acb565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b6125d18473ffffffffffffffffffffffffffffffffffffffff16612960565b15612781578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612617959493929190614212565b6020604051808303816000875af192505050801561265357506040513d601f19601f820116820180604052508101906126509190614281565b60015b6126f85761265f6142bb565b806308c379a0036126bb57506126736142dd565b8061267e57506126bd565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b29190612e37565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef906143df565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461277f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277690614471565b60405180910390fd5b505b505050505050565b6127a88473ffffffffffffffffffffffffffffffffffffffff16612960565b15612958578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016127ee959493929190614491565b6020604051808303816000875af192505050801561282a57506040513d601f19601f820116820180604052508101906128279190614281565b60015b6128cf576128366142bb565b806308c379a003612892575061284a6142dd565b806128555750612894565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128899190612e37565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c6906143df565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90614471565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805461298f9061362d565b90600052602060002090601f0160209004810192826129b157600085556129f8565b82601f106129ca57805160ff19168380011785556129f8565b828001600101855582156129f8579182015b828111156129f75782518255916020019190600101906129dc565b5b509050612a059190612a09565b5090565b5b80821115612a22576000816000905550600101612a0a565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612a6582612a3a565b9050919050565b612a7581612a5a565b8114612a8057600080fd5b50565b600081359050612a9281612a6c565b92915050565b6000819050919050565b612aab81612a98565b8114612ab657600080fd5b50565b600081359050612ac881612aa2565b92915050565b60008060408385031215612ae557612ae4612a30565b5b6000612af385828601612a83565b9250506020612b0485828601612ab9565b9150509250929050565b612b1781612a98565b82525050565b6000602082019050612b326000830184612b0e565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612b6d81612b38565b8114612b7857600080fd5b50565b600081359050612b8a81612b64565b92915050565b600060208284031215612ba657612ba5612a30565b5b6000612bb484828501612b7b565b91505092915050565b60008115159050919050565b612bd281612bbd565b82525050565b6000602082019050612bed6000830184612bc9565b92915050565b600060208284031215612c0957612c08612a30565b5b6000612c1784828501612ab9565b91505092915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c7382612c2a565b810181811067ffffffffffffffff82111715612c9257612c91612c3b565b5b80604052505050565b6000612ca5612a26565b9050612cb18282612c6a565b919050565b600067ffffffffffffffff821115612cd157612cd0612c3b565b5b612cda82612c2a565b9050602081019050919050565b82818337600083830152505050565b6000612d09612d0484612cb6565b612c9b565b905082815260208101848484011115612d2557612d24612c25565b5b612d30848285612ce7565b509392505050565b600082601f830112612d4d57612d4c612c20565b5b8135612d5d848260208601612cf6565b91505092915050565b600060208284031215612d7c57612d7b612a30565b5b600082013567ffffffffffffffff811115612d9a57612d99612a35565b5b612da684828501612d38565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612de9578082015181840152602081019050612dce565b83811115612df8576000848401525b50505050565b6000612e0982612daf565b612e138185612dba565b9350612e23818560208601612dcb565b612e2c81612c2a565b840191505092915050565b60006020820190508181036000830152612e518184612dfe565b905092915050565b60008060408385031215612e7057612e6f612a30565b5b6000612e7e85828601612ab9565b9250506020612e8f85828601612ab9565b9150509250929050565b600067ffffffffffffffff821115612eb457612eb3612c3b565b5b602082029050602081019050919050565b600080fd5b6000612edd612ed884612e99565b612c9b565b90508083825260208201905060208402830185811115612f0057612eff612ec5565b5b835b81811015612f295780612f158882612ab9565b845260208401935050602081019050612f02565b5050509392505050565b600082601f830112612f4857612f47612c20565b5b8135612f58848260208601612eca565b91505092915050565b600067ffffffffffffffff821115612f7c57612f7b612c3b565b5b612f8582612c2a565b9050602081019050919050565b6000612fa5612fa084612f61565b612c9b565b905082815260208101848484011115612fc157612fc0612c25565b5b612fcc848285612ce7565b509392505050565b600082601f830112612fe957612fe8612c20565b5b8135612ff9848260208601612f92565b91505092915050565b600080600080600060a0868803121561301e5761301d612a30565b5b600061302c88828901612a83565b955050602061303d88828901612a83565b945050604086013567ffffffffffffffff81111561305e5761305d612a35565b5b61306a88828901612f33565b935050606086013567ffffffffffffffff81111561308b5761308a612a35565b5b61309788828901612f33565b925050608086013567ffffffffffffffff8111156130b8576130b7612a35565b5b6130c488828901612fd4565b9150509295509295909350565b6130da81612bbd565b81146130e557600080fd5b50565b6000813590506130f7816130d1565b92915050565b6000806040838503121561311457613113612a30565b5b600061312285828601612ab9565b9250506020613133858286016130e8565b9150509250929050565b60006020828403121561315357613152612a30565b5b600061316184828501612a83565b91505092915050565b600067ffffffffffffffff82111561318557613184612c3b565b5b602082029050602081019050919050565b60006131a96131a48461316a565b612c9b565b905080838252602082019050602084028301858111156131cc576131cb612ec5565b5b835b818110156131f557806131e18882612a83565b8452602084019350506020810190506131ce565b5050509392505050565b600082601f83011261321457613213612c20565b5b8135613224848260208601613196565b91505092915050565b6000806040838503121561324457613243612a30565b5b600083013567ffffffffffffffff81111561326257613261612a35565b5b61326e858286016131ff565b925050602083013567ffffffffffffffff81111561328f5761328e612a35565b5b61329b85828601612f33565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6132da81612a98565b82525050565b60006132ec83836132d1565b60208301905092915050565b6000602082019050919050565b6000613310826132a5565b61331a81856132b0565b9350613325836132c1565b8060005b8381101561335657815161333d88826132e0565b9750613348836132f8565b925050600181019050613329565b5085935050505092915050565b6000602082019050818103600083015261337d8184613305565b905092915050565b61338e81612a5a565b82525050565b60006020820190506133a96000830184613385565b92915050565b600080604083850312156133c6576133c5612a30565b5b60006133d485828601612a83565b92505060206133e5858286016130e8565b9150509250929050565b6000806040838503121561340657613405612a30565b5b600061341485828601612a83565b925050602061342585828601612a83565b9150509250929050565b600080600080600060a0868803121561344b5761344a612a30565b5b600061345988828901612a83565b955050602061346a88828901612a83565b945050604061347b88828901612ab9565b935050606061348c88828901612ab9565b925050608086013567ffffffffffffffff8111156134ad576134ac612a35565b5b6134b988828901612fd4565b9150509295509295909350565b600060a0820190506134db6000830188612b0e565b6134e86020830187612b0e565b6134f56040830186612b0e565b6135026060830185612b0e565b61350f6080830184612bc9565b9695505050505050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000613575602a83612dba565b915061358082613519565b604082019050919050565b600060208201905081810360008301526135a481613568565b9050919050565b600081905092915050565b60006135c182612daf565b6135cb81856135ab565b93506135db818560208601612dcb565b80840191505092915050565b60006135f382846135b6565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061364557607f821691505b602082108103613658576136576135fe565b5b50919050565b60008190508160005260206000209050919050565b600081546136808161362d565b61368a81866135ab565b945060018216600081146136a557600181146136b6576136e9565b60ff198316865281860193506136e9565b6136bf8561365e565b60005b838110156136e1578154818901526001820191506020810190506136c2565b838801955050505b50505092915050565b7f2f64656661756c742e6a736f6e00000000000000000000000000000000000000600082015250565b6000613728600d836135ab565b9150613733826136f2565b600d82019050919050565b600061374a8285613673565b915061375682846135b6565b91506137618261371b565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137a782612a98565b91506137b283612a98565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156137e7576137e661376d565b5b828201905092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b60006138286001836135ab565b9150613833826137f2565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006138746005836135ab565b915061387f8261383e565b600582019050919050565b60006138968286613673565b91506138a282856135b6565b91506138ad8261381b565b91506138b982846135b6565b91506138c482613867565b9150819050949350505050565b60006138dc82612a98565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361390e5761390d61376d565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b6000613975602f83612dba565b915061398082613919565b604082019050919050565b600060208201905081810360008301526139a481613968565b9050919050565b60006139b682612a98565b91506139c183612a98565b9250828210156139d4576139d361376d565b5b828203905092915050565b60006139ea82612a98565b91506139f583612a98565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a2e57613a2d61376d565b5b828202905092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000613a95602983612dba565b9150613aa082613a39565b604082019050919050565b60006020820190508181036000830152613ac481613a88565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613b0582612a5a565b9050919050565b613b1581613afa565b8114613b2057600080fd5b50565b600081519050613b3281613b0c565b92915050565b600060208284031215613b4e57613b4d612a30565b5b6000613b5c84828501613b23565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613bc1602683612dba565b9150613bcc82613b65565b604082019050919050565b60006020820190508181036000830152613bf081613bb4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613c3182612a98565b9150613c3c83612a98565b925082613c4c57613c4b613bf7565b5b828204905092915050565b6000613c6282612a98565b9150613c6d83612a98565b925082613c7d57613c7c613bf7565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613ce4602183612dba565b9150613cef82613c88565b604082019050919050565b60006020820190508181036000830152613d1381613cd7565b9050919050565b6000604082019050613d2f6000830185612b0e565b613d3c6020830184612b0e565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613d9f602883612dba565b9150613daa82613d43565b604082019050919050565b60006020820190508181036000830152613dce81613d92565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613e31602583612dba565b9150613e3c82613dd5565b604082019050919050565b60006020820190508181036000830152613e6081613e24565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613ec3602a83612dba565b9150613ece82613e67565b604082019050919050565b60006020820190508181036000830152613ef281613eb6565b9050919050565b60006040820190508181036000830152613f138185613305565b90508181036020830152613f278184613305565b90509392505050565b600081519050613f3f81612aa2565b92915050565b600060208284031215613f5b57613f5a612a30565b5b6000613f6984828501613f30565b91505092915050565b6000604082019050613f876000830185613385565b613f946020830184612b0e565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613fd1602083612dba565b9150613fdc82613f9b565b602082019050919050565b6000602082019050818103600083015261400081613fc4565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614063602983612dba565b915061406e82614007565b604082019050919050565b6000602082019050818103600083015261409281614056565b9050919050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006140f5602383612dba565b915061410082614099565b604082019050919050565b60006020820190508181036000830152614124816140e8565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614187602483612dba565b91506141928261412b565b604082019050919050565b600060208201905081810360008301526141b68161417a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006141e4826141bd565b6141ee81856141c8565b93506141fe818560208601612dcb565b61420781612c2a565b840191505092915050565b600060a0820190506142276000830188613385565b6142346020830187613385565b6142416040830186612b0e565b61424e6060830185612b0e565b818103608083015261426081846141d9565b90509695505050505050565b60008151905061427b81612b64565b92915050565b60006020828403121561429757614296612a30565b5b60006142a58482850161426c565b91505092915050565b60008160e01c9050919050565b600060033d11156142da5760046000803e6142d76000516142ae565b90505b90565b600060443d1061436a576142ef612a26565b60043d036004823e80513d602482011167ffffffffffffffff8211171561431757505061436a565b808201805167ffffffffffffffff811115614335575050505061436a565b80602083010160043d03850181111561435257505050505061436a565b61436182602001850186612c6a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b60006143c9603483612dba565b91506143d48261436d565b604082019050919050565b600060208201905081810360008301526143f8816143bc565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b600061445b602883612dba565b9150614466826143ff565b604082019050919050565b6000602082019050818103600083015261448a8161444e565b9050919050565b600060a0820190506144a66000830188613385565b6144b36020830187613385565b81810360408301526144c58186613305565b905081810360608301526144d98185613305565b905081810360808301526144ed81846141d9565b9050969550505050505056fea264697066735822122067f51abdd0498b06b32e853a0ab39659a114dc1f61a1381a0682312047e90bbc64736f6c634300080e0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f746865626f646567612e7774662f6d657461646174612f00

-----Decoded View---------------
Arg [0] : uri_ (string): https://thebodega.wtf/metadata/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [2] : 68747470733a2f2f746865626f646567612e7774662f6d657461646174612f00


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.