ETH Price: $2,609.80 (-0.44%)

Token

Voola ()
 

Overview

Max Total Supply

182

Holders

24

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
radawinter.eth
0x34c66b85711ec787a805828aa0dea7a04fb065fe
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:
Voola

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : Voola.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

contract Voola is ERC1155, Ownable, ReentrancyGuard, Pausable {
    uint256[] public supplies = [1000, 1000, 1000];
    uint256[] public minted = [0, 0, 0];
    uint256[] public nfts = [0, 1, 2];
    uint256[] public nfts3 = [0, 1];
    uint256[] public nfts2 = [1, 2];
    uint256[] public nfts1 = [0, 2];
    uint256 counter = 0;

    error NotAllowlisted();
    error MaxPerWalletExceeded();
    error PreSaleNotActive();
    error PublicSaleNotActive();
    error NoContracts();

    bytes32 public root;
    uint256 public price = 0.033 ether;
    uint256 public maxMintAmount = 5;
    bool public presaleActive;
    bool public publicSaleActive;
    address public constant LEDGER1 =
        0x1a0Fb8e5C1df8E8f5BdBF72DA21bfbfb6FdBF45A;
    address public constant LEDGER2 =
        0x0CA051175A0DEba6635Df8D6E2Cd8cEb8014Bda4;

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    mapping(address => uint256) public addressMintedBalance;

    constructor()
        ERC1155("ipfs://QmbFxXEysnGzejJMyXoNg1WjvxmXABjzpKAKSnqhbPuJKZ/{id}")
    {}

    modifier callerIsUser() {
        if (msg.sender != tx.origin) revert NoContracts();
        _;
    }

    function setURI(string memory newuri) public onlyOwner {
        _setURI(newuri);
    }

    function isValid(bytes32[] memory proof, bytes32 leaf)
        public
        view
        returns (bool)
    {
        return MerkleProof.verify(proof, root, leaf);
    }

    function randdomNumber(uint256 mod) public returns (uint256) {
        counter++;
        return (uint256(
            keccak256(
                abi.encodePacked(
                    block.timestamp,
                    block.difficulty,
                    msg.sender,
                    counter
                )
            )
        ) % mod);
    }

    function presaleMint(uint256 amount, bytes32[] memory proof)
        external
        payable
        callerIsUser
    {
        if (!presaleActive) revert PreSaleNotActive();
        if (!isValid(proof, keccak256(abi.encodePacked(msg.sender))))
            revert NotAllowlisted();
        uint256 supply = supplies[0] + supplies[1] + supplies[2];
        uint256 totalMint = minted[0] + minted[1] + minted[2];
        uint256 remain = supply - totalMint;
        require(remain >= amount, "Not enough nfts to mint");
        require(msg.value >= amount * price, "Not enough ether sent");
        if (addressMintedBalance[msg.sender] + amount > maxMintAmount)
            revert MaxPerWalletExceeded();

        for (uint256 i = 0; i < amount; i++) {
            uint256 id;
            if (
                minted[0] < supplies[0] &&
                minted[1] < supplies[1] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(3);
                _mint(msg.sender, nfts[id], 1, "");
                minted[nfts[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[2] == minted[2] &&
                minted[0] < supplies[0] &&
                minted[1] < supplies[1]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts3[id], 1, "");
                minted[nfts3[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[0] == minted[0] &&
                minted[1] < supplies[1] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts2[id], 1, "");
                minted[nfts2[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                minted[0] < supplies[0] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts1[id], 1, "");
                minted[nfts1[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                supplies[2] == minted[2] &&
                minted[0] < supplies[0]
            ) {
                _mint(msg.sender, nfts[0], 1, "");
                minted[0] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[0] == minted[0] &&
                supplies[2] == minted[2] &&
                minted[1] < supplies[1]
            ) {
                _mint(msg.sender, nfts[1], 1, "");
                minted[1] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                supplies[0] == minted[0] &&
                minted[2] < supplies[2]
            ) {
                _mint(msg.sender, nfts[2], 1, "");
                minted[2] += 1;
                addressMintedBalance[msg.sender] += 1;
            }
        }
    }

    function mint(uint256 amount) external payable callerIsUser {
        if (!publicSaleActive) revert PublicSaleNotActive();
        uint256 supply = supplies[0] + supplies[1] + supplies[2];
        uint256 totalMint = minted[0] + minted[1] + minted[2];
        uint256 remain = supply - totalMint;
        require(remain >= amount, "Not enough nfts to mint");
        require(msg.value >= amount * price, "Not enough ether sent");
        if (addressMintedBalance[msg.sender] + amount > maxMintAmount)
            revert MaxPerWalletExceeded();

        for (uint256 i = 0; i < amount; i++) {
            uint256 id;
            if (
                minted[0] < supplies[0] &&
                minted[1] < supplies[1] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(3);
                _mint(msg.sender, nfts[id], 1, "");
                minted[nfts[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[2] == minted[2] &&
                minted[0] < supplies[0] &&
                minted[1] < supplies[1]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts3[id], 1, "");
                minted[nfts3[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[0] == minted[0] &&
                minted[1] < supplies[1] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts2[id], 1, "");
                minted[nfts2[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                minted[0] < supplies[0] &&
                minted[2] < supplies[2]
            ) {
                id = randdomNumber(2);
                _mint(msg.sender, nfts1[id], 1, "");
                minted[nfts1[id]] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                supplies[2] == minted[2] &&
                minted[0] < supplies[0]
            ) {
                _mint(msg.sender, nfts[0], 1, "");
                minted[0] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[0] == minted[0] &&
                supplies[2] == minted[2] &&
                minted[1] < supplies[1]
            ) {
                _mint(msg.sender, nfts[1], 1, "");
                minted[1] += 1;
                addressMintedBalance[msg.sender] += 1;
            } else if (
                supplies[1] == minted[1] &&
                supplies[0] == minted[0] &&
                minted[2] < supplies[2]
            ) {
                _mint(msg.sender, nfts[2], 1, "");
                minted[2] += 1;
                addressMintedBalance[msg.sender] += 1;
            }
        }
    }

    function airDrop(
        address[] memory targets,
        uint256 id,
        uint256 amount
    ) external onlyOwner {
        require(
            minted[id] + amount * targets.length <= supplies[id],
            "Not enough supply"
        );
        for (uint256 i = 0; i < targets.length; i++) {
            _mint(targets[i], id, amount, "");
            minted[id] += amount;
        }
    }

    function setWhitelistMerkleRoot(bytes32 _root) external onlyOwner {
        root = _root;
    }

    function setMaxMintAmount(uint256 _maxMintAmount) external onlyOwner {
        maxMintAmount = _maxMintAmount;
    }

    function togglePublicSale() external onlyOwner {
        publicSaleActive = !publicSaleActive;
    }

    function togglePresale() external onlyOwner {
        presaleActive = !presaleActive;
    }

    function withdraw() external nonReentrant {
        require(
            msg.sender == LEDGER1 || msg.sender == LEDGER2,
            "Only Team can withdraw"
        );
        uint256 balance = address(this).balance;

        uint256 SLEDGER1 = ((balance * 95) / 100);
        uint256 SLEDGER2 = balance - SLEDGER1;
        (bool os1, ) = payable(LEDGER1).call{value: SLEDGER1}("");
        require(os1);
        (bool os2, ) = payable(LEDGER2).call{value: SLEDGER2}("");
        require(os2);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override whenNotPaused {
        super.safeTransferFrom(from, to, id, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override whenNotPaused {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

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

File 4 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MaxPerWalletExceeded","type":"error"},{"inputs":[],"name":"NoContracts","type":"error"},{"inputs":[],"name":"NotAllowlisted","type":"error"},{"inputs":[],"name":"PreSaleNotActive","type":"error"},{"inputs":[],"name":"PublicSaleNotActive","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"LEDGER1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEDGER2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfts1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfts2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfts3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mod","type":"uint256"}],"name":"randdomNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmount","type":"uint256"}],"name":"setMaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplies","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040526103e8608081815260a082905260c09190915262000027906006906003620001c4565b506040805160608101825260008082526020820181905291810191909152620000559060079060036200021a565b50604080516060810182526000815260016020820152600291810191909152620000849060089060036200021a565b50604080518082019091526000815260016020820152620000aa9060099060026200021a565b506040805180820190915260018152600260208201819052620000d091600a916200021a565b506040805180820190915260008152600260208201819052620000f691600b916200021a565b506000600c5566753d533d968000600e556005600f553480156200011957600080fd5b506040518060600160405280603a815260200162003d11603a91396200013f8162000160565b506200014b3362000172565b60016004556005805460ff19169055620003e5565b60026200016e828262000319565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000208579160200282015b8281111562000208578251829061ffff16905591602001919060010190620001e5565b50620002169291506200025d565b5090565b82805482825590600052602060002090810192821562000208579160200282015b8281111562000208578251829060ff169055916020019190600101906200023b565b5b808211156200021657600081556001016200025e565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200029f57607f821691505b602082108103620002c057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031457600081815260208120601f850160051c81016020861015620002ef5750805b601f850160051c820191505b818110156200031057828155600101620002fb565b5050505b505050565b81516001600160401b0381111562000335576200033562000274565b6200034d816200034684546200028a565b84620002c6565b602080601f8311600181146200038557600084156200036c5750858301515b600019600386901b1c1916600185901b17855562000310565b600085815260208120601f198616915b82811015620003b65788860151825594840194600190910190840162000395565b5085821015620003d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61391c80620003f56000396000f3fe60806040526004361061022e5760003560e01c80635c975abb1161012e578063bc8893b4116100ab578063e3e1e8ef1161006f578063e3e1e8ef14610673578063e985e9c514610686578063ebf0c717146106cf578063f242432a146106e5578063f2fde38b1461070557600080fd5b8063bc8893b4146105df578063bd32fb66146105fe578063cb7fbc5c1461061e578063d71263a11461063e578063e222c7f91461065e57600080fd5b80638da5cb5b116100f25780638da5cb5b14610558578063a035b1fe14610576578063a0712d681461058c578063a22cb4651461059f578063b8a20ed0146105bf57600080fd5b80635c975abb146104d6578063715018a6146104ee5780637dc0bf3f146105035780638456cb59146105235780638b7a44551461053857600080fd5b8063265aa621116101bc5780633ccfd60b116101805780633ccfd60b1461043d5780633f4ba83a146104525780634e1273f41461046757806353135ca014610494578063567d5926146104ae57600080fd5b8063265aa62114610388578063268ac3a6146103a857806326f1a1fd146103e85780632eb2c2d614610408578063343937431461042857600080fd5b8063088a4ed011610203578063088a4ed0146102d85780630e89341c146102f8578063185c1a921461032557806318cae26914610345578063239c70ae1461037257600080fd5b80625bbaed14610233578062fdd58e1461025557806301ffc9a71461028857806302fe5305146102b8575b600080fd5b34801561023f57600080fd5b5061025361024e366004612f13565b610725565b005b34801561026157600080fd5b50610275610270366004612f60565b610852565b6040519081526020015b60405180910390f35b34801561029457600080fd5b506102a86102a3366004612fa0565b6108e6565b604051901515815260200161027f565b3480156102c457600080fd5b506102536102d336600461301a565b610936565b3480156102e457600080fd5b506102536102f336600461306a565b61094a565b34801561030457600080fd5b5061031861031336600461306a565b610957565b60405161027f91906130c9565b34801561033157600080fd5b5061027561034036600461306a565b6109eb565b34801561035157600080fd5b506102756103603660046130dc565b60116020526000908152604090205481565b34801561037e57600080fd5b50610275600f5481565b34801561039457600080fd5b506102756103a336600461306a565b610a0c565b3480156103b457600080fd5b506103d0731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a81565b6040516001600160a01b03909116815260200161027f565b3480156103f457600080fd5b5061027561040336600461306a565b610a1c565b34801561041457600080fd5b5061025361042336600461317d565b610a2c565b34801561043457600080fd5b50610253610a48565b34801561044957600080fd5b50610253610a64565b34801561045e57600080fd5b50610253610bf4565b34801561047357600080fd5b50610487610482366004613226565b610c04565b60405161027f91906132c4565b3480156104a057600080fd5b506010546102a89060ff1681565b3480156104ba57600080fd5b506103d0730ca051175a0deba6635df8d6e2cd8ceb8014bda481565b3480156104e257600080fd5b5060055460ff166102a8565b3480156104fa57600080fd5b50610253610d2d565b34801561050f57600080fd5b5061027561051e36600461306a565b610d3f565b34801561052f57600080fd5b50610253610d4f565b34801561054457600080fd5b5061027561055336600461306a565b610d5f565b34801561056457600080fd5b506003546001600160a01b03166103d0565b34801561058257600080fd5b50610275600e5481565b61025361059a36600461306a565b610d6f565b3480156105ab57600080fd5b506102536105ba3660046132d7565b6117a4565b3480156105cb57600080fd5b506102a86105da366004613313565b6117b3565b3480156105eb57600080fd5b506010546102a890610100900460ff1681565b34801561060a57600080fd5b5061025361061936600461306a565b6117c9565b34801561062a57600080fd5b5061027561063936600461306a565b6117d6565b34801561064a57600080fd5b5061027561065936600461306a565b611851565b34801561066a57600080fd5b50610253611861565b610253610681366004613357565b611886565b34801561069257600080fd5b506102a86106a1366004613393565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106db57600080fd5b50610275600d5481565b3480156106f157600080fd5b506102536107003660046133c6565b6122f8565b34801561071157600080fd5b506102536107203660046130dc565b61230d565b61072d612383565b600682815481106107405761074061342a565b90600052602060002001548351826107589190613456565b6007848154811061076b5761076b61342a565b9060005260206000200154610780919061346d565b11156107c75760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b60448201526064015b60405180910390fd5b60005b835181101561084c576108078482815181106107e8576107e861342a565b60200260200101518484604051806020016040528060008152506123dd565b816007848154811061081b5761081b61342a565b906000526020600020016000828254610834919061346d565b9091555081905061084481613480565b9150506107ca565b50505050565b60006001600160a01b0383166108bd5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016107be565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061091757506001600160e01b031982166303a24d0760e21b145b806108e057506301ffc9a760e01b6001600160e01b03198316146108e0565b61093e612383565b610947816124f1565b50565b610952612383565b600f55565b60606002805461096690613499565b80601f016020809104026020016040519081016040528092919081815260200182805461099290613499565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b50505050509050919050565b600981815481106109fb57600080fd5b600091825260209091200154905081565b600881815481106109fb57600080fd5b600681815481106109fb57600080fd5b610a346124fd565b610a418585858585612543565b5050505050565b610a50612383565b6010805460ff19811660ff90911615179055565b610a6c612588565b33731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a1480610aa1575033730ca051175a0deba6635df8d6e2cd8ceb8014bda4145b610ae65760405162461bcd60e51b81526020600482015260166024820152754f6e6c79205465616d2063616e20776974686472617760501b60448201526064016107be565b4760006064610af683605f613456565b610b0091906134e9565b90506000610b0e82846134fd565b604051909150600090731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a9084908381818185875af1925050503d8060008114610b67576040519150601f19603f3d011682016040523d82523d6000602084013e610b6c565b606091505b5050905080610b7a57600080fd5b604051600090730ca051175a0deba6635df8d6e2cd8ceb8014bda49084908381818185875af1925050503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5050905080610be357600080fd5b5050505050610bf26001600455565b565b610bfc612383565b610bf26125e1565b60608151835114610c695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107be565b600083516001600160401b03811115610c8457610c84612e1a565b604051908082528060200260200182016040528015610cad578160200160208202803683370190505b50905060005b8451811015610d2557610cf8858281518110610cd157610cd161342a565b6020026020010151858381518110610ceb57610ceb61342a565b6020026020010151610852565b828281518110610d0a57610d0a61342a565b6020908102919091010152610d1e81613480565b9050610cb3565b509392505050565b610d35612383565b610bf26000612633565b600781815481106109fb57600080fd5b610d57612383565b610bf2612685565b600b81815481106109fb57600080fd5b333214610d8f5760405163875fdad760e01b815260040160405180910390fd5b601054610100900460ff16610db7576040516331f423c160e21b815260040160405180910390fd5b60006006600281548110610dcd57610dcd61342a565b90600052602060002001546006600181548110610dec57610dec61342a565b90600052602060002001546006600081548110610e0b57610e0b61342a565b9060005260206000200154610e20919061346d565b610e2a919061346d565b905060006007600281548110610e4257610e4261342a565b90600052602060002001546007600181548110610e6157610e6161342a565b90600052602060002001546007600081548110610e8057610e8061342a565b9060005260206000200154610e95919061346d565b610e9f919061346d565b90506000610ead82846134fd565b905083811015610ef95760405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da081b999d1cc81d1bc81b5a5b9d604a1b60448201526064016107be565b600e54610f069085613456565b341015610f4d5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107be565b600f5433600090815260116020526040902054610f6b90869061346d565b1115610f8a57604051637ab0312d60e11b815260040160405180910390fd5b60005b84811015610a415760006006600081548110610fab57610fab61342a565b90600052602060002001546007600081548110610fca57610fca61342a565b906000526020600020015410801561101d57506006600181548110610ff157610ff161342a565b906000526020600020015460076001815481106110105761101061342a565b9060005260206000200154105b8015611064575060066002815481106110385761103861342a565b906000526020600020015460076002815481106110575761105761342a565b9060005260206000200154105b156111295761107360036117d6565b90506110ae336008838154811061108c5761108c61342a565b90600052602060002001546001604051806020016040528060008152506123dd565b60016007600883815481106110c5576110c561342a565b9060005260206000200154815481106110e0576110e061342a565b9060005260206000200160008282546110f9919061346d565b909155505033600090815260116020526040812080546001929061111e90849061346d565b909155506117919050565b600760028154811061113d5761113d61342a565b9060005260206000200154600660028154811061115c5761115c61342a565b90600052602060002001541480156111af575060066000815481106111835761118361342a565b906000526020600020015460076000815481106111a2576111a261342a565b9060005260206000200154105b80156111f6575060066001815481106111ca576111ca61342a565b906000526020600020015460076001815481106111e9576111e961342a565b9060005260206000200154105b156112355761120560026117d6565b905061121e336009838154811061108c5761108c61342a565b60016007600983815481106110c5576110c561342a565b60076000815481106112495761124961342a565b906000526020600020015460066000815481106112685761126861342a565b90600052602060002001541480156112bb5750600660018154811061128f5761128f61342a565b906000526020600020015460076001815481106112ae576112ae61342a565b9060005260206000200154105b8015611302575060066002815481106112d6576112d661342a565b906000526020600020015460076002815481106112f5576112f561342a565b9060005260206000200154105b156113415761131160026117d6565b905061132a33600a838154811061108c5761108c61342a565b60016007600a83815481106110c5576110c561342a565b60076001815481106113555761135561342a565b906000526020600020015460066001815481106113745761137461342a565b90600052602060002001541480156113c75750600660008154811061139b5761139b61342a565b906000526020600020015460076000815481106113ba576113ba61342a565b9060005260206000200154105b801561140e575060066002815481106113e2576113e261342a565b906000526020600020015460076002815481106114015761140161342a565b9060005260206000200154105b1561144d5761141d60026117d6565b905061143633600b838154811061108c5761108c61342a565b60016007600b83815481106110c5576110c561342a565b60076001815481106114615761146161342a565b906000526020600020015460066001815481106114805761148061342a565b90600052602060002001541480156114d3575060076002815481106114a7576114a761342a565b906000526020600020015460066002815481106114c6576114c661342a565b9060005260206000200154145b801561151a575060066000815481106114ee576114ee61342a565b9060005260206000200154600760008154811061150d5761150d61342a565b9060005260206000200154105b1561154d5761153733600860008154811061108c5761108c61342a565b600160076000815481106110e0576110e061342a565b60076000815481106115615761156161342a565b906000526020600020015460066000815481106115805761158061342a565b90600052602060002001541480156115d3575060076002815481106115a7576115a761342a565b906000526020600020015460066002815481106115c6576115c661342a565b9060005260206000200154145b801561161a575060066001815481106115ee576115ee61342a565b9060005260206000200154600760018154811061160d5761160d61342a565b9060005260206000200154105b1561164d5761163733600860018154811061108c5761108c61342a565b600160076001815481106110e0576110e061342a565b60076001815481106116615761166161342a565b906000526020600020015460066001815481106116805761168061342a565b90600052602060002001541480156116d3575060076000815481106116a7576116a761342a565b906000526020600020015460066000815481106116c6576116c661342a565b9060005260206000200154145b801561171a575060066002815481106116ee576116ee61342a565b9060005260206000200154600760028154811061170d5761170d61342a565b9060005260206000200154105b156117915761173733600860028154811061108c5761108c61342a565b6001600760028154811061174d5761174d61342a565b906000526020600020016000828254611766919061346d565b909155505033600090815260116020526040812080546001929061178b90849061346d565b90915550505b508061179c81613480565b915050610f8d565b6117af3383836126c2565b5050565b60006117c283600d54846127a2565b9392505050565b6117d1612383565b600d55565b600c8054600091826117e783613480565b919050555081424433600c5460405160200161182e9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b6040516020818303038152906040528051906020012060001c6108e09190613510565b600a81815481106109fb57600080fd5b611869612383565b6010805461ff001981166101009182900460ff1615909102179055565b3332146118a65760405163875fdad760e01b815260040160405180910390fd5b60105460ff166118c9576040516371e1355f60e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152611908908290603401604051602081830303815290604052805190602001206117b3565b611925576040516306fb10a960e01b815260040160405180910390fd5b6000600660028154811061193b5761193b61342a565b9060005260206000200154600660018154811061195a5761195a61342a565b906000526020600020015460066000815481106119795761197961342a565b906000526020600020015461198e919061346d565b611998919061346d565b9050600060076002815481106119b0576119b061342a565b906000526020600020015460076001815481106119cf576119cf61342a565b906000526020600020015460076000815481106119ee576119ee61342a565b9060005260206000200154611a03919061346d565b611a0d919061346d565b90506000611a1b82846134fd565b905084811015611a675760405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da081b999d1cc81d1bc81b5a5b9d604a1b60448201526064016107be565b600e54611a749086613456565b341015611abb5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107be565b600f5433600090815260116020526040902054611ad990879061346d565b1115611af857604051637ab0312d60e11b815260040160405180910390fd5b60005b858110156122f05760006006600081548110611b1957611b1961342a565b90600052602060002001546007600081548110611b3857611b3861342a565b9060005260206000200154108015611b8b57506006600181548110611b5f57611b5f61342a565b90600052602060002001546007600181548110611b7e57611b7e61342a565b9060005260206000200154105b8015611bd257506006600281548110611ba657611ba661342a565b90600052602060002001546007600281548110611bc557611bc561342a565b9060005260206000200154105b15611c7557611be160036117d6565b9050611bfa336008838154811061108c5761108c61342a565b6001600760088381548110611c1157611c1161342a565b906000526020600020015481548110611c2c57611c2c61342a565b906000526020600020016000828254611c45919061346d565b9091555050336000908152601160205260408120805460019290611c6a90849061346d565b909155506122dd9050565b6007600281548110611c8957611c8961342a565b90600052602060002001546006600281548110611ca857611ca861342a565b9060005260206000200154148015611cfb57506006600081548110611ccf57611ccf61342a565b90600052602060002001546007600081548110611cee57611cee61342a565b9060005260206000200154105b8015611d4257506006600181548110611d1657611d1661342a565b90600052602060002001546007600181548110611d3557611d3561342a565b9060005260206000200154105b15611d8157611d5160026117d6565b9050611d6a336009838154811061108c5761108c61342a565b6001600760098381548110611c1157611c1161342a565b6007600081548110611d9557611d9561342a565b90600052602060002001546006600081548110611db457611db461342a565b9060005260206000200154148015611e0757506006600181548110611ddb57611ddb61342a565b90600052602060002001546007600181548110611dfa57611dfa61342a565b9060005260206000200154105b8015611e4e57506006600281548110611e2257611e2261342a565b90600052602060002001546007600281548110611e4157611e4161342a565b9060005260206000200154105b15611e8d57611e5d60026117d6565b9050611e7633600a838154811061108c5761108c61342a565b60016007600a8381548110611c1157611c1161342a565b6007600181548110611ea157611ea161342a565b90600052602060002001546006600181548110611ec057611ec061342a565b9060005260206000200154148015611f1357506006600081548110611ee757611ee761342a565b90600052602060002001546007600081548110611f0657611f0661342a565b9060005260206000200154105b8015611f5a57506006600281548110611f2e57611f2e61342a565b90600052602060002001546007600281548110611f4d57611f4d61342a565b9060005260206000200154105b15611f9957611f6960026117d6565b9050611f8233600b838154811061108c5761108c61342a565b60016007600b8381548110611c1157611c1161342a565b6007600181548110611fad57611fad61342a565b90600052602060002001546006600181548110611fcc57611fcc61342a565b906000526020600020015414801561201f57506007600281548110611ff357611ff361342a565b906000526020600020015460066002815481106120125761201261342a565b9060005260206000200154145b80156120665750600660008154811061203a5761203a61342a565b906000526020600020015460076000815481106120595761205961342a565b9060005260206000200154105b156120995761208333600860008154811061108c5761108c61342a565b60016007600081548110611c2c57611c2c61342a565b60076000815481106120ad576120ad61342a565b906000526020600020015460066000815481106120cc576120cc61342a565b906000526020600020015414801561211f575060076002815481106120f3576120f361342a565b906000526020600020015460066002815481106121125761211261342a565b9060005260206000200154145b80156121665750600660018154811061213a5761213a61342a565b906000526020600020015460076001815481106121595761215961342a565b9060005260206000200154105b156121995761218333600860018154811061108c5761108c61342a565b60016007600181548110611c2c57611c2c61342a565b60076001815481106121ad576121ad61342a565b906000526020600020015460066001815481106121cc576121cc61342a565b906000526020600020015414801561221f575060076000815481106121f3576121f361342a565b906000526020600020015460066000815481106122125761221261342a565b9060005260206000200154145b80156122665750600660028154811061223a5761223a61342a565b906000526020600020015460076002815481106122595761225961342a565b9060005260206000200154105b156122dd5761228333600860028154811061108c5761108c61342a565b600160076002815481106122995761229961342a565b9060005260206000200160008282546122b2919061346d565b90915550503360009081526011602052604081208054600192906122d790849061346d565b90915550505b50806122e881613480565b915050611afb565b505050505050565b6123006124fd565b610a4185858585856127b8565b612315612383565b6001600160a01b03811661237a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107be565b61094781612633565b6003546001600160a01b03163314610bf25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107be565b6001600160a01b03841661243d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107be565b336000612449856127fd565b90506000612456856127fd565b90506000868152602081815260408083206001600160a01b038b1684529091528120805487929061248890849061346d565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124e883600089898989612848565b50505050505050565b60026117af828261356f565b60055460ff1615610bf25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107be565b6001600160a01b03851633148061255f575061255f85336106a1565b61257b5760405162461bcd60e51b81526004016107be9061362e565b610a4185858585856129a3565b6002600454036125da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107be565b6002600455565b6125e9612b78565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61268d6124fd565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126163390565b816001600160a01b0316836001600160a01b0316036127355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107be565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826127af8584612bc1565b14949350505050565b6001600160a01b0385163314806127d457506127d485336106a1565b6127f05760405162461bcd60e51b81526004016107be9061362e565b610a418585858585612c06565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128375761283761342a565b602090810291909101015292915050565b6001600160a01b0384163b156122f05760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288c908990899088908890889060040161367c565b6020604051808303816000875af19250505080156128c7575060408051601f3d908101601f191682019092526128c4918101906136c1565b60015b612973576128d36136de565b806308c379a00361290c57506128e76136fa565b806128f2575061290e565b8060405162461bcd60e51b81526004016107be91906130c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107be565b6001600160e01b0319811663f23a6e6160e01b146124e85760405162461bcd60e51b81526004016107be90613783565b8151835114612a055760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107be565b6001600160a01b038416612a2b5760405162461bcd60e51b81526004016107be906137cb565b3360005b8451811015612b12576000858281518110612a4c57612a4c61342a565b602002602001015190506000858381518110612a6a57612a6a61342a565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612aba5760405162461bcd60e51b81526004016107be90613810565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612af790849061346d565b9250508190555050505080612b0b90613480565b9050612a2f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b6292919061385a565b60405180910390a46122f0818787878787612d30565b60055460ff16610bf25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107be565b600081815b8451811015610d2557612bf282868381518110612be557612be561342a565b6020026020010151612deb565b915080612bfe81613480565b915050612bc6565b6001600160a01b038416612c2c5760405162461bcd60e51b81526004016107be906137cb565b336000612c38856127fd565b90506000612c45856127fd565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612c885760405162461bcd60e51b81526004016107be90613810565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612cc590849061346d565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d25848a8a8a8a8a612848565b505050505050505050565b6001600160a01b0384163b156122f05760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d749089908990889088908890600401613888565b6020604051808303816000875af1925050508015612daf575060408051601f3d908101601f19168201909252612dac918101906136c1565b60015b612dbb576128d36136de565b6001600160e01b0319811663bc197c8160e01b146124e85760405162461bcd60e51b81526004016107be90613783565b6000818310612e075760008281526020849052604090206117c2565b60008381526020839052604090206117c2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612e5557612e55612e1a565b6040525050565b60006001600160401b03821115612e7557612e75612e1a565b5060051b60200190565b80356001600160a01b0381168114612e9657600080fd5b919050565b600082601f830112612eac57600080fd5b81356020612eb982612e5c565b604051612ec68282612e30565b83815260059390931b8501820192828101915086841115612ee657600080fd5b8286015b84811015612f0857612efb81612e7f565b8352918301918301612eea565b509695505050505050565b600080600060608486031215612f2857600080fd5b83356001600160401b03811115612f3e57600080fd5b612f4a86828701612e9b565b9660208601359650604090950135949350505050565b60008060408385031215612f7357600080fd5b612f7c83612e7f565b946020939093013593505050565b6001600160e01b03198116811461094757600080fd5b600060208284031215612fb257600080fd5b81356117c281612f8a565b60006001600160401b03831115612fd657612fd6612e1a565b604051612fed601f8501601f191660200182612e30565b80915083815284848401111561300257600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561302c57600080fd5b81356001600160401b0381111561304257600080fd5b8201601f8101841361305357600080fd5b61306284823560208401612fbd565b949350505050565b60006020828403121561307c57600080fd5b5035919050565b6000815180845260005b818110156130a95760208185018101518683018201520161308d565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117c26020830184613083565b6000602082840312156130ee57600080fd5b6117c282612e7f565b600082601f83011261310857600080fd5b8135602061311582612e5c565b6040516131228282612e30565b83815260059390931b850182019282810191508684111561314257600080fd5b8286015b84811015612f085780358352918301918301613146565b600082601f83011261316e57600080fd5b6117c283833560208501612fbd565b600080600080600060a0868803121561319557600080fd5b61319e86612e7f565b94506131ac60208701612e7f565b935060408601356001600160401b03808211156131c857600080fd5b6131d489838a016130f7565b945060608801359150808211156131ea57600080fd5b6131f689838a016130f7565b9350608088013591508082111561320c57600080fd5b506132198882890161315d565b9150509295509295909350565b6000806040838503121561323957600080fd5b82356001600160401b038082111561325057600080fd5b61325c86838701612e9b565b9350602085013591508082111561327257600080fd5b5061327f858286016130f7565b9150509250929050565b600081518084526020808501945080840160005b838110156132b95781518752958201959082019060010161329d565b509495945050505050565b6020815260006117c26020830184613289565b600080604083850312156132ea57600080fd5b6132f383612e7f565b91506020830135801515811461330857600080fd5b809150509250929050565b6000806040838503121561332657600080fd5b82356001600160401b0381111561333c57600080fd5b613348858286016130f7565b95602094909401359450505050565b6000806040838503121561336a57600080fd5b8235915060208301356001600160401b0381111561338757600080fd5b61327f858286016130f7565b600080604083850312156133a657600080fd5b6133af83612e7f565b91506133bd60208401612e7f565b90509250929050565b600080600080600060a086880312156133de57600080fd5b6133e786612e7f565b94506133f560208701612e7f565b9350604086013592506060860135915060808601356001600160401b0381111561341e57600080fd5b6132198882890161315d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108e0576108e0613440565b808201808211156108e0576108e0613440565b60006001820161349257613492613440565b5060010190565b600181811c908216806134ad57607f821691505b6020821081036134cd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b6000826134f8576134f86134d3565b500490565b818103818111156108e0576108e0613440565b60008261351f5761351f6134d3565b500690565b601f82111561356a57600081815260208120601f850160051c8101602086101561354b5750805b601f850160051c820191505b818110156122f057828155600101613557565b505050565b81516001600160401b0381111561358857613588612e1a565b61359c816135968454613499565b84613524565b602080601f8311600181146135d157600084156135b95750858301515b600019600386901b1c1916600185901b1785556122f0565b600085815260208120601f198616915b82811015613600578886015182559484019460019091019084016135e1565b508582101561361e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906136b690830184613083565b979650505050505050565b6000602082840312156136d357600080fd5b81516117c281612f8a565b600060033d11156136f75760046000803e5060005160e01c5b90565b600060443d10156137085790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561373757505050505090565b828501915081518181111561374f5750505050505090565b843d87010160208285010111156137695750505050505090565b61377860208286010187612e30565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061386d6040830185613289565b828103602084015261387f8185613289565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906138b490830186613289565b82810360608401526138c68186613289565b905082810360808401526138da8185613083565b9897505050505050505056fea2646970667358221220a402e1ac81a4da2aedce4c14b2d5e9ce3901a76dfe39f92fff5293401ea92b1764736f6c63430008110033697066733a2f2f516d624678584579736e477a656a4a4d79586f4e6731576a76786d5841426a7a704b414b536e71686250754a4b5a2f7b69647d

Deployed Bytecode

0x60806040526004361061022e5760003560e01c80635c975abb1161012e578063bc8893b4116100ab578063e3e1e8ef1161006f578063e3e1e8ef14610673578063e985e9c514610686578063ebf0c717146106cf578063f242432a146106e5578063f2fde38b1461070557600080fd5b8063bc8893b4146105df578063bd32fb66146105fe578063cb7fbc5c1461061e578063d71263a11461063e578063e222c7f91461065e57600080fd5b80638da5cb5b116100f25780638da5cb5b14610558578063a035b1fe14610576578063a0712d681461058c578063a22cb4651461059f578063b8a20ed0146105bf57600080fd5b80635c975abb146104d6578063715018a6146104ee5780637dc0bf3f146105035780638456cb59146105235780638b7a44551461053857600080fd5b8063265aa621116101bc5780633ccfd60b116101805780633ccfd60b1461043d5780633f4ba83a146104525780634e1273f41461046757806353135ca014610494578063567d5926146104ae57600080fd5b8063265aa62114610388578063268ac3a6146103a857806326f1a1fd146103e85780632eb2c2d614610408578063343937431461042857600080fd5b8063088a4ed011610203578063088a4ed0146102d85780630e89341c146102f8578063185c1a921461032557806318cae26914610345578063239c70ae1461037257600080fd5b80625bbaed14610233578062fdd58e1461025557806301ffc9a71461028857806302fe5305146102b8575b600080fd5b34801561023f57600080fd5b5061025361024e366004612f13565b610725565b005b34801561026157600080fd5b50610275610270366004612f60565b610852565b6040519081526020015b60405180910390f35b34801561029457600080fd5b506102a86102a3366004612fa0565b6108e6565b604051901515815260200161027f565b3480156102c457600080fd5b506102536102d336600461301a565b610936565b3480156102e457600080fd5b506102536102f336600461306a565b61094a565b34801561030457600080fd5b5061031861031336600461306a565b610957565b60405161027f91906130c9565b34801561033157600080fd5b5061027561034036600461306a565b6109eb565b34801561035157600080fd5b506102756103603660046130dc565b60116020526000908152604090205481565b34801561037e57600080fd5b50610275600f5481565b34801561039457600080fd5b506102756103a336600461306a565b610a0c565b3480156103b457600080fd5b506103d0731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a81565b6040516001600160a01b03909116815260200161027f565b3480156103f457600080fd5b5061027561040336600461306a565b610a1c565b34801561041457600080fd5b5061025361042336600461317d565b610a2c565b34801561043457600080fd5b50610253610a48565b34801561044957600080fd5b50610253610a64565b34801561045e57600080fd5b50610253610bf4565b34801561047357600080fd5b50610487610482366004613226565b610c04565b60405161027f91906132c4565b3480156104a057600080fd5b506010546102a89060ff1681565b3480156104ba57600080fd5b506103d0730ca051175a0deba6635df8d6e2cd8ceb8014bda481565b3480156104e257600080fd5b5060055460ff166102a8565b3480156104fa57600080fd5b50610253610d2d565b34801561050f57600080fd5b5061027561051e36600461306a565b610d3f565b34801561052f57600080fd5b50610253610d4f565b34801561054457600080fd5b5061027561055336600461306a565b610d5f565b34801561056457600080fd5b506003546001600160a01b03166103d0565b34801561058257600080fd5b50610275600e5481565b61025361059a36600461306a565b610d6f565b3480156105ab57600080fd5b506102536105ba3660046132d7565b6117a4565b3480156105cb57600080fd5b506102a86105da366004613313565b6117b3565b3480156105eb57600080fd5b506010546102a890610100900460ff1681565b34801561060a57600080fd5b5061025361061936600461306a565b6117c9565b34801561062a57600080fd5b5061027561063936600461306a565b6117d6565b34801561064a57600080fd5b5061027561065936600461306a565b611851565b34801561066a57600080fd5b50610253611861565b610253610681366004613357565b611886565b34801561069257600080fd5b506102a86106a1366004613393565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156106db57600080fd5b50610275600d5481565b3480156106f157600080fd5b506102536107003660046133c6565b6122f8565b34801561071157600080fd5b506102536107203660046130dc565b61230d565b61072d612383565b600682815481106107405761074061342a565b90600052602060002001548351826107589190613456565b6007848154811061076b5761076b61342a565b9060005260206000200154610780919061346d565b11156107c75760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b60448201526064015b60405180910390fd5b60005b835181101561084c576108078482815181106107e8576107e861342a565b60200260200101518484604051806020016040528060008152506123dd565b816007848154811061081b5761081b61342a565b906000526020600020016000828254610834919061346d565b9091555081905061084481613480565b9150506107ca565b50505050565b60006001600160a01b0383166108bd5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084016107be565b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061091757506001600160e01b031982166303a24d0760e21b145b806108e057506301ffc9a760e01b6001600160e01b03198316146108e0565b61093e612383565b610947816124f1565b50565b610952612383565b600f55565b60606002805461096690613499565b80601f016020809104026020016040519081016040528092919081815260200182805461099290613499565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b50505050509050919050565b600981815481106109fb57600080fd5b600091825260209091200154905081565b600881815481106109fb57600080fd5b600681815481106109fb57600080fd5b610a346124fd565b610a418585858585612543565b5050505050565b610a50612383565b6010805460ff19811660ff90911615179055565b610a6c612588565b33731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a1480610aa1575033730ca051175a0deba6635df8d6e2cd8ceb8014bda4145b610ae65760405162461bcd60e51b81526020600482015260166024820152754f6e6c79205465616d2063616e20776974686472617760501b60448201526064016107be565b4760006064610af683605f613456565b610b0091906134e9565b90506000610b0e82846134fd565b604051909150600090731a0fb8e5c1df8e8f5bdbf72da21bfbfb6fdbf45a9084908381818185875af1925050503d8060008114610b67576040519150601f19603f3d011682016040523d82523d6000602084013e610b6c565b606091505b5050905080610b7a57600080fd5b604051600090730ca051175a0deba6635df8d6e2cd8ceb8014bda49084908381818185875af1925050503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5050905080610be357600080fd5b5050505050610bf26001600455565b565b610bfc612383565b610bf26125e1565b60608151835114610c695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016107be565b600083516001600160401b03811115610c8457610c84612e1a565b604051908082528060200260200182016040528015610cad578160200160208202803683370190505b50905060005b8451811015610d2557610cf8858281518110610cd157610cd161342a565b6020026020010151858381518110610ceb57610ceb61342a565b6020026020010151610852565b828281518110610d0a57610d0a61342a565b6020908102919091010152610d1e81613480565b9050610cb3565b509392505050565b610d35612383565b610bf26000612633565b600781815481106109fb57600080fd5b610d57612383565b610bf2612685565b600b81815481106109fb57600080fd5b333214610d8f5760405163875fdad760e01b815260040160405180910390fd5b601054610100900460ff16610db7576040516331f423c160e21b815260040160405180910390fd5b60006006600281548110610dcd57610dcd61342a565b90600052602060002001546006600181548110610dec57610dec61342a565b90600052602060002001546006600081548110610e0b57610e0b61342a565b9060005260206000200154610e20919061346d565b610e2a919061346d565b905060006007600281548110610e4257610e4261342a565b90600052602060002001546007600181548110610e6157610e6161342a565b90600052602060002001546007600081548110610e8057610e8061342a565b9060005260206000200154610e95919061346d565b610e9f919061346d565b90506000610ead82846134fd565b905083811015610ef95760405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da081b999d1cc81d1bc81b5a5b9d604a1b60448201526064016107be565b600e54610f069085613456565b341015610f4d5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107be565b600f5433600090815260116020526040902054610f6b90869061346d565b1115610f8a57604051637ab0312d60e11b815260040160405180910390fd5b60005b84811015610a415760006006600081548110610fab57610fab61342a565b90600052602060002001546007600081548110610fca57610fca61342a565b906000526020600020015410801561101d57506006600181548110610ff157610ff161342a565b906000526020600020015460076001815481106110105761101061342a565b9060005260206000200154105b8015611064575060066002815481106110385761103861342a565b906000526020600020015460076002815481106110575761105761342a565b9060005260206000200154105b156111295761107360036117d6565b90506110ae336008838154811061108c5761108c61342a565b90600052602060002001546001604051806020016040528060008152506123dd565b60016007600883815481106110c5576110c561342a565b9060005260206000200154815481106110e0576110e061342a565b9060005260206000200160008282546110f9919061346d565b909155505033600090815260116020526040812080546001929061111e90849061346d565b909155506117919050565b600760028154811061113d5761113d61342a565b9060005260206000200154600660028154811061115c5761115c61342a565b90600052602060002001541480156111af575060066000815481106111835761118361342a565b906000526020600020015460076000815481106111a2576111a261342a565b9060005260206000200154105b80156111f6575060066001815481106111ca576111ca61342a565b906000526020600020015460076001815481106111e9576111e961342a565b9060005260206000200154105b156112355761120560026117d6565b905061121e336009838154811061108c5761108c61342a565b60016007600983815481106110c5576110c561342a565b60076000815481106112495761124961342a565b906000526020600020015460066000815481106112685761126861342a565b90600052602060002001541480156112bb5750600660018154811061128f5761128f61342a565b906000526020600020015460076001815481106112ae576112ae61342a565b9060005260206000200154105b8015611302575060066002815481106112d6576112d661342a565b906000526020600020015460076002815481106112f5576112f561342a565b9060005260206000200154105b156113415761131160026117d6565b905061132a33600a838154811061108c5761108c61342a565b60016007600a83815481106110c5576110c561342a565b60076001815481106113555761135561342a565b906000526020600020015460066001815481106113745761137461342a565b90600052602060002001541480156113c75750600660008154811061139b5761139b61342a565b906000526020600020015460076000815481106113ba576113ba61342a565b9060005260206000200154105b801561140e575060066002815481106113e2576113e261342a565b906000526020600020015460076002815481106114015761140161342a565b9060005260206000200154105b1561144d5761141d60026117d6565b905061143633600b838154811061108c5761108c61342a565b60016007600b83815481106110c5576110c561342a565b60076001815481106114615761146161342a565b906000526020600020015460066001815481106114805761148061342a565b90600052602060002001541480156114d3575060076002815481106114a7576114a761342a565b906000526020600020015460066002815481106114c6576114c661342a565b9060005260206000200154145b801561151a575060066000815481106114ee576114ee61342a565b9060005260206000200154600760008154811061150d5761150d61342a565b9060005260206000200154105b1561154d5761153733600860008154811061108c5761108c61342a565b600160076000815481106110e0576110e061342a565b60076000815481106115615761156161342a565b906000526020600020015460066000815481106115805761158061342a565b90600052602060002001541480156115d3575060076002815481106115a7576115a761342a565b906000526020600020015460066002815481106115c6576115c661342a565b9060005260206000200154145b801561161a575060066001815481106115ee576115ee61342a565b9060005260206000200154600760018154811061160d5761160d61342a565b9060005260206000200154105b1561164d5761163733600860018154811061108c5761108c61342a565b600160076001815481106110e0576110e061342a565b60076001815481106116615761166161342a565b906000526020600020015460066001815481106116805761168061342a565b90600052602060002001541480156116d3575060076000815481106116a7576116a761342a565b906000526020600020015460066000815481106116c6576116c661342a565b9060005260206000200154145b801561171a575060066002815481106116ee576116ee61342a565b9060005260206000200154600760028154811061170d5761170d61342a565b9060005260206000200154105b156117915761173733600860028154811061108c5761108c61342a565b6001600760028154811061174d5761174d61342a565b906000526020600020016000828254611766919061346d565b909155505033600090815260116020526040812080546001929061178b90849061346d565b90915550505b508061179c81613480565b915050610f8d565b6117af3383836126c2565b5050565b60006117c283600d54846127a2565b9392505050565b6117d1612383565b600d55565b600c8054600091826117e783613480565b919050555081424433600c5460405160200161182e9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b6040516020818303038152906040528051906020012060001c6108e09190613510565b600a81815481106109fb57600080fd5b611869612383565b6010805461ff001981166101009182900460ff1615909102179055565b3332146118a65760405163875fdad760e01b815260040160405180910390fd5b60105460ff166118c9576040516371e1355f60e11b815260040160405180910390fd5b6040516bffffffffffffffffffffffff193360601b166020820152611908908290603401604051602081830303815290604052805190602001206117b3565b611925576040516306fb10a960e01b815260040160405180910390fd5b6000600660028154811061193b5761193b61342a565b9060005260206000200154600660018154811061195a5761195a61342a565b906000526020600020015460066000815481106119795761197961342a565b906000526020600020015461198e919061346d565b611998919061346d565b9050600060076002815481106119b0576119b061342a565b906000526020600020015460076001815481106119cf576119cf61342a565b906000526020600020015460076000815481106119ee576119ee61342a565b9060005260206000200154611a03919061346d565b611a0d919061346d565b90506000611a1b82846134fd565b905084811015611a675760405162461bcd60e51b8152602060048201526017602482015276139bdd08195b9bdd59da081b999d1cc81d1bc81b5a5b9d604a1b60448201526064016107be565b600e54611a749086613456565b341015611abb5760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016107be565b600f5433600090815260116020526040902054611ad990879061346d565b1115611af857604051637ab0312d60e11b815260040160405180910390fd5b60005b858110156122f05760006006600081548110611b1957611b1961342a565b90600052602060002001546007600081548110611b3857611b3861342a565b9060005260206000200154108015611b8b57506006600181548110611b5f57611b5f61342a565b90600052602060002001546007600181548110611b7e57611b7e61342a565b9060005260206000200154105b8015611bd257506006600281548110611ba657611ba661342a565b90600052602060002001546007600281548110611bc557611bc561342a565b9060005260206000200154105b15611c7557611be160036117d6565b9050611bfa336008838154811061108c5761108c61342a565b6001600760088381548110611c1157611c1161342a565b906000526020600020015481548110611c2c57611c2c61342a565b906000526020600020016000828254611c45919061346d565b9091555050336000908152601160205260408120805460019290611c6a90849061346d565b909155506122dd9050565b6007600281548110611c8957611c8961342a565b90600052602060002001546006600281548110611ca857611ca861342a565b9060005260206000200154148015611cfb57506006600081548110611ccf57611ccf61342a565b90600052602060002001546007600081548110611cee57611cee61342a565b9060005260206000200154105b8015611d4257506006600181548110611d1657611d1661342a565b90600052602060002001546007600181548110611d3557611d3561342a565b9060005260206000200154105b15611d8157611d5160026117d6565b9050611d6a336009838154811061108c5761108c61342a565b6001600760098381548110611c1157611c1161342a565b6007600081548110611d9557611d9561342a565b90600052602060002001546006600081548110611db457611db461342a565b9060005260206000200154148015611e0757506006600181548110611ddb57611ddb61342a565b90600052602060002001546007600181548110611dfa57611dfa61342a565b9060005260206000200154105b8015611e4e57506006600281548110611e2257611e2261342a565b90600052602060002001546007600281548110611e4157611e4161342a565b9060005260206000200154105b15611e8d57611e5d60026117d6565b9050611e7633600a838154811061108c5761108c61342a565b60016007600a8381548110611c1157611c1161342a565b6007600181548110611ea157611ea161342a565b90600052602060002001546006600181548110611ec057611ec061342a565b9060005260206000200154148015611f1357506006600081548110611ee757611ee761342a565b90600052602060002001546007600081548110611f0657611f0661342a565b9060005260206000200154105b8015611f5a57506006600281548110611f2e57611f2e61342a565b90600052602060002001546007600281548110611f4d57611f4d61342a565b9060005260206000200154105b15611f9957611f6960026117d6565b9050611f8233600b838154811061108c5761108c61342a565b60016007600b8381548110611c1157611c1161342a565b6007600181548110611fad57611fad61342a565b90600052602060002001546006600181548110611fcc57611fcc61342a565b906000526020600020015414801561201f57506007600281548110611ff357611ff361342a565b906000526020600020015460066002815481106120125761201261342a565b9060005260206000200154145b80156120665750600660008154811061203a5761203a61342a565b906000526020600020015460076000815481106120595761205961342a565b9060005260206000200154105b156120995761208333600860008154811061108c5761108c61342a565b60016007600081548110611c2c57611c2c61342a565b60076000815481106120ad576120ad61342a565b906000526020600020015460066000815481106120cc576120cc61342a565b906000526020600020015414801561211f575060076002815481106120f3576120f361342a565b906000526020600020015460066002815481106121125761211261342a565b9060005260206000200154145b80156121665750600660018154811061213a5761213a61342a565b906000526020600020015460076001815481106121595761215961342a565b9060005260206000200154105b156121995761218333600860018154811061108c5761108c61342a565b60016007600181548110611c2c57611c2c61342a565b60076001815481106121ad576121ad61342a565b906000526020600020015460066001815481106121cc576121cc61342a565b906000526020600020015414801561221f575060076000815481106121f3576121f361342a565b906000526020600020015460066000815481106122125761221261342a565b9060005260206000200154145b80156122665750600660028154811061223a5761223a61342a565b906000526020600020015460076002815481106122595761225961342a565b9060005260206000200154105b156122dd5761228333600860028154811061108c5761108c61342a565b600160076002815481106122995761229961342a565b9060005260206000200160008282546122b2919061346d565b90915550503360009081526011602052604081208054600192906122d790849061346d565b90915550505b50806122e881613480565b915050611afb565b505050505050565b6123006124fd565b610a4185858585856127b8565b612315612383565b6001600160a01b03811661237a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107be565b61094781612633565b6003546001600160a01b03163314610bf25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107be565b6001600160a01b03841661243d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107be565b336000612449856127fd565b90506000612456856127fd565b90506000868152602081815260408083206001600160a01b038b1684529091528120805487929061248890849061346d565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46124e883600089898989612848565b50505050505050565b60026117af828261356f565b60055460ff1615610bf25760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107be565b6001600160a01b03851633148061255f575061255f85336106a1565b61257b5760405162461bcd60e51b81526004016107be9061362e565b610a4185858585856129a3565b6002600454036125da5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107be565b6002600455565b6125e9612b78565b6005805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61268d6124fd565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586126163390565b816001600160a01b0316836001600160a01b0316036127355760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107be565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000826127af8584612bc1565b14949350505050565b6001600160a01b0385163314806127d457506127d485336106a1565b6127f05760405162461bcd60e51b81526004016107be9061362e565b610a418585858585612c06565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106128375761283761342a565b602090810291909101015292915050565b6001600160a01b0384163b156122f05760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061288c908990899088908890889060040161367c565b6020604051808303816000875af19250505080156128c7575060408051601f3d908101601f191682019092526128c4918101906136c1565b60015b612973576128d36136de565b806308c379a00361290c57506128e76136fa565b806128f2575061290e565b8060405162461bcd60e51b81526004016107be91906130c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016107be565b6001600160e01b0319811663f23a6e6160e01b146124e85760405162461bcd60e51b81526004016107be90613783565b8151835114612a055760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016107be565b6001600160a01b038416612a2b5760405162461bcd60e51b81526004016107be906137cb565b3360005b8451811015612b12576000858281518110612a4c57612a4c61342a565b602002602001015190506000858381518110612a6a57612a6a61342a565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612aba5760405162461bcd60e51b81526004016107be90613810565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612af790849061346d565b9250508190555050505080612b0b90613480565b9050612a2f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b6292919061385a565b60405180910390a46122f0818787878787612d30565b60055460ff16610bf25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107be565b600081815b8451811015610d2557612bf282868381518110612be557612be561342a565b6020026020010151612deb565b915080612bfe81613480565b915050612bc6565b6001600160a01b038416612c2c5760405162461bcd60e51b81526004016107be906137cb565b336000612c38856127fd565b90506000612c45856127fd565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015612c885760405162461bcd60e51b81526004016107be90613810565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290612cc590849061346d565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d25848a8a8a8a8a612848565b505050505050505050565b6001600160a01b0384163b156122f05760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d749089908990889088908890600401613888565b6020604051808303816000875af1925050508015612daf575060408051601f3d908101601f19168201909252612dac918101906136c1565b60015b612dbb576128d36136de565b6001600160e01b0319811663bc197c8160e01b146124e85760405162461bcd60e51b81526004016107be90613783565b6000818310612e075760008281526020849052604090206117c2565b60008381526020839052604090206117c2565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612e5557612e55612e1a565b6040525050565b60006001600160401b03821115612e7557612e75612e1a565b5060051b60200190565b80356001600160a01b0381168114612e9657600080fd5b919050565b600082601f830112612eac57600080fd5b81356020612eb982612e5c565b604051612ec68282612e30565b83815260059390931b8501820192828101915086841115612ee657600080fd5b8286015b84811015612f0857612efb81612e7f565b8352918301918301612eea565b509695505050505050565b600080600060608486031215612f2857600080fd5b83356001600160401b03811115612f3e57600080fd5b612f4a86828701612e9b565b9660208601359650604090950135949350505050565b60008060408385031215612f7357600080fd5b612f7c83612e7f565b946020939093013593505050565b6001600160e01b03198116811461094757600080fd5b600060208284031215612fb257600080fd5b81356117c281612f8a565b60006001600160401b03831115612fd657612fd6612e1a565b604051612fed601f8501601f191660200182612e30565b80915083815284848401111561300257600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561302c57600080fd5b81356001600160401b0381111561304257600080fd5b8201601f8101841361305357600080fd5b61306284823560208401612fbd565b949350505050565b60006020828403121561307c57600080fd5b5035919050565b6000815180845260005b818110156130a95760208185018101518683018201520161308d565b506000602082860101526020601f19601f83011685010191505092915050565b6020815260006117c26020830184613083565b6000602082840312156130ee57600080fd5b6117c282612e7f565b600082601f83011261310857600080fd5b8135602061311582612e5c565b6040516131228282612e30565b83815260059390931b850182019282810191508684111561314257600080fd5b8286015b84811015612f085780358352918301918301613146565b600082601f83011261316e57600080fd5b6117c283833560208501612fbd565b600080600080600060a0868803121561319557600080fd5b61319e86612e7f565b94506131ac60208701612e7f565b935060408601356001600160401b03808211156131c857600080fd5b6131d489838a016130f7565b945060608801359150808211156131ea57600080fd5b6131f689838a016130f7565b9350608088013591508082111561320c57600080fd5b506132198882890161315d565b9150509295509295909350565b6000806040838503121561323957600080fd5b82356001600160401b038082111561325057600080fd5b61325c86838701612e9b565b9350602085013591508082111561327257600080fd5b5061327f858286016130f7565b9150509250929050565b600081518084526020808501945080840160005b838110156132b95781518752958201959082019060010161329d565b509495945050505050565b6020815260006117c26020830184613289565b600080604083850312156132ea57600080fd5b6132f383612e7f565b91506020830135801515811461330857600080fd5b809150509250929050565b6000806040838503121561332657600080fd5b82356001600160401b0381111561333c57600080fd5b613348858286016130f7565b95602094909401359450505050565b6000806040838503121561336a57600080fd5b8235915060208301356001600160401b0381111561338757600080fd5b61327f858286016130f7565b600080604083850312156133a657600080fd5b6133af83612e7f565b91506133bd60208401612e7f565b90509250929050565b600080600080600060a086880312156133de57600080fd5b6133e786612e7f565b94506133f560208701612e7f565b9350604086013592506060860135915060808601356001600160401b0381111561341e57600080fd5b6132198882890161315d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108e0576108e0613440565b808201808211156108e0576108e0613440565b60006001820161349257613492613440565b5060010190565b600181811c908216806134ad57607f821691505b6020821081036134cd57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601260045260246000fd5b6000826134f8576134f86134d3565b500490565b818103818111156108e0576108e0613440565b60008261351f5761351f6134d3565b500690565b601f82111561356a57600081815260208120601f850160051c8101602086101561354b5750805b601f850160051c820191505b818110156122f057828155600101613557565b505050565b81516001600160401b0381111561358857613588612e1a565b61359c816135968454613499565b84613524565b602080601f8311600181146135d157600084156135b95750858301515b600019600386901b1c1916600185901b1785556122f0565b600085815260208120601f198616915b82811015613600578886015182559484019460019091019084016135e1565b508582101561361e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906136b690830184613083565b979650505050505050565b6000602082840312156136d357600080fd5b81516117c281612f8a565b600060033d11156136f75760046000803e5060005160e01c5b90565b600060443d10156137085790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561373757505050505090565b828501915081518181111561374f5750505050505090565b843d87010160208285010111156137695750505050505090565b61377860208286010187612e30565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60408152600061386d6040830185613289565b828103602084015261387f8185613289565b95945050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906138b490830186613289565b82810360608401526138c68186613289565b905082810360808401526138da8185613083565b9897505050505050505056fea2646970667358221220a402e1ac81a4da2aedce4c14b2d5e9ce3901a76dfe39f92fff5293401ea92b1764736f6c63430008110033

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.