ETH Price: $3,219.99 (-1.07%)
Gas: 1 Gwei

Token

 

Overview

Max Total Supply

0

Holders

298

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
0x551665FE9dd546699A2cf2c9e6be58044027b12D
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:
AchooPandemic

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Strings.sol";


contract AchooPandemic is ERC1155Supply, Ownable {
    using Strings for uint256;
    using SafeERC20 for IERC20;

    // Achoo tokens are NFTs with id's 0 to 9999
    uint256 public constant ACHOO_TOKEN_MAX_SUPPLY = 10000;
    uint256 public constant ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY = 200;
    uint256 public constant ACHOO_TOKEN_UNIT_PRICE = 0.07 ether;

    // payment related
    uint256 public ACHOO_TOKEN_UNIT_PRICE_WITH_APE = 18 ether;
    uint256 public ACHOO_TOKEN_UNIT_PRICE_WITH_CIG = 203240 ether;

    uint8 private MINT_WITH_TOKEN_ETH_ID = 0;
    uint8 private MINT_WITH_TOKEN_APE_ID = 1;
    uint8 private MINT_WITH_TOKEN_CIG_ID = 2;

    // Sneezes are FTs with id 11111
    uint256 public constant ACHOO_SNEEZE_TOKEN_ID = 11111;

    string private _baseURIExtended;
    bool public _metadataLocked = false;

    // superspreaders have a separate pool of id's
    uint256 private nextAchooSuperspreaderTokenId = 0; // 0-199 are superspreaders
    uint256 private nextAchooTokenId = ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY;

    // superspreader related
    bool public superspreaderMintActive = false;
    mapping(address => uint8) private _superspreaderAllowList;

    // sneeze drop related
    uint256 public sneezeDropAvailable = 0;
    uint256 public sneezeDropTokenCount = 0;

    // infected wallets related
    mapping(address => uint16) private _infectedWallets;
    uint16 public _numInfectedWalletsDistinct;

    // ERC20's we interact with (mainnet)
    address public constant ERC20APEContract = 0x4d224452801ACEd8B2F0aebE155379bb5D594381;
    address public constant ERC20CIGContract = 0xCB56b52316041A62B6b5D0583DcE4A8AE7a3C629;

    // ERC721's we interact with (mainnet)
    address public constant ERC721AVTKContract = 0x9575F8A18E367d90736A074dB5cACa2760811b93;

    constructor() ERC1155("") {
    }

    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        require(_metadataLocked == false, "Metadata is locked! no updates possible");
        _baseURIExtended = _newBaseURI;
    }

    function uri(uint256 tokenId) public view virtual override(ERC1155) returns (string memory) {
        return bytes(_baseURIExtended).length > 0 ? string(abi.encodePacked(_baseURIExtended, tokenId.toString())) : "";
    }

    function lockMetadata() external onlyOwner {
        _metadataLocked = true;
    }

    function updateTokenUnitPrices(uint256 APEUnitPrice, uint256 CIGUnitPrice) external onlyOwner {
        ACHOO_TOKEN_UNIT_PRICE_WITH_APE = APEUnitPrice;
        ACHOO_TOKEN_UNIT_PRICE_WITH_CIG = CIGUnitPrice;
    }

    function getTokenUnitPrice(uint8 tokenID) public view returns (uint256) {
        if (tokenID == MINT_WITH_TOKEN_ETH_ID) {
            return ACHOO_TOKEN_UNIT_PRICE;
        } else if (tokenID == MINT_WITH_TOKEN_APE_ID) {
            return ACHOO_TOKEN_UNIT_PRICE_WITH_APE;
        } else if (tokenID == MINT_WITH_TOKEN_CIG_ID) {
            return ACHOO_TOKEN_UNIT_PRICE_WITH_CIG;
        }

        return 0;
    }

    function getAchooTotalSupply() public view returns (uint256) {
        return nextAchooSuperspreaderTokenId + (nextAchooTokenId - ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY);
    }

    function getAchooSuperspreaderTotalSupply() public view returns (uint256) {
        return nextAchooSuperspreaderTokenId;
    }

    function getAchooRegularTotalSupply() public view returns (uint256) {
        return nextAchooTokenId - ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY;
    }

    // superspreader related logic
    function setSuperspreaderMintActive(bool _superspreaderMintActive) external onlyOwner {
        superspreaderMintActive = _superspreaderMintActive;
    }

    function setSuperspreaderAllowList(address[] calldata addresses, uint8 numAllowedToMint) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _superspreaderAllowList[addresses[i]] = numAllowedToMint;
        }
    }

    function getSuperspreaderEligibility() public view returns (uint8) {
        return _superspreaderAllowList[msg.sender];
    }

    function mintSuperspreader(uint8 numberOfTokens, uint8 mintWithTokenID) external payable {
        require(superspreaderMintActive, "Superspreader mint not active");
        require(numberOfTokens <= _superspreaderAllowList[msg.sender], "Exceeded max eligibility to purchase or not whitelisted");
        require(nextAchooSuperspreaderTokenId + numberOfTokens <= ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY, "Purchase would exceed max supply");

        if (mintWithTokenID == MINT_WITH_TOKEN_ETH_ID) { // ETH
            require(ACHOO_TOKEN_UNIT_PRICE * numberOfTokens <= msg.value, "Ether value sent is not enough");
        } else if (mintWithTokenID == MINT_WITH_TOKEN_APE_ID) { // APE
            IERC20(ERC20APEContract).safeTransferFrom(msg.sender, address(this), ACHOO_TOKEN_UNIT_PRICE_WITH_APE * numberOfTokens);
        } else if (mintWithTokenID == MINT_WITH_TOKEN_CIG_ID) { // CIG
            IERC20(ERC20CIGContract).safeTransferFrom(msg.sender, address(this), ACHOO_TOKEN_UNIT_PRICE_WITH_CIG * numberOfTokens);
        }

        _superspreaderAllowList[msg.sender] -= numberOfTokens;
        for (uint256 i = 0; i < numberOfTokens; i++) {
            _mintAchooSuperspreaderInternal(msg.sender);
        }
    }

    function mintSuperspreaderWithAVTK(uint8 tokenID) external {
        require(superspreaderMintActive, "Superspreader mint not active");
        require(1 <= _superspreaderAllowList[msg.sender], "Exceeded max eligibility to purchase or not whitelisted");
        require(nextAchooSuperspreaderTokenId + 1 <= ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY, "Purchase would exceed max supply");

        ERC721Burnable(ERC721AVTKContract).burn(tokenID);
        _superspreaderAllowList[msg.sender] -= 1;
        _mintAchooSuperspreaderInternal(msg.sender);
    }

    // pandemic mint logic
    function mintWithSneeze(uint8 numberOfTokens, uint8 mintWithTokenID) external payable {
        require(nextAchooTokenId + numberOfTokens <= ACHOO_TOKEN_MAX_SUPPLY, "Purchase would exceed max supply");
        require(balanceOf(msg.sender, ACHOO_SNEEZE_TOKEN_ID) >= numberOfTokens, "Insufficient amount of sneezes");

        if (mintWithTokenID == MINT_WITH_TOKEN_ETH_ID) { // ETH
            require(ACHOO_TOKEN_UNIT_PRICE * numberOfTokens <= msg.value, "Ether value sent is not enough");
        } else if (mintWithTokenID == MINT_WITH_TOKEN_APE_ID) { // APE
            IERC20(ERC20APEContract).safeTransferFrom(msg.sender, address(this), ACHOO_TOKEN_UNIT_PRICE_WITH_APE * numberOfTokens);
        } else if (mintWithTokenID == MINT_WITH_TOKEN_CIG_ID) { // CIG
            IERC20(ERC20CIGContract).safeTransferFrom(msg.sender, address(this), ACHOO_TOKEN_UNIT_PRICE_WITH_CIG * numberOfTokens);
        }

        // burn sneezes from account
        _burn(msg.sender, ACHOO_SNEEZE_TOKEN_ID, numberOfTokens);

        // mint the NFTs
        for (uint256 i = 0; i < numberOfTokens; i++) {
            _mintAchooInternal(msg.sender);
        }
    }

    function mintWithAVTK(uint8 tokenID) external {
        require(nextAchooTokenId + 1 <= ACHOO_TOKEN_MAX_SUPPLY, "Purchase would exceed max supply");
        require(balanceOf(msg.sender, ACHOO_SNEEZE_TOKEN_ID) >= 1, "Insufficient amount of sneezes");

        ERC721Burnable(ERC721AVTKContract).burn(tokenID);

        // burn sneezes from account
        _burn(msg.sender, ACHOO_SNEEZE_TOKEN_ID, 1);

        _mintAchooInternal(msg.sender);
    }

    function _mintAchooSuperspreaderInternal(address mintTo) internal {
        _mint(mintTo, nextAchooSuperspreaderTokenId, 1, "");
        _mintEligibleSneezes(mintTo, nextAchooSuperspreaderTokenId);
        _infectWallet(msg.sender);
        nextAchooSuperspreaderTokenId += 1;
    }

    function _mintAchooInternal(address mintTo) internal {
        _mint(mintTo, nextAchooTokenId, 1, "");
        _mintEligibleSneezes(mintTo, nextAchooTokenId);
        _infectWallet(msg.sender);
        nextAchooTokenId += 1;
    }

    function _mintEligibleSneezes(address mintTo, uint256 achooTokenId) internal {
        if (achooTokenId >= 0 && achooTokenId < ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY) {
            _mint(mintTo, ACHOO_SNEEZE_TOKEN_ID, 10, "");
        }
        else if (achooTokenId >= ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY && achooTokenId < 1000) {
            _mint(mintTo, ACHOO_SNEEZE_TOKEN_ID, 5, "");
        }
        else if (achooTokenId >= 1000 && achooTokenId < 3000) {
            _mint(mintTo, ACHOO_SNEEZE_TOKEN_ID, 3, "");
        }
        else if (achooTokenId >= 3000 && achooTokenId < 6000) {
            _mint(mintTo, ACHOO_SNEEZE_TOKEN_ID, 2, "");
        }
        else if (achooTokenId >= 6000 && achooTokenId < 10000) {
            _mint(mintTo, ACHOO_SNEEZE_TOKEN_ID, 1, "");
        }
    }

    // sneeze drop related
    function setSneezeDropAvailable(uint256 _sneezeDropAvailable) external onlyOwner {
        sneezeDropAvailable = _sneezeDropAvailable;
    }

    function mintSneezeDrop() external {
        require(sneezeDropAvailable > 0, "Sneeze drop not active yet");
        require(sneezeDropTokenCount < sneezeDropAvailable, "No available sneeze drop tokens at this time");

        _mint(msg.sender, ACHOO_SNEEZE_TOKEN_ID, 1, "");
        sneezeDropTokenCount += 1;
    }

    // infected wallets logic
    function _infectWallet(address wallet) internal {
        if (_infectedWallets[wallet] > 0) {
            return; // already infected
        }

        _infectedWallets[wallet] += 1;
        _numInfectedWalletsDistinct += 1;
    }

    function getNumInfectedWalletsDistinct() public view returns (uint16) {
        return _numInfectedWalletsDistinct;
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;

        // withdraw ETH
        if(balance > 0) {
            payable(msg.sender).transfer(balance);
        }

        // withdraw APE
        balance = IERC20(ERC20APEContract).balanceOf(address(this));
        if(balance > 0) {
            IERC20(ERC20APEContract).safeTransfer(msg.sender, balance);
        }

        // withdraw CIG
        balance = IERC20(ERC20CIGContract).balanceOf(address(this));
        if(balance > 0) {
            IERC20(ERC20CIGContract).safeTransfer(msg.sender, balance);
        }
    }

    // in case we need to feed the contract with eth
    receive() external payable { }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 19 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 4 of 19 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 19 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 19 : 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 8 of 19 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 13 of 19 : 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 14 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 15 of 19 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 16 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 17 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 18 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 19 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"ACHOO_SNEEZE_TOKEN_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACHOO_TOKEN_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACHOO_TOKEN_SUPERSPREADER_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACHOO_TOKEN_UNIT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACHOO_TOKEN_UNIT_PRICE_WITH_APE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACHOO_TOKEN_UNIT_PRICE_WITH_CIG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20APEContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20CIGContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC721AVTKContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_metadataLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_numInfectedWalletsDistinct","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAchooRegularTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAchooSuperspreaderTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAchooTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumInfectedWalletsDistinct","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSuperspreaderEligibility","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenID","type":"uint8"}],"name":"getTokenUnitPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintSneezeDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"uint8","name":"mintWithTokenID","type":"uint8"}],"name":"mintSuperspreader","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenID","type":"uint8"}],"name":"mintSuperspreaderWithAVTK","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"tokenID","type":"uint8"}],"name":"mintWithAVTK","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numberOfTokens","type":"uint8"},{"internalType":"uint8","name":"mintWithTokenID","type":"uint8"}],"name":"mintWithSneeze","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_sneezeDropAvailable","type":"uint256"}],"name":"setSneezeDropAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint8","name":"numAllowedToMint","type":"uint8"}],"name":"setSuperspreaderAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_superspreaderMintActive","type":"bool"}],"name":"setSuperspreaderMintActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sneezeDropAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sneezeDropTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"superspreaderMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"APEUnitPrice","type":"uint256"},{"internalType":"uint256","name":"CIGUnitPrice","type":"uint256"}],"name":"updateTokenUnitPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405267f9ccd8a1c5080000600555692b09a998145476a000006006556000600760006101000a81548160ff021916908360ff1602179055506001600760016101000a81548160ff021916908360ff1602179055506002600760026101000a81548160ff021916908360ff1602179055506000600960006101000a81548160ff0219169083151502179055506000600a5560c8600b556000600c60006101000a81548160ff0219169083151502179055506000600e556000600f55348015620000c957600080fd5b5060405180602001604052806000815250620000eb816200011260201b60201c565b506200010c620001006200012e60201b60201c565b6200013660201b60201c565b62000311565b80600290805190602001906200012a929190620001fc565b5050565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020a90620002db565b90600052602060002090601f0160209004810192826200022e57600085556200027a565b82601f106200024957805160ff19168380011785556200027a565b828001600101855582156200027a579182015b82811115620002795782518255916020019190600101906200025c565b5b5090506200028991906200028d565b5090565b5b80821115620002a85760008160009055506001016200028e565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002f457607f821691505b602082108114156200030b576200030a620002ac565b5b50919050565b615ff580620003216000396000f3fe6080604052600436106102755760003560e01c806381dab09d1161014f578063ce212ba4116100c1578063e985e9c51161007a578063e985e9c51461090c578063ecc8cea614610949578063f242432a14610974578063f2fde38b1461099d578063f5f8ea02146109c6578063f8df7801146109f15761027c565b8063ce212ba41461081b578063d49a9e0314610837578063d4ab0d2114610862578063d8239d941461088d578063e4e3e12e146108b6578063e95ff778146108e15761027c565b80639f27c045116101135780639f27c0451461070b578063a22cb46514610736578063ad979cde1461075f578063b7f6b69f1461078a578063bd85b039146107b3578063cd68d25a146107f05761027c565b806381dab09d14610659578063871c61f7146106755780638da5cb5b146106a05780639358d399146106cb578063989bdbb6146106f45761027c565b80634f558e79116101e85780636d47df39116101ac5780636d47df391461055b578063715018a61461058657806379f820641461059d5780637a1cf1f6146105c85780637a3cc8bd146105f1578063817ac99c1461062e5761027c565b80634f558e791461047457806350e6f32d146104b1578063546e5fee146104dc57806355f804b3146105075780635d9671f0146105305761027c565b806324f580661161023a57806324f580661461038c5780632eb2c2d6146103a35780633ccfd60b146103cc578063406f765c146103e35780634c484db11461040e5780634e1273f4146104375761027c565b8062fdd58e1461028157806301ffc9a7146102be5780630e89341c146102fb578063148a409e1461033857806318b0696c146103635761027c565b3661027c57005b600080fd5b34801561028d57600080fd5b506102a860048036038101906102a39190613e65565b610a1c565b6040516102b59190613eb4565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613f27565b610ae5565b6040516102f29190613f6f565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613f8a565b610bc7565b60405161032f9190614050565b60405180910390f35b34801561034457600080fd5b5061034d610c27565b60405161035a9190613eb4565b60405180910390f35b34801561036f57600080fd5b5061038a600480360381019061038591906140ab565b610c2d565b005b34801561039857600080fd5b506103a1610e60565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906142d5565b610f25565b005b3480156103d857600080fd5b506103e1610fc6565b005b3480156103ef57600080fd5b506103f861126b565b6040516104059190613eb4565b60405180910390f35b34801561041a57600080fd5b50610435600480360381019061043091906143a4565b61128e565b005b34801561044357600080fd5b5061045e600480360381019061045991906144a7565b61131c565b60405161046b91906145dd565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190613f8a565b611435565b6040516104a89190613f6f565b60405180910390f35b3480156104bd57600080fd5b506104c6611449565b6040516104d39190613eb4565b60405180910390f35b3480156104e857600080fd5b506104f161144f565b6040516104fe9190613eb4565b60405180910390f35b34801561051357600080fd5b5061052e600480360381019061052991906146a0565b611454565b005b34801561053c57600080fd5b50610545611540565b60405161055291906146f8565b60405180910390f35b34801561056757600080fd5b50610570611558565b60405161057d9190613eb4565b60405180910390f35b34801561059257600080fd5b5061059b611563565b005b3480156105a957600080fd5b506105b26115eb565b6040516105bf9190613eb4565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea919061473f565b6115f1565b005b3480156105fd57600080fd5b50610618600480360381019061061391906140ab565b61168a565b6040516106259190613eb4565b60405180910390f35b34801561063a57600080fd5b50610643611710565b6040516106509190614789565b60405180910390f35b610673600480360381019061066e91906147a4565b611728565b005b34801561068157600080fd5b5061068a61196b565b6040516106979190613f6f565b60405180910390f35b3480156106ac57600080fd5b506106b561197e565b6040516106c291906146f8565b60405180910390f35b3480156106d757600080fd5b506106f260048036038101906106ed9190613f8a565b6119a8565b005b34801561070057600080fd5b50610709611a2e565b005b34801561071757600080fd5b50610720611ac7565b60405161072d91906146f8565b60405180910390f35b34801561074257600080fd5b5061075d600480360381019061075891906147e4565b611adf565b005b34801561076b57600080fd5b50610774611af5565b6040516107819190613f6f565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac91906140ab565b611b08565b005b3480156107bf57600080fd5b506107da60048036038101906107d59190613f8a565b611c43565b6040516107e79190613eb4565b60405180910390f35b3480156107fc57600080fd5b50610805611c60565b6040516108129190614789565b60405180910390f35b610835600480360381019061083091906147a4565b611c74565b005b34801561084357600080fd5b5061084c611fac565b6040516108599190613eb4565b60405180910390f35b34801561086e57600080fd5b50610877611fb2565b6040516108849190613eb4565b60405180910390f35b34801561089957600080fd5b506108b460048036038101906108af919061487f565b611fc8565b005b3480156108c257600080fd5b506108cb6120ea565b6040516108d89190613eb4565b60405180910390f35b3480156108ed57600080fd5b506108f66120f0565b6040516109039190613eb4565b60405180910390f35b34801561091857600080fd5b50610933600480360381019061092e91906148df565b6120fa565b6040516109409190613f6f565b60405180910390f35b34801561095557600080fd5b5061095e61218e565b60405161096b9190613eb4565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061491f565b612194565b005b3480156109a957600080fd5b506109c460048036038101906109bf91906149b6565b612235565b005b3480156109d257600080fd5b506109db61232d565b6040516109e891906146f8565b60405180910390f35b3480156109fd57600080fd5b50610a06612345565b604051610a1391906149f2565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8490614a7f565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bb057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bc05750610bbf82612399565b5b9050919050565b6060600060088054610bd890614ace565b905011610bf45760405180602001604052806000815250610c20565b6008610bff83612403565b604051602001610c10929190614bd0565b6040516020818303038152906040525b9050919050565b612b6781565b600c60009054906101000a900460ff16610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7390614c40565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1660011115610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0690614cd2565b60405180910390fd5b60c86001600a54610d209190614d21565b1115610d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5890614dc3565b60405180910390fd5b739575f8a18e367d90736a074db5caca2760811b9373ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401610dae9190614e1e565b600060405180830381600087803b158015610dc857600080fd5b505af1158015610ddc573d6000803e3d6000fd5b505050506001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff16610e3c9190614e39565b92506101000a81548160ff021916908360ff160217905550610e5d33612564565b50565b6000600e5411610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90614eb9565b60405180910390fd5b600e54600f5410610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290614f4b565b60405180910390fd5b610f0933612b676001604051806020016040528060008152506125b4565b6001600f6000828254610f1c9190614d21565b92505081905550565b610f2d61274a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f735750610f7285610f6d61274a565b6120fa565b5b610fb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa990614fdd565b60405180910390fd5b610fbf8585858585612752565b5050505050565b610fce61274a565b73ffffffffffffffffffffffffffffffffffffffff16610fec61197e565b73ffffffffffffffffffffffffffffffffffffffff1614611042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103990615049565b60405180910390fd5b60004790506000811115611098573373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611096573d6000803e3d6000fd5b505b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110e591906146f8565b60206040518083038186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611135919061507e565b905060008111156111805761117f3382734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612a669092919063ffffffff16565b5b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111cd91906146f8565b60206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d919061507e565b9050600081111561126857611267338273cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612a669092919063ffffffff16565b5b50565b600060c8600b5461127c91906150ab565b600a546112899190614d21565b905090565b61129661274a565b73ffffffffffffffffffffffffffffffffffffffff166112b461197e565b73ffffffffffffffffffffffffffffffffffffffff161461130a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130190615049565b60405180910390fd5b81600581905550806006819055505050565b60608151835114611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990615151565b60405180910390fd5b6000835167ffffffffffffffff81111561137f5761137e6140dd565b5b6040519080825280602002602001820160405280156113ad5781602001602082028036833780820191505090505b50905060005b845181101561142a576113fa8582815181106113d2576113d1615171565b5b60200260200101518583815181106113ed576113ec615171565b5b6020026020010151610a1c565b82828151811061140d5761140c615171565b5b60200260200101818152505080611423906151a0565b90506113b3565b508091505092915050565b60008061144183611c43565b119050919050565b60065481565b60c881565b61145c61274a565b73ffffffffffffffffffffffffffffffffffffffff1661147a61197e565b73ffffffffffffffffffffffffffffffffffffffff16146114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615049565b60405180910390fd5b60001515600960009054906101000a900460ff16151514611526576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151d9061525b565b60405180910390fd5b806008908051906020019061153c929190613d1a565b5050565b734d224452801aced8b2f0aebe155379bb5d59438181565b66f8b0a10e47000081565b61156b61274a565b73ffffffffffffffffffffffffffffffffffffffff1661158961197e565b73ffffffffffffffffffffffffffffffffffffffff16146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690615049565b60405180910390fd5b6115e96000612aec565b565b600f5481565b6115f961274a565b73ffffffffffffffffffffffffffffffffffffffff1661161761197e565b73ffffffffffffffffffffffffffffffffffffffff161461166d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166490615049565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b6000600760009054906101000a900460ff1660ff168260ff1614156116b85766f8b0a10e470000905061170b565b600760019054906101000a900460ff1660ff168260ff1614156116df57600554905061170b565b600760029054906101000a900460ff1660ff168260ff16141561170657600654905061170b565b600090505b919050565b6000601160009054906101000a900461ffff16905090565b6127108260ff16600b5461173c9190614d21565b111561177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177490614dc3565b60405180910390fd5b8160ff1661178d33612b67610a1c565b10156117ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c5906152c7565b60405180910390fd5b600760009054906101000a900460ff1660ff168160ff16141561184857348260ff1666f8b0a10e47000061180291906152e7565b1115611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183a9061538d565b60405180910390fd5b61192c565b600760019054906101000a900460ff1660ff168160ff1614156118bb576118b633308460ff1660055461187b91906152e7565b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b61192b565b600760029054906101000a900460ff1660ff168160ff16141561192a5761192933308460ff166006546118ee91906152e7565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b5b5b5b61193c33612b678460ff16612c3b565b60005b8260ff168110156119665761195333612e58565b808061195e906151a0565b91505061193f565b505050565b600c60009054906101000a900460ff1681565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119b061274a565b73ffffffffffffffffffffffffffffffffffffffff166119ce61197e565b73ffffffffffffffffffffffffffffffffffffffff1614611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b90615049565b60405180910390fd5b80600e8190555050565b611a3661274a565b73ffffffffffffffffffffffffffffffffffffffff16611a5461197e565b73ffffffffffffffffffffffffffffffffffffffff1614611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa190615049565b60405180910390fd5b6001600960006101000a81548160ff021916908315150217905550565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62981565b611af1611aea61274a565b8383612ea8565b5050565b600960009054906101000a900460ff1681565b6127106001600b54611b1a9190614d21565b1115611b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5290614dc3565b60405180910390fd5b6001611b6933612b67610a1c565b1015611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba1906152c7565b60405180910390fd5b739575f8a18e367d90736a074db5caca2760811b9373ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401611bf79190614e1e565b600060405180830381600087803b158015611c1157600080fd5b505af1158015611c25573d6000803e3d6000fd5b50505050611c3733612b676001612c3b565b611c4033612e58565b50565b600060036000838152602001908152602001600020549050919050565b601160009054906101000a900461ffff1681565b600c60009054906101000a900460ff16611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90614c40565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168260ff161115611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614cd2565b60405180910390fd5b60c88260ff16600a54611d6b9190614d21565b1115611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390614dc3565b60405180910390fd5b600760009054906101000a900460ff1660ff168160ff161415611e2657348260ff1666f8b0a10e470000611de091906152e7565b1115611e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e189061538d565b60405180910390fd5b611f0a565b600760019054906101000a900460ff1660ff168160ff161415611e9957611e9433308460ff16600554611e5991906152e7565b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b611f09565b600760029054906101000a900460ff1660ff168160ff161415611f0857611f0733308460ff16600654611ecc91906152e7565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b5b5b5b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff16611f659190614e39565b92506101000a81548160ff021916908360ff16021790555060005b8260ff16811015611fa757611f9433612564565b8080611f9f906151a0565b915050611f80565b505050565b61271081565b600060c8600b54611fc391906150ab565b905090565b611fd061274a565b73ffffffffffffffffffffffffffffffffffffffff16611fee61197e565b73ffffffffffffffffffffffffffffffffffffffff1614612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b90615049565b60405180910390fd5b60005b838390508110156120e45781600d600086868581811061206a57612069615171565b5b905060200201602081019061207f91906149b6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806120dc906151a0565b915050612047565b50505050565b600e5481565b6000600a54905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60055481565b61219c61274a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806121e257506121e1856121dc61274a565b6120fa565b5b612221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122189061541f565b60405180910390fd5b61222e8585858585613015565b5050505050565b61223d61274a565b73ffffffffffffffffffffffffffffffffffffffff1661225b61197e565b73ffffffffffffffffffffffffffffffffffffffff16146122b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a890615049565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612321576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612318906154b1565b60405180910390fd5b61232a81612aec565b50565b739575f8a18e367d90736a074db5caca2760811b9381565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600082141561244b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061255f565b600082905060005b6000821461247d578080612466906151a0565b915050600a826124769190615500565b9150612453565b60008167ffffffffffffffff811115612499576124986140dd565b5b6040519080825280601f01601f1916602001820160405280156124cb5781602001600182028036833780820191505090505b5090505b60008514612558576001826124e491906150ab565b9150600a856124f39190615531565b60306124ff9190614d21565b60f81b81838151811061251557612514615171565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125519190615500565b94506124cf565b8093505050505b919050565b61258281600a546001604051806020016040528060008152506125b4565b61258e81600a54613297565b612597336133bf565b6001600a60008282546125aa9190614d21565b9250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261b906155d4565b60405180910390fd5b600061262e61274a565b905061264f81600087612640886134d3565b612649886134d3565b8761354d565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126ae9190614d21565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161272c9291906155f4565b60405180910390a4612743816000878787876136c7565b5050505050565b600033905090565b8151835114612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d9061568f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd90615721565b60405180910390fd5b600061281061274a565b905061282081878787878761354d565b60005b84518110156129d157600085828151811061284157612840615171565b5b6020026020010151905060008583815181106128605761285f615171565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f8906157b3565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129b69190614d21565b92505081905550505050806129ca906151a0565b9050612823565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612a489291906157d3565b60405180910390a4612a5e8187878787876138ae565b505050505050565b612ae78363a9059cbb60e01b8484604051602401612a8592919061580a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613a95565b505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c35846323b872dd60e01b858585604051602401612bd393929190615833565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613a95565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca2906158dc565b60405180910390fd5b6000612cb561274a565b9050612ce581856000612cc7876134d3565b612cd0876134d3565b6040518060200160405280600081525061354d565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015612d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d739061596e565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612e499291906155f4565b60405180910390a45050505050565b612e7681600b546001604051806020016040528060008152506125b4565b612e8281600b54613297565b612e8b336133bf565b6001600b6000828254612e9e9190614d21565b9250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90615a00565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130089190613f6f565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307c90615721565b60405180910390fd5b600061308f61274a565b90506130af8187876130a0886134d3565b6130a9886134d3565b8761354d565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015613146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313d906157b3565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131fb9190614d21565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516132789291906155f4565b60405180910390a461328e8288888888886136c7565b50505050505050565b600081101580156132a8575060c881105b156132d0576132cb82612b67600a604051806020016040528060008152506125b4565b6133bb565b60c881101580156132e257506103e881105b1561330a5761330582612b676005604051806020016040528060008152506125b4565b6133ba565b6103e8811015801561331d5750610bb881105b156133455761334082612b676003604051806020016040528060008152506125b4565b6133b9565b610bb88110158015613358575061177081105b156133805761337b82612b676002604051806020016040528060008152506125b4565b6133b8565b6117708110158015613393575061271081105b156133b7576133b682612b676001604051806020016040528060008152506125b4565b5b5b5b5b5b5050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff16111561341e576134d0565b6001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900461ffff1661347b9190615a20565b92506101000a81548161ffff021916908361ffff1602179055506001601160008282829054906101000a900461ffff166134b59190615a20565b92506101000a81548161ffff021916908361ffff1602179055505b50565b60606000600167ffffffffffffffff8111156134f2576134f16140dd565b5b6040519080825280602002602001820160405280156135205781602001602082028036833780820191505090505b509050828160008151811061353857613537615171565b5b60200260200101818152505080915050919050565b61355b868686868686613b5c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561360d5760005b835181101561360b578281815181106135af576135ae615171565b5b6020026020010151600360008684815181106135ce576135cd615171565b5b6020026020010151815260200190815260200160002060008282546135f39190614d21565b9250508190555080613604906151a0565b9050613593565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136bf5760005b83518110156136bd5782818151811061366157613660615171565b5b6020026020010151600360008684815181106136805761367f615171565b5b6020026020010151815260200190815260200160002060008282546136a591906150ab565b92505081905550806136b6906151a0565b9050613645565b505b505050505050565b6136e68473ffffffffffffffffffffffffffffffffffffffff16613b64565b156138a6578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161372c959493929190615aad565b602060405180830381600087803b15801561374657600080fd5b505af192505050801561377757506040513d601f19601f820116820180604052508101906137749190615b1c565b60015b61381d57613783615b56565b806308c379a014156137e05750613798615b78565b806137a357506137e2565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137d79190614050565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381490615c80565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90615d12565b60405180910390fd5b505b505050505050565b6138cd8473ffffffffffffffffffffffffffffffffffffffff16613b64565b15613a8d578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613913959493929190615d32565b602060405180830381600087803b15801561392d57600080fd5b505af192505050801561395e57506040513d601f19601f8201168201806040525081019061395b9190615b1c565b60015b613a045761396a615b56565b806308c379a014156139c7575061397f615b78565b8061398a57506139c9565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139be9190614050565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139fb90615c80565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8290615d12565b60405180910390fd5b505b505050505050565b6000613af7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613b879092919063ffffffff16565b9050600081511115613b575780806020019051810190613b179190615daf565b613b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4d90615e4e565b60405180910390fd5b5b505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060613b968484600085613b9f565b90509392505050565b606082471015613be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bdb90615ee0565b60405180910390fd5b613bed85613b64565b613c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2390615f4c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c559190615fa8565b60006040518083038185875af1925050503d8060008114613c92576040519150601f19603f3d011682016040523d82523d6000602084013e613c97565b606091505b5091509150613ca7828286613cb3565b92505050949350505050565b60608315613cc357829050613d13565b600083511115613cd65782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d0a9190614050565b60405180910390fd5b9392505050565b828054613d2690614ace565b90600052602060002090601f016020900481019282613d485760008555613d8f565b82601f10613d6157805160ff1916838001178555613d8f565b82800160010185558215613d8f579182015b82811115613d8e578251825591602001919060010190613d73565b5b509050613d9c9190613da0565b5090565b5b80821115613db9576000816000905550600101613da1565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613dfc82613dd1565b9050919050565b613e0c81613df1565b8114613e1757600080fd5b50565b600081359050613e2981613e03565b92915050565b6000819050919050565b613e4281613e2f565b8114613e4d57600080fd5b50565b600081359050613e5f81613e39565b92915050565b60008060408385031215613e7c57613e7b613dc7565b5b6000613e8a85828601613e1a565b9250506020613e9b85828601613e50565b9150509250929050565b613eae81613e2f565b82525050565b6000602082019050613ec96000830184613ea5565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f0481613ecf565b8114613f0f57600080fd5b50565b600081359050613f2181613efb565b92915050565b600060208284031215613f3d57613f3c613dc7565b5b6000613f4b84828501613f12565b91505092915050565b60008115159050919050565b613f6981613f54565b82525050565b6000602082019050613f846000830184613f60565b92915050565b600060208284031215613fa057613f9f613dc7565b5b6000613fae84828501613e50565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ff1578082015181840152602081019050613fd6565b83811115614000576000848401525b50505050565b6000601f19601f8301169050919050565b600061402282613fb7565b61402c8185613fc2565b935061403c818560208601613fd3565b61404581614006565b840191505092915050565b6000602082019050818103600083015261406a8184614017565b905092915050565b600060ff82169050919050565b61408881614072565b811461409357600080fd5b50565b6000813590506140a58161407f565b92915050565b6000602082840312156140c1576140c0613dc7565b5b60006140cf84828501614096565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61411582614006565b810181811067ffffffffffffffff82111715614134576141336140dd565b5b80604052505050565b6000614147613dbd565b9050614153828261410c565b919050565b600067ffffffffffffffff821115614173576141726140dd565b5b602082029050602081019050919050565b600080fd5b600061419c61419784614158565b61413d565b905080838252602082019050602084028301858111156141bf576141be614184565b5b835b818110156141e857806141d48882613e50565b8452602084019350506020810190506141c1565b5050509392505050565b600082601f830112614207576142066140d8565b5b8135614217848260208601614189565b91505092915050565b600080fd5b600067ffffffffffffffff8211156142405761423f6140dd565b5b61424982614006565b9050602081019050919050565b82818337600083830152505050565b600061427861427384614225565b61413d565b90508281526020810184848401111561429457614293614220565b5b61429f848285614256565b509392505050565b600082601f8301126142bc576142bb6140d8565b5b81356142cc848260208601614265565b91505092915050565b600080600080600060a086880312156142f1576142f0613dc7565b5b60006142ff88828901613e1a565b955050602061431088828901613e1a565b945050604086013567ffffffffffffffff81111561433157614330613dcc565b5b61433d888289016141f2565b935050606086013567ffffffffffffffff81111561435e5761435d613dcc565b5b61436a888289016141f2565b925050608086013567ffffffffffffffff81111561438b5761438a613dcc565b5b614397888289016142a7565b9150509295509295909350565b600080604083850312156143bb576143ba613dc7565b5b60006143c985828601613e50565b92505060206143da85828601613e50565b9150509250929050565b600067ffffffffffffffff8211156143ff576143fe6140dd565b5b602082029050602081019050919050565b600061442361441e846143e4565b61413d565b9050808382526020820190506020840283018581111561444657614445614184565b5b835b8181101561446f578061445b8882613e1a565b845260208401935050602081019050614448565b5050509392505050565b600082601f83011261448e5761448d6140d8565b5b813561449e848260208601614410565b91505092915050565b600080604083850312156144be576144bd613dc7565b5b600083013567ffffffffffffffff8111156144dc576144db613dcc565b5b6144e885828601614479565b925050602083013567ffffffffffffffff81111561450957614508613dcc565b5b614515858286016141f2565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61455481613e2f565b82525050565b6000614566838361454b565b60208301905092915050565b6000602082019050919050565b600061458a8261451f565b614594818561452a565b935061459f8361453b565b8060005b838110156145d05781516145b7888261455a565b97506145c283614572565b9250506001810190506145a3565b5085935050505092915050565b600060208201905081810360008301526145f7818461457f565b905092915050565b600067ffffffffffffffff82111561461a576146196140dd565b5b61462382614006565b9050602081019050919050565b600061464361463e846145ff565b61413d565b90508281526020810184848401111561465f5761465e614220565b5b61466a848285614256565b509392505050565b600082601f830112614687576146866140d8565b5b8135614697848260208601614630565b91505092915050565b6000602082840312156146b6576146b5613dc7565b5b600082013567ffffffffffffffff8111156146d4576146d3613dcc565b5b6146e084828501614672565b91505092915050565b6146f281613df1565b82525050565b600060208201905061470d60008301846146e9565b92915050565b61471c81613f54565b811461472757600080fd5b50565b60008135905061473981614713565b92915050565b60006020828403121561475557614754613dc7565b5b60006147638482850161472a565b91505092915050565b600061ffff82169050919050565b6147838161476c565b82525050565b600060208201905061479e600083018461477a565b92915050565b600080604083850312156147bb576147ba613dc7565b5b60006147c985828601614096565b92505060206147da85828601614096565b9150509250929050565b600080604083850312156147fb576147fa613dc7565b5b600061480985828601613e1a565b925050602061481a8582860161472a565b9150509250929050565b600080fd5b60008083601f84011261483f5761483e6140d8565b5b8235905067ffffffffffffffff81111561485c5761485b614824565b5b60208301915083602082028301111561487857614877614184565b5b9250929050565b60008060006040848603121561489857614897613dc7565b5b600084013567ffffffffffffffff8111156148b6576148b5613dcc565b5b6148c286828701614829565b935093505060206148d586828701614096565b9150509250925092565b600080604083850312156148f6576148f5613dc7565b5b600061490485828601613e1a565b925050602061491585828601613e1a565b9150509250929050565b600080600080600060a0868803121561493b5761493a613dc7565b5b600061494988828901613e1a565b955050602061495a88828901613e1a565b945050604061496b88828901613e50565b935050606061497c88828901613e50565b925050608086013567ffffffffffffffff81111561499d5761499c613dcc565b5b6149a9888289016142a7565b9150509295509295909350565b6000602082840312156149cc576149cb613dc7565b5b60006149da84828501613e1a565b91505092915050565b6149ec81614072565b82525050565b6000602082019050614a0760008301846149e3565b92915050565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614a69602b83613fc2565b9150614a7482614a0d565b604082019050919050565b60006020820190508181036000830152614a9881614a5c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ae657607f821691505b60208210811415614afa57614af9614a9f565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614b2d81614ace565b614b378186614b00565b94506001821660008114614b525760018114614b6357614b96565b60ff19831686528186019350614b96565b614b6c85614b0b565b60005b83811015614b8e57815481890152600182019150602081019050614b6f565b838801955050505b50505092915050565b6000614baa82613fb7565b614bb48185614b00565b9350614bc4818560208601613fd3565b80840191505092915050565b6000614bdc8285614b20565b9150614be88284614b9f565b91508190509392505050565b7f53757065727370726561646572206d696e74206e6f7420616374697665000000600082015250565b6000614c2a601d83613fc2565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f4578636565646564206d617820656c69676962696c69747920746f207075726360008201527f68617365206f72206e6f742077686974656c6973746564000000000000000000602082015250565b6000614cbc603783613fc2565b9150614cc782614c60565b604082019050919050565b60006020820190508181036000830152614ceb81614caf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d2c82613e2f565b9150614d3783613e2f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d6c57614d6b614cf2565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820737570706c79600082015250565b6000614dad602083613fc2565b9150614db882614d77565b602082019050919050565b60006020820190508181036000830152614ddc81614da0565b9050919050565b6000819050919050565b6000614e08614e03614dfe84614072565b614de3565b613e2f565b9050919050565b614e1881614ded565b82525050565b6000602082019050614e336000830184614e0f565b92915050565b6000614e4482614072565b9150614e4f83614072565b925082821015614e6257614e61614cf2565b5b828203905092915050565b7f536e65657a652064726f70206e6f742061637469766520796574000000000000600082015250565b6000614ea3601a83613fc2565b9150614eae82614e6d565b602082019050919050565b60006020820190508181036000830152614ed281614e96565b9050919050565b7f4e6f20617661696c61626c6520736e65657a652064726f7020746f6b656e732060008201527f617420746869732074696d650000000000000000000000000000000000000000602082015250565b6000614f35602c83613fc2565b9150614f4082614ed9565b604082019050919050565b60006020820190508181036000830152614f6481614f28565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614fc7603283613fc2565b9150614fd282614f6b565b604082019050919050565b60006020820190508181036000830152614ff681614fba565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615033602083613fc2565b915061503e82614ffd565b602082019050919050565b6000602082019050818103600083015261506281615026565b9050919050565b60008151905061507881613e39565b92915050565b60006020828403121561509457615093613dc7565b5b60006150a284828501615069565b91505092915050565b60006150b682613e2f565b91506150c183613e2f565b9250828210156150d4576150d3614cf2565b5b828203905092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061513b602983613fc2565b9150615146826150df565b604082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006151ab82613e2f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151de576151dd614cf2565b5b600182019050919050565b7f4d65746164617461206973206c6f636b656421206e6f2075706461746573207060008201527f6f737369626c6500000000000000000000000000000000000000000000000000602082015250565b6000615245602783613fc2565b9150615250826151e9565b604082019050919050565b6000602082019050818103600083015261527481615238565b9050919050565b7f496e73756666696369656e7420616d6f756e74206f6620736e65657a65730000600082015250565b60006152b1601e83613fc2565b91506152bc8261527b565b602082019050919050565b600060208201905081810360008301526152e0816152a4565b9050919050565b60006152f282613e2f565b91506152fd83613e2f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561533657615335614cf2565b5b828202905092915050565b7f45746865722076616c75652073656e74206973206e6f7420656e6f7567680000600082015250565b6000615377601e83613fc2565b915061538282615341565b602082019050919050565b600060208201905081810360008301526153a68161536a565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b6000615409602983613fc2565b9150615414826153ad565b604082019050919050565b60006020820190508181036000830152615438816153fc565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061549b602683613fc2565b91506154a68261543f565b604082019050919050565b600060208201905081810360008301526154ca8161548e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061550b82613e2f565b915061551683613e2f565b925082615526576155256154d1565b5b828204905092915050565b600061553c82613e2f565b915061554783613e2f565b925082615557576155566154d1565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155be602183613fc2565b91506155c982615562565b604082019050919050565b600060208201905081810360008301526155ed816155b1565b9050919050565b60006040820190506156096000830185613ea5565b6156166020830184613ea5565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615679602883613fc2565b91506156848261561d565b604082019050919050565b600060208201905081810360008301526156a88161566c565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061570b602583613fc2565b9150615716826156af565b604082019050919050565b6000602082019050818103600083015261573a816156fe565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061579d602a83613fc2565b91506157a882615741565b604082019050919050565b600060208201905081810360008301526157cc81615790565b9050919050565b600060408201905081810360008301526157ed818561457f565b90508181036020830152615801818461457f565b90509392505050565b600060408201905061581f60008301856146e9565b61582c6020830184613ea5565b9392505050565b600060608201905061584860008301866146e9565b61585560208301856146e9565b6158626040830184613ea5565b949350505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006158c6602383613fc2565b91506158d18261586a565b604082019050919050565b600060208201905081810360008301526158f5816158b9565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000615958602483613fc2565b9150615963826158fc565b604082019050919050565b600060208201905081810360008301526159878161594b565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006159ea602983613fc2565b91506159f58261598e565b604082019050919050565b60006020820190508181036000830152615a19816159dd565b9050919050565b6000615a2b8261476c565b9150615a368361476c565b92508261ffff03821115615a4d57615a4c614cf2565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b6000615a7f82615a58565b615a898185615a63565b9350615a99818560208601613fd3565b615aa281614006565b840191505092915050565b600060a082019050615ac260008301886146e9565b615acf60208301876146e9565b615adc6040830186613ea5565b615ae96060830185613ea5565b8181036080830152615afb8184615a74565b90509695505050505050565b600081519050615b1681613efb565b92915050565b600060208284031215615b3257615b31613dc7565b5b6000615b4084828501615b07565b91505092915050565b60008160e01c9050919050565b600060033d1115615b755760046000803e615b72600051615b49565b90505b90565b600060443d1015615b8857615c0b565b615b90613dbd565b60043d036004823e80513d602482011167ffffffffffffffff82111715615bb8575050615c0b565b808201805167ffffffffffffffff811115615bd65750505050615c0b565b80602083010160043d038501811115615bf3575050505050615c0b565b615c028260200185018661410c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615c6a603483613fc2565b9150615c7582615c0e565b604082019050919050565b60006020820190508181036000830152615c9981615c5d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615cfc602883613fc2565b9150615d0782615ca0565b604082019050919050565b60006020820190508181036000830152615d2b81615cef565b9050919050565b600060a082019050615d4760008301886146e9565b615d5460208301876146e9565b8181036040830152615d66818661457f565b90508181036060830152615d7a818561457f565b90508181036080830152615d8e8184615a74565b90509695505050505050565b600081519050615da981614713565b92915050565b600060208284031215615dc557615dc4613dc7565b5b6000615dd384828501615d9a565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615e38602a83613fc2565b9150615e4382615ddc565b604082019050919050565b60006020820190508181036000830152615e6781615e2b565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615eca602683613fc2565b9150615ed582615e6e565b604082019050919050565b60006020820190508181036000830152615ef981615ebd565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615f36601d83613fc2565b9150615f4182615f00565b602082019050919050565b60006020820190508181036000830152615f6581615f29565b9050919050565b600081905092915050565b6000615f8282615a58565b615f8c8185615f6c565b9350615f9c818560208601613fd3565b80840191505092915050565b6000615fb48284615f77565b91508190509291505056fea264697066735822122099836a3017b79cc0bebe931e6af07425bf3749fccc55228dede14ce0d8529ad864736f6c63430008090033

