ETH Price: $3,708.17 (+3.18%)

Token

GrannysDispensary ()
 

Overview

Max Total Supply

11,067

Holders

1,431

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

0x6fdcfe98b4849c873eb30207b0b4b586f29c7efe
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:
GrannysDispensary

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 18 : GrannysDispensary.sol
// SPDX-License-Identifier: MIT
/*****************************************************************************************************************************************************
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         @@@@@@@@@@          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@            @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         @@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@              @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@                &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        @@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@        @@        .@@@@@@@@@@@@@@@         @         @@                       @@,        @@@@@@@@@,                  @@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@        @@@@         @@@@@@@@@@@@@@                   @@                       @@,        @@@@@@@                        @@@@@@@@@@@@
 @@@@@@@@@@@@@@@        @@@@@@         @@@@@@@@@@@@@                   @@                       @@,        @@@@@          (@@@@@@          @@@@@@@@@@@
 @@@@@@@@@@@@@(        @@@@@@@@         @@@@@@@@@@@@          @@@@@@@@@@@@@@@@@         @@@@@@@@@@,        @@@@         @@@@@@@@@@@         @@@@@@@@@@
 @@@@@@@@@@@@         @@@@@@@@@@         @@@@@@@@@@@         @@@@@@@@@@@@@@@@@@         @@@@@@@@@@,        @@@         @@@@@@@@@@@&%         @@@@@@@@@
 @@@@@@@@@@@                              @@@@@@@@@@         @@@@@@@@@@@@@@@@@@         @@@@@@@@@@,        @@@                               @@@@@@@@@
 @@@@@@@@@@                                @@@@@@@@@         @@@@@@@@@@@@@@@@@@         @@@@@@@@@@,        @@@                               @@@@@@@@@
 @@@@@@@@@                                  @@@@@@@@         @@@@@@@@@@@@@@@@@@         @@@@@@@@@@,        @@@         @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@                                    @@@@@@@         @@@@@@@@@@@@@@@@@@          @@@@@@@@@.        @@@@         @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@
 @@@@@@@         @@@@@@@@@@@@@@@@@@@@         @@@@@@         @@@@@@@@@@@@@@@@@@                 @@,        @@@@@            @@@@@         @@@@@@@@@@@@
 @@@@@@         @@@@@@@@@@@@@@@@@@@@@@         @@@@@         @@@@@@@@@@@@@@@@@@@                @@,        @@@@@@@                         @@@@@@@@@@@
 @@@@@         @@@@@@@@@@@@@@@@@@@@@@@@         @@@@         @@@@@@@@@@@@@@@@@@@@               @@,        @@@@@@@@@@                   @@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@     (@@@@@@@@@@@@@@@@@@@@
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
*****************************************************************************************************************************************************/
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "./ITokenURIRenderer.sol";


contract GrannysDispensary is ERC1155, ERC1155Burnable, IERC2981, Pausable, AccessControl, Ownable {
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    mapping(uint256 => mapping(address => bool)) public burnApprovals;

    uint24 public royaltyPercentBp;
    address payable public royaltyAddress;
    address payable public withdrawalAddress;
    ITokenURIRenderer public tokenURIRenderer;

    string public baseURI;
    string public contractURI;

    event Mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes data
    );
    event BatchMint(
        address to,
        uint256[] ids,
        uint256[] amounts,
        bytes data
    );

    modifier burnApproved(address burner, uint256 tokenId) {
        require(burnApprovals[tokenId][burner], "NOT APPROVED TO BURN TOKEN");
        _;
    }

    constructor(string memory _uri, string memory _contractURI, address _tokenURIRenderer, address payable _withdrawAddress, address payable _royaltyAddress, uint24 _royaltyPercentBp) ERC1155(_uri) Ownable(){
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _setupRole(PAUSER_ROLE, msg.sender);
        _setupRole(MINTER_ROLE, msg.sender);

        tokenURIRenderer = ITokenURIRenderer(_tokenURIRenderer);
        withdrawalAddress = _withdrawAddress;
        royaltyPercentBp = _royaltyPercentBp;
        royaltyAddress = _royaltyAddress;
        baseURI = _uri;
        contractURI = _contractURI;
    }

    function pause() public onlyRole(PAUSER_ROLE) {
        _pause();
    }

    function unpause() public onlyRole(PAUSER_ROLE) {
        _unpause();
    }

    // ---- Burning Functions ----

    function approveBurner(address burner, uint256 tokenId) public onlyRole(DEFAULT_ADMIN_ROLE) {
        burnApprovals[tokenId][burner] = true;
    }

    function revokeBurner(address burner, uint256 tokenId) public onlyRole(DEFAULT_ADMIN_ROLE) {
        delete burnApprovals[tokenId][burner];
    }

    function safeBurn(address holder, uint256 tokenId, uint256 value) public whenNotPaused burnApproved(msg.sender, tokenId) {
        _burn(holder, tokenId, value);
    }

    // ---- Minting Functions ----

    function safeMint(address to, uint256 id, uint256 amount, bytes calldata data) public whenNotPaused onlyRole(MINTER_ROLE){
        _mint(to, id, amount, data);
        emit Mint(to, id, amount, data);
    }

    function safeBatchMint(address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) public whenNotPaused onlyRole(MINTER_ROLE){
        _mintBatch(to, ids, amounts, data);
        emit BatchMint(to, ids, amounts, data);
    }

    // --- Contract URI methods ----
    function setContractURI(string calldata _uri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        contractURI = _uri;
    }

    // --- Token URI methods ----
    function setURI(string calldata _uri) public onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURI = _uri;
        _setURI(_uri);
    }

    function setTokenURIRenderer(address _tokenURIRenderer) external onlyRole(DEFAULT_ADMIN_ROLE) {
        tokenURIRenderer = ITokenURIRenderer(_tokenURIRenderer);
    }

    function uri(uint256 id) public view virtual override returns (string memory){
        return tokenURIRenderer.tokenURI(id, baseURI);
    }

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

    function royaltyInfo(uint256 /* tokenId */, uint256 salePrice) external view override
    returns (address receiver, uint256 royaltyAmount) {
        return (royaltyAddress, (salePrice * royaltyPercentBp) / 10000);
    }

    function setRoyaltyAddress(address payable _royaltyAddress) external onlyRole(DEFAULT_ADMIN_ROLE) {
        royaltyAddress = _royaltyAddress;
    }

    /// @dev Sets token royalties
    /// @param value percentage (using 2 decimals: 10000 = 100%, 0 = 0%)
    function setRoyalties(uint24 value) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(value <= 10000, 'ERC2981Royalties: Too high');
        royaltyPercentBp = value;
    }

    function setWithdrawalAddress(address payable givenWithdrawalAddress) public onlyRole(DEFAULT_ADMIN_ROLE) {
        withdrawalAddress = givenWithdrawalAddress;
    }

    function withdrawEth() public onlyRole(DEFAULT_ADMIN_ROLE) {
        require(withdrawalAddress != address(0), 'WITHDRAWAL_ADDRESS_ZERO');
        Address.sendValue(withdrawalAddress, address(this).balance);
    }


}

