ETH Price: $3,386.53 (+1.23%)

Token

 

Overview

Max Total Supply

13,460

Holders

642

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x3027693dDc5dF13aE784E945C7Ee6C8F93344599
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AnimeMetaverseReward

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : AnimeMetaverseReward.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.15;

/// @title Anime Metaverse Reward Smart Contract
/// @author LiquidX
/// @notice This smart contract is used for reward on Gachapon event

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol";
import "./AmvUtils.sol";
import "./IAnimeMetaverseReward.sol";

/// @notice Thrown when invalid destination address specified (address(0) or address(this))
error InvalidAddress();

/// @notice Thrown when given input does not meet with the expected one
error InvalidInput();

/// @notice Thrown when mint amount is more than the maximum limit or equals to zero
error InvalidMintingAmount(uint256 amount);

/// @notice Thrown when address is not included in Burner list
error InvalidBurner();

/// @notice Thrown when address is not included in Minter list
error InvalidMinter();

/// @notice Thrown when token ID is not match with the existing one
error InvalidTokenId();

/// @notice Thrown when token ID is not available for minting
error InvalidMintableTokenId();

/// @notice Thrown when input is equal to zero
error ValueCanNotBeZero();

/// @notice Thrown when token supply already reaches its maximum limit
/// @param range  Amount of token that would be minted
error MintAmountForTokenTypeExceeded(uint256 range);

/// @notice Thrown when address is not allowed to burn the token
error NotAllowedToBurn();

/// @notice Thrown when is not able to mint digital collectible
error ClaimingMerchandiseDeactivated();

contract AnimeMetaverseReward is
    ERC1155,
    Ownable,
    AmvUtils,
    IAnimeMetaverseReward
{
    uint256 public constant GIFT_BOX_TOKEN_TYPE = 1;
    uint256 public constant ARTIFACTS_TOKEN_TYPE = 2;
    uint256 public constant RUNE_CHIP_TOKEN_TYPE = 3;
    uint256 public constant SCROLL_TOKEN_TYPE = 4;
    uint256 public constant COLLECTIBLE__TOKEN_TYPE = 5;
    uint256 public constant DIGITAL_COLLECTIBLE_TOKEN_TYPE = 6;

    uint256 public constant MAX_MINTATBLE_TOKEN_ID = 18;
    uint256 public constant MAX_BURNABLE_COLLECTIBLE = 1;
    uint256 public constant COLLECTIBLE_AND_DIGITAL_COLLECTIBLE_DIFF = 3;
    uint256 public constant MAX_TOKEN_SUPPLY = 5550;

    struct TokenInfo {
        string tokenName;
        uint256 maxSupply;
        uint256 totalSupply;
        uint256 tokenType;
    }

    mapping(uint256 => TokenInfo) public tokenCollection;

    /// @notice Total of token ID
    uint256 totalToken = 0;
    uint256 maxMintLimit = 100;

    /// @notice List of address that could mint the token
    /// @dev Use this mapping to set permission on who could mint the token
    /// @custom:key A valid ethereum address
    /// @custom:value Set permission in boolean. 'true' means allowed
    mapping(address => bool) public minterList;

    /// @notice List of address that could burn the token
    /// @dev Use this mapping to set permission on who could force burn the token
    /// @custom:key A valid ethereum address
    /// @custom:value Set permission in boolean. 'true' means allowed
    mapping(uint256 => mapping(address => bool)) public burnerList;

    bool public claimMerchandiseActive = false;

    /// @notice Base URL to store off-chain information
    /// @dev This variable could be used to store URL for the token metadata
    string public baseURI = "";

    /// @notice Check whether address is valid
    /// @param _address Any valid ethereum address
    modifier validAddress(address _address) {
        if (_address == address(0)) {
            revert InvalidAddress();
        }
        _;
    }

    /// @notice Check whether token ID exist
    /// @param tokenId token ID
    modifier validTokenId(uint256 tokenId) {
        if (tokenId < 1 || tokenId > totalToken) {
            revert InvalidTokenId();
        }
        _;
    }

    /// @notice Check whether mint amount is more than maximum limit or equals to zero
    /// @param amount Mint amount
    modifier validMintingAmount(uint256 amount) {
        if (amount > maxMintLimit || amount < 1) {
            revert InvalidMintingAmount(amount);
        }
        _;
    }

    modifier validMintableTokenId(uint256 tokenId) {
        if (tokenId < 1 || tokenId > MAX_MINTATBLE_TOKEN_ID) {
            revert InvalidMintableTokenId();
        }
        _;
    }

    /// @notice Check whether an address has permission to mint
    modifier onlyMinter() {
        if (!minterList[msg.sender]) {
            revert InvalidMinter();
        }
        _;
    }

    /// @notice Check whether an address has permission to force burn
    modifier onlyBurner(uint256 id) {
        if (!isValidBurner(id)) {
            revert InvalidBurner();
        }
        _;
    }

    /// @notice There's a batch mint transaction happen
    /// @dev Emit event when calling mintBatch function
    /// @param drawIndex Gachapon draw Index
    /// @param activityId Gachapon activity ID
    /// @param minter Address who calls the function
    /// @param to Address who receives the token
    /// @param ids Item token ID
    /// @param amounts Amount of item that is minted
    event RewardMintBatch(
        uint256 ticket,
        uint256 drawIndex,
        uint256 activityId,
        address minter,
        address to,
        uint256[] ids,
        uint256[] amounts
    );

    /// @notice There's a mint transaction happen
    /// @dev Emit event when calling mint function
    /// @param drawIndex Gachapon draw Index
    /// @param activityId Gachapon activity ID
    /// @param minter Address who calls the function
    /// @param to Address who receives the token
    /// @param id Item token ID
    /// @param amount Amount of item that is minted
    event RewardMint(
        uint256 ticket,
        uint256 drawIndex,
        uint256 activityId,
        address minter,
        address to,
        uint256 id,
        uint256 amount
    );

    /// @notice There's a token being burned
    /// @dev Emits event when forceBurn function is called
    /// @param burner Burner address
    /// @param Owner Token owner
    /// @param tokenId Token ID that is being burned
    /// @param amount Amount of token that is being burned
    event ForceBurn(
        address burner,
        address Owner,
        uint256 tokenId,
        uint256 amount
    );

    /// @notice There's a digital collectible
    /// @dev Emit event when digital merch is minted
    /// @param minter Address who mints digital collectible
    /// @param to Address who receiveses digital collectible
    /// @param id Token ID of the digital collectible
    /// @param amount Amount of the digital collectible that is minted
    event MintDigitalMerch(
        address minter,
        address to,
        uint256 id,
        uint256 amount
    );

    /// @notice Sets token ID, token name, maximum supply and token type for all tokens
    /// @dev The ERC1155 function is derived from Open Zeppelin ERC1155 library
    constructor() ERC1155("") {
        setTokenInfo(1, "Gift of Soul", 170, GIFT_BOX_TOKEN_TYPE);

        setTokenInfo(2, "Sakura", 4, ARTIFACTS_TOKEN_TYPE);
        setTokenInfo(3, "Starburst X", 4000, ARTIFACTS_TOKEN_TYPE);
        setTokenInfo(4, "Starburst C", 2500, ARTIFACTS_TOKEN_TYPE);
        setTokenInfo(5, "Starburst D", 1896, ARTIFACTS_TOKEN_TYPE);
        setTokenInfo(6, "Starburst M", 1500, ARTIFACTS_TOKEN_TYPE);
        setTokenInfo(7, "Starburst V", 100, ARTIFACTS_TOKEN_TYPE);

        setTokenInfo(8, "God Rune", 450, RUNE_CHIP_TOKEN_TYPE);
        setTokenInfo(9, "Man Rune", 1500, RUNE_CHIP_TOKEN_TYPE);
        setTokenInfo(10, "Sun Rune", 3000, RUNE_CHIP_TOKEN_TYPE);
        setTokenInfo(11, "Fire Rune", 4500, RUNE_CHIP_TOKEN_TYPE);
        setTokenInfo(12, "Ice Rune", 5550, RUNE_CHIP_TOKEN_TYPE);

        setTokenInfo(13, "Scroll of Desire", 4715, SCROLL_TOKEN_TYPE);
        setTokenInfo(14, "Scroll of Prophecy", 3301, SCROLL_TOKEN_TYPE);
        setTokenInfo(15, "Scroll of Fortitude", 1414, SCROLL_TOKEN_TYPE);

        setTokenInfo(16, "Hoodie", 200, COLLECTIBLE__TOKEN_TYPE);
        setTokenInfo(17, "Tshirt", 400, COLLECTIBLE__TOKEN_TYPE);
        setTokenInfo(18, "Socks", 800, COLLECTIBLE__TOKEN_TYPE);

        setTokenInfo(19, "Digital Hoodie", 200, DIGITAL_COLLECTIBLE_TOKEN_TYPE);
        setTokenInfo(20, "Digital Tshirt", 400, DIGITAL_COLLECTIBLE_TOKEN_TYPE);
        setTokenInfo(21, "Digital Sock", 800, DIGITAL_COLLECTIBLE_TOKEN_TYPE);
    }

    /// @notice Sets information about specific token
    /// @dev It will set token ID, token name, maximum supply, and token type
    /// @param _tokenId ID for specific token
    /// @param _tokenName Name of the token
    /// @param _maximumSupply The maximum supply for the token
    /// @param _tokenType Type of token
    function setTokenInfo(
        uint256 _tokenId,
        string memory _tokenName,
        uint256 _maximumSupply,
        uint256 _tokenType
    ) private {
        totalToken++;
        tokenCollection[_tokenId] = TokenInfo({
            maxSupply: _maximumSupply,
            totalSupply: 0,
            tokenName: _tokenName,
            tokenType: _tokenType
        });
    }

    /// @notice Update token maximum supply
    /// @dev This function can only be executed by the contract owner
    /// @param _id Token ID
    /// @param _maximumSupply Token new maximum supply
    function updateTokenSupply(uint256 _id, uint256 _maximumSupply)
        external
        onlyOwner
        validTokenId(_id)
    {
        if (tokenCollection[_id].totalSupply > _maximumSupply) {
            revert InvalidInput();
        }
        tokenCollection[_id].maxSupply = _maximumSupply;
    }

    /// @notice Set maximum amount to mint token
    /// @dev This function can only be executed by the contract owner
    /// @param _mintLimit Maximum amount to mint
    function setMaxMintLimit(uint256 _mintLimit) external onlyOwner {
        require(_mintLimit >= 1, "Can not set mintLimit less than 1.");
        require(
            _mintLimit <= MAX_TOKEN_SUPPLY,
            "Can not set mintLimit more than 5550."
        );
        maxMintLimit = _mintLimit;
    }

    /// @notice Registers an address and sets a permission to mint
    /// @dev This function can only be executed by the contract owner
    /// @param _minter A valid ethereum address
    /// @param _flag The permission to mint. 'true' means allowed
    function setMinterAddress(address _minter, bool _flag)
        external
        onlyOwner
        validAddress(_minter)
    {
        minterList[_minter] = _flag;
    }

    /// @notice Set claimMerchandiseActive value
    /// @param _flag 'true' to activate claim collectible event, otherwise 'false'
    function toggleMerchandiseClaim(bool _flag) external onlyOwner {
        claimMerchandiseActive = _flag;
    }

    /// @notice Registers an address and sets a permission to force burn specific token
    /// @dev This function can only be executed by the contract owner
    /// @param _id The token id that can be burned by this address
    /// @param _burner A valid ethereum address
    /// @param _flag The permission to force burn. 'true' means allowed
    function setBurnerAddress(
        uint256 _id,
        address _burner,
        bool _flag
    ) external onlyOwner validAddress(_burner) validTokenId(_id) {
        burnerList[_id][_burner] = _flag;
    }

    /// @notice Mint token in batch
    /// @dev This function will increase total supply for the token that
    ///      is minted.
    ///      Only allowed minter address that could run this function
    /// @param _ticket Gachapon ticket counter for a draw
    /// @param _drawIndex Gachapon draw Index
    /// @param _activityId Gachapon activity ID
    /// @param _to The address that will receive the token
    /// @param _ids The token ID that will be minted
    /// @param _amounts Amount of token that will be minted
    /// @param _data _
    function mintBatch(
        uint256 _ticket,
        uint256 _drawIndex,
        uint256 _activityId,
        address _to,
        uint256[] memory _ids,
        uint256[] memory _amounts,
        bytes memory _data
    ) external onlyMinter validAddress(_to) {
        if (_amounts.length != _ids.length) {
            revert InvalidInput();
        }

        for ( uint256 idCounter = 0; idCounter < _ids.length; idCounter = _uncheckedInc(idCounter) ) {
            uint256 _id = _ids[idCounter];

            if (_amounts[idCounter] > maxMintLimit || _amounts[idCounter] < 1) {
                revert InvalidMintingAmount(_amounts[idCounter]);
            }
            if (_id < 1 || _id > MAX_MINTATBLE_TOKEN_ID) {
                revert InvalidMintableTokenId();
            }
            if (
                tokenCollection[_id].totalSupply + _amounts[idCounter] >
                tokenCollection[_id].maxSupply
            ) {
                revert MintAmountForTokenTypeExceeded(_amounts[idCounter]);
            }

            unchecked {
                tokenCollection[_id].totalSupply += _amounts[idCounter];
            }
        }

        _mintBatch(_to, _ids, _amounts, _data);
        emit RewardMintBatch(
            _ticket,
            _drawIndex,
            _activityId,
            msg.sender,
            _to,
            _ids,
            _amounts
        );
    }

    /// @notice Mint token
    /// @dev This function will increase total supply for the token that
    ///      is minted.
    ///      Only allowed minter address that could run this function
    /// @param _ticket Gachapon ticket counter for a draw
    /// @param _drawIndex Gachapon draw Index
    /// @param _activityId Gachapon activity ID
    /// @param _to The address that will receive the token
    /// @param _id The token ID that will be minted
    /// @param _amount Amount of token that will be minted
    /// @param _data _
    function mint(
        uint256 _ticket,
        uint256 _drawIndex,
        uint256 _activityId,
        address _to,
        uint256 _id,
        uint256 _amount,
        bytes memory _data
    )
        external
        onlyMinter
        validAddress(_to)
        validMintableTokenId(_id)
        validMintingAmount(_amount)
    {
        if (
            tokenCollection[_id].totalSupply + _amount >
            tokenCollection[_id].maxSupply
        ) {
            revert MintAmountForTokenTypeExceeded(_amount);
        }
        unchecked {
            tokenCollection[_id].totalSupply += _amount;
        }
        _mint(_to, _id, _amount, _data);
        emit RewardMint(
            _ticket,
            _drawIndex,
            _activityId,
            msg.sender,
            _to,
            _id,
            _amount
        );
    }

    /// @notice Burns specific token from other address
    /// @dev Only burners address who are allowed to burn the token.
    ///      These addresses will be set by owner.
    /// @param _account The owner address of the token
    /// @param _id The token ID
    /// @param _amount Amount to burn
    function forceBurn(
        address _account,
        uint256 _id,
        uint256 _amount
    ) external validAddress(_account) onlyBurner(_id) validTokenId(_id) {
        _burn(_account, _id, _amount);
        emit ForceBurn(msg.sender, _account, _id, _amount);
    }

    /// @notice Checks whether the caller has the permission to burn this particular token or not
    /// @param _id The token ID to burn
    function isValidBurner(uint256 _id) public view returns (bool) {
        return burnerList[_id][msg.sender];
    }

    /// @notice Set base URL for storing off-chain information
    /// @param newuri A valid URL
    function setURI(string memory newuri) external onlyOwner {
        baseURI = newuri;
    }

    /// @notice Appends token ID to base URL
    /// @param tokenId The token ID
    function uri(uint256 tokenId) public view override returns (string memory) {
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, intToString(tokenId)))
                : "";
    }

    /// @notice Get information from specific token ID
    /// @param _id Token ID
    function getTokenInfo(uint256 _id)
        external
        view
        validTokenId(_id)
        returns (TokenInfo memory tokenInfo)
    {
        tokenInfo = tokenCollection[_id];
    }

    /// @notice Mint digital collectible
    /// @param _to Receiver of the digital collectible
    /// @param collectible_id Token ID that's included in COLLECTIBLE_TOKEN_TYPE
    function mintDigitalCollectible(address _to, uint256 collectible_id)
        internal
    {
        uint256 _id = collectible_id + COLLECTIBLE_AND_DIGITAL_COLLECTIBLE_DIFF;
        tokenCollection[_id].totalSupply++;
        _mint(_to, _id, MAX_BURNABLE_COLLECTIBLE, "");
        emit MintDigitalMerch(msg.sender, _to, _id, MAX_BURNABLE_COLLECTIBLE);
    }

    /// @notice Claim collectible with digital collectible
    /// @param _account Owner of the collectible
    /// @param _id Token ID that's included in COLLECTIBLE_TOKEN_TYPE
    function claimMerchandise(address _account, uint256 _id)
        external
        validAddress(_account)
    {
        if (!claimMerchandiseActive) {
            revert ClaimingMerchandiseDeactivated();
        }
        if (tokenCollection[_id].tokenType != COLLECTIBLE__TOKEN_TYPE)
            revert NotAllowedToBurn();
        require(
            _account == _msgSender() ||
                isApprovedForAll(_account, _msgSender()),
            "ERC1155: caller is not token owner nor approved"
        );

        _burn(_account, _id, MAX_BURNABLE_COLLECTIBLE);
        mintDigitalCollectible(_account, _id);
    }

    function _uncheckedInc(uint256 val) internal pure returns (uint256) {
        unchecked {
            return val + 1;
        }
    }
}

