ETH Price: $2,867.73 (-2.76%)
 

Overview

Max Total Supply

0

Holders

86,611

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
gianlucomental.base.eth
0x3e12c5830ff80167b5aa9e85f364176125fcd75f
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
Box

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

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

contract Box is ERC1155, Ownable {
    string private _contractURI = "https://www.mintabox.xyz/api/contract";
    string private description = "Our Liquid Death box is hitting the shelves this summer. And we're using it to bring the masses onchain. Mint the box you want to see in stores.";

    mapping(uint256 => uint256) private _totalSupply;

    string[] private images;

    bool public open = false;

    constructor(string memory image1, string memory image2) ERC1155("") {
        images.push(image1);
        images.push(image2);
    }

    // soulbound
    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data)
        internal
        override
    {
        require(from == address(0), "Token not transferable");
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    function mint(uint256 voteId) external {
        require(voteId == 0 || voteId == 1, "Box does not exist.");
        require(open, "Voting is not open.");
        _mint(msg.sender, voteId, 1, "");
        _totalSupply[voteId]++;
    }

    function mintTo(address _address, uint256 voteId) external {
        require(voteId == 0 || voteId == 1, "Box does not exist.");
        require(open, "Voting is not open.");
        _mint(_address, voteId, 1, "");
        _totalSupply[voteId]++;
    }

    function totalSupply(uint256 voteId) public view returns (uint256) {
        return _totalSupply[voteId];
    }

    function getVotes() external view returns (uint256[2] memory) {
        return [_totalSupply[0], _totalSupply[1]];
    }

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

    function uri(uint256 voteId) public view override returns (string memory) {
        require(voteId == 0 || voteId == 1, "Box does not exist.");
        return _formatMetadataJSON(voteId);
    }

    function _formatMetadataJSON(uint256 voteId) private view returns (string memory) {
        return string(abi.encodePacked(
            '{"name":"Box ', Strings.toString(voteId + 1),
            '","image":"', images[voteId],
            '","description":"', description,
            '","animation_url":"https://www.mintabox.xyz/nft/',  Strings.toString(voteId),
            '","external_url":"https://www.mintabox.xyz"}'
        ));
    }

    function setOpen(bool _open) external onlyOwner {
        open = _open;
    }

    function updateImage(uint256 _num, string memory _url) external onlyOwner {
        images[_num] = _url;
    }

    function updateDescription(string memory _description) external onlyOwner {
        description = _description;
    }

    function setContractURI(string memory newuri) public onlyOwner {
        _contractURI = newuri;
    }

}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"image1","type":"string"},{"internalType":"string","name":"image2","type":"string"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVotes","outputs":[{"internalType":"uint256[2]","name":"","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"voteId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"voteId","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"open","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_open","type":"bool"}],"name":"setOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"voteId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"updateDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_num","type":"uint256"},{"internalType":"string","name":"_url","type":"string"}],"name":"updateImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"voteId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040526040518060600160405280602581526020016200443b60259139600490816200002e9190620004bd565b506040518060c0016040528060908152602001620043ab6090913960059081620000599190620004bd565b506000600860006101000a81548160ff0219169083151502179055503480156200008257600080fd5b5060405162004460380380620044608339818101604052810190620000a8919062000708565b60405180602001604052806000815250620000c9816200016060201b60201c565b50620000ea620000de6200017560201b60201c565b6200017d60201b60201c565b600782908060018154018082558091505060019003906000526020600020016000909190919091509081620001209190620004bd565b50600781908060018154018082558091505060019003906000526020600020016000909190919091509081620001579190620004bd565b5050506200078d565b8060029081620001719190620004bd565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002c557607f821691505b602082108103620002db57620002da6200027d565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620003457fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000306565b62000351868362000306565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200039e62000398620003928462000369565b62000373565b62000369565b9050919050565b6000819050919050565b620003ba836200037d565b620003d2620003c982620003a5565b84845462000313565b825550505050565b600090565b620003e9620003da565b620003f6818484620003af565b505050565b5b818110156200041e5762000412600082620003df565b600181019050620003fc565b5050565b601f8211156200046d576200043781620002e1565b6200044284620002f6565b8101602085101562000452578190505b6200046a6200046185620002f6565b830182620003fb565b50505b505050565b600082821c905092915050565b6000620004926000198460080262000472565b1980831691505092915050565b6000620004ad83836200047f565b9150826002028217905092915050565b620004c88262000243565b67ffffffffffffffff811115620004e457620004e36200024e565b5b620004f08254620002ac565b620004fd82828562000422565b600060209050601f83116001811462000535576000841562000520578287015190505b6200052c85826200049f565b8655506200059c565b601f1984166200054586620002e1565b60005b828110156200056f5784890151825560018201915060208501945060208101905062000548565b868310156200058f57848901516200058b601f8916826200047f565b8355505b6001600288020188555050505b505050505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b620005de82620005c2565b810181811067ffffffffffffffff821117156200060057620005ff6200024e565b5b80604052505050565b600062000615620005a4565b9050620006238282620005d3565b919050565b600067ffffffffffffffff8211156200064657620006456200024e565b5b6200065182620005c2565b9050602081019050919050565b60005b838110156200067e57808201518184015260208101905062000661565b60008484015250505050565b6000620006a16200069b8462000628565b62000609565b905082815260208101848484011115620006c057620006bf620005bd565b5b620006cd8482856200065e565b509392505050565b600082601f830112620006ed57620006ec620005b8565b5b8151620006ff8482602086016200068a565b91505092915050565b60008060408385031215620007225762000721620005ae565b5b600083015167ffffffffffffffff811115620007435762000742620005b3565b5b6200075185828601620006d5565b925050602083015167ffffffffffffffff811115620007755762000774620005b3565b5b6200078385828601620006d5565b9150509250929050565b613c0e806200079d6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80638da5cb5b116100b8578063e735b48a1161007c578063e735b48a14610335578063e8a3d48514610351578063e985e9c51461036f578063f242432a1461039f578063f2fde38b146103bb578063fcfff16f146103d757610136565b80638da5cb5b14610293578063938e3d7b146102b1578063a0712d68146102cd578063a22cb465146102e9578063bd85b0391461030557610136565b8063449a52f8116100ff578063449a52f8146102055780634e1273f4146102215780636fdca5e014610251578063715018a61461026d57806384b9e9df1461027757610136565b8062fdd58e1461013b57806301ffc9a71461016b5780630dc960151461019b5780630e89341c146101b95780632eb2c2d6146101e9575b600080fd5b61015560048036038101906101509190611ff0565b6103f5565b604051610162919061203f565b60405180910390f35b610185600480360381019061018091906120b2565b6104bd565b60405161019291906120fa565b60405180910390f35b6101a361059f565b6040516101b091906121c0565b60405180910390f35b6101d360048036038101906101ce91906121db565b6105e8565b6040516101e09190612298565b60405180910390f35b61020360048036038101906101fe91906124b7565b610648565b005b61021f600480360381019061021a9190611ff0565b6106e9565b005b61023b60048036038101906102369190612649565b6107cf565b6040516102489190612758565b60405180910390f35b61026b600480360381019061026691906127a6565b6108e8565b005b61027561090d565b005b610291600480360381019061028c9190612874565b610921565b005b61029b610959565b6040516102a891906128df565b60405180910390f35b6102cb60048036038101906102c691906128fa565b610983565b005b6102e760048036038101906102e291906121db565b61099e565b005b61030360048036038101906102fe9190612943565b610a83565b005b61031f600480360381019061031a91906121db565b610a99565b60405161032c919061203f565b60405180910390f35b61034f600480360381019061034a91906128fa565b610ab6565b005b610359610ad1565b6040516103669190612298565b60405180910390f35b61038960048036038101906103849190612983565b610b63565b60405161039691906120fa565b60405180910390f35b6103b960048036038101906103b491906129c3565b610bf7565b005b6103d560048036038101906103d09190612a5a565b610c98565b005b6103df610d1b565b6040516103ec91906120fa565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c90612af9565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061058857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610598575061059782610d2e565b5b9050919050565b6105a7611f26565b604051806040016040528060066000808152602001908152602001600020548152602001600660006001815260200190815260200160002054815250905090565b606060008214806105f95750600182145b610638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062f90612b65565b60405180910390fd5b61064182610d98565b9050919050565b610650610e01565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610696575061069585610690610e01565b610b63565b5b6106d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cc90612bf7565b60405180910390fd5b6106e28585858585610e09565b5050505050565b60008114806106f85750600181145b610737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072e90612b65565b60405180910390fd5b600860009054906101000a900460ff16610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90612c63565b60405180910390fd5b6107a2828260016040518060200160405280600081525061112a565b6006600082815260200190815260200160002060008154809291906107c690612cb2565b91905055505050565b60608151835114610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080c90612d6c565b60405180910390fd5b6000835167ffffffffffffffff811115610832576108316122bf565b5b6040519080825280602002602001820160405280156108605781602001602082028036833780820191505090505b50905060005b84518110156108dd576108ad85828151811061088557610884612d8c565b5b60200260200101518583815181106108a05761089f612d8c565b5b60200260200101516103f5565b8282815181106108c0576108bf612d8c565b5b602002602001018181525050806108d690612cb2565b9050610866565b508091505092915050565b6108f06112da565b80600860006101000a81548160ff02191690831515021790555050565b6109156112da565b61091f6000611358565b565b6109296112da565b806007838154811061093e5761093d612d8c565b5b9060005260206000200190816109549190612fc7565b505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61098b6112da565b806004908161099a9190612fc7565b5050565b60008114806109ad5750600181145b6109ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e390612b65565b60405180910390fd5b600860009054906101000a900460ff16610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290612c63565b60405180910390fd5b610a57338260016040518060200160405280600081525061112a565b600660008281526020019081526020016000206000815480929190610a7b90612cb2565b919050555050565b610a95610a8e610e01565b838361141e565b5050565b600060066000838152602001908152602001600020549050919050565b610abe6112da565b8060059081610acd9190612fc7565b5050565b606060048054610ae090612dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0c90612dea565b8015610b595780601f10610b2e57610100808354040283529160200191610b59565b820191906000526020600020905b815481529060010190602001808311610b3c57829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610bff610e01565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c455750610c4485610c3f610e01565b610b63565b5b610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90612bf7565b60405180910390fd5b610c91858585858561158a565b5050505050565b610ca06112da565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d069061310b565b60405180910390fd5b610d1881611358565b50565b600860009054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060610daf600183610daa919061312b565b611825565b60078381548110610dc357610dc2612d8c565b5b906000526020600020016005610dd885611825565b604051602001610deb94939291906133e6565b6040516020818303038152906040529050919050565b600033905090565b8151835114610e4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e44906134cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb39061355f565b60405180910390fd5b6000610ec6610e01565b9050610ed68187878787876118f3565b60005b8451811015611087576000858281518110610ef757610ef6612d8c565b5b602002602001015190506000858381518110610f1657610f15612d8c565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae906135f1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461106c919061312b565b925050819055505050508061108090612cb2565b9050610ed9565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110fe929190613611565b60405180910390a4611114818787878787611978565b611122818787878787611980565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611190906136ba565b60405180910390fd5b60006111a3610e01565b905060006111b085611b57565b905060006111bd85611b57565b90506111ce836000898585896118f3565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461122d919061312b565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516112ab9291906136da565b60405180910390a46112c283600089858589611978565b6112d183600089898989611bd1565b50505050505050565b6112e2610e01565b73ffffffffffffffffffffffffffffffffffffffff16611300610959565b73ffffffffffffffffffffffffffffffffffffffff1614611356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134d9061374f565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361148c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611483906137e1565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161157d91906120fa565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f09061355f565b60405180910390fd5b6000611603610e01565b9050600061161085611b57565b9050600061161d85611b57565b905061162d8389898585896118f3565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156116c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bb906135f1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611779919061312b565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516117f69291906136da565b60405180910390a461180c848a8a86868a611978565b61181a848a8a8a8a8a611bd1565b505050505050505050565b60606000600161183484611da8565b01905060008167ffffffffffffffff811115611853576118526122bf565b5b6040519080825280601f01601f1916602001820160405280156118855781602001600182028036833780820191505090505b509050600082602001820190505b6001156118e8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816118dc576118db613801565b5b04945060008503611893575b819350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611962576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119599061387c565b60405180910390fd5b611970868686868686611efb565b505050505050565b505050505050565b61199f8473ffffffffffffffffffffffffffffffffffffffff16611f03565b15611b4f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016119e59594939291906138f1565b6020604051808303816000875af1925050508015611a2157506040513d601f19601f82011682018060405250810190611a1e919061396e565b60015b611ac657611a2d6139a8565b806308c379a003611a895750611a416139ca565b80611a4c5750611a8b565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a809190612298565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90613acc565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611b4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4490613b5e565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115611b7657611b756122bf565b5b604051908082528060200260200182016040528015611ba45781602001602082028036833780820191505090505b5090508281600081518110611bbc57611bbb612d8c565b5b60200260200101818152505080915050919050565b611bf08473ffffffffffffffffffffffffffffffffffffffff16611f03565b15611da0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611c36959493929190613b7e565b6020604051808303816000875af1925050508015611c7257506040513d601f19601f82011682018060405250810190611c6f919061396e565b60015b611d1757611c7e6139a8565b806308c379a003611cda5750611c926139ca565b80611c9d5750611cdc565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd19190612298565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e90613acc565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9590613b5e565b60405180910390fd5b505b505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e06577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611dfc57611dfb613801565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e43576d04ee2d6d415b85acef81000000008381611e3957611e38613801565b5b0492506020810190505b662386f26fc100008310611e7257662386f26fc100008381611e6857611e67613801565b5b0492506010810190505b6305f5e1008310611e9b576305f5e1008381611e9157611e90613801565b5b0492506008810190505b6127108310611ec0576127108381611eb657611eb5613801565b5b0492506004810190505b60648310611ee35760648381611ed957611ed8613801565b5b0492506002810190505b600a8310611ef2576001810190505b80915050919050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060400160405280600290602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f8782611f5c565b9050919050565b611f9781611f7c565b8114611fa257600080fd5b50565b600081359050611fb481611f8e565b92915050565b6000819050919050565b611fcd81611fba565b8114611fd857600080fd5b50565b600081359050611fea81611fc4565b92915050565b6000806040838503121561200757612006611f52565b5b600061201585828601611fa5565b925050602061202685828601611fdb565b9150509250929050565b61203981611fba565b82525050565b60006020820190506120546000830184612030565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61208f8161205a565b811461209a57600080fd5b50565b6000813590506120ac81612086565b92915050565b6000602082840312156120c8576120c7611f52565b5b60006120d68482850161209d565b91505092915050565b60008115159050919050565b6120f4816120df565b82525050565b600060208201905061210f60008301846120eb565b92915050565b600060029050919050565b600081905092915050565b6000819050919050565b61213e81611fba565b82525050565b60006121508383612135565b60208301905092915050565b6000602082019050919050565b61217281612115565b61217c8184612120565b92506121878261212b565b8060005b838110156121b857815161219f8782612144565b96506121aa8361215c565b92505060018101905061218b565b505050505050565b60006040820190506121d56000830184612169565b92915050565b6000602082840312156121f1576121f0611f52565b5b60006121ff84828501611fdb565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612242578082015181840152602081019050612227565b60008484015250505050565b6000601f19601f8301169050919050565b600061226a82612208565b6122748185612213565b9350612284818560208601612224565b61228d8161224e565b840191505092915050565b600060208201905081810360008301526122b2818461225f565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122f78261224e565b810181811067ffffffffffffffff82111715612316576123156122bf565b5b80604052505050565b6000612329611f48565b905061233582826122ee565b919050565b600067ffffffffffffffff821115612355576123546122bf565b5b602082029050602081019050919050565b600080fd5b600061237e6123798461233a565b61231f565b905080838252602082019050602084028301858111156123a1576123a0612366565b5b835b818110156123ca57806123b68882611fdb565b8452602084019350506020810190506123a3565b5050509392505050565b600082601f8301126123e9576123e86122ba565b5b81356123f984826020860161236b565b91505092915050565b600080fd5b600067ffffffffffffffff821115612422576124216122bf565b5b61242b8261224e565b9050602081019050919050565b82818337600083830152505050565b600061245a61245584612407565b61231f565b90508281526020810184848401111561247657612475612402565b5b612481848285612438565b509392505050565b600082601f83011261249e5761249d6122ba565b5b81356124ae848260208601612447565b91505092915050565b600080600080600060a086880312156124d3576124d2611f52565b5b60006124e188828901611fa5565b95505060206124f288828901611fa5565b945050604086013567ffffffffffffffff81111561251357612512611f57565b5b61251f888289016123d4565b935050606086013567ffffffffffffffff8111156125405761253f611f57565b5b61254c888289016123d4565b925050608086013567ffffffffffffffff81111561256d5761256c611f57565b5b61257988828901612489565b9150509295509295909350565b600067ffffffffffffffff8211156125a1576125a06122bf565b5b602082029050602081019050919050565b60006125c56125c084612586565b61231f565b905080838252602082019050602084028301858111156125e8576125e7612366565b5b835b8181101561261157806125fd8882611fa5565b8452602084019350506020810190506125ea565b5050509392505050565b600082601f8301126126305761262f6122ba565b5b81356126408482602086016125b2565b91505092915050565b600080604083850312156126605761265f611f52565b5b600083013567ffffffffffffffff81111561267e5761267d611f57565b5b61268a8582860161261b565b925050602083013567ffffffffffffffff8111156126ab576126aa611f57565b5b6126b7858286016123d4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000602082019050919050565b6000612705826126c1565b61270f81856126cc565b935061271a836126dd565b8060005b8381101561274b5781516127328882612144565b975061273d836126ed565b92505060018101905061271e565b5085935050505092915050565b6000602082019050818103600083015261277281846126fa565b905092915050565b612783816120df565b811461278e57600080fd5b50565b6000813590506127a08161277a565b92915050565b6000602082840312156127bc576127bb611f52565b5b60006127ca84828501612791565b91505092915050565b600067ffffffffffffffff8211156127ee576127ed6122bf565b5b6127f78261224e565b9050602081019050919050565b6000612817612812846127d3565b61231f565b90508281526020810184848401111561283357612832612402565b5b61283e848285612438565b509392505050565b600082601f83011261285b5761285a6122ba565b5b813561286b848260208601612804565b91505092915050565b6000806040838503121561288b5761288a611f52565b5b600061289985828601611fdb565b925050602083013567ffffffffffffffff8111156128ba576128b9611f57565b5b6128c685828601612846565b9150509250929050565b6128d981611f7c565b82525050565b60006020820190506128f460008301846128d0565b92915050565b6000602082840312156129105761290f611f52565b5b600082013567ffffffffffffffff81111561292e5761292d611f57565b5b61293a84828501612846565b91505092915050565b6000806040838503121561295a57612959611f52565b5b600061296885828601611fa5565b925050602061297985828601612791565b9150509250929050565b6000806040838503121561299a57612999611f52565b5b60006129a885828601611fa5565b92505060206129b985828601611fa5565b9150509250929050565b600080600080600060a086880312156129df576129de611f52565b5b60006129ed88828901611fa5565b95505060206129fe88828901611fa5565b9450506040612a0f88828901611fdb565b9350506060612a2088828901611fdb565b925050608086013567ffffffffffffffff811115612a4157612a40611f57565b5b612a4d88828901612489565b9150509295509295909350565b600060208284031215612a7057612a6f611f52565b5b6000612a7e84828501611fa5565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612ae3602a83612213565b9150612aee82612a87565b604082019050919050565b60006020820190508181036000830152612b1281612ad6565b9050919050565b7f426f7820646f6573206e6f742065786973742e00000000000000000000000000600082015250565b6000612b4f601383612213565b9150612b5a82612b19565b602082019050919050565b60006020820190508181036000830152612b7e81612b42565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612be1602e83612213565b9150612bec82612b85565b604082019050919050565b60006020820190508181036000830152612c1081612bd4565b9050919050565b7f566f74696e67206973206e6f74206f70656e2e00000000000000000000000000600082015250565b6000612c4d601383612213565b9150612c5882612c17565b602082019050919050565b60006020820190508181036000830152612c7c81612c40565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cbd82611fba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612cef57612cee612c83565b5b600182019050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000612d56602983612213565b9150612d6182612cfa565b604082019050919050565b60006020820190508181036000830152612d8581612d49565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e0257607f821691505b602082108103612e1557612e14612dbb565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612e7d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612e40565b612e878683612e40565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612ec4612ebf612eba84611fba565b612e9f565b611fba565b9050919050565b6000819050919050565b612ede83612ea9565b612ef2612eea82612ecb565b848454612e4d565b825550505050565b600090565b612f07612efa565b612f12818484612ed5565b505050565b5b81811015612f3657612f2b600082612eff565b600181019050612f18565b5050565b601f821115612f7b57612f4c81612e1b565b612f5584612e30565b81016020851015612f64578190505b612f78612f7085612e30565b830182612f17565b50505b505050565b600082821c905092915050565b6000612f9e60001984600802612f80565b1980831691505092915050565b6000612fb78383612f8d565b9150826002028217905092915050565b612fd082612208565b67ffffffffffffffff811115612fe957612fe86122bf565b5b612ff38254612dea565b612ffe828285612f3a565b600060209050601f831160018114613031576000841561301f578287015190505b6130298582612fab565b865550613091565b601f19841661303f86612e1b565b60005b8281101561306757848901518255600182019150602085019450602081019050613042565b868310156130845784890151613080601f891682612f8d565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130f5602683612213565b915061310082613099565b604082019050919050565b60006020820190508181036000830152613124816130e8565b9050919050565b600061313682611fba565b915061314183611fba565b925082820190508082111561315957613158612c83565b5b92915050565b600081905092915050565b7f7b226e616d65223a22426f782000000000000000000000000000000000000000600082015250565b60006131a0600d8361315f565b91506131ab8261316a565b600d82019050919050565b60006131c182612208565b6131cb818561315f565b93506131db818560208601612224565b80840191505092915050565b7f222c22696d616765223a22000000000000000000000000000000000000000000600082015250565b600061321d600b8361315f565b9150613228826131e7565b600b82019050919050565b6000815461324081612dea565b61324a818661315f565b94506001821660008114613265576001811461327a576132ad565b60ff19831686528115158202860193506132ad565b61328385612e1b565b60005b838110156132a557815481890152600182019150602081019050613286565b838801955050505b50505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b60006132ec60118361315f565b91506132f7826132b6565b601182019050919050565b7f222c22616e696d6174696f6e5f75726c223a2268747470733a2f2f7777772e6d60008201527f696e7461626f782e78797a2f6e66742f00000000000000000000000000000000602082015250565b600061335e60308361315f565b915061336982613302565b603082019050919050565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f7777772e6d6960008201527f6e7461626f782e78797a227d0000000000000000000000000000000000000000602082015250565b60006133d0602c8361315f565b91506133db82613374565b602c82019050919050565b60006133f182613193565b91506133fd82876131b6565b915061340882613210565b91506134148286613233565b915061341f826132df565b915061342b8285613233565b915061343682613351565b915061344282846131b6565b915061344d826133c3565b915081905095945050505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006134b7602883612213565b91506134c28261345b565b604082019050919050565b600060208201905081810360008301526134e6816134aa565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613549602583612213565b9150613554826134ed565b604082019050919050565b600060208201905081810360008301526135788161353c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006135db602a83612213565b91506135e68261357f565b604082019050919050565b6000602082019050818103600083015261360a816135ce565b9050919050565b6000604082019050818103600083015261362b81856126fa565b9050818103602083015261363f81846126fa565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006136a4602183612213565b91506136af82613648565b604082019050919050565b600060208201905081810360008301526136d381613697565b9050919050565b60006040820190506136ef6000830185612030565b6136fc6020830184612030565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613739602083612213565b915061374482613703565b602082019050919050565b600060208201905081810360008301526137688161372c565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006137cb602983612213565b91506137d68261376f565b604082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f546f6b656e206e6f74207472616e7366657261626c6500000000000000000000600082015250565b6000613866601683612213565b915061387182613830565b602082019050919050565b6000602082019050818103600083015261389581613859565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006138c38261389c565b6138cd81856138a7565b93506138dd818560208601612224565b6138e68161224e565b840191505092915050565b600060a08201905061390660008301886128d0565b61391360208301876128d0565b818103604083015261392581866126fa565b9050818103606083015261393981856126fa565b9050818103608083015261394d81846138b8565b90509695505050505050565b60008151905061396881612086565b92915050565b60006020828403121561398457613983611f52565b5b600061399284828501613959565b91505092915050565b60008160e01c9050919050565b600060033d11156139c75760046000803e6139c460005161399b565b90505b90565b600060443d10613a57576139dc611f48565b60043d036004823e80513d602482011167ffffffffffffffff82111715613a04575050613a57565b808201805167ffffffffffffffff811115613a225750505050613a57565b80602083010160043d038501811115613a3f575050505050613a57565b613a4e826020018501866122ee565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613ab6603483612213565b9150613ac182613a5a565b604082019050919050565b60006020820190508181036000830152613ae581613aa9565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613b48602883612213565b9150613b5382613aec565b604082019050919050565b60006020820190508181036000830152613b7781613b3b565b9050919050565b600060a082019050613b9360008301886128d0565b613ba060208301876128d0565b613bad6040830186612030565b613bba6060830185612030565b8181036080830152613bcc81846138b8565b9050969550505050505056fea26469706673582212208b401085079ee9ee781f8cead0f7f9163ecb5caf400a3776218a08312737b14c64736f6c634300081300334f7572204c697175696420446561746820626f782069732068697474696e6720746865207368656c76657320746869732073756d6d65722e20416e64207765277265207573696e6720697420746f206272696e6720746865206d6173736573206f6e636861696e2e204d696e742074686520626f7820796f752077616e7420746f2073656520696e2073746f7265732e68747470733a2f2f7777772e6d696e7461626f782e78797a2f6170692f636f6e7472616374000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961666964333663686f6e7a75796962367364766264766a377a67327266373275356b656d6e6c7a74716461736766746c676d68690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656968746a646a66646362767a6b6f7a7437336a6a32367733693676746637746c72736232716b347a666365696b326a6c6a686e7061000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c80638da5cb5b116100b8578063e735b48a1161007c578063e735b48a14610335578063e8a3d48514610351578063e985e9c51461036f578063f242432a1461039f578063f2fde38b146103bb578063fcfff16f146103d757610136565b80638da5cb5b14610293578063938e3d7b146102b1578063a0712d68146102cd578063a22cb465146102e9578063bd85b0391461030557610136565b8063449a52f8116100ff578063449a52f8146102055780634e1273f4146102215780636fdca5e014610251578063715018a61461026d57806384b9e9df1461027757610136565b8062fdd58e1461013b57806301ffc9a71461016b5780630dc960151461019b5780630e89341c146101b95780632eb2c2d6146101e9575b600080fd5b61015560048036038101906101509190611ff0565b6103f5565b604051610162919061203f565b60405180910390f35b610185600480360381019061018091906120b2565b6104bd565b60405161019291906120fa565b60405180910390f35b6101a361059f565b6040516101b091906121c0565b60405180910390f35b6101d360048036038101906101ce91906121db565b6105e8565b6040516101e09190612298565b60405180910390f35b61020360048036038101906101fe91906124b7565b610648565b005b61021f600480360381019061021a9190611ff0565b6106e9565b005b61023b60048036038101906102369190612649565b6107cf565b6040516102489190612758565b60405180910390f35b61026b600480360381019061026691906127a6565b6108e8565b005b61027561090d565b005b610291600480360381019061028c9190612874565b610921565b005b61029b610959565b6040516102a891906128df565b60405180910390f35b6102cb60048036038101906102c691906128fa565b610983565b005b6102e760048036038101906102e291906121db565b61099e565b005b61030360048036038101906102fe9190612943565b610a83565b005b61031f600480360381019061031a91906121db565b610a99565b60405161032c919061203f565b60405180910390f35b61034f600480360381019061034a91906128fa565b610ab6565b005b610359610ad1565b6040516103669190612298565b60405180910390f35b61038960048036038101906103849190612983565b610b63565b60405161039691906120fa565b60405180910390f35b6103b960048036038101906103b491906129c3565b610bf7565b005b6103d560048036038101906103d09190612a5a565b610c98565b005b6103df610d1b565b6040516103ec91906120fa565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c90612af9565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061058857507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610598575061059782610d2e565b5b9050919050565b6105a7611f26565b604051806040016040528060066000808152602001908152602001600020548152602001600660006001815260200190815260200160002054815250905090565b606060008214806105f95750600182145b610638576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062f90612b65565b60405180910390fd5b61064182610d98565b9050919050565b610650610e01565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610696575061069585610690610e01565b610b63565b5b6106d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106cc90612bf7565b60405180910390fd5b6106e28585858585610e09565b5050505050565b60008114806106f85750600181145b610737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072e90612b65565b60405180910390fd5b600860009054906101000a900460ff16610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90612c63565b60405180910390fd5b6107a2828260016040518060200160405280600081525061112a565b6006600082815260200190815260200160002060008154809291906107c690612cb2565b91905055505050565b60608151835114610815576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080c90612d6c565b60405180910390fd5b6000835167ffffffffffffffff811115610832576108316122bf565b5b6040519080825280602002602001820160405280156108605781602001602082028036833780820191505090505b50905060005b84518110156108dd576108ad85828151811061088557610884612d8c565b5b60200260200101518583815181106108a05761089f612d8c565b5b60200260200101516103f5565b8282815181106108c0576108bf612d8c565b5b602002602001018181525050806108d690612cb2565b9050610866565b508091505092915050565b6108f06112da565b80600860006101000a81548160ff02191690831515021790555050565b6109156112da565b61091f6000611358565b565b6109296112da565b806007838154811061093e5761093d612d8c565b5b9060005260206000200190816109549190612fc7565b505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61098b6112da565b806004908161099a9190612fc7565b5050565b60008114806109ad5750600181145b6109ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e390612b65565b60405180910390fd5b600860009054906101000a900460ff16610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290612c63565b60405180910390fd5b610a57338260016040518060200160405280600081525061112a565b600660008281526020019081526020016000206000815480929190610a7b90612cb2565b919050555050565b610a95610a8e610e01565b838361141e565b5050565b600060066000838152602001908152602001600020549050919050565b610abe6112da565b8060059081610acd9190612fc7565b5050565b606060048054610ae090612dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0c90612dea565b8015610b595780601f10610b2e57610100808354040283529160200191610b59565b820191906000526020600020905b815481529060010190602001808311610b3c57829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b610bff610e01565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610c455750610c4485610c3f610e01565b610b63565b5b610c84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7b90612bf7565b60405180910390fd5b610c91858585858561158a565b5050505050565b610ca06112da565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d069061310b565b60405180910390fd5b610d1881611358565b50565b600860009054906101000a900460ff1681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060610daf600183610daa919061312b565b611825565b60078381548110610dc357610dc2612d8c565b5b906000526020600020016005610dd885611825565b604051602001610deb94939291906133e6565b6040516020818303038152906040529050919050565b600033905090565b8151835114610e4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e44906134cd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610ebc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb39061355f565b60405180910390fd5b6000610ec6610e01565b9050610ed68187878787876118f3565b60005b8451811015611087576000858281518110610ef757610ef6612d8c565b5b602002602001015190506000858381518110610f1657610f15612d8c565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae906135f1565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461106c919061312b565b925050819055505050508061108090612cb2565b9050610ed9565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516110fe929190613611565b60405180910390a4611114818787878787611978565b611122818787878787611980565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603611199576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611190906136ba565b60405180910390fd5b60006111a3610e01565b905060006111b085611b57565b905060006111bd85611b57565b90506111ce836000898585896118f3565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461122d919061312b565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6289896040516112ab9291906136da565b60405180910390a46112c283600089858589611978565b6112d183600089898989611bd1565b50505050505050565b6112e2610e01565b73ffffffffffffffffffffffffffffffffffffffff16611300610959565b73ffffffffffffffffffffffffffffffffffffffff1614611356576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134d9061374f565b60405180910390fd5b565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361148c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611483906137e1565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161157d91906120fa565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036115f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f09061355f565b60405180910390fd5b6000611603610e01565b9050600061161085611b57565b9050600061161d85611b57565b905061162d8389898585896118f3565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156116c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116bb906135f1565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611779919061312b565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a6040516117f69291906136da565b60405180910390a461180c848a8a86868a611978565b61181a848a8a8a8a8a611bd1565b505050505050505050565b60606000600161183484611da8565b01905060008167ffffffffffffffff811115611853576118526122bf565b5b6040519080825280601f01601f1916602001820160405280156118855781602001600182028036833780820191505090505b509050600082602001820190505b6001156118e8578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816118dc576118db613801565b5b04945060008503611893575b819350505050919050565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611962576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119599061387c565b60405180910390fd5b611970868686868686611efb565b505050505050565b505050505050565b61199f8473ffffffffffffffffffffffffffffffffffffffff16611f03565b15611b4f578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016119e59594939291906138f1565b6020604051808303816000875af1925050508015611a2157506040513d601f19601f82011682018060405250810190611a1e919061396e565b60015b611ac657611a2d6139a8565b806308c379a003611a895750611a416139ca565b80611a4c5750611a8b565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a809190612298565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90613acc565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611b4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4490613b5e565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff811115611b7657611b756122bf565b5b604051908082528060200260200182016040528015611ba45781602001602082028036833780820191505090505b5090508281600081518110611bbc57611bbb612d8c565b5b60200260200101818152505080915050919050565b611bf08473ffffffffffffffffffffffffffffffffffffffff16611f03565b15611da0578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401611c36959493929190613b7e565b6020604051808303816000875af1925050508015611c7257506040513d601f19601f82011682018060405250810190611c6f919061396e565b60015b611d1757611c7e6139a8565b806308c379a003611cda5750611c926139ca565b80611c9d5750611cdc565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd19190612298565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e90613acc565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614611d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9590613b5e565b60405180910390fd5b505b505050505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e06577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611dfc57611dfb613801565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e43576d04ee2d6d415b85acef81000000008381611e3957611e38613801565b5b0492506020810190505b662386f26fc100008310611e7257662386f26fc100008381611e6857611e67613801565b5b0492506010810190505b6305f5e1008310611e9b576305f5e1008381611e9157611e90613801565b5b0492506008810190505b6127108310611ec0576127108381611eb657611eb5613801565b5b0492506004810190505b60648310611ee35760648381611ed957611ed8613801565b5b0492506002810190505b600a8310611ef2576001810190505b80915050919050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060400160405280600290602082028036833780820191505090505090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611f8782611f5c565b9050919050565b611f9781611f7c565b8114611fa257600080fd5b50565b600081359050611fb481611f8e565b92915050565b6000819050919050565b611fcd81611fba565b8114611fd857600080fd5b50565b600081359050611fea81611fc4565b92915050565b6000806040838503121561200757612006611f52565b5b600061201585828601611fa5565b925050602061202685828601611fdb565b9150509250929050565b61203981611fba565b82525050565b60006020820190506120546000830184612030565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61208f8161205a565b811461209a57600080fd5b50565b6000813590506120ac81612086565b92915050565b6000602082840312156120c8576120c7611f52565b5b60006120d68482850161209d565b91505092915050565b60008115159050919050565b6120f4816120df565b82525050565b600060208201905061210f60008301846120eb565b92915050565b600060029050919050565b600081905092915050565b6000819050919050565b61213e81611fba565b82525050565b60006121508383612135565b60208301905092915050565b6000602082019050919050565b61217281612115565b61217c8184612120565b92506121878261212b565b8060005b838110156121b857815161219f8782612144565b96506121aa8361215c565b92505060018101905061218b565b505050505050565b60006040820190506121d56000830184612169565b92915050565b6000602082840312156121f1576121f0611f52565b5b60006121ff84828501611fdb565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612242578082015181840152602081019050612227565b60008484015250505050565b6000601f19601f8301169050919050565b600061226a82612208565b6122748185612213565b9350612284818560208601612224565b61228d8161224e565b840191505092915050565b600060208201905081810360008301526122b2818461225f565b905092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6122f78261224e565b810181811067ffffffffffffffff82111715612316576123156122bf565b5b80604052505050565b6000612329611f48565b905061233582826122ee565b919050565b600067ffffffffffffffff821115612355576123546122bf565b5b602082029050602081019050919050565b600080fd5b600061237e6123798461233a565b61231f565b905080838252602082019050602084028301858111156123a1576123a0612366565b5b835b818110156123ca57806123b68882611fdb565b8452602084019350506020810190506123a3565b5050509392505050565b600082601f8301126123e9576123e86122ba565b5b81356123f984826020860161236b565b91505092915050565b600080fd5b600067ffffffffffffffff821115612422576124216122bf565b5b61242b8261224e565b9050602081019050919050565b82818337600083830152505050565b600061245a61245584612407565b61231f565b90508281526020810184848401111561247657612475612402565b5b612481848285612438565b509392505050565b600082601f83011261249e5761249d6122ba565b5b81356124ae848260208601612447565b91505092915050565b600080600080600060a086880312156124d3576124d2611f52565b5b60006124e188828901611fa5565b95505060206124f288828901611fa5565b945050604086013567ffffffffffffffff81111561251357612512611f57565b5b61251f888289016123d4565b935050606086013567ffffffffffffffff8111156125405761253f611f57565b5b61254c888289016123d4565b925050608086013567ffffffffffffffff81111561256d5761256c611f57565b5b61257988828901612489565b9150509295509295909350565b600067ffffffffffffffff8211156125a1576125a06122bf565b5b602082029050602081019050919050565b60006125c56125c084612586565b61231f565b905080838252602082019050602084028301858111156125e8576125e7612366565b5b835b8181101561261157806125fd8882611fa5565b8452602084019350506020810190506125ea565b5050509392505050565b600082601f8301126126305761262f6122ba565b5b81356126408482602086016125b2565b91505092915050565b600080604083850312156126605761265f611f52565b5b600083013567ffffffffffffffff81111561267e5761267d611f57565b5b61268a8582860161261b565b925050602083013567ffffffffffffffff8111156126ab576126aa611f57565b5b6126b7858286016123d4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000602082019050919050565b6000612705826126c1565b61270f81856126cc565b935061271a836126dd565b8060005b8381101561274b5781516127328882612144565b975061273d836126ed565b92505060018101905061271e565b5085935050505092915050565b6000602082019050818103600083015261277281846126fa565b905092915050565b612783816120df565b811461278e57600080fd5b50565b6000813590506127a08161277a565b92915050565b6000602082840312156127bc576127bb611f52565b5b60006127ca84828501612791565b91505092915050565b600067ffffffffffffffff8211156127ee576127ed6122bf565b5b6127f78261224e565b9050602081019050919050565b6000612817612812846127d3565b61231f565b90508281526020810184848401111561283357612832612402565b5b61283e848285612438565b509392505050565b600082601f83011261285b5761285a6122ba565b5b813561286b848260208601612804565b91505092915050565b6000806040838503121561288b5761288a611f52565b5b600061289985828601611fdb565b925050602083013567ffffffffffffffff8111156128ba576128b9611f57565b5b6128c685828601612846565b9150509250929050565b6128d981611f7c565b82525050565b60006020820190506128f460008301846128d0565b92915050565b6000602082840312156129105761290f611f52565b5b600082013567ffffffffffffffff81111561292e5761292d611f57565b5b61293a84828501612846565b91505092915050565b6000806040838503121561295a57612959611f52565b5b600061296885828601611fa5565b925050602061297985828601612791565b9150509250929050565b6000806040838503121561299a57612999611f52565b5b60006129a885828601611fa5565b92505060206129b985828601611fa5565b9150509250929050565b600080600080600060a086880312156129df576129de611f52565b5b60006129ed88828901611fa5565b95505060206129fe88828901611fa5565b9450506040612a0f88828901611fdb565b9350506060612a2088828901611fdb565b925050608086013567ffffffffffffffff811115612a4157612a40611f57565b5b612a4d88828901612489565b9150509295509295909350565b600060208284031215612a7057612a6f611f52565b5b6000612a7e84828501611fa5565b91505092915050565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000612ae3602a83612213565b9150612aee82612a87565b604082019050919050565b60006020820190508181036000830152612b1281612ad6565b9050919050565b7f426f7820646f6573206e6f742065786973742e00000000000000000000000000600082015250565b6000612b4f601383612213565b9150612b5a82612b19565b602082019050919050565b60006020820190508181036000830152612b7e81612b42565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612be1602e83612213565b9150612bec82612b85565b604082019050919050565b60006020820190508181036000830152612c1081612bd4565b9050919050565b7f566f74696e67206973206e6f74206f70656e2e00000000000000000000000000600082015250565b6000612c4d601383612213565b9150612c5882612c17565b602082019050919050565b60006020820190508181036000830152612c7c81612c40565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cbd82611fba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612cef57612cee612c83565b5b600182019050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b6000612d56602983612213565b9150612d6182612cfa565b604082019050919050565b60006020820190508181036000830152612d8581612d49565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612e0257607f821691505b602082108103612e1557612e14612dbb565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612e7d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612e40565b612e878683612e40565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612ec4612ebf612eba84611fba565b612e9f565b611fba565b9050919050565b6000819050919050565b612ede83612ea9565b612ef2612eea82612ecb565b848454612e4d565b825550505050565b600090565b612f07612efa565b612f12818484612ed5565b505050565b5b81811015612f3657612f2b600082612eff565b600181019050612f18565b5050565b601f821115612f7b57612f4c81612e1b565b612f5584612e30565b81016020851015612f64578190505b612f78612f7085612e30565b830182612f17565b50505b505050565b600082821c905092915050565b6000612f9e60001984600802612f80565b1980831691505092915050565b6000612fb78383612f8d565b9150826002028217905092915050565b612fd082612208565b67ffffffffffffffff811115612fe957612fe86122bf565b5b612ff38254612dea565b612ffe828285612f3a565b600060209050601f831160018114613031576000841561301f578287015190505b6130298582612fab565b865550613091565b601f19841661303f86612e1b565b60005b8281101561306757848901518255600182019150602085019450602081019050613042565b868310156130845784890151613080601f891682612f8d565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006130f5602683612213565b915061310082613099565b604082019050919050565b60006020820190508181036000830152613124816130e8565b9050919050565b600061313682611fba565b915061314183611fba565b925082820190508082111561315957613158612c83565b5b92915050565b600081905092915050565b7f7b226e616d65223a22426f782000000000000000000000000000000000000000600082015250565b60006131a0600d8361315f565b91506131ab8261316a565b600d82019050919050565b60006131c182612208565b6131cb818561315f565b93506131db818560208601612224565b80840191505092915050565b7f222c22696d616765223a22000000000000000000000000000000000000000000600082015250565b600061321d600b8361315f565b9150613228826131e7565b600b82019050919050565b6000815461324081612dea565b61324a818661315f565b94506001821660008114613265576001811461327a576132ad565b60ff19831686528115158202860193506132ad565b61328385612e1b565b60005b838110156132a557815481890152600182019150602081019050613286565b838801955050505b50505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b60006132ec60118361315f565b91506132f7826132b6565b601182019050919050565b7f222c22616e696d6174696f6e5f75726c223a2268747470733a2f2f7777772e6d60008201527f696e7461626f782e78797a2f6e66742f00000000000000000000000000000000602082015250565b600061335e60308361315f565b915061336982613302565b603082019050919050565b7f222c2265787465726e616c5f75726c223a2268747470733a2f2f7777772e6d6960008201527f6e7461626f782e78797a227d0000000000000000000000000000000000000000602082015250565b60006133d0602c8361315f565b91506133db82613374565b602c82019050919050565b60006133f182613193565b91506133fd82876131b6565b915061340882613210565b91506134148286613233565b915061341f826132df565b915061342b8285613233565b915061343682613351565b915061344282846131b6565b915061344d826133c3565b915081905095945050505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b60006134b7602883612213565b91506134c28261345b565b604082019050919050565b600060208201905081810360008301526134e6816134aa565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613549602583612213565b9150613554826134ed565b604082019050919050565b600060208201905081810360008301526135788161353c565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b60006135db602a83612213565b91506135e68261357f565b604082019050919050565b6000602082019050818103600083015261360a816135ce565b9050919050565b6000604082019050818103600083015261362b81856126fa565b9050818103602083015261363f81846126fa565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006136a4602183612213565b91506136af82613648565b604082019050919050565b600060208201905081810360008301526136d381613697565b9050919050565b60006040820190506136ef6000830185612030565b6136fc6020830184612030565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613739602083612213565b915061374482613703565b602082019050919050565b600060208201905081810360008301526137688161372c565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006137cb602983612213565b91506137d68261376f565b604082019050919050565b600060208201905081810360008301526137fa816137be565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f546f6b656e206e6f74207472616e7366657261626c6500000000000000000000600082015250565b6000613866601683612213565b915061387182613830565b602082019050919050565b6000602082019050818103600083015261389581613859565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006138c38261389c565b6138cd81856138a7565b93506138dd818560208601612224565b6138e68161224e565b840191505092915050565b600060a08201905061390660008301886128d0565b61391360208301876128d0565b818103604083015261392581866126fa565b9050818103606083015261393981856126fa565b9050818103608083015261394d81846138b8565b90509695505050505050565b60008151905061396881612086565b92915050565b60006020828403121561398457613983611f52565b5b600061399284828501613959565b91505092915050565b60008160e01c9050919050565b600060033d11156139c75760046000803e6139c460005161399b565b90505b90565b600060443d10613a57576139dc611f48565b60043d036004823e80513d602482011167ffffffffffffffff82111715613a04575050613a57565b808201805167ffffffffffffffff811115613a225750505050613a57565b80602083010160043d038501811115613a3f575050505050613a57565b613a4e826020018501866122ee565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000613ab6603483612213565b9150613ac182613a5a565b604082019050919050565b60006020820190508181036000830152613ae581613aa9565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000613b48602883612213565b9150613b5382613aec565b604082019050919050565b60006020820190508181036000830152613b7781613b3b565b9050919050565b600060a082019050613b9360008301886128d0565b613ba060208301876128d0565b613bad6040830186612030565b613bba6060830185612030565b8181036080830152613bcc81846138b8565b9050969550505050505056fea26469706673582212208b401085079ee9ee781f8cead0f7f9163ecb5caf400a3776218a08312737b14c64736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b72656961666964333663686f6e7a75796962367364766264766a377a67327266373275356b656d6e6c7a74716461736766746c676d68690000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261667962656968746a646a66646362767a6b6f7a7437336a6a32367733693676746637746c72736232716b347a666365696b326a6c6a686e7061000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : image1 (string): ipfs://bafkreiafid36chonzuyib6sdvbdvj7zg2rf72u5kemnlztqdasgftlgmhi
Arg [1] : image2 (string): ipfs://bafybeihtjdjfdcbvzkozt73jj26w3i6vtf7tlrsb2qk4zfceik2jljhnpa

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [3] : 697066733a2f2f6261666b72656961666964333663686f6e7a75796962367364
Arg [4] : 766264766a377a67327266373275356b656d6e6c7a74716461736766746c676d
Arg [5] : 6869000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [7] : 697066733a2f2f6261667962656968746a646a66646362767a6b6f7a7437336a
Arg [8] : 6a32367733693676746637746c72736232716b347a666365696b326a6c6a686e
Arg [9] : 7061000000000000000000000000000000000000000000000000000000000000


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.