File 2 of 18 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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: balance query for the zero address");
        return _balances[id][account];
    }

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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 owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `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();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * 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();

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

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

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "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 `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

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

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

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

        return array;
    }
}

File 3 of 18 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

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

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

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 18 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

File 7 of 18 : 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 8 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 18 : ITokenURIRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface ITokenURIRenderer {
    function tokenURI(uint256 tokenId, string memory baseURI) external view returns (string memory);
}

File 10 of 18 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

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

File 11 of 18 : 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 12 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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);
}

File 16 of 18 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_contractURI","type":"string"},{"internalType":"address","name":"_tokenURIRenderer","type":"address"},{"internalType":"address payable","name":"_withdrawAddress","type":"address"},{"internalType":"address payable","name":"_royaltyAddress","type":"address"},{"internalType":"uint24","name":"_royaltyPercentBp","type":"uint24"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"BatchMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approveBurner","outputs":[],"stateMutability":"nonpayable","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"burnApprovals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"revokeBurner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercentBp","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"safeBatchMint","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":"holder","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"safeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"safeMint","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":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_royaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenURIRenderer","type":"address"}],"name":"setTokenURIRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"givenWithdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenURIRenderer","outputs":[{"internalType":"contract ITokenURIRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620042c3380380620042c38339810160408190526200003491620003b8565b85620000408162000147565b506003805460ff19169055620000563362000160565b62000063600033620001b2565b6200008f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620001b2565b620000bb7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001b2565b600980546001600160a01b038087166001600160a01b031992831617909255600880548684169216919091179055600780549184166301000000026001600160b81b031990921662ffffff84161791909117905585516200012490600a9060208901906200025f565b5084516200013a90600b9060208801906200025f565b50505050505050620004e7565b80516200015c9060029060208401906200025f565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526004602090815260408083206001600160a01b03851684529091529020546200015c908390839060ff166200015c5760008281526004602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200021b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200026d906200047b565b90600052602060002090601f016020900481019282620002915760008555620002dc565b82601f10620002ac57805160ff1916838001178555620002dc565b82800160010185558215620002dc579182015b82811115620002dc578251825591602001919060010190620002bf565b50620002ea929150620002ee565b5090565b5b80821115620002ea5760008155600101620002ef565b600082601f83011262000316578081fd5b81516001600160401b0380821115620003335762000333620004b8565b604051601f8301601f19908116603f011681019082821181831017156200035e576200035e620004b8565b816040528381526020925086838588010111156200037a578485fd5b8491505b838210156200039d57858201830151818301840152908201906200037e565b83821115620003ae57848385830101525b9695505050505050565b60008060008060008060c08789031215620003d1578182fd5b86516001600160401b0380821115620003e8578384fd5b620003f68a838b0162000305565b975060208901519150808211156200040c578384fd5b506200041b89828a0162000305565b95505060408701516200042e81620004ce565b60608801519094506200044181620004ce565b60808801519093506200045481620004ce565b60a088015190925062ffffff811681146200046d578182fd5b809150509295509295509295565b600181811c908216806200049057607f821691505b60208210811415620004b257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620004e457600080fd5b50565b613dcc80620004f76000396000f3fe608060405234801561001057600080fd5b50600436106102f35760003560e01c80638456cb5911610191578063d547741f116100e3578063e985e9c511610097578063f2fde38b11610071578063f2fde38b146106d7578063f5298aca146106ea578063ff87a5f5146106fd57600080fd5b8063e985e9c514610675578063f242432a146106b1578063f2bcd022146106c457600080fd5b8063e63ab1e9116100c8578063e63ab1e914610633578063e8a3d4851461065a578063e9758b721461066257600080fd5b8063d547741f146105fd578063da0280e21461061057600080fd5b8063a0ef91df11610145578063ad2f852a1161011f578063ad2f852a146105a9578063d50bac33146105c3578063d5391393146105d657600080fd5b8063a0ef91df14610586578063a217fddf1461058e578063a22cb4651461059657600080fd5b80639164012a116101765780639164012a1461052757806391d148541461053a578063938e3d7b1461057357600080fd5b80638456cb59146104fa5780638da5cb5b1461050257600080fd5b80632f2ff15d1161024a5780635c975abb116101fe5780636c0360eb116101d85780636c0360eb146104bc578063715018a6146104c45780637b8170ea146104cc57600080fd5b80635c975abb1461048b5780635cfa9297146104965780636b20c454146104a957600080fd5b80633f4ba83a1161022f5780633f4ba83a146104505780634e1273f4146104585780635c0be9701461047857600080fd5b80632f2ff15d1461042a57806336568abe1461043d57600080fd5b80630e43dfa4116102ac578063248a9ca311610286578063248a9ca3146103c25780632a55205a146103e55780632eb2c2d61461041757600080fd5b80630e43dfa41461037c5780630e89341c1461038f57806321b8092e146103af57600080fd5b806302fe5305116102dd57806302fe53051461034157806306d254da146103565780630d6a5bbb1461036957600080fd5b8062fdd58e146102f857806301ffc9a71461031e575b600080fd5b61030b610306366004613410565b610710565b6040519081526020015b60405180910390f35b61033161032c3660046135e0565b6107b9565b6040519015158152602001610315565b61035461034f366004613618565b610815565b005b61035461036436600461315e565b610872565b6103546103773660046132c3565b6108c0565b61035461038a366004613410565b610a2d565b6103a261039d3660046135a4565b610a66565b60405161031591906139e2565b6103546103bd36600461315e565b610b07565b61030b6103d03660046135a4565b60009081526004602052604090206001015490565b6103f86103f33660046136f9565b610b4e565b604080516001600160a01b039093168352602083019190915201610315565b6103546104253660046131b2565b610b90565b6103546104383660046135bc565b610c32565b61035461044b3660046135bc565b610c58565b610354610ce4565b61046b6104663660046134d7565b610d1a565b60405161031591906139a1565b610354610486366004613410565b610e90565b60035460ff16610331565b6103546104a436600461346f565b610ecc565b6103546104b736600461336c565b610fd3565b6103a261106c565b6103546110fa565b6103316104da3660046135bc565b600660209081526000928352604080842090915290825290205460ff1681565b610354611160565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610315565b6103546105353660046136d6565b611193565b6103316105483660046135bc565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610354610581366004613618565b61122d565b61035461124b565b61030b600081565b6103546105a43660046133df565b6112c5565b60075461050f90630100000090046001600160a01b031681565b60095461050f906001600160a01b031681565b61030b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61035461060b3660046135bc565b6112d0565b60075461061f9062ffffff1681565b60405162ffffff9091168152602001610315565b61030b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6103a26112f6565b61035461067036600461343b565b611303565b61033161068336600461317a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6103546106bf36600461325c565b6113cd565b60085461050f906001600160a01b031681565b6103546106e536600461315e565b611468565b6103546106f836600461343b565b611547565b61035461070b36600461315e565b6115e0565b60006001600160a01b0383166107935760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061080f575061080f82611627565b92915050565b6000610821813361167d565b61082d600a8484612f03565b5061086d83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116fd92505050565b505050565b600061087e813361167d565b50600780546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b60035460ff16156109135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661093e813361167d565b6109e08888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061171092505050565b7ff8cf633655166aa5f37eddb777e6e283241b7c8e43d9d75cf6057cb2c988819788888888888888604051610a1b9796959493929190613919565b60405180910390a15050505050505050565b6000610a39813361167d565b5060009081526006602090815260408083206001600160a01b03909416835292905220805460ff19169055565b6009546040517f41dcf4540000000000000000000000000000000000000000000000000000000081526060916001600160a01b0316906341dcf45490610ab3908590600a906004016139f5565b60006040518083038186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261080f9190810190613658565b6000610b13813361167d565b50600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60075460009081906001600160a01b0363010000008204169061271090610b7a9062ffffff1686613b28565b610b849190613b08565b915091505b9250929050565b6001600160a01b038516331480610bac5750610bac8533610683565b610c1e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161078a565b610c2b8585858585611923565b5050505050565b600082815260046020526040902060010154610c4e813361167d565b61086d8383611bdd565b6001600160a01b0381163314610cd65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161078a565b610ce08282611c7f565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d0f813361167d565b610d17611d02565b50565b60608151835114610d935760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161078a565b6000835167ffffffffffffffff811115610dbd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610de6578160200160208202803683370190505b50905060005b8451811015610e8857610e4d858281518110610e1857634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e4057634e487b7160e01b600052603260045260246000fd5b6020026020010151610710565b828281518110610e6d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e8181613c2e565b9050610dec565b509392505050565b6000610e9c813361167d565b5060009081526006602090815260408083206001600160a01b03909416835292905220805460ff19166001179055565b60035460ff1615610f1f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f4a813361167d565b610f8c86868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9e92505050565b7f6f22b1e1e34475d2453ef65c35f74a9b1e2183b5038d895d7f439cc9121a8c828686868686604051610fc3959493929190613972565b60405180910390a1505050505050565b6001600160a01b038316331480610fef5750610fef8333610683565b6110615760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b61086d838383611ec4565b600a805461107990613bc6565b80601f01602080910402602001604051908101604052809291908181526020018280546110a590613bc6565b80156110f25780601f106110c7576101008083540402835291602001916110f2565b820191906000526020600020905b8154815290600101906020018083116110d557829003601f168201915b505050505081565b6005546001600160a01b031633146111545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b61115e600061215d565b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61118b813361167d565b610d176121c7565b600061119f813361167d565b6127108262ffffff1611156111f65760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161078a565b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b6000611239813361167d565b611245600b8484612f03565b50505050565b6000611257813361167d565b6008546001600160a01b03166112af5760405162461bcd60e51b815260206004820152601760248201527f5749544844524157414c5f414444524553535f5a45524f000000000000000000604482015260640161078a565b600854610d17906001600160a01b03164761224f565b610ce0338383612368565b6000828152600460205260409020600101546112ec813361167d565b61086d8383611c7f565b600b805461107990613bc6565b60035460ff16156113565760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b600082815260066020908152604080832033808552925290912054839060ff166113c25760405162461bcd60e51b815260206004820152601a60248201527f4e4f5420415050524f56454420544f204255524e20544f4b454e000000000000604482015260640161078a565b610c2b85858561245d565b6001600160a01b0385163314806113e957506113e98533610683565b61145b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b610c2b858585858561260a565b6005546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b6001600160a01b03811661153e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161078a565b610d178161215d565b6001600160a01b03831633148061156357506115638333610683565b6115d55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b61086d83838361245d565b60006115ec813361167d565b50600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061080f575061080f826127d3565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16610ce0576116bb816001600160a01b031660146128b6565b6116c68360206128b6565b6040516020016116d79291906137f7565b60408051601f198184030181529082905262461bcd60e51b825261078a916004016139e2565b8051610ce0906002906020840190612f87565b6001600160a01b03841661178c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161078a565b81518351146118035760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b3360005b84518110156118bb5783818151811061183057634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061185b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546118a39190613af0565b909155508190506118b381613c2e565b915050611807565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190c9291906139b4565b60405180910390a4610c2b81600087878787612b2c565b815183511461199a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b6001600160a01b038416611a165760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161078a565b3360005b8451811015611b6f576000858281518110611a4557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a7157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b175760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161078a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b54908490613af0565b9250508190555050505080611b6890613c2e565b9050611a1a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bbf9291906139b4565b60405180910390a4611bd5818787878787612b2c565b505050505050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16610ce05760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c3b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff1615610ce05760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60035460ff16611d545760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161078a565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038416611e1a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161078a565b33611e3481600087611e2b88612d40565b610c2b88612d40565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611e64908490613af0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2b81600087878787612d99565b6001600160a01b038316611f405760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161078a565b8051825114611fb75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b604080516020810190915260009081905233905b83518110156120fe576000848281518110611ff657634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061202257634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120c75760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161078a565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120f681613c2e565b915050611fcb565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161214f9291906139b4565b60405180910390a450505050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff161561221a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d813390565b8047101561229f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161078a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122ec576040519150601f19603f3d011682016040523d82523d6000602084013e6122f1565b606091505b505090508061086d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161078a565b816001600160a01b0316836001600160a01b031614156123f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161078a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166124d95760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161078a565b33612509818560006124ea87612d40565b6124f387612d40565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561259f5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161078a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166126865760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161078a565b33612696818787611e2b88612d40565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561272d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161078a565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061276a908490613af0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127ca828888888888612d99565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061286657507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061080f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461080f565b606060006128c5836002613b28565b6128d0906002613af0565b67ffffffffffffffff8111156128f657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612920576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061296557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106129d657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612a12846002613b28565b612a1d906001613af0565b90505b6001811115612ad6577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612a6c57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612a9057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612acf81613b91565b9050612a20565b508315612b255760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161078a565b9392505050565b6001600160a01b0384163b15611bd5576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190612b899089908990889088908890600401613878565b602060405180830381600087803b158015612ba357600080fd5b505af1925050508015612bd3575060408051601f3d908101601f19168201909252612bd0918101906135fc565b60015b612c8957612bdf613c93565b806308c379a01415612c195750612bf4613cab565b80612bff5750612c1b565b8060405162461bcd60e51b815260040161078a91906139e2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161078a565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146127ca5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161078a565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612d8857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611bd5576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612df690899089908890889088906004016138d6565b602060405180830381600087803b158015612e1057600080fd5b505af1925050508015612e40575060408051601f3d908101601f19168201909252612e3d918101906135fc565b60015b612e4c57612bdf613c93565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146127ca5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161078a565b828054612f0f90613bc6565b90600052602060002090601f016020900481019282612f315760008555612f77565b82601f10612f4a5782800160ff19823516178555612f77565b82800160010185558215612f77579182015b82811115612f77578235825591602001919060010190612f5c565b50612f83929150612ffb565b5090565b828054612f9390613bc6565b90600052602060002090601f016020900481019282612fb55760008555612f77565b82601f10612fce57805160ff1916838001178555612f77565b82800160010185558215612f77579182015b82811115612f77578251825591602001919060010190612fe0565b5b80821115612f835760008155600101612ffc565b60008083601f840112613021578182fd5b50813567ffffffffffffffff811115613038578182fd5b6020830191508360208260051b8501011115610b8957600080fd5b600082601f830112613063578081fd5b8135602061307082613aa4565b60405161307d8282613c01565b8381528281019150858301600585901b8701840188101561309c578586fd5b855b858110156130ba5781358452928401929084019060010161309e565b5090979650505050505050565b60008083601f8401126130d8578182fd5b50813567ffffffffffffffff8111156130ef578182fd5b602083019150836020828501011115610b8957600080fd5b600082601f830112613117578081fd5b813561312281613ac8565b60405161312f8282613c01565b828152856020848701011115613143578384fd5b82602086016020830137918201602001929092529392505050565b60006020828403121561316f578081fd5b8135612b2581613d53565b6000806040838503121561318c578081fd5b823561319781613d53565b915060208301356131a781613d53565b809150509250929050565b600080600080600060a086880312156131c9578081fd5b85356131d481613d53565b945060208601356131e481613d53565b9350604086013567ffffffffffffffff80821115613200578283fd5b61320c89838a01613053565b94506060880135915080821115613221578283fd5b61322d89838a01613053565b93506080880135915080821115613242578283fd5b5061324f88828901613107565b9150509295509295909350565b600080600080600060a08688031215613273578081fd5b853561327e81613d53565b9450602086013561328e81613d53565b93506040860135925060608601359150608086013567ffffffffffffffff8111156132b7578182fd5b61324f88828901613107565b60008060008060008060006080888a0312156132dd578485fd5b87356132e881613d53565b9650602088013567ffffffffffffffff80821115613304578687fd5b6133108b838c01613010565b909850965060408a0135915080821115613328578384fd5b6133348b838c01613010565b909650945060608a013591508082111561334c578384fd5b506133598a828b016130c7565b989b979a50959850939692959293505050565b600080600060608486031215613380578081fd5b833561338b81613d53565b9250602084013567ffffffffffffffff808211156133a7578283fd5b6133b387838801613053565b935060408601359150808211156133c8578283fd5b506133d586828701613053565b9150509250925092565b600080604083850312156133f1578182fd5b82356133fc81613d53565b9150602083013580151581146131a7578182fd5b60008060408385031215613422578182fd5b823561342d81613d53565b946020939093013593505050565b60008060006060848603121561344f578081fd5b833561345a81613d53565b95602085013595506040909401359392505050565b600080600080600060808688031215613486578283fd5b853561349181613d53565b94506020860135935060408601359250606086013567ffffffffffffffff8111156134ba578182fd5b6134c6888289016130c7565b969995985093965092949392505050565b600080604083850312156134e9578182fd5b823567ffffffffffffffff80821115613500578384fd5b818501915085601f830112613513578384fd5b8135602061352082613aa4565b60405161352d8282613c01565b8381528281019150858301600585901b870184018b101561354c578889fd5b8896505b8487101561357757803561356381613d53565b835260019690960195918301918301613550565b509650508601359250508082111561358d578283fd5b5061359a85828601613053565b9150509250929050565b6000602082840312156135b5578081fd5b5035919050565b600080604083850312156135ce578182fd5b8235915060208301356131a781613d53565b6000602082840312156135f1578081fd5b8135612b2581613d68565b60006020828403121561360d578081fd5b8151612b2581613d68565b6000806020838503121561362a578182fd5b823567ffffffffffffffff811115613640578283fd5b61364c858286016130c7565b90969095509350505050565b600060208284031215613669578081fd5b815167ffffffffffffffff81111561367f578182fd5b8201601f8101841361368f578182fd5b805161369a81613ac8565b6040516136a78282613c01565b8281528660208486010111156136bb578485fd5b6136cc836020830160208701613b65565b9695505050505050565b6000602082840312156136e7578081fd5b813562ffffff81168114612b25578182fd5b6000806040838503121561370b578182fd5b50508035926020909101359150565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561374b578081fd5b8260051b80836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b838110156137965781518752958201959082019060010161377a565b509495945050505050565b8183528181602085013750600080602083850101526020601f19601f840116840101905092915050565b600081518084526137e3816020860160208601613b65565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161382f816017850160208801613b65565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161386c816028840160208801613b65565b01602801949350505050565b60006001600160a01b03808816835280871660208401525060a060408301526138a460a0830186613767565b82810360608401526138b68186613767565b905082810360808401526138ca81856137cb565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261390e60a08301846137cb565b979650505050505050565b6001600160a01b038816815260806020820152600061393c60808301888a61371a565b828103604084015261394f81878961371a565b905082810360608401526139648185876137a1565b9a9950505050505050505050565b6001600160a01b038616815284602082015283604082015260806060820152600061390e6080830184866137a1565b602081526000612b256020830184613767565b6040815260006139c76040830185613767565b82810360208401526139d98185613767565b95945050505050565b602081526000612b2560208301846137cb565b8281526000602060408184015281845483600182811c915080831680613a1c57607f831692505b858310811415613a3a57634e487b7160e01b87526022600452602487fd5b6040880183905260608801818015613a595760018114613a6a57613a94565b60ff19861682528782019650613a94565b60008b815260209020895b86811015613a8e57815484820152908501908901613a75565b83019750505b50949a9950505050505050505050565b600067ffffffffffffffff821115613abe57613abe613c7d565b5060051b60200190565b600067ffffffffffffffff821115613ae257613ae2613c7d565b50601f01601f191660200190565b60008219821115613b0357613b03613c67565b500190565b600082613b2357634e487b7160e01b81526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613b6057613b60613c67565b500290565b60005b83811015613b80578181015183820152602001613b68565b838111156112455750506000910152565b600081613ba057613ba0613c67565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680613bda57607f821691505b60208210811415613bfb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f19601f830116810181811067ffffffffffffffff82111715613c2757613c27613c7d565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c6057613c60613c67565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613ca857600481823e5160e01c5b90565b600060443d1015613cb95790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613d0757505050505090565b8285019150815181811115613d1f5750505050505090565b843d8701016020828501011115613d395750505050505090565b613d4860208286010187613c01565b509095945050505050565b6001600160a01b0381168114610d1757600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d1757600080fdfea2646970667358221220f30a2c2c6e91a8dd17ef3ce36ce809e38d3b002579c7bf5ee129b6704f116e9664736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000c6f8e66f45f68bee889790e3bc9dfc5380c75d80000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed0000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d657461646174612e61727469652e636f6d2f64697370656e736172792f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6d657461646174612e61727469652e636f6d2f64697370656e736172792f636f6e7472616374000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102f35760003560e01c80638456cb5911610191578063d547741f116100e3578063e985e9c511610097578063f2fde38b11610071578063f2fde38b146106d7578063f5298aca146106ea578063ff87a5f5146106fd57600080fd5b8063e985e9c514610675578063f242432a146106b1578063f2bcd022146106c457600080fd5b8063e63ab1e9116100c8578063e63ab1e914610633578063e8a3d4851461065a578063e9758b721461066257600080fd5b8063d547741f146105fd578063da0280e21461061057600080fd5b8063a0ef91df11610145578063ad2f852a1161011f578063ad2f852a146105a9578063d50bac33146105c3578063d5391393146105d657600080fd5b8063a0ef91df14610586578063a217fddf1461058e578063a22cb4651461059657600080fd5b80639164012a116101765780639164012a1461052757806391d148541461053a578063938e3d7b1461057357600080fd5b80638456cb59146104fa5780638da5cb5b1461050257600080fd5b80632f2ff15d1161024a5780635c975abb116101fe5780636c0360eb116101d85780636c0360eb146104bc578063715018a6146104c45780637b8170ea146104cc57600080fd5b80635c975abb1461048b5780635cfa9297146104965780636b20c454146104a957600080fd5b80633f4ba83a1161022f5780633f4ba83a146104505780634e1273f4146104585780635c0be9701461047857600080fd5b80632f2ff15d1461042a57806336568abe1461043d57600080fd5b80630e43dfa4116102ac578063248a9ca311610286578063248a9ca3146103c25780632a55205a146103e55780632eb2c2d61461041757600080fd5b80630e43dfa41461037c5780630e89341c1461038f57806321b8092e146103af57600080fd5b806302fe5305116102dd57806302fe53051461034157806306d254da146103565780630d6a5bbb1461036957600080fd5b8062fdd58e146102f857806301ffc9a71461031e575b600080fd5b61030b610306366004613410565b610710565b6040519081526020015b60405180910390f35b61033161032c3660046135e0565b6107b9565b6040519015158152602001610315565b61035461034f366004613618565b610815565b005b61035461036436600461315e565b610872565b6103546103773660046132c3565b6108c0565b61035461038a366004613410565b610a2d565b6103a261039d3660046135a4565b610a66565b60405161031591906139e2565b6103546103bd36600461315e565b610b07565b61030b6103d03660046135a4565b60009081526004602052604090206001015490565b6103f86103f33660046136f9565b610b4e565b604080516001600160a01b039093168352602083019190915201610315565b6103546104253660046131b2565b610b90565b6103546104383660046135bc565b610c32565b61035461044b3660046135bc565b610c58565b610354610ce4565b61046b6104663660046134d7565b610d1a565b60405161031591906139a1565b610354610486366004613410565b610e90565b60035460ff16610331565b6103546104a436600461346f565b610ecc565b6103546104b736600461336c565b610fd3565b6103a261106c565b6103546110fa565b6103316104da3660046135bc565b600660209081526000928352604080842090915290825290205460ff1681565b610354611160565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610315565b6103546105353660046136d6565b611193565b6103316105483660046135bc565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610354610581366004613618565b61122d565b61035461124b565b61030b600081565b6103546105a43660046133df565b6112c5565b60075461050f90630100000090046001600160a01b031681565b60095461050f906001600160a01b031681565b61030b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61035461060b3660046135bc565b6112d0565b60075461061f9062ffffff1681565b60405162ffffff9091168152602001610315565b61030b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6103a26112f6565b61035461067036600461343b565b611303565b61033161068336600461317a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6103546106bf36600461325c565b6113cd565b60085461050f906001600160a01b031681565b6103546106e536600461315e565b611468565b6103546106f836600461343b565b611547565b61035461070b36600461315e565b6115e0565b60006001600160a01b0383166107935760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a00000000000000000000000000000000000000000000000000000000148061080f575061080f82611627565b92915050565b6000610821813361167d565b61082d600a8484612f03565b5061086d83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506116fd92505050565b505050565b600061087e813361167d565b50600780546001600160a01b039092166301000000027fffffffffffffffffff0000000000000000000000000000000000000000ffffff909216919091179055565b60035460ff16156109135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661093e813361167d565b6109e08888888080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808c0282810182019093528b82529093508b92508a91829185019084908082843760009201919091525050604080516020601f8b01819004810282018101909252898152925089915088908190840183828082843760009201919091525061171092505050565b7ff8cf633655166aa5f37eddb777e6e283241b7c8e43d9d75cf6057cb2c988819788888888888888604051610a1b9796959493929190613919565b60405180910390a15050505050505050565b6000610a39813361167d565b5060009081526006602090815260408083206001600160a01b03909416835292905220805460ff19169055565b6009546040517f41dcf4540000000000000000000000000000000000000000000000000000000081526060916001600160a01b0316906341dcf45490610ab3908590600a906004016139f5565b60006040518083038186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261080f9190810190613658565b6000610b13813361167d565b50600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60075460009081906001600160a01b0363010000008204169061271090610b7a9062ffffff1686613b28565b610b849190613b08565b915091505b9250929050565b6001600160a01b038516331480610bac5750610bac8533610683565b610c1e5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161078a565b610c2b8585858585611923565b5050505050565b600082815260046020526040902060010154610c4e813361167d565b61086d8383611bdd565b6001600160a01b0381163314610cd65760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c660000000000000000000000000000000000606482015260840161078a565b610ce08282611c7f565b5050565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a610d0f813361167d565b610d17611d02565b50565b60608151835114610d935760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161078a565b6000835167ffffffffffffffff811115610dbd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610de6578160200160208202803683370190505b50905060005b8451811015610e8857610e4d858281518110610e1857634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e4057634e487b7160e01b600052603260045260246000fd5b6020026020010151610710565b828281518110610e6d57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e8181613c2e565b9050610dec565b509392505050565b6000610e9c813361167d565b5060009081526006602090815260408083206001600160a01b03909416835292905220805460ff19166001179055565b60035460ff1615610f1f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610f4a813361167d565b610f8c86868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d9e92505050565b7f6f22b1e1e34475d2453ef65c35f74a9b1e2183b5038d895d7f439cc9121a8c828686868686604051610fc3959493929190613972565b60405180910390a1505050505050565b6001600160a01b038316331480610fef5750610fef8333610683565b6110615760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b61086d838383611ec4565b600a805461107990613bc6565b80601f01602080910402602001604051908101604052809291908181526020018280546110a590613bc6565b80156110f25780601f106110c7576101008083540402835291602001916110f2565b820191906000526020600020905b8154815290600101906020018083116110d557829003601f168201915b505050505081565b6005546001600160a01b031633146111545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b61115e600061215d565b565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a61118b813361167d565b610d176121c7565b600061119f813361167d565b6127108262ffffff1611156111f65760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640161078a565b50600780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000001662ffffff92909216919091179055565b6000611239813361167d565b611245600b8484612f03565b50505050565b6000611257813361167d565b6008546001600160a01b03166112af5760405162461bcd60e51b815260206004820152601760248201527f5749544844524157414c5f414444524553535f5a45524f000000000000000000604482015260640161078a565b600854610d17906001600160a01b03164761224f565b610ce0338383612368565b6000828152600460205260409020600101546112ec813361167d565b61086d8383611c7f565b600b805461107990613bc6565b60035460ff16156113565760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b600082815260066020908152604080832033808552925290912054839060ff166113c25760405162461bcd60e51b815260206004820152601a60248201527f4e4f5420415050524f56454420544f204255524e20544f4b454e000000000000604482015260640161078a565b610c2b85858561245d565b6001600160a01b0385163314806113e957506113e98533610683565b61145b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b610c2b858585858561260a565b6005546001600160a01b031633146114c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078a565b6001600160a01b03811661153e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161078a565b610d178161215d565b6001600160a01b03831633148061156357506115638333610683565b6115d55760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161078a565b61086d83838361245d565b60006115ec813361167d565b50600980547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061080f575061080f826127d3565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16610ce0576116bb816001600160a01b031660146128b6565b6116c68360206128b6565b6040516020016116d79291906137f7565b60408051601f198184030181529082905262461bcd60e51b825261078a916004016139e2565b8051610ce0906002906020840190612f87565b6001600160a01b03841661178c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161078a565b81518351146118035760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b3360005b84518110156118bb5783818151811061183057634e487b7160e01b600052603260045260246000fd5b602002602001015160008087848151811061185b57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546118a39190613af0565b909155508190506118b381613c2e565b915050611807565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161190c9291906139b4565b60405180910390a4610c2b81600087878787612b2c565b815183511461199a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b6001600160a01b038416611a165760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161078a565b3360005b8451811015611b6f576000858281518110611a4557634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110611a7157634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611b175760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161078a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611b54908490613af0565b9250508190555050505080611b6890613c2e565b9050611a1a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611bbf9291906139b4565b60405180910390a4611bd5818787878787612b2c565b505050505050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16610ce05760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611c3b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff1615610ce05760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60035460ff16611d545760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161078a565b6003805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038416611e1a5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161078a565b33611e3481600087611e2b88612d40565b610c2b88612d40565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611e64908490613af0565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610c2b81600087878787612d99565b6001600160a01b038316611f405760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161078a565b8051825114611fb75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161078a565b604080516020810190915260009081905233905b83518110156120fe576000848281518110611ff657634e487b7160e01b600052603260045260246000fd5b60200260200101519050600084838151811061202257634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120c75760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161078a565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806120f681613c2e565b915050611fcb565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161214f9291906139b4565b60405180910390a450505050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60035460ff161561221a5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161078a565b6003805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d813390565b8047101561229f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161078a565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146122ec576040519150601f19603f3d011682016040523d82523d6000602084013e6122f1565b606091505b505090508061086d5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161078a565b816001600160a01b0316836001600160a01b031614156123f05760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161078a565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166124d95760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161078a565b33612509818560006124ea87612d40565b6124f387612d40565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561259f5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e636500000000000000000000000000000000000000000000000000000000606482015260840161078a565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384166126865760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161078a565b33612696818787611e2b88612d40565b6000848152602081815260408083206001600160a01b038a1684529091529020548381101561272d5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e7366657200000000000000000000000000000000000000000000606482015260840161078a565b6000858152602081815260408083206001600160a01b038b811685529252808320878503905590881682528120805486929061276a908490613af0565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127ca828888888888612d99565b50505050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a2600000000000000000000000000000000000000000000000000000000148061286657507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061080f57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461080f565b606060006128c5836002613b28565b6128d0906002613af0565b67ffffffffffffffff8111156128f657634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612920576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061296557634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106129d657634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000612a12846002613b28565b612a1d906001613af0565b90505b6001811115612ad6577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110612a6c57634e487b7160e01b600052603260045260246000fd5b1a60f81b828281518110612a9057634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93612acf81613b91565b9050612a20565b508315612b255760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161078a565b9392505050565b6001600160a01b0384163b15611bd5576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c8190612b899089908990889088908890600401613878565b602060405180830381600087803b158015612ba357600080fd5b505af1925050508015612bd3575060408051601f3d908101601f19168201909252612bd0918101906135fc565b60015b612c8957612bdf613c93565b806308c379a01415612c195750612bf4613cab565b80612bff5750612c1b565b8060405162461bcd60e51b815260040161078a91906139e2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161078a565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c8100000000000000000000000000000000000000000000000000000000146127ca5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161078a565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612d8857634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15611bd5576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e6190612df690899089908890889088906004016138d6565b602060405180830381600087803b158015612e1057600080fd5b505af1925050508015612e40575060408051601f3d908101601f19168201909252612e3d918101906135fc565b60015b612e4c57612bdf613c93565b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e6100000000000000000000000000000000000000000000000000000000146127ca5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e73000000000000000000000000000000000000000000000000606482015260840161078a565b828054612f0f90613bc6565b90600052602060002090601f016020900481019282612f315760008555612f77565b82601f10612f4a5782800160ff19823516178555612f77565b82800160010185558215612f77579182015b82811115612f77578235825591602001919060010190612f5c565b50612f83929150612ffb565b5090565b828054612f9390613bc6565b90600052602060002090601f016020900481019282612fb55760008555612f77565b82601f10612fce57805160ff1916838001178555612f77565b82800160010185558215612f77579182015b82811115612f77578251825591602001919060010190612fe0565b5b80821115612f835760008155600101612ffc565b60008083601f840112613021578182fd5b50813567ffffffffffffffff811115613038578182fd5b6020830191508360208260051b8501011115610b8957600080fd5b600082601f830112613063578081fd5b8135602061307082613aa4565b60405161307d8282613c01565b8381528281019150858301600585901b8701840188101561309c578586fd5b855b858110156130ba5781358452928401929084019060010161309e565b5090979650505050505050565b60008083601f8401126130d8578182fd5b50813567ffffffffffffffff8111156130ef578182fd5b602083019150836020828501011115610b8957600080fd5b600082601f830112613117578081fd5b813561312281613ac8565b60405161312f8282613c01565b828152856020848701011115613143578384fd5b82602086016020830137918201602001929092529392505050565b60006020828403121561316f578081fd5b8135612b2581613d53565b6000806040838503121561318c578081fd5b823561319781613d53565b915060208301356131a781613d53565b809150509250929050565b600080600080600060a086880312156131c9578081fd5b85356131d481613d53565b945060208601356131e481613d53565b9350604086013567ffffffffffffffff80821115613200578283fd5b61320c89838a01613053565b94506060880135915080821115613221578283fd5b61322d89838a01613053565b93506080880135915080821115613242578283fd5b5061324f88828901613107565b9150509295509295909350565b600080600080600060a08688031215613273578081fd5b853561327e81613d53565b9450602086013561328e81613d53565b93506040860135925060608601359150608086013567ffffffffffffffff8111156132b7578182fd5b61324f88828901613107565b60008060008060008060006080888a0312156132dd578485fd5b87356132e881613d53565b9650602088013567ffffffffffffffff80821115613304578687fd5b6133108b838c01613010565b909850965060408a0135915080821115613328578384fd5b6133348b838c01613010565b909650945060608a013591508082111561334c578384fd5b506133598a828b016130c7565b989b979a50959850939692959293505050565b600080600060608486031215613380578081fd5b833561338b81613d53565b9250602084013567ffffffffffffffff808211156133a7578283fd5b6133b387838801613053565b935060408601359150808211156133c8578283fd5b506133d586828701613053565b9150509250925092565b600080604083850312156133f1578182fd5b82356133fc81613d53565b9150602083013580151581146131a7578182fd5b60008060408385031215613422578182fd5b823561342d81613d53565b946020939093013593505050565b60008060006060848603121561344f578081fd5b833561345a81613d53565b95602085013595506040909401359392505050565b600080600080600060808688031215613486578283fd5b853561349181613d53565b94506020860135935060408601359250606086013567ffffffffffffffff8111156134ba578182fd5b6134c6888289016130c7565b969995985093965092949392505050565b600080604083850312156134e9578182fd5b823567ffffffffffffffff80821115613500578384fd5b818501915085601f830112613513578384fd5b8135602061352082613aa4565b60405161352d8282613c01565b8381528281019150858301600585901b870184018b101561354c578889fd5b8896505b8487101561357757803561356381613d53565b835260019690960195918301918301613550565b509650508601359250508082111561358d578283fd5b5061359a85828601613053565b9150509250929050565b6000602082840312156135b5578081fd5b5035919050565b600080604083850312156135ce578182fd5b8235915060208301356131a781613d53565b6000602082840312156135f1578081fd5b8135612b2581613d68565b60006020828403121561360d578081fd5b8151612b2581613d68565b6000806020838503121561362a578182fd5b823567ffffffffffffffff811115613640578283fd5b61364c858286016130c7565b90969095509350505050565b600060208284031215613669578081fd5b815167ffffffffffffffff81111561367f578182fd5b8201601f8101841361368f578182fd5b805161369a81613ac8565b6040516136a78282613c01565b8281528660208486010111156136bb578485fd5b6136cc836020830160208701613b65565b9695505050505050565b6000602082840312156136e7578081fd5b813562ffffff81168114612b25578182fd5b6000806040838503121561370b578182fd5b50508035926020909101359150565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83111561374b578081fd5b8260051b80836020870137939093016020019283525090919050565b6000815180845260208085019450808401835b838110156137965781518752958201959082019060010161377a565b509495945050505050565b8183528181602085013750600080602083850101526020601f19601f840116840101905092915050565b600081518084526137e3816020860160208601613b65565b601f01601f19169290920160200192915050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161382f816017850160208801613b65565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161386c816028840160208801613b65565b01602801949350505050565b60006001600160a01b03808816835280871660208401525060a060408301526138a460a0830186613767565b82810360608401526138b68186613767565b905082810360808401526138ca81856137cb565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261390e60a08301846137cb565b979650505050505050565b6001600160a01b038816815260806020820152600061393c60808301888a61371a565b828103604084015261394f81878961371a565b905082810360608401526139648185876137a1565b9a9950505050505050505050565b6001600160a01b038616815284602082015283604082015260806060820152600061390e6080830184866137a1565b602081526000612b256020830184613767565b6040815260006139c76040830185613767565b82810360208401526139d98185613767565b95945050505050565b602081526000612b2560208301846137cb565b8281526000602060408184015281845483600182811c915080831680613a1c57607f831692505b858310811415613a3a57634e487b7160e01b87526022600452602487fd5b6040880183905260608801818015613a595760018114613a6a57613a94565b60ff19861682528782019650613a94565b60008b815260209020895b86811015613a8e57815484820152908501908901613a75565b83019750505b50949a9950505050505050505050565b600067ffffffffffffffff821115613abe57613abe613c7d565b5060051b60200190565b600067ffffffffffffffff821115613ae257613ae2613c7d565b50601f01601f191660200190565b60008219821115613b0357613b03613c67565b500190565b600082613b2357634e487b7160e01b81526012600452602481fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613b6057613b60613c67565b500290565b60005b83811015613b80578181015183820152602001613b68565b838111156112455750506000910152565b600081613ba057613ba0613c67565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c90821680613bda57607f821691505b60208210811415613bfb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f19601f830116810181811067ffffffffffffffff82111715613c2757613c27613c7d565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c6057613c60613c67565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613ca857600481823e5160e01c5b90565b600060443d1015613cb95790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715613d0757505050505090565b8285019150815181811115613d1f5750505050505090565b843d8701016020828501011115613d395750505050505090565b613d4860208286010187613c01565b509095945050505050565b6001600160a01b0381168114610d1757600080fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610d1757600080fdfea2646970667358221220f30a2c2c6e91a8dd17ef3ce36ce809e38d3b002579c7bf5ee129b6704f116e9664736f6c63430008040033

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000c6f8e66f45f68bee889790e3bc9dfc5380c75d80000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed0000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f6d657461646174612e61727469652e636f6d2f64697370656e736172792f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6d657461646174612e61727469652e636f6d2f64697370656e736172792f636f6e7472616374000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _uri (string): https://metadata.artie.com/dispensary/
Arg [1] : _contractURI (string): https://metadata.artie.com/dispensary/contract
Arg [2] : _tokenURIRenderer (address): 0x0C6f8e66F45f68Bee889790E3bc9dfC5380c75D8
Arg [3] : _withdrawAddress (address): 0x4b4BA0C907800CC85c5bf8E5CD94Ff22000ed8Ed
Arg [4] : _royaltyAddress (address): 0x4b4BA0C907800CC85c5bf8E5CD94Ff22000ed8Ed
Arg [5] : _royaltyPercentBp (uint24): 500

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000c6f8e66f45f68bee889790e3bc9dfc5380c75d8
Arg [3] : 0000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed
Arg [4] : 0000000000000000000000004b4ba0c907800cc85c5bf8e5cd94ff22000ed8ed
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [7] : 68747470733a2f2f6d657461646174612e61727469652e636f6d2f6469737065
Arg [8] : 6e736172792f0000000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [10] : 68747470733a2f2f6d657461646174612e61727469652e636f6d2f6469737065
Arg [11] : 6e736172792f636f6e7472616374000000000000000000000000000000000000


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.