File 2 of 13 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 4 of 13 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

File 5 of 13 : AmvUtils.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.15;

/// @title Utility function for developing smart contract
/// @author LiquidX
/// @notice You could use function in this smart contract as 
///         a helper to do menial task
/// @dev All function in this contract has generic purposes 
///      like converting integer to string, converting an array, etc.

contract AmvUtils {
    /// @dev Convert integer into string
    /// @param value Integer value that would be converted into string
    function intToString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

}

File 6 of 13 : IAnimeMetaverseReward.sol
// SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.15;

interface IAnimeMetaverseReward {
    function mintBatch(
        uint256 ticket,
        uint256 _drawIndex,
        uint256 _activityId,
        address _to,
        uint256[] memory _ids,
        uint256[] memory _amounts,
        bytes memory _data
    ) external;

    function mint(
        uint256 ticket,
        uint256 _drawIndex,
        uint256 _activityId,
        address _to,
        uint256 _id,
        uint256 _amount,
        bytes memory _data
    ) external;

    function forceBurn(
        address _account,
        uint256 _id,
        uint256 _amount
    ) external;
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 8 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ClaimingMerchandiseDeactivated","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidBurner","type":"error"},{"inputs":[],"name":"InvalidInput","type":"error"},{"inputs":[],"name":"InvalidMintableTokenId","type":"error"},{"inputs":[],"name":"InvalidMinter","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InvalidMintingAmount","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[{"internalType":"uint256","name":"range","type":"uint256"}],"name":"MintAmountForTokenTypeExceeded","type":"error"},{"inputs":[],"name":"NotAllowedToBurn","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"address","name":"Owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ForceBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintDigitalMerch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ticket","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"drawIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"activityId","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ticket","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"drawIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"activityId","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"RewardMintBatch","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":[],"name":"ARTIFACTS_TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COLLECTIBLE_AND_DIGITAL_COLLECTIBLE_DIFF","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COLLECTIBLE__TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIGITAL_COLLECTIBLE_TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GIFT_BOX_TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BURNABLE_COLLECTIBLE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTATBLE_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RUNE_CHIP_TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SCROLL_TOKEN_TYPE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"burnerList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"claimMerchandise","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMerchandiseActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"forceBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"tokenType","type":"uint256"}],"internalType":"struct AnimeMetaverseReward.TokenInfo","name":"tokenInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isValidBurner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticket","type":"uint256"},{"internalType":"uint256","name":"_drawIndex","type":"uint256"},{"internalType":"uint256","name":"_activityId","type":"uint256"},{"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":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ticket","type":"uint256"},{"internalType":"uint256","name":"_drawIndex","type":"uint256"},{"internalType":"uint256","name":"_activityId","type":"uint256"},{"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":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minterList","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":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_burner","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setBurnerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"setMaxMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setMinterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"toggleMerchandiseClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenCollection","outputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"tokenType","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maximumSupply","type":"uint256"}],"name":"updateTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604052600060055560646006556000600960006101000a81548160ff02191690831515021790555060405180602001604052806000815250600a908162000049919062000ad7565b503480156200005757600080fd5b50604051806020016040528060008152506200007981620006ec60201b60201c565b506200009a6200008e6200070160201b60201c565b6200070960201b60201c565b620000e660016040518060400160405280600c81526020017f47696674206f6620536f756c000000000000000000000000000000000000000081525060aa6001620007cf60201b60201c565b6200013260026040518060400160405280600681526020017f53616b757261000000000000000000000000000000000000000000000000000081525060046002620007cf60201b60201c565b6200017f60036040518060400160405280600b81526020017f5374617262757273742058000000000000000000000000000000000000000000815250610fa06002620007cf60201b60201c565b620001cc60046040518060400160405280600b81526020017f53746172627572737420430000000000000000000000000000000000000000008152506109c46002620007cf60201b60201c565b6200021960056040518060400160405280600b81526020017f53746172627572737420440000000000000000000000000000000000000000008152506107686002620007cf60201b60201c565b6200026660066040518060400160405280600b81526020017f537461726275727374204d0000000000000000000000000000000000000000008152506105dc6002620007cf60201b60201c565b620002b260076040518060400160405280600b81526020017f537461726275727374205600000000000000000000000000000000000000000081525060646002620007cf60201b60201c565b620002ff60086040518060400160405280600881526020017f476f642052756e650000000000000000000000000000000000000000000000008152506101c26003620007cf60201b60201c565b6200034c60096040518060400160405280600881526020017f4d616e2052756e650000000000000000000000000000000000000000000000008152506105dc6003620007cf60201b60201c565b62000399600a6040518060400160405280600881526020017f53756e2052756e65000000000000000000000000000000000000000000000000815250610bb86003620007cf60201b60201c565b620003e6600b6040518060400160405280600981526020017f466972652052756e6500000000000000000000000000000000000000000000008152506111946003620007cf60201b60201c565b62000433600c6040518060400160405280600881526020017f4963652052756e650000000000000000000000000000000000000000000000008152506115ae6003620007cf60201b60201c565b62000480600d6040518060400160405280601081526020017f5363726f6c6c206f66204465736972650000000000000000000000000000000081525061126b6004620007cf60201b60201c565b620004cd600e6040518060400160405280601281526020017f5363726f6c6c206f662050726f70686563790000000000000000000000000000815250610ce56004620007cf60201b60201c565b6200051a600f6040518060400160405280601381526020017f5363726f6c6c206f6620466f72746974756465000000000000000000000000008152506105866004620007cf60201b60201c565b6200056660106040518060400160405280600681526020017f486f6f646965000000000000000000000000000000000000000000000000000081525060c86005620007cf60201b60201c565b620005b360116040518060400160405280600681526020017f54736869727400000000000000000000000000000000000000000000000000008152506101906005620007cf60201b60201c565b6200060060126040518060400160405280600581526020017f536f636b730000000000000000000000000000000000000000000000000000008152506103206005620007cf60201b60201c565b6200064c60136040518060400160405280600e81526020017f4469676974616c20486f6f64696500000000000000000000000000000000000081525060c86006620007cf60201b60201c565b6200069960146040518060400160405280600e81526020017f4469676974616c205473686972740000000000000000000000000000000000008152506101906006620007cf60201b60201c565b620006e660156040518060400160405280600c81526020017f4469676974616c20536f636b00000000000000000000000000000000000000008152506103206006620007cf60201b60201c565b62000c3a565b8060029081620006fd919062000ad7565b5050565b600033905090565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60056000815480929190620007e49062000bed565b91905055506040518060800160405280848152602001838152602001600081526020018281525060046000868152602001908152602001600020600082015181600001908162000835919062000ad7565b5060208201518160010155604082015181600201556060820151816003015590505050505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008df57607f821691505b602082108103620008f557620008f462000897565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200095f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000920565b6200096b868362000920565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620009b8620009b2620009ac8462000983565b6200098d565b62000983565b9050919050565b6000819050919050565b620009d48362000997565b620009ec620009e382620009bf565b8484546200092d565b825550505050565b600090565b62000a03620009f4565b62000a10818484620009c9565b505050565b5b8181101562000a385762000a2c600082620009f9565b60018101905062000a16565b5050565b601f82111562000a875762000a5181620008fb565b62000a5c8462000910565b8101602085101562000a6c578190505b62000a8462000a7b8562000910565b83018262000a15565b50505b505050565b600082821c905092915050565b600062000aac6000198460080262000a8c565b1980831691505092915050565b600062000ac7838362000a99565b9150826002028217905092915050565b62000ae2826200085d565b67ffffffffffffffff81111562000afe5762000afd62000868565b5b62000b0a8254620008c6565b62000b1782828562000a3c565b600060209050601f83116001811462000b4f576000841562000b3a578287015190505b62000b46858262000ab9565b86555062000bb6565b601f19841662000b5f86620008fb565b60005b8281101562000b895784890151825560018201915060208501945060208101905062000b62565b8683101562000ba9578489015162000ba5601f89168262000a99565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000bfa8262000983565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000c2f5762000c2e62000bbe565b5b600182019050919050565b6153a28062000c4a6000396000f3fe608060405234801561001057600080fd5b50600436106102315760003560e01c80638da5cb5b11610130578063ca419202116100b8578063e985e9c51161007c578063e985e9c51461068f578063f242432a146106bf578063f2fde38b146106db578063f3330d46146106f7578063f926b50c1461071557610231565b8063ca419202146105fd578063cc9e372914610619578063d1aa245214610637578063dd7b641e14610653578063e489d5101461067157610231565b80639fc292e7116100ff5780639fc292e71461056d578063a22cb4651461058b578063a942d595146105a7578063b7767ad6146105c3578063c4db0000146105e157610231565b80638da5cb5b146104d157806391837b9d146104ef57806394bbd3331461051f5780639f7b02361461053d57610231565b806352a5ec86116101be5780636ab1467d116101825780636ab1467d1461043f5780636c0360eb1461045b578063715018a6146104795780637fd150c4146104835780638c7a63ae146104a157610231565b806352a5ec861461039b57806353c5ac80146103cb5780635724838a146103e95780635f2abfc11461040757806363e7a4211461042357610231565b80630eb36a88116102055780630eb36a88146102e2578063247d6713146102fe5780632dd883e81461031c5780632eb2c2d61461034f5780634e1273f41461036b57610231565b8062fdd58e1461023657806301ffc9a71461026657806302fe5305146102965780630e89341c146102b2575b600080fd5b610250600480360381019061024b919061331b565b610731565b60405161025d919061336a565b60405180910390f35b610280600480360381019061027b91906133dd565b6107f9565b60405161028d9190613425565b60405180910390f35b6102b060048036038101906102ab9190613586565b6108db565b005b6102cc60048036038101906102c791906135cf565b6108f6565b6040516102d99190613684565b60405180910390f35b6102fc60048036038101906102f791906136a6565b610956565b005b610306610a95565b6040516103139190613425565b60405180910390f35b610336600480360381019061033191906135cf565b610aa8565b60405161034694939291906136f9565b60405180910390f35b610369600480360381019061036491906138ae565b610b60565b005b61038560048036038101906103809190613a40565b610c01565b6040516103929190613b76565b60405180910390f35b6103b560048036038101906103b09190613b98565b610d1a565b6040516103c29190613425565b60405180910390f35b6103d3610d3a565b6040516103e0919061336a565b60405180910390f35b6103f1610d3f565b6040516103fe919061336a565b60405180910390f35b610421600480360381019061041c9190613bc5565b610d44565b005b61043d60048036038101906104389190613caf565b610fc3565b005b61045960048036038101906104549190613cdc565b610fe8565b005b610463611377565b6040516104709190613684565b60405180910390f35b610481611405565b005b61048b611419565b604051610498919061336a565b60405180910390f35b6104bb60048036038101906104b691906135cf565b61141e565b6040516104c89190613e7f565b60405180910390f35b6104d9611544565b6040516104e69190613eb0565b60405180910390f35b610509600480360381019061050491906135cf565b61156e565b6040516105169190613425565b60405180910390f35b6105276115d5565b604051610534919061336a565b60405180910390f35b61055760048036038101906105529190613ecb565b6115da565b6040516105649190613425565b60405180910390f35b610575611609565b604051610582919061336a565b60405180910390f35b6105a560048036038101906105a09190613f0b565b61160e565b005b6105c160048036038101906105bc919061331b565b611624565b005b6105cb6117c9565b6040516105d8919061336a565b60405180910390f35b6105fb60048036038101906105f69190613f4b565b6117ce565b005b61061760048036038101906106129190613f9e565b6118f4565b005b6106216119b4565b60405161062e919061336a565b60405180910390f35b610651600480360381019061064c9190613f0b565b6119b9565b005b61065b611a84565b604051610668919061336a565b60405180910390f35b610679611a89565b604051610686919061336a565b60405180910390f35b6106a960048036038101906106a49190613fde565b611a8f565b6040516106b69190613425565b60405180910390f35b6106d960048036038101906106d4919061401e565b611b23565b005b6106f560048036038101906106f09190613b98565b611bc4565b005b6106ff611c47565b60405161070c919061336a565b60405180910390f35b61072f600480360381019061072a91906135cf565b611c4c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079890614127565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108c457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d457506108d382611ce7565b5b9050919050565b6108e3611d51565b80600a90816108f29190614353565b5050565b60606000600a805461090790614176565b905011610923576040518060200160405280600081525061094f565b600a61092e83611dcf565b60405160200161093f9291906144e4565b6040516020818303038152906040525b9050919050565b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109bd576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826109c78161156e565b6109fd576040517f867af93600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001811080610a0e575060055481115b15610a45576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a50868686611f2f565b7f462522b2cf965052c0b7b62132701fe6f33ff23d6f1fbd722095bdaac20f0c0433878787604051610a859493929190614508565b60405180910390a1505050505050565b600960009054906101000a900460ff1681565b6004602052806000526040600020600091509050806000018054610acb90614176565b80601f0160208091040260200160405190810160405280929190818152602001828054610af790614176565b8015610b445780601f10610b1957610100808354040283529160200191610b44565b820191906000526020600020905b815481529060010190602001808311610b2757829003601f168201915b5050505050908060010154908060020154908060030154905084565b610b68612175565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610bae5750610bad85610ba8612175565b611a8f565b5b610bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be4906145bf565b60405180910390fd5b610bfa858585858561217d565b5050505050565b60608151835114610c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3e90614651565b60405180910390fd5b6000835167ffffffffffffffff811115610c6457610c6361345b565b5b604051908082528060200260200182016040528015610c925781602001602082028036833780820191505090505b50905060005b8451811015610d0f57610cdf858281518110610cb757610cb6614671565b5b6020026020010151858381518110610cd257610cd1614671565b5b6020026020010151610731565b828281518110610cf257610cf1614671565b5b60200260200101818152505080610d08906146cf565b9050610c98565b508091505092915050565b60076020528060005260406000206000915054906101000a900460ff1681565b600681565b600381565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dc7576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e2e576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001811080610e3e5750601281115b15610e75576040517fb9b78b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600654811180610e865750600181105b15610ec857806040517f886e0d35000000000000000000000000000000000000000000000000000000008152600401610ebf919061336a565b60405180910390fd5b6004600087815260200190815260200160002060010154856004600089815260200190815260200160002060020154610f019190614717565b1115610f4457846040517f353e7362000000000000000000000000000000000000000000000000000000008152600401610f3b919061336a565b60405180910390fd5b846004600088815260200190815260200160002060020160008282540192505081905550610f748787878761249e565b7fccef580bc88cc58a3c5ad612e261c11bca2ca13872e9b398e761b2c3185c9a398a8a8a338b8b8b604051610faf979695949392919061476d565b60405180910390a150505050505050505050565b610fcb611d51565b80600960006101000a81548160ff02191690831515021790555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661106b576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110d2576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835183511461110d576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b845181101561131d57600085828151811061112e5761112d614671565b5b6020026020010151905060065485838151811061114e5761114d614671565b5b6020026020010151118061117c5750600185838151811061117257611171614671565b5b6020026020010151105b156111d85784828151811061119457611193614671565b5b60200260200101516040517f886e0d350000000000000000000000000000000000000000000000000000000081526004016111cf919061336a565b60405180910390fd5b60018110806111e75750601281115b1561121e576040517fb9b78b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008281526020019081526020016000206001015485838151811061124857611247614671565b5b602002602001015160046000848152602001908152602001600020600201546112719190614717565b11156112ce5784828151811061128a57611289614671565b5b60200260200101516040517f353e73620000000000000000000000000000000000000000000000000000000081526004016112c5919061336a565b60405180910390fd5b8482815181106112e1576112e0614671565b5b60200260200101516004600083815260200190815260200160002060020160008282540192505081905550506113168161264e565b9050611110565b5061132a8585858561265b565b7fc6836b77bbaeaf0a93de7ba6b3ca1c69d1778a10b762eda41596ef061b0618188888883389898960405161136597969594939291906147dc565b60405180910390a15050505050505050565b600a805461138490614176565b80601f01602080910402602001604051908101604052809291908181526020018280546113b090614176565b80156113fd5780601f106113d2576101008083540402835291602001916113fd565b820191906000526020600020905b8154815290600101906020018083116113e057829003601f168201915b505050505081565b61140d611d51565b6114176000612887565b565b600481565b61142661324b565b816001811080611437575060055481115b1561146e576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600084815260200190815260200160002060405180608001604052908160008201805461149c90614176565b80601f01602080910402602001604051908101604052809291908181526020018280546114c890614176565b80156115155780601f106114ea57610100808354040283529160200191611515565b820191906000526020600020905b8154815290600101906020018083116114f857829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481525050915050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600181565b60086020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b601281565b611620611619612175565b838361294d565b5050565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361168b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960009054906101000a900460ff166116d1576040517f966f5dbf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600460008481526020019081526020016000206003015414611721576040517f225e797800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611729612175565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061176f575061176e83611769612175565b611a8f565b5b6117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a5906148cb565b60405180910390fd5b6117ba83836001611f2f565b6117c48383612ab9565b505050565b600581565b6117d6611d51565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361183d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600181108061184e575060055481115b15611885576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826008600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b6118fc611d51565b81600181108061190d575060055481115b15611944576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160046000858152602001908152602001600020600201541115611994576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816004600085815260200190815260200160002060010181905550505050565b600181565b6119c1611d51565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a28576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600381565b6115ae81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b2b612175565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611b715750611b7085611b6b612175565b611a8f565b5b611bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba7906145bf565b60405180910390fd5b611bbd8585858585612b55565b5050505050565b611bcc611d51565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c329061495d565b60405180910390fd5b611c4481612887565b50565b600281565b611c54611d51565b6001811015611c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8f906149ef565b60405180910390fd5b6115ae811115611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490614a81565b60405180910390fd5b8060068190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611d59612175565b73ffffffffffffffffffffffffffffffffffffffff16611d77611544565b73ffffffffffffffffffffffffffffffffffffffff1614611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc490614aed565b60405180910390fd5b565b606060008203611e16576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f2a565b600082905060005b60008214611e48578080611e31906146cf565b915050600a82611e419190614b3c565b9150611e1e565b60008167ffffffffffffffff811115611e6457611e6361345b565b5b6040519080825280601f01601f191660200182016040528015611e965781602001600182028036833780820191505090505b5090505b60008514611f2357600182611eaf9190614b6d565b9150600a85611ebe9190614ba1565b6030611eca9190614717565b60f81b818381518110611ee057611edf614671565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1c9190614b3c565b9450611e9a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590614c44565b60405180910390fd5b6000611fa8612175565b90506000611fb584612df0565b90506000611fc284612df0565b9050611fe283876000858560405180602001604052806000815250612e6a565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207090614cd6565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612146929190614cf6565b60405180910390a461216c84886000868660405180602001604052806000815250612e72565b50505050505050565b600033905090565b81518351146121c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b890614d91565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222790614e23565b60405180910390fd5b600061223a612175565b905061224a818787878787612e6a565b60005b84518110156123fb57600085828151811061226b5761226a614671565b5b60200260200101519050600085838151811061228a57612289614671565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561232b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232290614eb5565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123e09190614717565b92505081905550505050806123f4906146cf565b905061224d565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612472929190614ed5565b60405180910390a4612488818787878787612e72565b612496818787878787612e7a565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361250d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250490614f7e565b60405180910390fd5b6000612517612175565b9050600061252485612df0565b9050600061253185612df0565b905061254283600089858589612e6a565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a19190614717565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161261f929190614cf6565b60405180910390a461263683600089858589612e72565b61264583600089898989613051565b50505050505050565b6000600182019050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c190614f7e565b60405180910390fd5b815183511461270e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270590614d91565b60405180910390fd5b6000612718612175565b905061272981600087878787612e6a565b60005b84518110156127e25783818151811061274857612747614671565b5b602002602001015160008087848151811061276657612765614671565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127c89190614717565b9250508190555080806127da906146cf565b91505061272c565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161285a929190614ed5565b60405180910390a461287181600087878787612e72565b61288081600087878787612e7a565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b290615010565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612aac9190613425565b60405180910390a3505050565b6000600382612ac89190614717565b9050600460008281526020019081526020016000206002016000815480929190612af1906146cf565b9190505550612b12838260016040518060200160405280600081525061249e565b7fa06b17fc7cdf9a583f0fc49eadda6a959856ef968caa1db1b3f3a51247d485063384836001604051612b489493929190614508565b60405180910390a1505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbb90614e23565b60405180910390fd5b6000612bce612175565b90506000612bdb85612df0565b90506000612be885612df0565b9050612bf8838989858589612e6a565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8690614eb5565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d449190614717565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612dc1929190614cf6565b60405180910390a4612dd7848a8a86868a612e72565b612de5848a8a8a8a8a613051565b505050505050505050565b60606000600167ffffffffffffffff811115612e0f57612e0e61345b565b5b604051908082528060200260200182016040528015612e3d5781602001602082028036833780820191505090505b5090508281600081518110612e5557612e54614671565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b612e998473ffffffffffffffffffffffffffffffffffffffff16613228565b15613049578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612edf959493929190615085565b6020604051808303816000875af1925050508015612f1b57506040513d601f19601f82011682018060405250810190612f189190615102565b60015b612fc057612f2761513c565b806308c379a003612f835750612f3b61515e565b80612f465750612f85565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7a9190613684565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb790615260565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303e906152f2565b60405180910390fd5b505b505050505050565b6130708473ffffffffffffffffffffffffffffffffffffffff16613228565b15613220578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016130b6959493929190615312565b6020604051808303816000875af19250505080156130f257506040513d601f19601f820116820180604052508101906130ef9190615102565b60015b613197576130fe61513c565b806308c379a00361315a575061311261515e565b8061311d575061315c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131519190613684565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318e90615260565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461321e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613215906152f2565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060800160405280606081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132b282613287565b9050919050565b6132c2816132a7565b81146132cd57600080fd5b50565b6000813590506132df816132b9565b92915050565b6000819050919050565b6132f8816132e5565b811461330357600080fd5b50565b600081359050613315816132ef565b92915050565b600080604083850312156133325761333161327d565b5b6000613340858286016132d0565b925050602061335185828601613306565b9150509250929050565b613364816132e5565b82525050565b600060208201905061337f600083018461335b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ba81613385565b81146133c557600080fd5b50565b6000813590506133d7816133b1565b92915050565b6000602082840312156133f3576133f261327d565b5b6000613401848285016133c8565b91505092915050565b60008115159050919050565b61341f8161340a565b82525050565b600060208201905061343a6000830184613416565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134938261344a565b810181811067ffffffffffffffff821117156134b2576134b161345b565b5b80604052505050565b60006134c5613273565b90506134d1828261348a565b919050565b600067ffffffffffffffff8211156134f1576134f061345b565b5b6134fa8261344a565b9050602081019050919050565b82818337600083830152505050565b6000613529613524846134d6565b6134bb565b90508281526020810184848401111561354557613544613445565b5b613550848285613507565b509392505050565b600082601f83011261356d5761356c613440565b5b813561357d848260208601613516565b91505092915050565b60006020828403121561359c5761359b61327d565b5b600082013567ffffffffffffffff8111156135ba576135b9613282565b5b6135c684828501613558565b91505092915050565b6000602082840312156135e5576135e461327d565b5b60006135f384828501613306565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561363657808201518184015260208101905061361b565b83811115613645576000848401525b50505050565b6000613656826135fc565b6136608185613607565b9350613670818560208601613618565b6136798161344a565b840191505092915050565b6000602082019050818103600083015261369e818461364b565b905092915050565b6000806000606084860312156136bf576136be61327d565b5b60006136cd868287016132d0565b93505060206136de86828701613306565b92505060406136ef86828701613306565b9150509250925092565b60006080820190508181036000830152613713818761364b565b9050613722602083018661335b565b61372f604083018561335b565b61373c606083018461335b565b95945050505050565b600067ffffffffffffffff8211156137605761375f61345b565b5b602082029050602081019050919050565b600080fd5b600061378961378484613745565b6134bb565b905080838252602082019050602084028301858111156137ac576137ab613771565b5b835b818110156137d557806137c18882613306565b8452602084019350506020810190506137ae565b5050509392505050565b600082601f8301126137f4576137f3613440565b5b8135613804848260208601613776565b91505092915050565b600067ffffffffffffffff8211156138285761382761345b565b5b6138318261344a565b9050602081019050919050565b600061385161384c8461380d565b6134bb565b90508281526020810184848401111561386d5761386c613445565b5b613878848285613507565b509392505050565b600082601f83011261389557613894613440565b5b81356138a584826020860161383e565b91505092915050565b600080600080600060a086880312156138ca576138c961327d565b5b60006138d8888289016132d0565b95505060206138e9888289016132d0565b945050604086013567ffffffffffffffff81111561390a57613909613282565b5b613916888289016137df565b935050606086013567ffffffffffffffff81111561393757613936613282565b5b613943888289016137df565b925050608086013567ffffffffffffffff81111561396457613963613282565b5b61397088828901613880565b9150509295509295909350565b600067ffffffffffffffff8211156139985761399761345b565b5b602082029050602081019050919050565b60006139bc6139b78461397d565b6134bb565b905080838252602082019050602084028301858111156139df576139de613771565b5b835b81811015613a0857806139f488826132d0565b8452602084019350506020810190506139e1565b5050509392505050565b600082601f830112613a2757613a26613440565b5b8135613a378482602086016139a9565b91505092915050565b60008060408385031215613a5757613a5661327d565b5b600083013567ffffffffffffffff811115613a7557613a74613282565b5b613a8185828601613a12565b925050602083013567ffffffffffffffff811115613aa257613aa1613282565b5b613aae858286016137df565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613aed816132e5565b82525050565b6000613aff8383613ae4565b60208301905092915050565b6000602082019050919050565b6000613b2382613ab8565b613b2d8185613ac3565b9350613b3883613ad4565b8060005b83811015613b69578151613b508882613af3565b9750613b5b83613b0b565b925050600181019050613b3c565b5085935050505092915050565b60006020820190508181036000830152613b908184613b18565b905092915050565b600060208284031215613bae57613bad61327d565b5b6000613bbc848285016132d0565b91505092915050565b600080600080600080600060e0888a031215613be457613be361327d565b5b6000613bf28a828b01613306565b9750506020613c038a828b01613306565b9650506040613c148a828b01613306565b9550506060613c258a828b016132d0565b9450506080613c368a828b01613306565b93505060a0613c478a828b01613306565b92505060c088013567ffffffffffffffff811115613c6857613c67613282565b5b613c748a828b01613880565b91505092959891949750929550565b613c8c8161340a565b8114613c9757600080fd5b50565b600081359050613ca981613c83565b92915050565b600060208284031215613cc557613cc461327d565b5b6000613cd384828501613c9a565b91505092915050565b600080600080600080600060e0888a031215613cfb57613cfa61327d565b5b6000613d098a828b01613306565b9750506020613d1a8a828b01613306565b9650506040613d2b8a828b01613306565b9550506060613d3c8a828b016132d0565b945050608088013567ffffffffffffffff811115613d5d57613d5c613282565b5b613d698a828b016137df565b93505060a088013567ffffffffffffffff811115613d8a57613d89613282565b5b613d968a828b016137df565b92505060c088013567ffffffffffffffff811115613db757613db6613282565b5b613dc38a828b01613880565b91505092959891949750929550565b600082825260208201905092915050565b6000613dee826135fc565b613df88185613dd2565b9350613e08818560208601613618565b613e118161344a565b840191505092915050565b60006080830160008301518482036000860152613e398282613de3565b9150506020830151613e4e6020860182613ae4565b506040830151613e616040860182613ae4565b506060830151613e746060860182613ae4565b508091505092915050565b60006020820190508181036000830152613e998184613e1c565b905092915050565b613eaa816132a7565b82525050565b6000602082019050613ec56000830184613ea1565b92915050565b60008060408385031215613ee257613ee161327d565b5b6000613ef085828601613306565b9250506020613f01858286016132d0565b9150509250929050565b60008060408385031215613f2257613f2161327d565b5b6000613f30858286016132d0565b9250506020613f4185828601613c9a565b9150509250929050565b600080600060608486031215613f6457613f6361327d565b5b6000613f7286828701613306565b9350506020613f83868287016132d0565b9250506040613f9486828701613c9a565b9150509250925092565b60008060408385031215613fb557613fb461327d565b5b6000613fc385828601613306565b9250506020613fd485828601613306565b9150509250929050565b60008060408385031215613ff557613ff461327d565b5b6000614003858286016132d0565b9250506020614014858286016132d0565b9150509250929050565b600080600080600060a0868803121561403a5761403961327d565b5b6000614048888289016132d0565b9550506020614059888289016132d0565b945050604061406a88828901613306565b935050606061407b88828901613306565b925050608086013567ffffffffffffffff81111561409c5761409b613282565b5b6140a888828901613880565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614111602a83613607565b915061411c826140b5565b604082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061418e57607f821691505b6020821081036141a1576141a0614147565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142097fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826141cc565b61421386836141cc565b95508019841693508086168417925050509392505050565b6000819050919050565b600061425061424b614246846132e5565b61422b565b6132e5565b9050919050565b6000819050919050565b61426a83614235565b61427e61427682614257565b8484546141d9565b825550505050565b600090565b614293614286565b61429e818484614261565b505050565b5b818110156142c2576142b760008261428b565b6001810190506142a4565b5050565b601f821115614307576142d8816141a7565b6142e1846141bc565b810160208510156142f0578190505b6143046142fc856141bc565b8301826142a3565b50505b505050565b600082821c905092915050565b600061432a6000198460080261430c565b1980831691505092915050565b60006143438383614319565b9150826002028217905092915050565b61435c826135fc565b67ffffffffffffffff8111156143755761437461345b565b5b61437f8254614176565b61438a8282856142c6565b600060209050601f8311600181146143bd57600084156143ab578287015190505b6143b58582614337565b86555061441d565b601f1984166143cb866141a7565b60005b828110156143f3578489015182556001820191506020850194506020810190506143ce565b86831015614410578489015161440c601f891682614319565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461443d81614176565b6144478186614425565b945060018216600081146144625760018114614477576144aa565b60ff19831686528115158202860193506144aa565b614480856141a7565b60005b838110156144a257815481890152600182019150602081019050614483565b838801955050505b50505092915050565b60006144be826135fc565b6144c88185614425565b93506144d8818560208601613618565b80840191505092915050565b60006144f08285614430565b91506144fc82846144b3565b91508190509392505050565b600060808201905061451d6000830187613ea1565b61452a6020830186613ea1565b614537604083018561335b565b614544606083018461335b565b95945050505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145a9602e83613607565b91506145b48261454d565b604082019050919050565b600060208201905081810360008301526145d88161459c565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061463b602983613607565b9150614646826145df565b604082019050919050565b6000602082019050818103600083015261466a8161462e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146da826132e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361470c5761470b6146a0565b5b600182019050919050565b6000614722826132e5565b915061472d836132e5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614762576147616146a0565b5b828201905092915050565b600060e082019050614782600083018a61335b565b61478f602083018961335b565b61479c604083018861335b565b6147a96060830187613ea1565b6147b66080830186613ea1565b6147c360a083018561335b565b6147d060c083018461335b565b98975050505050505050565b600060e0820190506147f1600083018a61335b565b6147fe602083018961335b565b61480b604083018861335b565b6148186060830187613ea1565b6148256080830186613ea1565b81810360a08301526148378185613b18565b905081810360c083015261484b8184613b18565b905098975050505050505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006148b5602f83613607565b91506148c082614859565b604082019050919050565b600060208201905081810360008301526148e4816148a8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614947602683613607565b9150614952826148eb565b604082019050919050565b600060208201905081810360008301526149768161493a565b9050919050565b7f43616e206e6f7420736574206d696e744c696d6974206c657373207468616e2060008201527f312e000000000000000000000000000000000000000000000000000000000000602082015250565b60006149d9602283613607565b91506149e48261497d565b604082019050919050565b60006020820190508181036000830152614a08816149cc565b9050919050565b7f43616e206e6f7420736574206d696e744c696d6974206d6f7265207468616e2060008201527f353535302e000000000000000000000000000000000000000000000000000000602082015250565b6000614a6b602583613607565b9150614a7682614a0f565b604082019050919050565b60006020820190508181036000830152614a9a81614a5e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ad7602083613607565b9150614ae282614aa1565b602082019050919050565b60006020820190508181036000830152614b0681614aca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b47826132e5565b9150614b52836132e5565b925082614b6257614b61614b0d565b5b828204905092915050565b6000614b78826132e5565b9150614b83836132e5565b925082821015614b9657614b956146a0565b5b828203905092915050565b6000614bac826132e5565b9150614bb7836132e5565b925082614bc757614bc6614b0d565b5b828206905092915050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c2e602383613607565b9150614c3982614bd2565b604082019050919050565b60006020820190508181036000830152614c5d81614c21565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614cc0602483613607565b9150614ccb82614c64565b604082019050919050565b60006020820190508181036000830152614cef81614cb3565b9050919050565b6000604082019050614d0b600083018561335b565b614d18602083018461335b565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614d7b602883613607565b9150614d8682614d1f565b604082019050919050565b60006020820190508181036000830152614daa81614d6e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614e0d602583613607565b9150614e1882614db1565b604082019050919050565b60006020820190508181036000830152614e3c81614e00565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614e9f602a83613607565b9150614eaa82614e43565b604082019050919050565b60006020820190508181036000830152614ece81614e92565b9050919050565b60006040820190508181036000830152614eef8185613b18565b90508181036020830152614f038184613b18565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f68602183613607565b9150614f7382614f0c565b604082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614ffa602983613607565b915061500582614f9e565b604082019050919050565b6000602082019050818103600083015261502981614fed565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061505782615030565b615061818561503b565b9350615071818560208601613618565b61507a8161344a565b840191505092915050565b600060a08201905061509a6000830188613ea1565b6150a76020830187613ea1565b81810360408301526150b98186613b18565b905081810360608301526150cd8185613b18565b905081810360808301526150e1818461504c565b90509695505050505050565b6000815190506150fc816133b1565b92915050565b6000602082840312156151185761511761327d565b5b6000615126848285016150ed565b91505092915050565b60008160e01c9050919050565b600060033d111561515b5760046000803e61515860005161512f565b90505b90565b600060443d106151eb57615170613273565b60043d036004823e80513d602482011167ffffffffffffffff821117156151985750506151eb565b808201805167ffffffffffffffff8111156151b657505050506151eb565b80602083010160043d0385018111156151d35750505050506151eb565b6151e28260200185018661348a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061524a603483613607565b9150615255826151ee565b604082019050919050565b600060208201905081810360008301526152798161523d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006152dc602883613607565b91506152e782615280565b604082019050919050565b6000602082019050818103600083015261530b816152cf565b9050919050565b600060a0820190506153276000830188613ea1565b6153346020830187613ea1565b615341604083018661335b565b61534e606083018561335b565b8181036080830152615360818461504c565b9050969550505050505056fea26469706673582212203db40b1de38f48579c015d0ce0e22bc0d8bc83926da4bbd76004fa1e333fee8064736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102315760003560e01c80638da5cb5b11610130578063ca419202116100b8578063e985e9c51161007c578063e985e9c51461068f578063f242432a146106bf578063f2fde38b146106db578063f3330d46146106f7578063f926b50c1461071557610231565b8063ca419202146105fd578063cc9e372914610619578063d1aa245214610637578063dd7b641e14610653578063e489d5101461067157610231565b80639fc292e7116100ff5780639fc292e71461056d578063a22cb4651461058b578063a942d595146105a7578063b7767ad6146105c3578063c4db0000146105e157610231565b80638da5cb5b146104d157806391837b9d146104ef57806394bbd3331461051f5780639f7b02361461053d57610231565b806352a5ec86116101be5780636ab1467d116101825780636ab1467d1461043f5780636c0360eb1461045b578063715018a6146104795780637fd150c4146104835780638c7a63ae146104a157610231565b806352a5ec861461039b57806353c5ac80146103cb5780635724838a146103e95780635f2abfc11461040757806363e7a4211461042357610231565b80630eb36a88116102055780630eb36a88146102e2578063247d6713146102fe5780632dd883e81461031c5780632eb2c2d61461034f5780634e1273f41461036b57610231565b8062fdd58e1461023657806301ffc9a71461026657806302fe5305146102965780630e89341c146102b2575b600080fd5b610250600480360381019061024b919061331b565b610731565b60405161025d919061336a565b60405180910390f35b610280600480360381019061027b91906133dd565b6107f9565b60405161028d9190613425565b60405180910390f35b6102b060048036038101906102ab9190613586565b6108db565b005b6102cc60048036038101906102c791906135cf565b6108f6565b6040516102d99190613684565b60405180910390f35b6102fc60048036038101906102f791906136a6565b610956565b005b610306610a95565b6040516103139190613425565b60405180910390f35b610336600480360381019061033191906135cf565b610aa8565b60405161034694939291906136f9565b60405180910390f35b610369600480360381019061036491906138ae565b610b60565b005b61038560048036038101906103809190613a40565b610c01565b6040516103929190613b76565b60405180910390f35b6103b560048036038101906103b09190613b98565b610d1a565b6040516103c29190613425565b60405180910390f35b6103d3610d3a565b6040516103e0919061336a565b60405180910390f35b6103f1610d3f565b6040516103fe919061336a565b60405180910390f35b610421600480360381019061041c9190613bc5565b610d44565b005b61043d60048036038101906104389190613caf565b610fc3565b005b61045960048036038101906104549190613cdc565b610fe8565b005b610463611377565b6040516104709190613684565b60405180910390f35b610481611405565b005b61048b611419565b604051610498919061336a565b60405180910390f35b6104bb60048036038101906104b691906135cf565b61141e565b6040516104c89190613e7f565b60405180910390f35b6104d9611544565b6040516104e69190613eb0565b60405180910390f35b610509600480360381019061050491906135cf565b61156e565b6040516105169190613425565b60405180910390f35b6105276115d5565b604051610534919061336a565b60405180910390f35b61055760048036038101906105529190613ecb565b6115da565b6040516105649190613425565b60405180910390f35b610575611609565b604051610582919061336a565b60405180910390f35b6105a560048036038101906105a09190613f0b565b61160e565b005b6105c160048036038101906105bc919061331b565b611624565b005b6105cb6117c9565b6040516105d8919061336a565b60405180910390f35b6105fb60048036038101906105f69190613f4b565b6117ce565b005b61061760048036038101906106129190613f9e565b6118f4565b005b6106216119b4565b60405161062e919061336a565b60405180910390f35b610651600480360381019061064c9190613f0b565b6119b9565b005b61065b611a84565b604051610668919061336a565b60405180910390f35b610679611a89565b604051610686919061336a565b60405180910390f35b6106a960048036038101906106a49190613fde565b611a8f565b6040516106b69190613425565b60405180910390f35b6106d960048036038101906106d4919061401e565b611b23565b005b6106f560048036038101906106f09190613b98565b611bc4565b005b6106ff611c47565b60405161070c919061336a565b60405180910390f35b61072f600480360381019061072a91906135cf565b611c4c565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079890614127565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108c457507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d457506108d382611ce7565b5b9050919050565b6108e3611d51565b80600a90816108f29190614353565b5050565b60606000600a805461090790614176565b905011610923576040518060200160405280600081525061094f565b600a61092e83611dcf565b60405160200161093f9291906144e4565b6040516020818303038152906040525b9050919050565b82600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109bd576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826109c78161156e565b6109fd576040517f867af93600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001811080610a0e575060055481115b15610a45576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a50868686611f2f565b7f462522b2cf965052c0b7b62132701fe6f33ff23d6f1fbd722095bdaac20f0c0433878787604051610a859493929190614508565b60405180910390a1505050505050565b600960009054906101000a900460ff1681565b6004602052806000526040600020600091509050806000018054610acb90614176565b80601f0160208091040260200160405190810160405280929190818152602001828054610af790614176565b8015610b445780601f10610b1957610100808354040283529160200191610b44565b820191906000526020600020905b815481529060010190602001808311610b2757829003601f168201915b5050505050908060010154908060020154908060030154905084565b610b68612175565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610bae5750610bad85610ba8612175565b611a8f565b5b610bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be4906145bf565b60405180910390fd5b610bfa858585858561217d565b5050505050565b60608151835114610c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3e90614651565b60405180910390fd5b6000835167ffffffffffffffff811115610c6457610c6361345b565b5b604051908082528060200260200182016040528015610c925781602001602082028036833780820191505090505b50905060005b8451811015610d0f57610cdf858281518110610cb757610cb6614671565b5b6020026020010151858381518110610cd257610cd1614671565b5b6020026020010151610731565b828281518110610cf257610cf1614671565b5b60200260200101818152505080610d08906146cf565b9050610c98565b508091505092915050565b60076020528060005260406000206000915054906101000a900460ff1681565b600681565b600381565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dc7576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e2e576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b836001811080610e3e5750601281115b15610e75576040517fb9b78b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600654811180610e865750600181105b15610ec857806040517f886e0d35000000000000000000000000000000000000000000000000000000008152600401610ebf919061336a565b60405180910390fd5b6004600087815260200190815260200160002060010154856004600089815260200190815260200160002060020154610f019190614717565b1115610f4457846040517f353e7362000000000000000000000000000000000000000000000000000000008152600401610f3b919061336a565b60405180910390fd5b846004600088815260200190815260200160002060020160008282540192505081905550610f748787878761249e565b7fccef580bc88cc58a3c5ad612e261c11bca2ca13872e9b398e761b2c3185c9a398a8a8a338b8b8b604051610faf979695949392919061476d565b60405180910390a150505050505050505050565b610fcb611d51565b80600960006101000a81548160ff02191690831515021790555050565b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661106b576040517fd8d5894f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036110d2576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b835183511461110d576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b845181101561131d57600085828151811061112e5761112d614671565b5b6020026020010151905060065485838151811061114e5761114d614671565b5b6020026020010151118061117c5750600185838151811061117257611171614671565b5b6020026020010151105b156111d85784828151811061119457611193614671565b5b60200260200101516040517f886e0d350000000000000000000000000000000000000000000000000000000081526004016111cf919061336a565b60405180910390fd5b60018110806111e75750601281115b1561121e576040517fb9b78b6100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008281526020019081526020016000206001015485838151811061124857611247614671565b5b602002602001015160046000848152602001908152602001600020600201546112719190614717565b11156112ce5784828151811061128a57611289614671565b5b60200260200101516040517f353e73620000000000000000000000000000000000000000000000000000000081526004016112c5919061336a565b60405180910390fd5b8482815181106112e1576112e0614671565b5b60200260200101516004600083815260200190815260200160002060020160008282540192505081905550506113168161264e565b9050611110565b5061132a8585858561265b565b7fc6836b77bbaeaf0a93de7ba6b3ca1c69d1778a10b762eda41596ef061b0618188888883389898960405161136597969594939291906147dc565b60405180910390a15050505050505050565b600a805461138490614176565b80601f01602080910402602001604051908101604052809291908181526020018280546113b090614176565b80156113fd5780601f106113d2576101008083540402835291602001916113fd565b820191906000526020600020905b8154815290600101906020018083116113e057829003601f168201915b505050505081565b61140d611d51565b6114176000612887565b565b600481565b61142661324b565b816001811080611437575060055481115b1561146e576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6004600084815260200190815260200160002060405180608001604052908160008201805461149c90614176565b80601f01602080910402602001604051908101604052809291908181526020018280546114c890614176565b80156115155780601f106114ea57610100808354040283529160200191611515565b820191906000526020600020905b8154815290600101906020018083116114f857829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481525050915050919050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006008600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600181565b60086020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b601281565b611620611619612175565b838361294d565b5050565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361168b576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960009054906101000a900460ff166116d1576040517f966f5dbf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600460008481526020019081526020016000206003015414611721576040517f225e797800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611729612175565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061176f575061176e83611769612175565b611a8f565b5b6117ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a5906148cb565b60405180910390fd5b6117ba83836001611f2f565b6117c48383612ab9565b505050565b600581565b6117d6611d51565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361183d576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83600181108061184e575060055481115b15611885576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826008600087815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050505050565b6118fc611d51565b81600181108061190d575060055481115b15611944576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160046000858152602001908152602001600020600201541115611994576040517fb4fa3fb300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b816004600085815260200190815260200160002060010181905550505050565b600181565b6119c1611d51565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611a28576040517fe6c4247b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600381565b6115ae81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b2b612175565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611b715750611b7085611b6b612175565b611a8f565b5b611bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba7906145bf565b60405180910390fd5b611bbd8585858585612b55565b5050505050565b611bcc611d51565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c329061495d565b60405180910390fd5b611c4481612887565b50565b600281565b611c54611d51565b6001811015611c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8f906149ef565b60405180910390fd5b6115ae811115611cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cd490614a81565b60405180910390fd5b8060068190555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611d59612175565b73ffffffffffffffffffffffffffffffffffffffff16611d77611544565b73ffffffffffffffffffffffffffffffffffffffff1614611dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc490614aed565b60405180910390fd5b565b606060008203611e16576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611f2a565b600082905060005b60008214611e48578080611e31906146cf565b915050600a82611e419190614b3c565b9150611e1e565b60008167ffffffffffffffff811115611e6457611e6361345b565b5b6040519080825280601f01601f191660200182016040528015611e965781602001600182028036833780820191505090505b5090505b60008514611f2357600182611eaf9190614b6d565b9150600a85611ebe9190614ba1565b6030611eca9190614717565b60f81b818381518110611ee057611edf614671565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611f1c9190614b3c565b9450611e9a565b8093505050505b919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9590614c44565b60405180910390fd5b6000611fa8612175565b90506000611fb584612df0565b90506000611fc284612df0565b9050611fe283876000858560405180602001604052806000815250612e6a565b600080600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905084811015612079576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207090614cd6565b60405180910390fd5b84810360008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051612146929190614cf6565b60405180910390a461216c84886000868660405180602001604052806000815250612e72565b50505050505050565b600033905090565b81518351146121c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b890614d91565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222790614e23565b60405180910390fd5b600061223a612175565b905061224a818787878787612e6a565b60005b84518110156123fb57600085828151811061226b5761226a614671565b5b60200260200101519050600085838151811061228a57612289614671565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508181101561232b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232290614eb5565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123e09190614717565b92505081905550505050806123f4906146cf565b905061224d565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612472929190614ed5565b60405180910390a4612488818787878787612e72565b612496818787878787612e7a565b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361250d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250490614f7e565b60405180910390fd5b6000612517612175565b9050600061252485612df0565b9050600061253185612df0565b905061254283600089858589612e6a565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a19190614717565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62898960405161261f929190614cf6565b60405180910390a461263683600089858589612e72565b61264583600089898989613051565b50505050505050565b6000600182019050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036126ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c190614f7e565b60405180910390fd5b815183511461270e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270590614d91565b60405180910390fd5b6000612718612175565b905061272981600087878787612e6a565b60005b84518110156127e25783818151811061274857612747614671565b5b602002602001015160008087848151811061276657612765614671565b5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127c89190614717565b9250508190555080806127da906146cf565b91505061272c565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161285a929190614ed5565b60405180910390a461287181600087878787612e72565b61288081600087878787612e7a565b5050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b290615010565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612aac9190613425565b60405180910390a3505050565b6000600382612ac89190614717565b9050600460008281526020019081526020016000206002016000815480929190612af1906146cf565b9190505550612b12838260016040518060200160405280600081525061249e565b7fa06b17fc7cdf9a583f0fc49eadda6a959856ef968caa1db1b3f3a51247d485063384836001604051612b489493929190614508565b60405180910390a1505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612bc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbb90614e23565b60405180910390fd5b6000612bce612175565b90506000612bdb85612df0565b90506000612be885612df0565b9050612bf8838989858589612e6a565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015612c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8690614eb5565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d449190614717565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612dc1929190614cf6565b60405180910390a4612dd7848a8a86868a612e72565b612de5848a8a8a8a8a613051565b505050505050505050565b60606000600167ffffffffffffffff811115612e0f57612e0e61345b565b5b604051908082528060200260200182016040528015612e3d5781602001602082028036833780820191505090505b5090508281600081518110612e5557612e54614671565b5b60200260200101818152505080915050919050565b505050505050565b505050505050565b612e998473ffffffffffffffffffffffffffffffffffffffff16613228565b15613049578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612edf959493929190615085565b6020604051808303816000875af1925050508015612f1b57506040513d601f19601f82011682018060405250810190612f189190615102565b60015b612fc057612f2761513c565b806308c379a003612f835750612f3b61515e565b80612f465750612f85565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f7a9190613684565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb790615260565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303e906152f2565b60405180910390fd5b505b505050505050565b6130708473ffffffffffffffffffffffffffffffffffffffff16613228565b15613220578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b81526004016130b6959493929190615312565b6020604051808303816000875af19250505080156130f257506040513d601f19601f820116820180604052508101906130ef9190615102565b60015b613197576130fe61513c565b806308c379a00361315a575061311261515e565b8061311d575061315c565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131519190613684565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161318e90615260565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461321e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613215906152f2565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6040518060800160405280606081526020016000815260200160008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006132b282613287565b9050919050565b6132c2816132a7565b81146132cd57600080fd5b50565b6000813590506132df816132b9565b92915050565b6000819050919050565b6132f8816132e5565b811461330357600080fd5b50565b600081359050613315816132ef565b92915050565b600080604083850312156133325761333161327d565b5b6000613340858286016132d0565b925050602061335185828601613306565b9150509250929050565b613364816132e5565b82525050565b600060208201905061337f600083018461335b565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6133ba81613385565b81146133c557600080fd5b50565b6000813590506133d7816133b1565b92915050565b6000602082840312156133f3576133f261327d565b5b6000613401848285016133c8565b91505092915050565b60008115159050919050565b61341f8161340a565b82525050565b600060208201905061343a6000830184613416565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134938261344a565b810181811067ffffffffffffffff821117156134b2576134b161345b565b5b80604052505050565b60006134c5613273565b90506134d1828261348a565b919050565b600067ffffffffffffffff8211156134f1576134f061345b565b5b6134fa8261344a565b9050602081019050919050565b82818337600083830152505050565b6000613529613524846134d6565b6134bb565b90508281526020810184848401111561354557613544613445565b5b613550848285613507565b509392505050565b600082601f83011261356d5761356c613440565b5b813561357d848260208601613516565b91505092915050565b60006020828403121561359c5761359b61327d565b5b600082013567ffffffffffffffff8111156135ba576135b9613282565b5b6135c684828501613558565b91505092915050565b6000602082840312156135e5576135e461327d565b5b60006135f384828501613306565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561363657808201518184015260208101905061361b565b83811115613645576000848401525b50505050565b6000613656826135fc565b6136608185613607565b9350613670818560208601613618565b6136798161344a565b840191505092915050565b6000602082019050818103600083015261369e818461364b565b905092915050565b6000806000606084860312156136bf576136be61327d565b5b60006136cd868287016132d0565b93505060206136de86828701613306565b92505060406136ef86828701613306565b9150509250925092565b60006080820190508181036000830152613713818761364b565b9050613722602083018661335b565b61372f604083018561335b565b61373c606083018461335b565b95945050505050565b600067ffffffffffffffff8211156137605761375f61345b565b5b602082029050602081019050919050565b600080fd5b600061378961378484613745565b6134bb565b905080838252602082019050602084028301858111156137ac576137ab613771565b5b835b818110156137d557806137c18882613306565b8452602084019350506020810190506137ae565b5050509392505050565b600082601f8301126137f4576137f3613440565b5b8135613804848260208601613776565b91505092915050565b600067ffffffffffffffff8211156138285761382761345b565b5b6138318261344a565b9050602081019050919050565b600061385161384c8461380d565b6134bb565b90508281526020810184848401111561386d5761386c613445565b5b613878848285613507565b509392505050565b600082601f83011261389557613894613440565b5b81356138a584826020860161383e565b91505092915050565b600080600080600060a086880312156138ca576138c961327d565b5b60006138d8888289016132d0565b95505060206138e9888289016132d0565b945050604086013567ffffffffffffffff81111561390a57613909613282565b5b613916888289016137df565b935050606086013567ffffffffffffffff81111561393757613936613282565b5b613943888289016137df565b925050608086013567ffffffffffffffff81111561396457613963613282565b5b61397088828901613880565b9150509295509295909350565b600067ffffffffffffffff8211156139985761399761345b565b5b602082029050602081019050919050565b60006139bc6139b78461397d565b6134bb565b905080838252602082019050602084028301858111156139df576139de613771565b5b835b81811015613a0857806139f488826132d0565b8452602084019350506020810190506139e1565b5050509392505050565b600082601f830112613a2757613a26613440565b5b8135613a378482602086016139a9565b91505092915050565b60008060408385031215613a5757613a5661327d565b5b600083013567ffffffffffffffff811115613a7557613a74613282565b5b613a8185828601613a12565b925050602083013567ffffffffffffffff811115613aa257613aa1613282565b5b613aae858286016137df565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613aed816132e5565b82525050565b6000613aff8383613ae4565b60208301905092915050565b6000602082019050919050565b6000613b2382613ab8565b613b2d8185613ac3565b9350613b3883613ad4565b8060005b83811015613b69578151613b508882613af3565b9750613b5b83613b0b565b925050600181019050613b3c565b5085935050505092915050565b60006020820190508181036000830152613b908184613b18565b905092915050565b600060208284031215613bae57613bad61327d565b5b6000613bbc848285016132d0565b91505092915050565b600080600080600080600060e0888a031215613be457613be361327d565b5b6000613bf28a828b01613306565b9750506020613c038a828b01613306565b9650506040613c148a828b01613306565b9550506060613c258a828b016132d0565b9450506080613c368a828b01613306565b93505060a0613c478a828b01613306565b92505060c088013567ffffffffffffffff811115613c6857613c67613282565b5b613c748a828b01613880565b91505092959891949750929550565b613c8c8161340a565b8114613c9757600080fd5b50565b600081359050613ca981613c83565b92915050565b600060208284031215613cc557613cc461327d565b5b6000613cd384828501613c9a565b91505092915050565b600080600080600080600060e0888a031215613cfb57613cfa61327d565b5b6000613d098a828b01613306565b9750506020613d1a8a828b01613306565b9650506040613d2b8a828b01613306565b9550506060613d3c8a828b016132d0565b945050608088013567ffffffffffffffff811115613d5d57613d5c613282565b5b613d698a828b016137df565b93505060a088013567ffffffffffffffff811115613d8a57613d89613282565b5b613d968a828b016137df565b92505060c088013567ffffffffffffffff811115613db757613db6613282565b5b613dc38a828b01613880565b91505092959891949750929550565b600082825260208201905092915050565b6000613dee826135fc565b613df88185613dd2565b9350613e08818560208601613618565b613e118161344a565b840191505092915050565b60006080830160008301518482036000860152613e398282613de3565b9150506020830151613e4e6020860182613ae4565b506040830151613e616040860182613ae4565b506060830151613e746060860182613ae4565b508091505092915050565b60006020820190508181036000830152613e998184613e1c565b905092915050565b613eaa816132a7565b82525050565b6000602082019050613ec56000830184613ea1565b92915050565b60008060408385031215613ee257613ee161327d565b5b6000613ef085828601613306565b9250506020613f01858286016132d0565b9150509250929050565b60008060408385031215613f2257613f2161327d565b5b6000613f30858286016132d0565b9250506020613f4185828601613c9a565b9150509250929050565b600080600060608486031215613f6457613f6361327d565b5b6000613f7286828701613306565b9350506020613f83868287016132d0565b9250506040613f9486828701613c9a565b9150509250925092565b60008060408385031215613fb557613fb461327d565b5b6000613fc385828601613306565b9250506020613fd485828601613306565b9150509250929050565b60008060408385031215613ff557613ff461327d565b5b6000614003858286016132d0565b9250506020614014858286016132d0565b9150509250929050565b600080600080600060a0868803121561403a5761403961327d565b5b6000614048888289016132d0565b9550506020614059888289016132d0565b945050604061406a88828901613306565b935050606061407b88828901613306565b925050608086013567ffffffffffffffff81111561409c5761409b613282565b5b6140a888828901613880565b9150509295509295909350565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b6000614111602a83613607565b915061411c826140b5565b604082019050919050565b6000602082019050818103600083015261414081614104565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061418e57607f821691505b6020821081036141a1576141a0614147565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026142097fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826141cc565b61421386836141cc565b95508019841693508086168417925050509392505050565b6000819050919050565b600061425061424b614246846132e5565b61422b565b6132e5565b9050919050565b6000819050919050565b61426a83614235565b61427e61427682614257565b8484546141d9565b825550505050565b600090565b614293614286565b61429e818484614261565b505050565b5b818110156142c2576142b760008261428b565b6001810190506142a4565b5050565b601f821115614307576142d8816141a7565b6142e1846141bc565b810160208510156142f0578190505b6143046142fc856141bc565b8301826142a3565b50505b505050565b600082821c905092915050565b600061432a6000198460080261430c565b1980831691505092915050565b60006143438383614319565b9150826002028217905092915050565b61435c826135fc565b67ffffffffffffffff8111156143755761437461345b565b5b61437f8254614176565b61438a8282856142c6565b600060209050601f8311600181146143bd57600084156143ab578287015190505b6143b58582614337565b86555061441d565b601f1984166143cb866141a7565b60005b828110156143f3578489015182556001820191506020850194506020810190506143ce565b86831015614410578489015161440c601f891682614319565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b6000815461443d81614176565b6144478186614425565b945060018216600081146144625760018114614477576144aa565b60ff19831686528115158202860193506144aa565b614480856141a7565b60005b838110156144a257815481890152600182019150602081019050614483565b838801955050505b50505092915050565b60006144be826135fc565b6144c88185614425565b93506144d8818560208601613618565b80840191505092915050565b60006144f08285614430565b91506144fc82846144b3565b91508190509392505050565b600060808201905061451d6000830187613ea1565b61452a6020830186613ea1565b614537604083018561335b565b614544606083018461335b565b95945050505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b60006145a9602e83613607565b91506145b48261454d565b604082019050919050565b600060208201905081810360008301526145d88161459c565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061463b602983613607565b9150614646826145df565b604082019050919050565b6000602082019050818103600083015261466a8161462e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006146da826132e5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361470c5761470b6146a0565b5b600182019050919050565b6000614722826132e5565b915061472d836132e5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614762576147616146a0565b5b828201905092915050565b600060e082019050614782600083018a61335b565b61478f602083018961335b565b61479c604083018861335b565b6147a96060830187613ea1565b6147b66080830186613ea1565b6147c360a083018561335b565b6147d060c083018461335b565b98975050505050505050565b600060e0820190506147f1600083018a61335b565b6147fe602083018961335b565b61480b604083018861335b565b6148186060830187613ea1565b6148256080830186613ea1565b81810360a08301526148378185613b18565b905081810360c083015261484b8184613b18565b905098975050505050505050565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206e6f7220617070726f7665640000000000000000000000000000000000602082015250565b60006148b5602f83613607565b91506148c082614859565b604082019050919050565b600060208201905081810360008301526148e4816148a8565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614947602683613607565b9150614952826148eb565b604082019050919050565b600060208201905081810360008301526149768161493a565b9050919050565b7f43616e206e6f7420736574206d696e744c696d6974206c657373207468616e2060008201527f312e000000000000000000000000000000000000000000000000000000000000602082015250565b60006149d9602283613607565b91506149e48261497d565b604082019050919050565b60006020820190508181036000830152614a08816149cc565b9050919050565b7f43616e206e6f7420736574206d696e744c696d6974206d6f7265207468616e2060008201527f353535302e000000000000000000000000000000000000000000000000000000602082015250565b6000614a6b602583613607565b9150614a7682614a0f565b604082019050919050565b60006020820190508181036000830152614a9a81614a5e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614ad7602083613607565b9150614ae282614aa1565b602082019050919050565b60006020820190508181036000830152614b0681614aca565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b47826132e5565b9150614b52836132e5565b925082614b6257614b61614b0d565b5b828204905092915050565b6000614b78826132e5565b9150614b83836132e5565b925082821015614b9657614b956146a0565b5b828203905092915050565b6000614bac826132e5565b9150614bb7836132e5565b925082614bc757614bc6614b0d565b5b828206905092915050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614c2e602383613607565b9150614c3982614bd2565b604082019050919050565b60006020820190508181036000830152614c5d81614c21565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000614cc0602483613607565b9150614ccb82614c64565b604082019050919050565b60006020820190508181036000830152614cef81614cb3565b9050919050565b6000604082019050614d0b600083018561335b565b614d18602083018461335b565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000614d7b602883613607565b9150614d8682614d1f565b604082019050919050565b60006020820190508181036000830152614daa81614d6e565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000614e0d602583613607565b9150614e1882614db1565b604082019050919050565b60006020820190508181036000830152614e3c81614e00565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000614e9f602a83613607565b9150614eaa82614e43565b604082019050919050565b60006020820190508181036000830152614ece81614e92565b9050919050565b60006040820190508181036000830152614eef8185613b18565b90508181036020830152614f038184613b18565b90509392505050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614f68602183613607565b9150614f7382614f0c565b604082019050919050565b60006020820190508181036000830152614f9781614f5b565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000614ffa602983613607565b915061500582614f9e565b604082019050919050565b6000602082019050818103600083015261502981614fed565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061505782615030565b615061818561503b565b9350615071818560208601613618565b61507a8161344a565b840191505092915050565b600060a08201905061509a6000830188613ea1565b6150a76020830187613ea1565b81810360408301526150b98186613b18565b905081810360608301526150cd8185613b18565b905081810360808301526150e1818461504c565b90509695505050505050565b6000815190506150fc816133b1565b92915050565b6000602082840312156151185761511761327d565b5b6000615126848285016150ed565b91505092915050565b60008160e01c9050919050565b600060033d111561515b5760046000803e61515860005161512f565b90505b90565b600060443d106151eb57615170613273565b60043d036004823e80513d602482011167ffffffffffffffff821117156151985750506151eb565b808201805167ffffffffffffffff8111156151b657505050506151eb565b80602083010160043d0385018111156151d35750505050506151eb565b6151e28260200185018661348a565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061524a603483613607565b9150615255826151ee565b604082019050919050565b600060208201905081810360008301526152798161523d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006152dc602883613607565b91506152e782615280565b604082019050919050565b6000602082019050818103600083015261530b816152cf565b9050919050565b600060a0820190506153276000830188613ea1565b6153346020830187613ea1565b615341604083018661335b565b61534e606083018561335b565b8181036080830152615360818461504c565b9050969550505050505056fea26469706673582212203db40b1de38f48579c015d0ce0e22bc0d8bc83926da4bbd76004fa1e333fee8064736f6c634300080f0033

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.