Deployed Bytecode

0x6080604052600436106102755760003560e01c806381dab09d1161014f578063ce212ba4116100c1578063e985e9c51161007a578063e985e9c51461090c578063ecc8cea614610949578063f242432a14610974578063f2fde38b1461099d578063f5f8ea02146109c6578063f8df7801146109f15761027c565b8063ce212ba41461081b578063d49a9e0314610837578063d4ab0d2114610862578063d8239d941461088d578063e4e3e12e146108b6578063e95ff778146108e15761027c565b80639f27c045116101135780639f27c0451461070b578063a22cb46514610736578063ad979cde1461075f578063b7f6b69f1461078a578063bd85b039146107b3578063cd68d25a146107f05761027c565b806381dab09d14610659578063871c61f7146106755780638da5cb5b146106a05780639358d399146106cb578063989bdbb6146106f45761027c565b80634f558e79116101e85780636d47df39116101ac5780636d47df391461055b578063715018a61461058657806379f820641461059d5780637a1cf1f6146105c85780637a3cc8bd146105f1578063817ac99c1461062e5761027c565b80634f558e791461047457806350e6f32d146104b1578063546e5fee146104dc57806355f804b3146105075780635d9671f0146105305761027c565b806324f580661161023a57806324f580661461038c5780632eb2c2d6146103a35780633ccfd60b146103cc578063406f765c146103e35780634c484db11461040e5780634e1273f4146104375761027c565b8062fdd58e1461028157806301ffc9a7146102be5780630e89341c146102fb578063148a409e1461033857806318b0696c146103635761027c565b3661027c57005b600080fd5b34801561028d57600080fd5b506102a860048036038101906102a39190613e65565b610a1c565b6040516102b59190613eb4565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613f27565b610ae5565b6040516102f29190613f6f565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613f8a565b610bc7565b60405161032f9190614050565b60405180910390f35b34801561034457600080fd5b5061034d610c27565b60405161035a9190613eb4565b60405180910390f35b34801561036f57600080fd5b5061038a600480360381019061038591906140ab565b610c2d565b005b34801561039857600080fd5b506103a1610e60565b005b3480156103af57600080fd5b506103ca60048036038101906103c591906142d5565b610f25565b005b3480156103d857600080fd5b506103e1610fc6565b005b3480156103ef57600080fd5b506103f861126b565b6040516104059190613eb4565b60405180910390f35b34801561041a57600080fd5b50610435600480360381019061043091906143a4565b61128e565b005b34801561044357600080fd5b5061045e600480360381019061045991906144a7565b61131c565b60405161046b91906145dd565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190613f8a565b611435565b6040516104a89190613f6f565b60405180910390f35b3480156104bd57600080fd5b506104c6611449565b6040516104d39190613eb4565b60405180910390f35b3480156104e857600080fd5b506104f161144f565b6040516104fe9190613eb4565b60405180910390f35b34801561051357600080fd5b5061052e600480360381019061052991906146a0565b611454565b005b34801561053c57600080fd5b50610545611540565b60405161055291906146f8565b60405180910390f35b34801561056757600080fd5b50610570611558565b60405161057d9190613eb4565b60405180910390f35b34801561059257600080fd5b5061059b611563565b005b3480156105a957600080fd5b506105b26115eb565b6040516105bf9190613eb4565b60405180910390f35b3480156105d457600080fd5b506105ef60048036038101906105ea919061473f565b6115f1565b005b3480156105fd57600080fd5b50610618600480360381019061061391906140ab565b61168a565b6040516106259190613eb4565b60405180910390f35b34801561063a57600080fd5b50610643611710565b6040516106509190614789565b60405180910390f35b610673600480360381019061066e91906147a4565b611728565b005b34801561068157600080fd5b5061068a61196b565b6040516106979190613f6f565b60405180910390f35b3480156106ac57600080fd5b506106b561197e565b6040516106c291906146f8565b60405180910390f35b3480156106d757600080fd5b506106f260048036038101906106ed9190613f8a565b6119a8565b005b34801561070057600080fd5b50610709611a2e565b005b34801561071757600080fd5b50610720611ac7565b60405161072d91906146f8565b60405180910390f35b34801561074257600080fd5b5061075d600480360381019061075891906147e4565b611adf565b005b34801561076b57600080fd5b50610774611af5565b6040516107819190613f6f565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac91906140ab565b611b08565b005b3480156107bf57600080fd5b506107da60048036038101906107d59190613f8a565b611c43565b6040516107e79190613eb4565b60405180910390f35b3480156107fc57600080fd5b50610805611c60565b6040516108129190614789565b60405180910390f35b610835600480360381019061083091906147a4565b611c74565b005b34801561084357600080fd5b5061084c611fac565b6040516108599190613eb4565b60405180910390f35b34801561086e57600080fd5b50610877611fb2565b6040516108849190613eb4565b60405180910390f35b34801561089957600080fd5b506108b460048036038101906108af919061487f565b611fc8565b005b3480156108c257600080fd5b506108cb6120ea565b6040516108d89190613eb4565b60405180910390f35b3480156108ed57600080fd5b506108f66120f0565b6040516109039190613eb4565b60405180910390f35b34801561091857600080fd5b50610933600480360381019061092e91906148df565b6120fa565b6040516109409190613f6f565b60405180910390f35b34801561095557600080fd5b5061095e61218e565b60405161096b9190613eb4565b60405180910390f35b34801561098057600080fd5b5061099b6004803603810190610996919061491f565b612194565b005b3480156109a957600080fd5b506109c460048036038101906109bf91906149b6565b612235565b005b3480156109d257600080fd5b506109db61232d565b6040516109e891906146f8565b60405180910390f35b3480156109fd57600080fd5b50610a06612345565b604051610a1391906149f2565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8490614a7f565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bb057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bc05750610bbf82612399565b5b9050919050565b6060600060088054610bd890614ace565b905011610bf45760405180602001604052806000815250610c20565b6008610bff83612403565b604051602001610c10929190614bd0565b6040516020818303038152906040525b9050919050565b612b6781565b600c60009054906101000a900460ff16610c7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7390614c40565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff1660011115610d0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0690614cd2565b60405180910390fd5b60c86001600a54610d209190614d21565b1115610d61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5890614dc3565b60405180910390fd5b739575f8a18e367d90736a074db5caca2760811b9373ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401610dae9190614e1e565b600060405180830381600087803b158015610dc857600080fd5b505af1158015610ddc573d6000803e3d6000fd5b505050506001600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff16610e3c9190614e39565b92506101000a81548160ff021916908360ff160217905550610e5d33612564565b50565b6000600e5411610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90614eb9565b60405180910390fd5b600e54600f5410610eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee290614f4b565b60405180910390fd5b610f0933612b676001604051806020016040528060008152506125b4565b6001600f6000828254610f1c9190614d21565b92505081905550565b610f2d61274a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610f735750610f7285610f6d61274a565b6120fa565b5b610fb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa990614fdd565b60405180910390fd5b610fbf8585858585612752565b5050505050565b610fce61274a565b73ffffffffffffffffffffffffffffffffffffffff16610fec61197e565b73ffffffffffffffffffffffffffffffffffffffff1614611042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103990615049565b60405180910390fd5b60004790506000811115611098573373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611096573d6000803e3d6000fd5b505b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110e591906146f8565b60206040518083038186803b1580156110fd57600080fd5b505afa158015611111573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611135919061507e565b905060008111156111805761117f3382734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612a669092919063ffffffff16565b5b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111cd91906146f8565b60206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d919061507e565b9050600081111561126857611267338273cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612a669092919063ffffffff16565b5b50565b600060c8600b5461127c91906150ab565b600a546112899190614d21565b905090565b61129661274a565b73ffffffffffffffffffffffffffffffffffffffff166112b461197e565b73ffffffffffffffffffffffffffffffffffffffff161461130a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130190615049565b60405180910390fd5b81600581905550806006819055505050565b60608151835114611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990615151565b60405180910390fd5b6000835167ffffffffffffffff81111561137f5761137e6140dd565b5b6040519080825280602002602001820160405280156113ad5781602001602082028036833780820191505090505b50905060005b845181101561142a576113fa8582815181106113d2576113d1615171565b5b60200260200101518583815181106113ed576113ec615171565b5b6020026020010151610a1c565b82828151811061140d5761140c615171565b5b60200260200101818152505080611423906151a0565b90506113b3565b508091505092915050565b60008061144183611c43565b119050919050565b60065481565b60c881565b61145c61274a565b73ffffffffffffffffffffffffffffffffffffffff1661147a61197e565b73ffffffffffffffffffffffffffffffffffffffff16146114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615049565b60405180910390fd5b60001515600960009054906101000a900460ff16151514611526576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151d9061525b565b60405180910390fd5b806008908051906020019061153c929190613d1a565b5050565b734d224452801aced8b2f0aebe155379bb5d59438181565b66f8b0a10e47000081565b61156b61274a565b73ffffffffffffffffffffffffffffffffffffffff1661158961197e565b73ffffffffffffffffffffffffffffffffffffffff16146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d690615049565b60405180910390fd5b6115e96000612aec565b565b600f5481565b6115f961274a565b73ffffffffffffffffffffffffffffffffffffffff1661161761197e565b73ffffffffffffffffffffffffffffffffffffffff161461166d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166490615049565b60405180910390fd5b80600c60006101000a81548160ff02191690831515021790555050565b6000600760009054906101000a900460ff1660ff168260ff1614156116b85766f8b0a10e470000905061170b565b600760019054906101000a900460ff1660ff168260ff1614156116df57600554905061170b565b600760029054906101000a900460ff1660ff168260ff16141561170657600654905061170b565b600090505b919050565b6000601160009054906101000a900461ffff16905090565b6127108260ff16600b5461173c9190614d21565b111561177d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177490614dc3565b60405180910390fd5b8160ff1661178d33612b67610a1c565b10156117ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c5906152c7565b60405180910390fd5b600760009054906101000a900460ff1660ff168160ff16141561184857348260ff1666f8b0a10e47000061180291906152e7565b1115611843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183a9061538d565b60405180910390fd5b61192c565b600760019054906101000a900460ff1660ff168160ff1614156118bb576118b633308460ff1660055461187b91906152e7565b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b61192b565b600760029054906101000a900460ff1660ff168160ff16141561192a5761192933308460ff166006546118ee91906152e7565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b5b5b5b61193c33612b678460ff16612c3b565b60005b8260ff168110156119665761195333612e58565b808061195e906151a0565b91505061193f565b505050565b600c60009054906101000a900460ff1681565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119b061274a565b73ffffffffffffffffffffffffffffffffffffffff166119ce61197e565b73ffffffffffffffffffffffffffffffffffffffff1614611a24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1b90615049565b60405180910390fd5b80600e8190555050565b611a3661274a565b73ffffffffffffffffffffffffffffffffffffffff16611a5461197e565b73ffffffffffffffffffffffffffffffffffffffff1614611aaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa190615049565b60405180910390fd5b6001600960006101000a81548160ff021916908315150217905550565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62981565b611af1611aea61274a565b8383612ea8565b5050565b600960009054906101000a900460ff1681565b6127106001600b54611b1a9190614d21565b1115611b5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5290614dc3565b60405180910390fd5b6001611b6933612b67610a1c565b1015611baa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba1906152c7565b60405180910390fd5b739575f8a18e367d90736a074db5caca2760811b9373ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401611bf79190614e1e565b600060405180830381600087803b158015611c1157600080fd5b505af1158015611c25573d6000803e3d6000fd5b50505050611c3733612b676001612c3b565b611c4033612e58565b50565b600060036000838152602001908152602001600020549050919050565b601160009054906101000a900461ffff1681565b600c60009054906101000a900460ff16611cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cba90614c40565b60405180910390fd5b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168260ff161115611d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4f90614cd2565b60405180910390fd5b60c88260ff16600a54611d6b9190614d21565b1115611dac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da390614dc3565b60405180910390fd5b600760009054906101000a900460ff1660ff168160ff161415611e2657348260ff1666f8b0a10e470000611de091906152e7565b1115611e21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e189061538d565b60405180910390fd5b611f0a565b600760019054906101000a900460ff1660ff168160ff161415611e9957611e9433308460ff16600554611e5991906152e7565b734d224452801aced8b2f0aebe155379bb5d59438173ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b611f09565b600760029054906101000a900460ff1660ff168160ff161415611f0857611f0733308460ff16600654611ecc91906152e7565b73cb56b52316041a62b6b5d0583dce4a8ae7a3c62973ffffffffffffffffffffffffffffffffffffffff16612bb2909392919063ffffffff16565b5b5b5b81600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff16611f659190614e39565b92506101000a81548160ff021916908360ff16021790555060005b8260ff16811015611fa757611f9433612564565b8080611f9f906151a0565b915050611f80565b505050565b61271081565b600060c8600b54611fc391906150ab565b905090565b611fd061274a565b73ffffffffffffffffffffffffffffffffffffffff16611fee61197e565b73ffffffffffffffffffffffffffffffffffffffff1614612044576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203b90615049565b60405180910390fd5b60005b838390508110156120e45781600d600086868581811061206a57612069615171565b5b905060200201602081019061207f91906149b6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806120dc906151a0565b915050612047565b50505050565b600e5481565b6000600a54905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60055481565b61219c61274a565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806121e257506121e1856121dc61274a565b6120fa565b5b612221576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122189061541f565b60405180910390fd5b61222e8585858585613015565b5050505050565b61223d61274a565b73ffffffffffffffffffffffffffffffffffffffff1661225b61197e565b73ffffffffffffffffffffffffffffffffffffffff16146122b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a890615049565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612321576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612318906154b1565b60405180910390fd5b61232a81612aec565b50565b739575f8a18e367d90736a074db5caca2760811b9381565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6060600082141561244b576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061255f565b600082905060005b6000821461247d578080612466906151a0565b915050600a826124769190615500565b9150612453565b60008167ffffffffffffffff811115612499576124986140dd565b5b6040519080825280601f01601f1916602001820160405280156124cb5781602001600182028036833780820191505090505b5090505b60008514612558576001826124e491906150ab565b9150600a856124f39190615531565b60306124ff9190614d21565b60f81b81838151811061251557612514615171565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125519190615500565b94506124cf565b8093505050505b919050565b61258281600a546001604051806020016040528060008152506125b4565b61258e81600a54613297565b612597336133bf565b6001600a60008282546125aa9190614d21565b9250508190555050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161261b906155d4565b60405180910390fd5b600061262e61274a565b905061264f81600087612640886134d3565b612649886134d3565b8761354d565b8260008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126ae9190614d21565b925050819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161272c9291906155f4565b60405180910390a4612743816000878787876136c7565b5050505050565b600033905090565b8151835114612796576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278d9061568f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd90615721565b60405180910390fd5b600061281061274a565b905061282081878787878761354d565b60005b84518110156129d157600085828151811061284157612840615171565b5b6020026020010151905060008583815181106128605761285f615171565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612901576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f8906157b3565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129b69190614d21565b92505081905550505050806129ca906151a0565b9050612823565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612a489291906157d3565b60405180910390a4612a5e8187878787876138ae565b505050505050565b612ae78363a9059cbb60e01b8484604051602401612a8592919061580a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613a95565b505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c35846323b872dd60e01b858585604051602401612bd393929190615833565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613a95565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca2906158dc565b60405180910390fd5b6000612cb561274a565b9050612ce581856000612cc7876134d3565b612cd0876134d3565b6040518060200160405280600081525061354d565b600080600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015612d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d739061596e565b60405180910390fd5b82810360008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051612e499291906155f4565b60405180910390a45050505050565b612e7681600b546001604051806020016040528060008152506125b4565b612e8281600b54613297565b612e8b336133bf565b6001600b6000828254612e9e9190614d21565b9250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0e90615a00565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516130089190613f6f565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613085576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307c90615721565b60405180910390fd5b600061308f61274a565b90506130af8187876130a0886134d3565b6130a9886134d3565b8761354d565b600080600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905083811015613146576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161313d906157b3565b60405180910390fd5b83810360008087815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508360008087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131fb9190614d21565b925050819055508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6288886040516132789291906155f4565b60405180910390a461328e8288888888886136c7565b50505050505050565b600081101580156132a8575060c881105b156132d0576132cb82612b67600a604051806020016040528060008152506125b4565b6133bb565b60c881101580156132e257506103e881105b1561330a5761330582612b676005604051806020016040528060008152506125b4565b6133ba565b6103e8811015801561331d5750610bb881105b156133455761334082612b676003604051806020016040528060008152506125b4565b6133b9565b610bb88110158015613358575061177081105b156133805761337b82612b676002604051806020016040528060008152506125b4565b6133b8565b6117708110158015613393575061271081105b156133b7576133b682612b676001604051806020016040528060008152506125b4565b5b5b5b5b5b5050565b6000601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff16111561341e576134d0565b6001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900461ffff1661347b9190615a20565b92506101000a81548161ffff021916908361ffff1602179055506001601160008282829054906101000a900461ffff166134b59190615a20565b92506101000a81548161ffff021916908361ffff1602179055505b50565b60606000600167ffffffffffffffff8111156134f2576134f16140dd565b5b6040519080825280602002602001820160405280156135205781602001602082028036833780820191505090505b509050828160008151811061353857613537615171565b5b60200260200101818152505080915050919050565b61355b868686868686613b5c565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561360d5760005b835181101561360b578281815181106135af576135ae615171565b5b6020026020010151600360008684815181106135ce576135cd615171565b5b6020026020010151815260200190815260200160002060008282546135f39190614d21565b9250508190555080613604906151a0565b9050613593565b505b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156136bf5760005b83518110156136bd5782818151811061366157613660615171565b5b6020026020010151600360008684815181106136805761367f615171565b5b6020026020010151815260200190815260200160002060008282546136a591906150ab565b92505081905550806136b6906151a0565b9050613645565b505b505050505050565b6136e68473ffffffffffffffffffffffffffffffffffffffff16613b64565b156138a6578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b815260040161372c959493929190615aad565b602060405180830381600087803b15801561374657600080fd5b505af192505050801561377757506040513d601f19601f820116820180604052508101906137749190615b1c565b60015b61381d57613783615b56565b806308c379a014156137e05750613798615b78565b806137a357506137e2565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137d79190614050565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381490615c80565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146138a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161389b90615d12565b60405180910390fd5b505b505050505050565b6138cd8473ffffffffffffffffffffffffffffffffffffffff16613b64565b15613a8d578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401613913959493929190615d32565b602060405180830381600087803b15801561392d57600080fd5b505af192505050801561395e57506040513d601f19601f8201168201806040525081019061395b9190615b1c565b60015b613a045761396a615b56565b806308c379a014156139c7575061397f615b78565b8061398a57506139c9565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139be9190614050565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139fb90615c80565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614613a8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8290615d12565b60405180910390fd5b505b505050505050565b6000613af7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613b879092919063ffffffff16565b9050600081511115613b575780806020019051810190613b179190615daf565b613b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4d90615e4e565b60405180910390fd5b5b505050565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060613b968484600085613b9f565b90509392505050565b606082471015613be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bdb90615ee0565b60405180910390fd5b613bed85613b64565b613c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c2390615f4c565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613c559190615fa8565b60006040518083038185875af1925050503d8060008114613c92576040519150601f19603f3d011682016040523d82523d6000602084013e613c97565b606091505b5091509150613ca7828286613cb3565b92505050949350505050565b60608315613cc357829050613d13565b600083511115613cd65782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d0a9190614050565b60405180910390fd5b9392505050565b828054613d2690614ace565b90600052602060002090601f016020900481019282613d485760008555613d8f565b82601f10613d6157805160ff1916838001178555613d8f565b82800160010185558215613d8f579182015b82811115613d8e578251825591602001919060010190613d73565b5b509050613d9c9190613da0565b5090565b5b80821115613db9576000816000905550600101613da1565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613dfc82613dd1565b9050919050565b613e0c81613df1565b8114613e1757600080fd5b50565b600081359050613e2981613e03565b92915050565b6000819050919050565b613e4281613e2f565b8114613e4d57600080fd5b50565b600081359050613e5f81613e39565b92915050565b60008060408385031215613e7c57613e7b613dc7565b5b6000613e8a85828601613e1a565b9250506020613e9b85828601613e50565b9150509250929050565b613eae81613e2f565b82525050565b6000602082019050613ec96000830184613ea5565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f0481613ecf565b8114613f0f57600080fd5b50565b600081359050613f2181613efb565b92915050565b600060208284031215613f3d57613f3c613dc7565b5b6000613f4b84828501613f12565b91505092915050565b60008115159050919050565b613f6981613f54565b82525050565b6000602082019050613f846000830184613f60565b92915050565b600060208284031215613fa057613f9f613dc7565b5b6000613fae84828501613e50565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ff1578082015181840152602081019050613fd6565b83811115614000576000848401525b50505050565b6000601f19601f8301169050919050565b600061402282613fb7565b61402c8185613fc2565b935061403c818560208601613fd3565b61404581614006565b840191505092915050565b6000602082019050818103600083015261406a8184614017565b905092915050565b600060ff82169050919050565b61408881614072565b811461409357600080fd5b50565b6000813590506140a58161407f565b92915050565b6000602082840312156140c1576140c0613dc7565b5b60006140cf84828501614096565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61411582614006565b810181811067ffffffffffffffff82111715614134576141336140dd565b5b80604052505050565b6000614147613dbd565b9050614153828261410c565b919050565b600067ffffffffffffffff821115614173576141726140dd565b5b602082029050602081019050919050565b600080fd5b600061419c61419784614158565b61413d565b905080838252602082019050602084028301858111156141bf576141be614184565b5b835b818110156141e857806141d48882613e50565b8452602084019350506020810190506141c1565b5050509392505050565b600082601f830112614207576142066140d8565b5b8135614217848260208601614189565b91505092915050565b600080fd5b600067ffffffffffffffff8211156142405761423f6140dd565b5b61424982614006565b9050602081019050919050565b82818337600083830152505050565b600061427861427384614225565b61413d565b90508281526020810184848401111561429457614293614220565b5b61429f848285614256565b509392505050565b600082601f8301126142bc576142bb6140d8565b5b81356142cc848260208601614265565b91505092915050565b600080600080600060a086880312156142f1576142f0613dc7565b5b60006142ff88828901613e1a565b955050602061431088828901613e1a565b945050604086013567ffffffffffffffff81111561433157614330613dcc565b5b61433d888289016141f2565b935050606086013567ffffffffffffffff81111561435e5761435d613dcc565b5b61436a888289016141f2565b925050608086013567ffffffffffffffff81111561438b5761438a613dcc565b5b614397888289016142a7565b9150509295509295909350565b600080604083850312156143bb576143ba613dc7565b5b60006143c985828601613e50565b92505060206143da85828601613e50565b9150509250929050565b600067ffffffffffffffff8211156143ff576143fe6140dd565b5b602082029050602081019050919050565b600061442361441e846143e4565b61413d565b9050808382526020820190506020840283018581111561444657614445614184565b5b835b8181101561446f578061445b8882613e1a565b845260208401935050602081019050614448565b5050509392505050565b600082601f83011261448e5761448d6140d8565b5b813561449e848260208601614410565b91505092915050565b600080604083850312156144be576144bd613dc7565b5b600083013567ffffffffffffffff8111156144dc576144db613dcc565b5b6144e885828601614479565b925050602083013567ffffffffffffffff81111561450957614508613dcc565b5b614515858286016141f2565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61455481613e2f565b82525050565b6000614566838361454b565b60208301905092915050565b6000602082019050919050565b600061458a8261451f565b614594818561452a565b935061459f8361453b565b8060005b838110156145d05781516145b7888261455a565b97506145c283614572565b9250506001810190506145a3565b5085935050505092915050565b600060208201905081810360008301526145f7818461457f565b905092915050565b600067ffffffffffffffff82111561461a576146196140dd565b5b61462382614006565b9050602081019050919050565b600061464361463e846145ff565b61413d565b90508281526020810184848401111561465f5761465e614220565b5b61466a848285614256565b509392505050565b600082601f830112614687576146866140d8565b5b8135614697848260208601614630565b91505092915050565b6000602082840312156146b6576146b5613dc7565b5b600082013567ffffffffffffffff8111156146d4576146d3613dcc565b5b6146e084828501614672565b91505092915050565b6146f281613df1565b82525050565b600060208201905061470d60008301846146e9565b92915050565b61471c81613f54565b811461472757600080fd5b50565b60008135905061473981614713565b92915050565b60006020828403121561475557614754613dc7565b5b60006147638482850161472a565b91505092915050565b600061ffff82169050919050565b6147838161476c565b82525050565b600060208201905061479e600083018461477a565b92915050565b600080604083850312156147bb576147ba613dc7565b5b60006147c985828601614096565b92505060206147da85828601614096565b9150509250929050565b600080604083850312156147fb576147fa613dc7565b5b600061480985828601613e1a565b925050602061481a8582860161472a565b9150509250929050565b600080fd5b60008083601f84011261483f5761483e6140d8565b5b8235905067ffffffffffffffff81111561485c5761485b614824565b5b60208301915083602082028301111561487857614877614184565b5b9250929050565b60008060006040848603121561489857614897613dc7565b5b600084013567ffffffffffffffff8111156148b6576148b5613dcc565b5b6148c286828701614829565b935093505060206148d586828701614096565b9150509250925092565b600080604083850312156148f6576148f5613dc7565b5b600061490485828601613e1a565b925050602061491585828601613e1a565b9150509250929050565b600080600080600060a0868803121561493b5761493a613dc7565b5b600061494988828901613e1a565b955050602061495a88828901613e1a565b945050604061496b88828901613e50565b935050606061497c88828901613e50565b925050608086013567ffffffffffffffff81111561499d5761499c613dcc565b5b6149a9888289016142a7565b9150509295509295909350565b6000602082840312156149cc576149cb613dc7565b5b60006149da84828501613e1a565b91505092915050565b6149ec81614072565b82525050565b6000602082019050614a0760008301846149e3565b92915050565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614a69602b83613fc2565b9150614a7482614a0d565b604082019050919050565b60006020820190508181036000830152614a9881614a5c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614ae657607f821691505b60208210811415614afa57614af9614a9f565b5b50919050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614b2d81614ace565b614b378186614b00565b94506001821660008114614b525760018114614b6357614b96565b60ff19831686528186019350614b96565b614b6c85614b0b565b60005b83811015614b8e57815481890152600182019150602081019050614b6f565b838801955050505b50505092915050565b6000614baa82613fb7565b614bb48185614b00565b9350614bc4818560208601613fd3565b80840191505092915050565b6000614bdc8285614b20565b9150614be88284614b9f565b91508190509392505050565b7f53757065727370726561646572206d696e74206e6f7420616374697665000000600082015250565b6000614c2a601d83613fc2565b9150614c3582614bf4565b602082019050919050565b60006020820190508181036000830152614c5981614c1d565b9050919050565b7f4578636565646564206d617820656c69676962696c69747920746f207075726360008201527f68617365206f72206e6f742077686974656c6973746564000000000000000000602082015250565b6000614cbc603783613fc2565b9150614cc782614c60565b604082019050919050565b60006020820190508181036000830152614ceb81614caf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d2c82613e2f565b9150614d3783613e2f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614d6c57614d6b614cf2565b5b828201905092915050565b7f507572636861736520776f756c6420657863656564206d617820737570706c79600082015250565b6000614dad602083613fc2565b9150614db882614d77565b602082019050919050565b60006020820190508181036000830152614ddc81614da0565b9050919050565b6000819050919050565b6000614e08614e03614dfe84614072565b614de3565b613e2f565b9050919050565b614e1881614ded565b82525050565b6000602082019050614e336000830184614e0f565b92915050565b6000614e4482614072565b9150614e4f83614072565b925082821015614e6257614e61614cf2565b5b828203905092915050565b7f536e65657a652064726f70206e6f742061637469766520796574000000000000600082015250565b6000614ea3601a83613fc2565b9150614eae82614e6d565b602082019050919050565b60006020820190508181036000830152614ed281614e96565b9050919050565b7f4e6f20617661696c61626c6520736e65657a652064726f7020746f6b656e732060008201527f617420746869732074696d650000000000000000000000000000000000000000602082015250565b6000614f35602c83613fc2565b9150614f4082614ed9565b604082019050919050565b60006020820190508181036000830152614f6481614f28565b9050919050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614fc7603283613fc2565b9150614fd282614f6b565b604082019050919050565b60006020820190508181036000830152614ff681614fba565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615033602083613fc2565b915061503e82614ffd565b602082019050919050565b6000602082019050818103600083015261506281615026565b9050919050565b60008151905061507881613e39565b92915050565b60006020828403121561509457615093613dc7565b5b60006150a284828501615069565b91505092915050565b60006150b682613e2f565b91506150c183613e2f565b9250828210156150d4576150d3614cf2565b5b828203905092915050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b600061513b602983613fc2565b9150615146826150df565b604082019050919050565b6000602082019050818103600083015261516a8161512e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006151ab82613e2f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151de576151dd614cf2565b5b600182019050919050565b7f4d65746164617461206973206c6f636b656421206e6f2075706461746573207060008201527f6f737369626c6500000000000000000000000000000000000000000000000000602082015250565b6000615245602783613fc2565b9150615250826151e9565b604082019050919050565b6000602082019050818103600083015261527481615238565b9050919050565b7f496e73756666696369656e7420616d6f756e74206f6620736e65657a65730000600082015250565b60006152b1601e83613fc2565b91506152bc8261527b565b602082019050919050565b600060208201905081810360008301526152e0816152a4565b9050919050565b60006152f282613e2f565b91506152fd83613e2f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561533657615335614cf2565b5b828202905092915050565b7f45746865722076616c75652073656e74206973206e6f7420656e6f7567680000600082015250565b6000615377601e83613fc2565b915061538282615341565b602082019050919050565b600060208201905081810360008301526153a68161536a565b9050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b6000615409602983613fc2565b9150615414826153ad565b604082019050919050565b60006020820190508181036000830152615438816153fc565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061549b602683613fc2565b91506154a68261543f565b604082019050919050565b600060208201905081810360008301526154ca8161548e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061550b82613e2f565b915061551683613e2f565b925082615526576155256154d1565b5b828204905092915050565b600061553c82613e2f565b915061554783613e2f565b925082615557576155566154d1565b5b828206905092915050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b60006155be602183613fc2565b91506155c982615562565b604082019050919050565b600060208201905081810360008301526155ed816155b1565b9050919050565b60006040820190506156096000830185613ea5565b6156166020830184613ea5565b9392505050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000615679602883613fc2565b91506156848261561d565b604082019050919050565b600060208201905081810360008301526156a88161566c565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061570b602583613fc2565b9150615716826156af565b604082019050919050565b6000602082019050818103600083015261573a816156fe565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b600061579d602a83613fc2565b91506157a882615741565b604082019050919050565b600060208201905081810360008301526157cc81615790565b9050919050565b600060408201905081810360008301526157ed818561457f565b90508181036020830152615801818461457f565b90509392505050565b600060408201905061581f60008301856146e9565b61582c6020830184613ea5565b9392505050565b600060608201905061584860008301866146e9565b61585560208301856146e9565b6158626040830184613ea5565b949350505050565b7f455243313135353a206275726e2066726f6d20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006158c6602383613fc2565b91506158d18261586a565b604082019050919050565b600060208201905081810360008301526158f5816158b9565b9050919050565b7f455243313135353a206275726e20616d6f756e7420657863656564732062616c60008201527f616e636500000000000000000000000000000000000000000000000000000000602082015250565b6000615958602483613fc2565b9150615963826158fc565b604082019050919050565b600060208201905081810360008301526159878161594b565b9050919050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b60006159ea602983613fc2565b91506159f58261598e565b604082019050919050565b60006020820190508181036000830152615a19816159dd565b9050919050565b6000615a2b8261476c565b9150615a368361476c565b92508261ffff03821115615a4d57615a4c614cf2565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b6000615a7f82615a58565b615a898185615a63565b9350615a99818560208601613fd3565b615aa281614006565b840191505092915050565b600060a082019050615ac260008301886146e9565b615acf60208301876146e9565b615adc6040830186613ea5565b615ae96060830185613ea5565b8181036080830152615afb8184615a74565b90509695505050505050565b600081519050615b1681613efb565b92915050565b600060208284031215615b3257615b31613dc7565b5b6000615b4084828501615b07565b91505092915050565b60008160e01c9050919050565b600060033d1115615b755760046000803e615b72600051615b49565b90505b90565b600060443d1015615b8857615c0b565b615b90613dbd565b60043d036004823e80513d602482011167ffffffffffffffff82111715615bb8575050615c0b565b808201805167ffffffffffffffff811115615bd65750505050615c0b565b80602083010160043d038501811115615bf3575050505050615c0b565b615c028260200185018661410c565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b6000615c6a603483613fc2565b9150615c7582615c0e565b604082019050919050565b60006020820190508181036000830152615c9981615c5d565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b6000615cfc602883613fc2565b9150615d0782615ca0565b604082019050919050565b60006020820190508181036000830152615d2b81615cef565b9050919050565b600060a082019050615d4760008301886146e9565b615d5460208301876146e9565b8181036040830152615d66818661457f565b90508181036060830152615d7a818561457f565b90508181036080830152615d8e8184615a74565b90509695505050505050565b600081519050615da981614713565b92915050565b600060208284031215615dc557615dc4613dc7565b5b6000615dd384828501615d9a565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000615e38602a83613fc2565b9150615e4382615ddc565b604082019050919050565b60006020820190508181036000830152615e6781615e2b565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615eca602683613fc2565b9150615ed582615e6e565b604082019050919050565b60006020820190508181036000830152615ef981615ebd565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615f36601d83613fc2565b9150615f4182615f00565b602082019050919050565b60006020820190508181036000830152615f6581615f29565b9050919050565b600081905092915050565b6000615f8282615a58565b615f8c8185615f6c565b9350615f9c818560208601613fd3565b80840191505092915050565b6000615fb48284615f77565b91508190509291505056fea264697066735822122099836a3017b79cc0bebe931e6af07425bf3749fccc55228dede14ce0d8529ad864736f6c63430008090033

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.