ETH Price: $3,401.79 (-1.33%)
Gas: 4 Gwei

Token

Mojor Early Bird Ticket (MOJOR EARLY BIRD TICKET)
 

Overview

Max Total Supply

11,618 MOJOR EARLY BIRD TICKET

Holders

525

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
15 MOJOR EARLY BIRD TICKET
0xd6b0d389b4888e06038b2ed629cf9636adad98c9
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:
MojorEarlyBirdTicket

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : Mojor Early Bird Ticket.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";


contract MojorEarlyBirdTicket is Ownable, ERC721A, ReentrancyGuard {

    uint public maxBatchSize_ = 5000;
    uint public collectionSize_ = 5000;

    event paramTimeEvent      (uint parmsTime);
    event paramAddressSurplusNumsEvent      (address ads, uint alSurplusNums, uint wlSurplusNums);
    event addMintParticipantEvent      (address ads);
    event luckyWinnerBirthEvent    (address ads, uint tokenId);
    event luckyNumBirthEvent       (uint noc);

    uint256 public constant CONTRIBUTE_MINT_ONE_QUANTITY = 1;
    uint256 public constant CONTRIBUTE_MINT_TWO_QUANTITY = 2;
    uint256 public constant CONTRIBUTE_MINT_THREE_QUANTITY = 3;
    uint256 public constant CONTRIBUTE_MINT_AL_QUANTITY = 800;

    mapping(address => uint) public participantsWaitingList;
    mapping(address => uint) public participantsWaitingListMinted;
    mapping(address => uint) public participantsAllowList;
    mapping(address => uint) public participantsAllowListMinited;
    mapping(uint => address) public participantMaps;
    address[10000] public mintList;
    uint public mintListNo = 0;
    uint public mintStartTime;
    uint public mintEndTime;

    bytes32 public WLOneRoot;
    bytes32 public WLTwoRoot;
    bytes32 public WLThreeRoot;
    bytes32 public WLTALRoot;

    // // metadata URI
    string private _baseTokenURI;

    constructor() ERC721A("Mojor Early Bird Ticket", "MOJOR EARLY BIRD TICKET", maxBatchSize_, collectionSize_) {
    }


    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function setBaseURI(string calldata baseURI) external onlyOwner {
        _baseTokenURI = baseURI;
    }

    function setWLOneRoot(bytes32 merkleroot) external onlyOwner {
        WLOneRoot = merkleroot;
    }

    function setWLTwoRoot(bytes32 merkleroot) external onlyOwner {
        WLTwoRoot = merkleroot;
    }

    function setWLThreeRoot(bytes32 merkleroot) external onlyOwner {
        WLThreeRoot = merkleroot;
    }

    function setWLFourRoot(bytes32 merkleroot) external onlyOwner {
        WLTALRoot = merkleroot;
    }

    function safeMint(bytes32[] calldata proof) public {
        require(totalSupply() < 10000, "Maximum limit 10000");

        if (mintStartTime == 0 || block.timestamp < mintStartTime) {
            revert("Not Time To Mint");
        }


        //ONLY MINT BY ALLOW LIST TIME
        uint alSurplus = participantsAllowList[msg.sender] - participantsAllowListMinited[msg.sender];

        if (block.timestamp >= mintStartTime && block.timestamp <= mintEndTime) {
            if (alSurplus <= 0) {
                revert("Can Not Mint More");
            }
            participantsAllowListMinited[msg.sender] = participantsAllowListMinited[msg.sender] + alSurplus;
            _safeMint(msg.sender, alSurplus);
            mintList[mintListNo] = msg.sender;
            mintListNo++;
            emit  paramAddressSurplusNumsEvent(msg.sender, alSurplus - alSurplus, 0);
        }

        bool isMinted = false;
        if (block.timestamp > mintEndTime) {
            uint wlMinted = participantsAllowListMinited[msg.sender];
            require(wlMinted == 0, "Can Not Mint More");
            uint WLProofSurplus = 0;

            bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
            bool OneisValidLeaf = MerkleProof.verify(proof, WLOneRoot, leaf);
            if (OneisValidLeaf) {
                WLProofSurplus = CONTRIBUTE_MINT_ONE_QUANTITY;
            }

            bool TwoisValidLeaf = MerkleProof.verify(proof, WLTwoRoot, leaf);
            if (TwoisValidLeaf) {
                WLProofSurplus = CONTRIBUTE_MINT_TWO_QUANTITY;
            }

            bool ThreeisValidLeaf = MerkleProof.verify(proof, WLThreeRoot, leaf);
            if (ThreeisValidLeaf) {
                WLProofSurplus = CONTRIBUTE_MINT_THREE_QUANTITY;
            }

            bool ALisValidLeaf = MerkleProof.verify(proof, WLTALRoot, leaf);
            if (ALisValidLeaf) {
                WLProofSurplus = CONTRIBUTE_MINT_AL_QUANTITY;
            }
            if (WLProofSurplus > 0) {
                participantsWaitingListMinted[msg.sender] = participantsAllowListMinited[msg.sender] + WLProofSurplus;
                emit paramAddressSurplusNumsEvent(msg.sender, WLProofSurplus, 0);
                _safeMint(msg.sender, WLProofSurplus);
                isMinted = true;
            }
            //ALSURPLUS ENOUGH
            if (alSurplus > 0) {
                participantsAllowListMinited[msg.sender] = participantsAllowListMinited[msg.sender] + alSurplus;
                emit paramAddressSurplusNumsEvent(msg.sender, alSurplus - alSurplus, 0);
                _safeMint(msg.sender, alSurplus);
                isMinted = true;
            }

            if (isMinted) {
                mintList[mintListNo] = msg.sender;
                mintListNo++;
            }
        }
    }

    function projectCreation(uint count) public onlyOwner {
        require(totalSupply() + count < 10000, "Maximum limit 10000");
        _safeMint(msg.sender, count);
        mintList[mintListNo] = msg.sender;
        mintListNo++;

    }


    function isMintedTotal(address participant) public view returns (uint){
        uint wlMinted = participantsWaitingListMinted[participant];
        uint alMinted = participantsAllowListMinited[participant];
        uint totalMinted = wlMinted + alMinted;
        if (totalMinted > 0) {
            return totalMinted;
        }
        return 0;
    }

    function isMintedByWL(address participant) public view returns (uint){
        uint wlMinted = participantsWaitingListMinted[participant];
        if (wlMinted > 0) {
            return wlMinted;
        }
        return 0;
    }

    function isMintedByAL(address participant) public view returns (uint){
        uint alMinted = participantsAllowListMinited[participant];
        if (alMinted > 0) {
            return alMinted;
        }
        return 0;
    }


    function isValid(address participant, bytes32[] calldata proof) public view returns (uint){
        uint alSurplus = participantsAllowList[participant] - participantsAllowListMinited[participant];
        //ALL MINT TIME
        uint WLProofSurplus = 0;
        bytes32 leaf = keccak256(abi.encodePacked(participant));
        bool OneisValidLeaf = MerkleProof.verify(proof, WLOneRoot, leaf);
        if (OneisValidLeaf) {
            WLProofSurplus = CONTRIBUTE_MINT_ONE_QUANTITY;
        }

        bool TwoisValidLeaf = MerkleProof.verify(proof, WLTwoRoot, leaf);
        if (TwoisValidLeaf) {
            WLProofSurplus = CONTRIBUTE_MINT_TWO_QUANTITY;
        }

        bool ThreeisValidLeaf = MerkleProof.verify(proof, WLThreeRoot, leaf);
        if (ThreeisValidLeaf) {
            WLProofSurplus = CONTRIBUTE_MINT_THREE_QUANTITY;
        }

        bool ALisValidLeaf = MerkleProof.verify(proof, WLTALRoot, leaf);
        if (ALisValidLeaf) {
            WLProofSurplus = CONTRIBUTE_MINT_AL_QUANTITY;
        }
        uint wlSurplus = WLProofSurplus - participantsWaitingListMinted[participant];
        uint totalMinted = wlSurplus + alSurplus;
        if (totalMinted > 0) {
            return totalMinted;
        }
        return 0;
    }

    function setMintTimes(uint startTime, uint endTime) public onlyOwner {
        mintStartTime = startTime;
        mintEndTime = endTime;
    }

    function setParticipantAllowList(address[] memory ads,uint[] memory nums) onlyOwner public {
        for (uint a = 0; a < ads.length; a++) {
            participantsAllowList[ads[a]] = participantsAllowList[ads[a]] + nums[a];
        }
    }

}

File 2 of 14 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * 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.
 */
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 proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _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}
     *
     * _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 the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _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}
     *
     * _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 3 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 4 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

        // 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 14 : 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 6 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128.
 *
 * Does not support burning tokens to address(0).
 */
contract ERC721A is
  Context,
  ERC165,
  IERC721,
  IERC721Metadata,
  IERC721Enumerable
{
  using Address for address;
  using Strings for uint256;

  struct TokenOwnership {
    address addr;
    uint64 startTimestamp;
  }

  struct AddressData {
    uint128 balance;
    uint128 numberMinted;
  }

  uint256 private currentIndex = 0;

  uint256 internal immutable collectionSize;
  uint256 internal immutable maxBatchSize;

  // Token name
  string private _name;

  // Token symbol
  string private _symbol;

  // Mapping from token ID to ownership details
  // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
  mapping(uint256 => TokenOwnership) private _ownerships;

  // Mapping owner address to address data
  mapping(address => AddressData) private _addressData;

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

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

  /**
   * @dev
   * `maxBatchSize` refers to how much a minter can mint at a time.
   * `collectionSize_` refers to how many tokens are in the collection.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 maxBatchSize_,
    uint256 collectionSize_
  ) {
    require(
      collectionSize_ > 0,
      "ERC721A: collection must have a nonzero supply"
    );
    require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
    _name = name_;
    _symbol = symbol_;
    maxBatchSize = maxBatchSize_;
    collectionSize = collectionSize_;
  }

  /**
   * @dev See {IERC721Enumerable-totalSupply}.
   */
  function totalSupply() public view override returns (uint256) {
    return currentIndex;
  }

  /**
   * @dev See {IERC721Enumerable-tokenByIndex}.
   */
  function tokenByIndex(uint256 index) public view override returns (uint256) {
    require(index < totalSupply(), "ERC721A: global index out of bounds");
    return index;
  }

  /**
   * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
   * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first.
   * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
   */
  function tokenOfOwnerByIndex(address owner, uint256 index)
    public
    view
    override
    returns (uint256)
  {
    require(index < balanceOf(owner), "ERC721A: owner index out of bounds");
    uint256 numMintedSoFar = totalSupply();
    uint256 tokenIdsIdx = 0;
    address currOwnershipAddr = address(0);
    for (uint256 i = 0; i < numMintedSoFar; i++) {
      TokenOwnership memory ownership = _ownerships[i];
      if (ownership.addr != address(0)) {
        currOwnershipAddr = ownership.addr;
      }
      if (currOwnershipAddr == owner) {
        if (tokenIdsIdx == index) {
          return i;
        }
        tokenIdsIdx++;
      }
    }
    revert("ERC721A: unable to get token of owner by index");
  }

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

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

  function _numberMinted(address owner) internal view returns (uint256) {
    require(
      owner != address(0),
      "ERC721A: number minted query for the zero address"
    );
    return uint256(_addressData[owner].numberMinted);
  }

  function ownershipOf(uint256 tokenId)
    internal
    view
    returns (TokenOwnership memory)
  {
    require(_exists(tokenId), "ERC721A: owner query for nonexistent token");

    uint256 lowestTokenToCheck;
    if (tokenId >= maxBatchSize) {
      lowestTokenToCheck = tokenId - maxBatchSize + 1;
    }

    for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) {
      TokenOwnership memory ownership = _ownerships[curr];
      if (ownership.addr != address(0)) {
        return ownership;
      }
    }

    revert("ERC721A: unable to determine the owner of token");
  }

  /**
   * @dev See {IERC721-ownerOf}.
   */
  function ownerOf(uint256 tokenId) public view override returns (address) {
    return ownershipOf(tokenId).addr;
  }

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

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

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

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

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

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

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

    _approve(to, tokenId, owner);
  }

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

    return _tokenApprovals[tokenId];
  }

  /**
   * @dev See {IERC721-setApprovalForAll}.
   */
  function setApprovalForAll(address operator, bool approved) public override {
    require(operator != _msgSender(), "ERC721A: approve to caller");

    _operatorApprovals[_msgSender()][operator] = approved;
    emit ApprovalForAll(_msgSender(), operator, approved);
  }

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

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

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

  /**
   * @dev See {IERC721-safeTransferFrom}.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) public override {
    _transfer(from, to, tokenId);
    require(
      _checkOnERC721Received(from, to, tokenId, _data),
      "ERC721A: transfer to non ERC721Receiver implementer"
    );
  }

  /**
   * @dev Returns whether `tokenId` exists.
   *
   * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
   *
   * Tokens start existing when they are minted (`_mint`),
   */
  function _exists(uint256 tokenId) internal view returns (bool) {
    return tokenId < currentIndex;
  }

  function _safeMint(address to, uint256 quantity) internal {
    _safeMint(to, quantity, "");
  }

  /**
   * @dev Mints `quantity` tokens and transfers them to `to`.
   *
   * Requirements:
   *
   * - there must be `quantity` tokens remaining unminted in the total collection.
   * - `to` cannot be the zero address.
   * - `quantity` cannot be larger than the max batch size.
   *
   * Emits a {Transfer} event.
   */
  function _safeMint(
    address to,
    uint256 quantity,
    bytes memory _data
  ) internal {
    uint256 startTokenId = currentIndex;
    require(to != address(0), "ERC721A: mint to the zero address");
    // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
    require(!_exists(startTokenId), "ERC721A: token already minted");
    require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

    _beforeTokenTransfers(address(0), to, startTokenId, quantity);

    AddressData memory addressData = _addressData[to];
    _addressData[to] = AddressData(
      addressData.balance + uint128(quantity),
      addressData.numberMinted + uint128(quantity)
    );
    _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp));

    uint256 updatedIndex = startTokenId;

    for (uint256 i = 0; i < quantity; i++) {
      emit Transfer(address(0), to, updatedIndex);
      require(
        _checkOnERC721Received(address(0), to, updatedIndex, _data),
        "ERC721A: transfer to non ERC721Receiver implementer"
      );
      updatedIndex++;
    }

    currentIndex = updatedIndex;
    _afterTokenTransfers(address(0), to, startTokenId, quantity);
  }

  /**
   * @dev Transfers `tokenId` from `from` to `to`.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - `tokenId` token must be owned by `from`.
   *
   * Emits a {Transfer} event.
   */
  function _transfer(
    address from,
    address to,
    uint256 tokenId
  ) private {
    TokenOwnership memory prevOwnership = ownershipOf(tokenId);

    bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
      getApproved(tokenId) == _msgSender() ||
      isApprovedForAll(prevOwnership.addr, _msgSender()));

    require(
      isApprovedOrOwner,
      "ERC721A: transfer caller is not owner nor approved"
    );

    require(
      prevOwnership.addr == from,
      "ERC721A: transfer from incorrect owner"
    );
    require(to != address(0), "ERC721A: transfer to the zero address");

    _beforeTokenTransfers(from, to, tokenId, 1);

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

    _addressData[from].balance -= 1;
    _addressData[to].balance += 1;
    _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp));

    // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
    // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
    uint256 nextTokenId = tokenId + 1;
    if (_ownerships[nextTokenId].addr == address(0)) {
      if (_exists(nextTokenId)) {
        _ownerships[nextTokenId] = TokenOwnership(
          prevOwnership.addr,
          prevOwnership.startTimestamp
        );
      }
    }

    emit Transfer(from, to, tokenId);
    _afterTokenTransfers(from, to, tokenId, 1);
  }

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

  uint256 public nextOwnerToExplicitlySet = 0;

  /**
   * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf().
   */
  function _setOwnersExplicit(uint256 quantity) internal {
    uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
    require(quantity > 0, "quantity must be nonzero");
    uint256 endIndex = oldNextOwnerToSet + quantity - 1;
    if (endIndex > collectionSize - 1) {
      endIndex = collectionSize - 1;
    }
    // We know if the last one in the group exists, all in the group exist, due to serial ordering.
    require(_exists(endIndex), "not enough minted yet for this cleanup");
    for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) {
      if (_ownerships[i].addr == address(0)) {
        TokenOwnership memory ownership = ownershipOf(i);
        _ownerships[i] = TokenOwnership(
          ownership.addr,
          ownership.startTimestamp
        );
      }
    }
    nextOwnerToExplicitlySet = endIndex + 1;
  }

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

  /**
   * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
   * transferred to `to`.
   * - When `from` is zero, `tokenId` will be minted for `to`.
   */
  function _beforeTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}

  /**
   * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
   * minting.
   *
   * startTokenId - the first token id to be transferred
   * quantity - the amount to be transferred
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero.
   * - `from` and `to` are never both zero.
   */
  function _afterTokenTransfers(
    address from,
    address to,
    uint256 startTokenId,
    uint256 quantity
  ) internal virtual {}
}

File 7 of 14 : 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 8 of 14 : 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 9 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 12 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 13 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ads","type":"address"}],"name":"addMintParticipantEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"noc","type":"uint256"}],"name":"luckyNumBirthEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ads","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"luckyWinnerBirthEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"ads","type":"address"},{"indexed":false,"internalType":"uint256","name":"alSurplusNums","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wlSurplusNums","type":"uint256"}],"name":"paramAddressSurplusNumsEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"parmsTime","type":"uint256"}],"name":"paramTimeEvent","type":"event"},{"inputs":[],"name":"CONTRIBUTE_MINT_AL_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRIBUTE_MINT_ONE_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRIBUTE_MINT_THREE_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRIBUTE_MINT_TWO_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLOneRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLTALRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLThreeRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLTwoRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"participant","type":"address"}],"name":"isMintedByAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"participant","type":"address"}],"name":"isMintedByWL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"participant","type":"address"}],"name":"isMintedTotal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"participant","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isValid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize_","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintListNo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"participantMaps","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"participantsAllowList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"participantsAllowListMinited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"participantsWaitingList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"participantsWaitingListMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"projectCreation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"setMintTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"ads","type":"address[]"},{"internalType":"uint256[]","name":"nums","type":"uint256[]"}],"name":"setParticipantAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setWLFourRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setWLOneRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setWLThreeRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"}],"name":"setWLTwoRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405260006001556000600855611388600a55611388600b556000612721553480156200002d57600080fd5b506040518060400160405280601781526020017f4d6f6a6f72204561726c792042697264205469636b65740000000000000000008152506040518060400160405280601781526020017f4d4f4a4f52204541524c592042495244205449434b4554000000000000000000815250600a54600b54620000c0620000b46200019260201b60201c565b6200019a60201b60201c565b6000811162000106576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000fd90620002e5565b60405180910390fd5b600082116200014c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000143906200037d565b60405180910390fd5b83600290816200015d919062000619565b5082600390816200016f919062000619565b508160a08181525050806080818152505050505050600160098190555062000700565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082825260208201905092915050565b7f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060008201527f6e6f6e7a65726f20737570706c79000000000000000000000000000000000000602082015250565b6000620002cd602e836200025e565b9150620002da826200026f565b604082019050919050565b600060208201905081810360008301526200030081620002be565b9050919050565b7f455243373231413a206d61782062617463682073697a65206d7573742062652060008201527f6e6f6e7a65726f00000000000000000000000000000000000000000000000000602082015250565b6000620003656027836200025e565b9150620003728262000307565b604082019050919050565b60006020820190508181036000830152620003988162000356565b9050919050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200042157607f821691505b602082108103620004375762000436620003d9565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000462565b620004ad868362000462565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004fa620004f4620004ee84620004c5565b620004cf565b620004c5565b9050919050565b6000819050919050565b6200051683620004d9565b6200052e620005258262000501565b8484546200046f565b825550505050565b600090565b6200054562000536565b620005528184846200050b565b505050565b5b818110156200057a576200056e6000826200053b565b60018101905062000558565b5050565b601f821115620005c95762000593816200043d565b6200059e8462000452565b81016020851015620005ae578190505b620005c6620005bd8562000452565b83018262000557565b50505b505050565b600082821c905092915050565b6000620005ee60001984600802620005ce565b1980831691505092915050565b6000620006098383620005db565b9150826002028217905092915050565b62000624826200039f565b67ffffffffffffffff81111562000640576200063f620003aa565b5b6200064c825462000408565b620006598282856200057e565b600060209050601f8311600181146200069157600084156200067c578287015190505b620006888582620005fb565b865550620006f8565b601f198416620006a1866200043d565b60005b82811015620006cb57848901518255600182019150602085019450602081019050620006a4565b86831015620006eb5784890151620006e7601f891682620005db565b8355505b6001600288020188555050505b505050505050565b60805160a0516156a86200073160003960008181612cad01528181612cd601526133db0152600050506156a86000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c806395d89b411161019d578063ca942356116100e9578063e985e9c5116100a2578063ef37502e1161007c578063ef37502e146109b5578063f1d30b7d146109d3578063f2d646a114610a03578063f2fde38b14610a1f5761030c565b8063e985e9c51461094b578063eb36cf821461097b578063eddd548e146109995761030c565b8063ca94235614610875578063caf00b9b14610891578063d27556f0146108af578063d7224ba0146108df578063da63801f146108fd578063e4c4e0d71461091b5761030c565b8063b88d4fde11610156578063c376b75511610130578063c376b755146107d9578063c808f9bc146107f7578063c87b56dd14610827578063c90db0f9146108575761030c565b8063b88d4fde1461076f578063be0896ea1461078b578063c0e605e9146107bb5761030c565b806395d89b4114610689578063980846ce146106a7578063a1c3df32146106c3578063a22cb465146106f3578063a5caa1031461070f578063b535a8e11461073f5761030c565b80634f6ccce71161025c578063717a002b1161021557806385c4f328116101ef57806385c4f328146106135780638805063c1461062f5780638da5cb5b1461064d578063931e2e491461066b5761030c565b8063717a002b146105bb5780637b15a8e7146105d95780638583af97146105f55761030c565b80634f6ccce7146104e957806355f804b3146105195780636352211e14610535578063704428831461056557806370a0823114610581578063715018a6146105b15761030c565b806323a47023116102c95780632f745c59116102a35780632f745c5914610451578063336cf7e91461048157806342842e0e146104b157806343ecad08146104cd5761030c565b806323a47023146103f957806323b872dd14610417578063255f0057146104335761030c565b806301ffc9a71461031157806306fdde0314610341578063081812fc1461035f578063095ea7b31461038f5780630fc92096146103ab57806318160ddd146103db575b600080fd5b61032b60048036038101906103269190613904565b610a3b565b604051610338919061394c565b60405180910390f35b610349610b85565b60405161035691906139f7565b60405180910390f35b61037960048036038101906103749190613a4f565b610c17565b6040516103869190613abd565b60405180910390f35b6103a960048036038101906103a49190613b04565b610c9c565b005b6103c560048036038101906103c09190613ba9565b610db4565b6040516103d29190613c18565b60405180910390f35b6103e3611076565b6040516103f09190613c18565b60405180910390f35b610401611080565b60405161040e9190613c18565b60405180910390f35b610431600480360381019061042c9190613c33565b611086565b005b61043b611096565b6040516104489190613c9f565b60405180910390f35b61046b60048036038101906104669190613b04565b61109d565b6040516104789190613c18565b60405180910390f35b61049b60048036038101906104969190613cba565b611299565b6040516104a89190613c18565b60405180910390f35b6104cb60048036038101906104c69190613c33565b6112b1565b005b6104e760048036038101906104e29190613ee8565b6112d1565b005b61050360048036038101906104fe9190613a4f565b6113d9565b6040516105109190613c18565b60405180910390f35b610533600480360381019061052e9190613fb6565b61142c565b005b61054f600480360381019061054a9190613a4f565b61144b565b60405161055c9190613abd565b60405180910390f35b61057f600480360381019061057a919061402f565b611461565b005b61059b60048036038101906105969190613cba565b611474565b6040516105a89190613c18565b60405180910390f35b6105b961155c565b005b6105c3611570565b6040516105d09190613c18565b60405180910390f35b6105f360048036038101906105ee919061402f565b611577565b005b6105fd61158a565b60405161060a9190613c9f565b60405180910390f35b61062d60048036038101906106289190613a4f565b611591565b005b61063761166d565b6040516106449190613c18565b60405180910390f35b610655611672565b6040516106629190613abd565b60405180910390f35b61067361169b565b6040516106809190613c18565b60405180910390f35b6106916116a2565b60405161069e91906139f7565b60405180910390f35b6106c160048036038101906106bc919061405c565b611734565b005b6106dd60048036038101906106d89190613cba565b611750565b6040516106ea9190613c18565b60405180910390f35b61070d600480360381019061070891906140c8565b6117b2565b005b61072960048036038101906107249190613cba565b611932565b6040516107369190613c18565b60405180910390f35b61075960048036038101906107549190613a4f565b6119ec565b6040516107669190613abd565b60405180910390f35b610789600480360381019061078491906141bd565b611a23565b005b6107a560048036038101906107a09190613a4f565b611a7f565b6040516107b29190613abd565b60405180910390f35b6107c3611ab2565b6040516107d09190613c9f565b60405180910390f35b6107e1611ab9565b6040516107ee9190613c18565b60405180910390f35b610811600480360381019061080c9190613cba565b611abf565b60405161081e9190613c18565b60405180910390f35b610841600480360381019061083c9190613a4f565b611ad7565b60405161084e91906139f7565b60405180910390f35b61085f611b7e565b60405161086c9190613c18565b60405180910390f35b61088f600480360381019061088a919061402f565b611b83565b005b610899611b96565b6040516108a69190613c18565b60405180910390f35b6108c960048036038101906108c49190613cba565b611b9d565b6040516108d69190613c18565b60405180910390f35b6108e7611bb5565b6040516108f49190613c18565b60405180910390f35b610905611bbb565b6040516109129190613c18565b60405180910390f35b61093560048036038101906109309190613cba565b611bc0565b6040516109429190613c18565b60405180910390f35b61096560048036038101906109609190614240565b611c22565b604051610972919061394c565b60405180910390f35b610983611cb6565b6040516109909190613c9f565b60405180910390f35b6109b360048036038101906109ae919061402f565b611cbd565b005b6109bd611cd0565b6040516109ca9190613c18565b60405180910390f35b6109ed60048036038101906109e89190613cba565b611cd6565b6040516109fa9190613c18565b60405180910390f35b610a1d6004803603810190610a189190614280565b611cee565b005b610a396004803603810190610a349190613cba565b612458565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7e5750610b7d826124db565b5b9050919050565b606060028054610b94906142fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc0906142fc565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b5050505050905090565b6000610c2282612545565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c589061439f565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca78261144b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90614431565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d36612553565b73ffffffffffffffffffffffffffffffffffffffff161480610d655750610d6481610d5f612553565b611c22565b5b610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b906144c3565b60405180910390fd5b610daf83838361255b565b505050565b600080600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e419190614512565b905060008086604051602001610e57919061458e565b6040516020818303038152906040528051906020012090506000610ec0878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612724548461260d565b90508015610ecd57600192505b6000610f1e888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612725548561260d565b90508015610f2b57600293505b6000610f7c898980806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612726548661260d565b90508015610f8957600394505b6000610fda8a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612727548761260d565b90508015610fe85761032095505b6000600d60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876110359190614512565b90506000888261104591906145a9565b905060008111156110615780995050505050505050505061106f565b600099505050505050505050505b9392505050565b6000600154905090565b600b5481565b611091838383612624565b505050565b6127245481565b60006110a883611474565b82106110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e09061464f565b60405180910390fd5b60006110f3611076565b905060008060005b83811015611257576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146111ed57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361124357868403611234578195505050505050611293565b838061123f9061466f565b9450505b50808061124f9061466f565b9150506110fb565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128a90614729565b60405180910390fd5b92915050565b600f6020528060005260406000206000915090505481565b6112cc83838360405180602001604052806000815250611a23565b505050565b6112d9612bdb565b60005b82518110156113d4578181815181106112f8576112f7614749565b5b6020026020010151600e600085848151811061131757611316614749565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461136491906145a9565b600e600085848151811061137b5761137a614749565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806113cc9061466f565b9150506112dc565b505050565b60006113e3611076565b8210611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906147ea565b60405180910390fd5b819050919050565b611434612bdb565b818161272891826114469291906149c1565b505050565b600061145682612c59565b600001519050919050565b611469612bdb565b806127258190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db90614b03565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611564612bdb565b61156e6000612e5c565b565b6127235481565b61157f612bdb565b806127278190555050565b6127265481565b611599612bdb565b612710816115a5611076565b6115af91906145a9565b106115ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e690614b6f565b60405180910390fd5b6115f93382612f20565b33601161272154612710811061161257611611614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061272160008154809291906116659061466f565b919050555050565b600281565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6127225481565b6060600380546116b1906142fc565b80601f01602080910402602001604051908101604052809291908181526020018280546116dd906142fc565b801561172a5780601f106116ff5761010080835404028352916020019161172a565b820191906000526020600020905b81548152906001019060200180831161170d57829003601f168201915b5050505050905090565b61173c612bdb565b816127228190555080612723819055505050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156117a757809150506117ad565b60009150505b919050565b6117ba612553565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90614bdb565b60405180910390fd5b8060076000611834612553565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118e1612553565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611926919061394c565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081836119c991906145a9565b905060008111156119df578093505050506119e7565b600093505050505b919050565b60118161271081106119fd57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a2e848484612624565b611a3a84848484612f3e565b611a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7090614c6d565b60405180910390fd5b50505050565b60106020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6127275481565b61032081565b600e6020528060005260406000206000915090505481565b6060611ae282612545565b611b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1890614cff565b60405180910390fd5b6000611b2b6130c5565b90506000815111611b4b5760405180602001604052806000815250611b76565b80611b5584613158565b604051602001611b66929190614d5b565b6040516020818303038152906040525b915050919050565b600181565b611b8b612bdb565b806127248190555050565b6127215481565b600d6020528060005260406000206000915090505481565b60085481565b600381565b600080600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611c175780915050611c1d565b60009150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6127255481565b611cc5612bdb565b806127268190555050565b600a5481565b600c6020528060005260406000206000915090505481565b612710611cf9611076565b10611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3090614b6f565b60405180910390fd5b6000612722541480611d4d57506127225442105b15611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8490614dcb565b60405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e199190614512565b9050612722544210158015611e315750612723544211155b15611fca5760008111611e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7090614e37565b60405180910390fd5b80600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ec491906145a9565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611f113382612f20565b336011612721546127108110611f2a57611f29614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506127216000815480929190611f7d9061466f565b91905055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338283611fb09190614512565b6000604051611fc193929190614e92565b60405180910390a15b600061272354421115612452576000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811461205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590614e37565b60405180910390fd5b60008033604051602001612072919061458e565b60405160208183030381529060405280519060200120905060006120db888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612724548461260d565b905080156120e857600192505b6000612139898980806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612725548561260d565b9050801561214657600293505b60006121978a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612726548661260d565b905080156121a457600394505b60006121f58b8b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612727548761260d565b905080156122035761032095505b60008611156122e55785600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461225791906145a9565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338760006040516122ce93929190614e92565b60405180910390a16122e03387612f20565b600197505b60008911156123d25788600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461233991906145a9565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338a8b6123aa9190614512565b60006040516123bb93929190614e92565b60405180910390a16123cd338a612f20565b600197505b871561244a573360116127215461271081106123f1576123f0614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061272160008154809291906124449061466f565b91905055505b505050505050505b50505050565b612460612bdb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c690614f3b565b60405180910390fd5b6124d881612e5c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008261261a85846132b8565b1490509392505050565b600061262f82612c59565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612656612553565b73ffffffffffffffffffffffffffffffffffffffff1614806126b2575061267b612553565b73ffffffffffffffffffffffffffffffffffffffff1661269a84610c17565b73ffffffffffffffffffffffffffffffffffffffff16145b806126ce57506126cd82600001516126c8612553565b611c22565b5b905080612710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270790614fcd565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127799061505f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e8906150f1565b60405180910390fd5b6127fe858585600161330e565b61280e600084846000015161255b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661287c919061512d565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166129209190615171565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612a2691906145a9565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612b6b57612a9b81612545565b15612b6a576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bd38686866001613314565b505050505050565b612be3612553565b73ffffffffffffffffffffffffffffffffffffffff16612c01611672565b73ffffffffffffffffffffffffffffffffffffffff1614612c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4e90615201565b60405180910390fd5b565b612c6161385e565b612c6a82612545565b612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca090615293565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000008310612d0d5760017f000000000000000000000000000000000000000000000000000000000000000084612d009190614512565b612d0a91906145a9565b90505b60008390505b818110612e1b576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e0757809350505050612e57565b508080612e13906152b3565b915050612d13565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e9061534e565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f3a82826040518060200160405280600081525061331a565b5050565b6000612f5f8473ffffffffffffffffffffffffffffffffffffffff166137f9565b156130b8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f88612553565b8786866040518563ffffffff1660e01b8152600401612faa94939291906153c3565b6020604051808303816000875af1925050508015612fe657506040513d601f19601f82011682018060405250810190612fe39190615424565b60015b613068573d8060008114613016576040519150601f19603f3d011682016040523d82523d6000602084013e61301b565b606091505b506000815103613060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305790614c6d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130bd565b600190505b949350505050565b606061272880546130d5906142fc565b80601f0160208091040260200160405190810160405280929190818152602001828054613101906142fc565b801561314e5780601f106131235761010080835404028352916020019161314e565b820191906000526020600020905b81548152906001019060200180831161313157829003601f168201915b5050505050905090565b60606000820361319f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132b3565b600082905060005b600082146131d15780806131ba9061466f565b915050600a826131ca9190615480565b91506131a7565b60008167ffffffffffffffff8111156131ed576131ec613ce7565b5b6040519080825280601f01601f19166020018201604052801561321f5781602001600182028036833780820191505090505b5090505b600085146132ac576001826132389190614512565b9150600a8561324791906154b1565b603061325391906145a9565b60f81b81838151811061326957613268614749565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132a59190615480565b9450613223565b8093505050505b919050565b60008082905060005b8451811015613303576132ee828683815181106132e1576132e0614749565b5b602002602001015161381c565b915080806132fb9061466f565b9150506132c1565b508091505092915050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338790615554565b60405180910390fd5b61339981612545565b156133d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d0906155c0565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000083111561343c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343390615652565b60405180910390fd5b613449600085838661330e565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516135469190615171565b6fffffffffffffffffffffffffffffffff16815260200185836020015161356d9190615171565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156137dc57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461377c6000888488612f3e565b6137bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b290614c6d565b60405180910390fd5b81806137c69061466f565b92505080806137d49061466f565b91505061370b565b50806001819055506137f16000878588613314565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106138345761382f8284613847565b61383f565b61383e8383613847565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138e1816138ac565b81146138ec57600080fd5b50565b6000813590506138fe816138d8565b92915050565b60006020828403121561391a576139196138a2565b5b6000613928848285016138ef565b91505092915050565b60008115159050919050565b61394681613931565b82525050565b6000602082019050613961600083018461393d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139a1578082015181840152602081019050613986565b60008484015250505050565b6000601f19601f8301169050919050565b60006139c982613967565b6139d38185613972565b93506139e3818560208601613983565b6139ec816139ad565b840191505092915050565b60006020820190508181036000830152613a1181846139be565b905092915050565b6000819050919050565b613a2c81613a19565b8114613a3757600080fd5b50565b600081359050613a4981613a23565b92915050565b600060208284031215613a6557613a646138a2565b5b6000613a7384828501613a3a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613aa782613a7c565b9050919050565b613ab781613a9c565b82525050565b6000602082019050613ad26000830184613aae565b92915050565b613ae181613a9c565b8114613aec57600080fd5b50565b600081359050613afe81613ad8565b92915050565b60008060408385031215613b1b57613b1a6138a2565b5b6000613b2985828601613aef565b9250506020613b3a85828601613a3a565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b6957613b68613b44565b5b8235905067ffffffffffffffff811115613b8657613b85613b49565b5b602083019150836020820283011115613ba257613ba1613b4e565b5b9250929050565b600080600060408486031215613bc257613bc16138a2565b5b6000613bd086828701613aef565b935050602084013567ffffffffffffffff811115613bf157613bf06138a7565b5b613bfd86828701613b53565b92509250509250925092565b613c1281613a19565b82525050565b6000602082019050613c2d6000830184613c09565b92915050565b600080600060608486031215613c4c57613c4b6138a2565b5b6000613c5a86828701613aef565b9350506020613c6b86828701613aef565b9250506040613c7c86828701613a3a565b9150509250925092565b6000819050919050565b613c9981613c86565b82525050565b6000602082019050613cb46000830184613c90565b92915050565b600060208284031215613cd057613ccf6138a2565b5b6000613cde84828501613aef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d1f826139ad565b810181811067ffffffffffffffff82111715613d3e57613d3d613ce7565b5b80604052505050565b6000613d51613898565b9050613d5d8282613d16565b919050565b600067ffffffffffffffff821115613d7d57613d7c613ce7565b5b602082029050602081019050919050565b6000613da1613d9c84613d62565b613d47565b90508083825260208201905060208402830185811115613dc457613dc3613b4e565b5b835b81811015613ded5780613dd98882613aef565b845260208401935050602081019050613dc6565b5050509392505050565b600082601f830112613e0c57613e0b613b44565b5b8135613e1c848260208601613d8e565b91505092915050565b600067ffffffffffffffff821115613e4057613e3f613ce7565b5b602082029050602081019050919050565b6000613e64613e5f84613e25565b613d47565b90508083825260208201905060208402830185811115613e8757613e86613b4e565b5b835b81811015613eb05780613e9c8882613a3a565b845260208401935050602081019050613e89565b5050509392505050565b600082601f830112613ecf57613ece613b44565b5b8135613edf848260208601613e51565b91505092915050565b60008060408385031215613eff57613efe6138a2565b5b600083013567ffffffffffffffff811115613f1d57613f1c6138a7565b5b613f2985828601613df7565b925050602083013567ffffffffffffffff811115613f4a57613f496138a7565b5b613f5685828601613eba565b9150509250929050565b60008083601f840112613f7657613f75613b44565b5b8235905067ffffffffffffffff811115613f9357613f92613b49565b5b602083019150836001820283011115613faf57613fae613b4e565b5b9250929050565b60008060208385031215613fcd57613fcc6138a2565b5b600083013567ffffffffffffffff811115613feb57613fea6138a7565b5b613ff785828601613f60565b92509250509250929050565b61400c81613c86565b811461401757600080fd5b50565b60008135905061402981614003565b92915050565b600060208284031215614045576140446138a2565b5b60006140538482850161401a565b91505092915050565b60008060408385031215614073576140726138a2565b5b600061408185828601613a3a565b925050602061409285828601613a3a565b9150509250929050565b6140a581613931565b81146140b057600080fd5b50565b6000813590506140c28161409c565b92915050565b600080604083850312156140df576140de6138a2565b5b60006140ed85828601613aef565b92505060206140fe858286016140b3565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561412857614127613ce7565b5b614131826139ad565b9050602081019050919050565b82818337600083830152505050565b600061416061415b8461410d565b613d47565b90508281526020810184848401111561417c5761417b614108565b5b61418784828561413e565b509392505050565b600082601f8301126141a4576141a3613b44565b5b81356141b484826020860161414d565b91505092915050565b600080600080608085870312156141d7576141d66138a2565b5b60006141e587828801613aef565b94505060206141f687828801613aef565b935050604061420787828801613a3a565b925050606085013567ffffffffffffffff811115614228576142276138a7565b5b6142348782880161418f565b91505092959194509250565b60008060408385031215614257576142566138a2565b5b600061426585828601613aef565b925050602061427685828601613aef565b9150509250929050565b60008060208385031215614297576142966138a2565b5b600083013567ffffffffffffffff8111156142b5576142b46138a7565b5b6142c185828601613b53565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061431457607f821691505b602082108103614327576143266142cd565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614389602d83613972565b91506143948261432d565b604082019050919050565b600060208201905081810360008301526143b88161437c565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061441b602283613972565b9150614426826143bf565b604082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006144ad603983613972565b91506144b882614451565b604082019050919050565b600060208201905081810360008301526144dc816144a0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061451d82613a19565b915061452883613a19565b92508282039050818111156145405761453f6144e3565b5b92915050565b60008160601b9050919050565b600061455e82614546565b9050919050565b600061457082614553565b9050919050565b61458861458382613a9c565b614565565b82525050565b600061459a8284614577565b60148201915081905092915050565b60006145b482613a19565b91506145bf83613a19565b92508282019050808211156145d7576145d66144e3565b5b92915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614639602283613972565b9150614644826145dd565b604082019050919050565b600060208201905081810360008301526146688161462c565b9050919050565b600061467a82613a19565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146ac576146ab6144e3565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614713602e83613972565b915061471e826146b7565b604082019050919050565b6000602082019050818103600083015261474281614706565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b60006147d4602383613972565b91506147df82614778565b604082019050919050565b60006020820190508181036000830152614803816147c7565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148777fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261483a565b614881868361483a565b95508019841693508086168417925050509392505050565b6000819050919050565b60006148be6148b96148b484613a19565b614899565b613a19565b9050919050565b6000819050919050565b6148d8836148a3565b6148ec6148e4826148c5565b848454614847565b825550505050565b600090565b6149016148f4565b61490c8184846148cf565b505050565b5b81811015614930576149256000826148f9565b600181019050614912565b5050565b601f8211156149755761494681614815565b61494f8461482a565b8101602085101561495e578190505b61497261496a8561482a565b830182614911565b50505b505050565b600082821c905092915050565b60006149986000198460080261497a565b1980831691505092915050565b60006149b18383614987565b9150826002028217905092915050565b6149cb838361480a565b67ffffffffffffffff8111156149e4576149e3613ce7565b5b6149ee82546142fc565b6149f9828285614934565b6000601f831160018114614a285760008415614a16578287013590505b614a2085826149a5565b865550614a88565b601f198416614a3686614815565b60005b82811015614a5e57848901358255600182019150602085019450602081019050614a39565b86831015614a7b5784890135614a77601f891682614987565b8355505b6001600288020188555050505b50505050505050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614aed602b83613972565b9150614af882614a91565b604082019050919050565b60006020820190508181036000830152614b1c81614ae0565b9050919050565b7f4d6178696d756d206c696d697420313030303000000000000000000000000000600082015250565b6000614b59601383613972565b9150614b6482614b23565b602082019050919050565b60006020820190508181036000830152614b8881614b4c565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614bc5601a83613972565b9150614bd082614b8f565b602082019050919050565b60006020820190508181036000830152614bf481614bb8565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614c57603383613972565b9150614c6282614bfb565b604082019050919050565b60006020820190508181036000830152614c8681614c4a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ce9602f83613972565b9150614cf482614c8d565b604082019050919050565b60006020820190508181036000830152614d1881614cdc565b9050919050565b600081905092915050565b6000614d3582613967565b614d3f8185614d1f565b9350614d4f818560208601613983565b80840191505092915050565b6000614d678285614d2a565b9150614d738284614d2a565b91508190509392505050565b7f4e6f742054696d6520546f204d696e7400000000000000000000000000000000600082015250565b6000614db5601083613972565b9150614dc082614d7f565b602082019050919050565b60006020820190508181036000830152614de481614da8565b9050919050565b7f43616e204e6f74204d696e74204d6f7265000000000000000000000000000000600082015250565b6000614e21601183613972565b9150614e2c82614deb565b602082019050919050565b60006020820190508181036000830152614e5081614e14565b9050919050565b6000819050919050565b6000614e7c614e77614e7284614e57565b614899565b613a19565b9050919050565b614e8c81614e61565b82525050565b6000606082019050614ea76000830186613aae565b614eb46020830185613c09565b614ec16040830184614e83565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f25602683613972565b9150614f3082614ec9565b604082019050919050565b60006020820190508181036000830152614f5481614f18565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614fb7603283613972565b9150614fc282614f5b565b604082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615049602683613972565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006150db602583613972565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061513882615111565b915061514383615111565b925082820390506fffffffffffffffffffffffffffffffff81111561516b5761516a6144e3565b5b92915050565b600061517c82615111565b915061518783615111565b925082820190506fffffffffffffffffffffffffffffffff8111156151af576151ae6144e3565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006151eb602083613972565b91506151f6826151b5565b602082019050919050565b6000602082019050818103600083015261521a816151de565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061527d602a83613972565b915061528882615221565b604082019050919050565b600060208201905081810360008301526152ac81615270565b9050919050565b60006152be82613a19565b9150600082036152d1576152d06144e3565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615338602f83613972565b9150615343826152dc565b604082019050919050565b600060208201905081810360008301526153678161532b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153958261536e565b61539f8185615379565b93506153af818560208601613983565b6153b8816139ad565b840191505092915050565b60006080820190506153d86000830187613aae565b6153e56020830186613aae565b6153f26040830185613c09565b8181036060830152615404818461538a565b905095945050505050565b60008151905061541e816138d8565b92915050565b60006020828403121561543a576154396138a2565b5b60006154488482850161540f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061548b82613a19565b915061549683613a19565b9250826154a6576154a5615451565b5b828204905092915050565b60006154bc82613a19565b91506154c783613a19565b9250826154d7576154d6615451565b5b828206905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061553e602183613972565b9150615549826154e2565b604082019050919050565b6000602082019050818103600083015261556d81615531565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006155aa601d83613972565b91506155b582615574565b602082019050919050565b600060208201905081810360008301526155d98161559d565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b600061563c602283613972565b9150615647826155e0565b604082019050919050565b6000602082019050818103600083015261566b8161562f565b905091905056fea2646970667358221220cc72da21e348e870ad4efaafc2f9390ac857f277033b2d4c59f63438205988ea64736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806395d89b411161019d578063ca942356116100e9578063e985e9c5116100a2578063ef37502e1161007c578063ef37502e146109b5578063f1d30b7d146109d3578063f2d646a114610a03578063f2fde38b14610a1f5761030c565b8063e985e9c51461094b578063eb36cf821461097b578063eddd548e146109995761030c565b8063ca94235614610875578063caf00b9b14610891578063d27556f0146108af578063d7224ba0146108df578063da63801f146108fd578063e4c4e0d71461091b5761030c565b8063b88d4fde11610156578063c376b75511610130578063c376b755146107d9578063c808f9bc146107f7578063c87b56dd14610827578063c90db0f9146108575761030c565b8063b88d4fde1461076f578063be0896ea1461078b578063c0e605e9146107bb5761030c565b806395d89b4114610689578063980846ce146106a7578063a1c3df32146106c3578063a22cb465146106f3578063a5caa1031461070f578063b535a8e11461073f5761030c565b80634f6ccce71161025c578063717a002b1161021557806385c4f328116101ef57806385c4f328146106135780638805063c1461062f5780638da5cb5b1461064d578063931e2e491461066b5761030c565b8063717a002b146105bb5780637b15a8e7146105d95780638583af97146105f55761030c565b80634f6ccce7146104e957806355f804b3146105195780636352211e14610535578063704428831461056557806370a0823114610581578063715018a6146105b15761030c565b806323a47023116102c95780632f745c59116102a35780632f745c5914610451578063336cf7e91461048157806342842e0e146104b157806343ecad08146104cd5761030c565b806323a47023146103f957806323b872dd14610417578063255f0057146104335761030c565b806301ffc9a71461031157806306fdde0314610341578063081812fc1461035f578063095ea7b31461038f5780630fc92096146103ab57806318160ddd146103db575b600080fd5b61032b60048036038101906103269190613904565b610a3b565b604051610338919061394c565b60405180910390f35b610349610b85565b60405161035691906139f7565b60405180910390f35b61037960048036038101906103749190613a4f565b610c17565b6040516103869190613abd565b60405180910390f35b6103a960048036038101906103a49190613b04565b610c9c565b005b6103c560048036038101906103c09190613ba9565b610db4565b6040516103d29190613c18565b60405180910390f35b6103e3611076565b6040516103f09190613c18565b60405180910390f35b610401611080565b60405161040e9190613c18565b60405180910390f35b610431600480360381019061042c9190613c33565b611086565b005b61043b611096565b6040516104489190613c9f565b60405180910390f35b61046b60048036038101906104669190613b04565b61109d565b6040516104789190613c18565b60405180910390f35b61049b60048036038101906104969190613cba565b611299565b6040516104a89190613c18565b60405180910390f35b6104cb60048036038101906104c69190613c33565b6112b1565b005b6104e760048036038101906104e29190613ee8565b6112d1565b005b61050360048036038101906104fe9190613a4f565b6113d9565b6040516105109190613c18565b60405180910390f35b610533600480360381019061052e9190613fb6565b61142c565b005b61054f600480360381019061054a9190613a4f565b61144b565b60405161055c9190613abd565b60405180910390f35b61057f600480360381019061057a919061402f565b611461565b005b61059b60048036038101906105969190613cba565b611474565b6040516105a89190613c18565b60405180910390f35b6105b961155c565b005b6105c3611570565b6040516105d09190613c18565b60405180910390f35b6105f360048036038101906105ee919061402f565b611577565b005b6105fd61158a565b60405161060a9190613c9f565b60405180910390f35b61062d60048036038101906106289190613a4f565b611591565b005b61063761166d565b6040516106449190613c18565b60405180910390f35b610655611672565b6040516106629190613abd565b60405180910390f35b61067361169b565b6040516106809190613c18565b60405180910390f35b6106916116a2565b60405161069e91906139f7565b60405180910390f35b6106c160048036038101906106bc919061405c565b611734565b005b6106dd60048036038101906106d89190613cba565b611750565b6040516106ea9190613c18565b60405180910390f35b61070d600480360381019061070891906140c8565b6117b2565b005b61072960048036038101906107249190613cba565b611932565b6040516107369190613c18565b60405180910390f35b61075960048036038101906107549190613a4f565b6119ec565b6040516107669190613abd565b60405180910390f35b610789600480360381019061078491906141bd565b611a23565b005b6107a560048036038101906107a09190613a4f565b611a7f565b6040516107b29190613abd565b60405180910390f35b6107c3611ab2565b6040516107d09190613c9f565b60405180910390f35b6107e1611ab9565b6040516107ee9190613c18565b60405180910390f35b610811600480360381019061080c9190613cba565b611abf565b60405161081e9190613c18565b60405180910390f35b610841600480360381019061083c9190613a4f565b611ad7565b60405161084e91906139f7565b60405180910390f35b61085f611b7e565b60405161086c9190613c18565b60405180910390f35b61088f600480360381019061088a919061402f565b611b83565b005b610899611b96565b6040516108a69190613c18565b60405180910390f35b6108c960048036038101906108c49190613cba565b611b9d565b6040516108d69190613c18565b60405180910390f35b6108e7611bb5565b6040516108f49190613c18565b60405180910390f35b610905611bbb565b6040516109129190613c18565b60405180910390f35b61093560048036038101906109309190613cba565b611bc0565b6040516109429190613c18565b60405180910390f35b61096560048036038101906109609190614240565b611c22565b604051610972919061394c565b60405180910390f35b610983611cb6565b6040516109909190613c9f565b60405180910390f35b6109b360048036038101906109ae919061402f565b611cbd565b005b6109bd611cd0565b6040516109ca9190613c18565b60405180910390f35b6109ed60048036038101906109e89190613cba565b611cd6565b6040516109fa9190613c18565b60405180910390f35b610a1d6004803603810190610a189190614280565b611cee565b005b610a396004803603810190610a349190613cba565b612458565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b6e57507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b7e5750610b7d826124db565b5b9050919050565b606060028054610b94906142fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc0906142fc565b8015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b5050505050905090565b6000610c2282612545565b610c61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c589061439f565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ca78261144b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90614431565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d36612553565b73ffffffffffffffffffffffffffffffffffffffff161480610d655750610d6481610d5f612553565b611c22565b5b610da4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9b906144c3565b60405180910390fd5b610daf83838361255b565b505050565b600080600f60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e419190614512565b905060008086604051602001610e57919061458e565b6040516020818303038152906040528051906020012090506000610ec0878780806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612724548461260d565b90508015610ecd57600192505b6000610f1e888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612725548561260d565b90508015610f2b57600293505b6000610f7c898980806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612726548661260d565b90508015610f8957600394505b6000610fda8a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612727548761260d565b90508015610fe85761032095505b6000600d60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054876110359190614512565b90506000888261104591906145a9565b905060008111156110615780995050505050505050505061106f565b600099505050505050505050505b9392505050565b6000600154905090565b600b5481565b611091838383612624565b505050565b6127245481565b60006110a883611474565b82106110e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e09061464f565b60405180910390fd5b60006110f3611076565b905060008060005b83811015611257576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146111ed57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361124357868403611234578195505050505050611293565b838061123f9061466f565b9450505b50808061124f9061466f565b9150506110fb565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161128a90614729565b60405180910390fd5b92915050565b600f6020528060005260406000206000915090505481565b6112cc83838360405180602001604052806000815250611a23565b505050565b6112d9612bdb565b60005b82518110156113d4578181815181106112f8576112f7614749565b5b6020026020010151600e600085848151811061131757611316614749565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461136491906145a9565b600e600085848151811061137b5761137a614749565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806113cc9061466f565b9150506112dc565b505050565b60006113e3611076565b8210611424576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141b906147ea565b60405180910390fd5b819050919050565b611434612bdb565b818161272891826114469291906149c1565b505050565b600061145682612c59565b600001519050919050565b611469612bdb565b806127258190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036114e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114db90614b03565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b611564612bdb565b61156e6000612e5c565b565b6127235481565b61157f612bdb565b806127278190555050565b6127265481565b611599612bdb565b612710816115a5611076565b6115af91906145a9565b106115ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e690614b6f565b60405180910390fd5b6115f93382612f20565b33601161272154612710811061161257611611614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061272160008154809291906116659061466f565b919050555050565b600281565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6127225481565b6060600380546116b1906142fc565b80601f01602080910402602001604051908101604052809291908181526020018280546116dd906142fc565b801561172a5780601f106116ff5761010080835404028352916020019161172a565b820191906000526020600020905b81548152906001019060200180831161170d57829003601f168201915b5050505050905090565b61173c612bdb565b816127228190555080612723819055505050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111156117a757809150506117ad565b60009150505b919050565b6117ba612553565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181e90614bdb565b60405180910390fd5b8060076000611834612553565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118e1612553565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611926919061394c565b60405180910390a35050565b600080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600f60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081836119c991906145a9565b905060008111156119df578093505050506119e7565b600093505050505b919050565b60118161271081106119fd57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a2e848484612624565b611a3a84848484612f3e565b611a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7090614c6d565b60405180910390fd5b50505050565b60106020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6127275481565b61032081565b600e6020528060005260406000206000915090505481565b6060611ae282612545565b611b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1890614cff565b60405180910390fd5b6000611b2b6130c5565b90506000815111611b4b5760405180602001604052806000815250611b76565b80611b5584613158565b604051602001611b66929190614d5b565b6040516020818303038152906040525b915050919050565b600181565b611b8b612bdb565b806127248190555050565b6127215481565b600d6020528060005260406000206000915090505481565b60085481565b600381565b600080600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811115611c175780915050611c1d565b60009150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6127255481565b611cc5612bdb565b806127268190555050565b600a5481565b600c6020528060005260406000206000915090505481565b612710611cf9611076565b10611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3090614b6f565b60405180910390fd5b6000612722541480611d4d57506127225442105b15611d8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8490614dcb565b60405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e199190614512565b9050612722544210158015611e315750612723544211155b15611fca5760008111611e79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7090614e37565b60405180910390fd5b80600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ec491906145a9565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611f113382612f20565b336011612721546127108110611f2a57611f29614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506127216000815480929190611f7d9061466f565b91905055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338283611fb09190614512565b6000604051611fc193929190614e92565b60405180910390a15b600061272354421115612452576000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000811461205e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205590614e37565b60405180910390fd5b60008033604051602001612072919061458e565b60405160208183030381529060405280519060200120905060006120db888880806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612724548461260d565b905080156120e857600192505b6000612139898980806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612725548561260d565b9050801561214657600293505b60006121978a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612726548661260d565b905080156121a457600394505b60006121f58b8b80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050612727548761260d565b905080156122035761032095505b60008611156122e55785600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461225791906145a9565b600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338760006040516122ce93929190614e92565b60405180910390a16122e03387612f20565b600197505b60008911156123d25788600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461233991906145a9565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f42290841b3516ec82ae809df56946189348c42fb69e79963f4f74d6854c64c5a338a8b6123aa9190614512565b60006040516123bb93929190614e92565b60405180910390a16123cd338a612f20565b600197505b871561244a573360116127215461271081106123f1576123f0614749565b5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061272160008154809291906124449061466f565b91905055505b505050505050505b50505050565b612460612bdb565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036124cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c690614f3b565b60405180910390fd5b6124d881612e5c565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600060015482109050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60008261261a85846132b8565b1490509392505050565b600061262f82612c59565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff16612656612553565b73ffffffffffffffffffffffffffffffffffffffff1614806126b2575061267b612553565b73ffffffffffffffffffffffffffffffffffffffff1661269a84610c17565b73ffffffffffffffffffffffffffffffffffffffff16145b806126ce57506126cd82600001516126c8612553565b611c22565b5b905080612710576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270790614fcd565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614612782576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127799061505f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16036127f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e8906150f1565b60405180910390fd5b6127fe858585600161330e565b61280e600084846000015161255b565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff1661287c919061512d565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff166129209190615171565b92506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050506000600184612a2691906145a9565b9050600073ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612b6b57612a9b81612545565b15612b6a576040518060400160405280846000015173ffffffffffffffffffffffffffffffffffffffff168152602001846020015167ffffffffffffffff168152506004600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055509050505b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bd38686866001613314565b505050505050565b612be3612553565b73ffffffffffffffffffffffffffffffffffffffff16612c01611672565b73ffffffffffffffffffffffffffffffffffffffff1614612c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4e90615201565b60405180910390fd5b565b612c6161385e565b612c6a82612545565b612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca090615293565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000013888310612d0d5760017f000000000000000000000000000000000000000000000000000000000000138884612d009190614512565b612d0a91906145a9565b90505b60008390505b818110612e1b576000600460008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612e0757809350505050612e57565b508080612e13906152b3565b915050612d13565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4e9061534e565b60405180910390fd5b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612f3a82826040518060200160405280600081525061331a565b5050565b6000612f5f8473ffffffffffffffffffffffffffffffffffffffff166137f9565b156130b8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f88612553565b8786866040518563ffffffff1660e01b8152600401612faa94939291906153c3565b6020604051808303816000875af1925050508015612fe657506040513d601f19601f82011682018060405250810190612fe39190615424565b60015b613068573d8060008114613016576040519150601f19603f3d011682016040523d82523d6000602084013e61301b565b606091505b506000815103613060576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305790614c6d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130bd565b600190505b949350505050565b606061272880546130d5906142fc565b80601f0160208091040260200160405190810160405280929190818152602001828054613101906142fc565b801561314e5780601f106131235761010080835404028352916020019161314e565b820191906000526020600020905b81548152906001019060200180831161313157829003601f168201915b5050505050905090565b60606000820361319f576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506132b3565b600082905060005b600082146131d15780806131ba9061466f565b915050600a826131ca9190615480565b91506131a7565b60008167ffffffffffffffff8111156131ed576131ec613ce7565b5b6040519080825280601f01601f19166020018201604052801561321f5781602001600182028036833780820191505090505b5090505b600085146132ac576001826132389190614512565b9150600a8561324791906154b1565b603061325391906145a9565b60f81b81838151811061326957613268614749565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856132a59190615480565b9450613223565b8093505050505b919050565b60008082905060005b8451811015613303576132ee828683815181106132e1576132e0614749565b5b602002602001015161381c565b915080806132fb9061466f565b9150506132c1565b508091505092915050565b50505050565b50505050565b60006001549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338790615554565b60405180910390fd5b61339981612545565b156133d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133d0906155c0565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000138883111561343c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343390615652565b60405180910390fd5b613449600085838661330e565b6000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016000820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050905060405180604001604052808583600001516135469190615171565b6fffffffffffffffffffffffffffffffff16815260200185836020015161356d9190615171565b6fffffffffffffffffffffffffffffffff16815250600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505060405180604001604052808673ffffffffffffffffffffffffffffffffffffffff1681526020014267ffffffffffffffff168152506004600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550905050600082905060005b858110156137dc57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461377c6000888488612f3e565b6137bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b290614c6d565b60405180910390fd5b81806137c69061466f565b92505080806137d49061466f565b91505061370b565b50806001819055506137f16000878588613314565b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106138345761382f8284613847565b61383f565b61383e8383613847565b5b905092915050565b600082600052816020526040600020905092915050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6138e1816138ac565b81146138ec57600080fd5b50565b6000813590506138fe816138d8565b92915050565b60006020828403121561391a576139196138a2565b5b6000613928848285016138ef565b91505092915050565b60008115159050919050565b61394681613931565b82525050565b6000602082019050613961600083018461393d565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156139a1578082015181840152602081019050613986565b60008484015250505050565b6000601f19601f8301169050919050565b60006139c982613967565b6139d38185613972565b93506139e3818560208601613983565b6139ec816139ad565b840191505092915050565b60006020820190508181036000830152613a1181846139be565b905092915050565b6000819050919050565b613a2c81613a19565b8114613a3757600080fd5b50565b600081359050613a4981613a23565b92915050565b600060208284031215613a6557613a646138a2565b5b6000613a7384828501613a3a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613aa782613a7c565b9050919050565b613ab781613a9c565b82525050565b6000602082019050613ad26000830184613aae565b92915050565b613ae181613a9c565b8114613aec57600080fd5b50565b600081359050613afe81613ad8565b92915050565b60008060408385031215613b1b57613b1a6138a2565b5b6000613b2985828601613aef565b9250506020613b3a85828601613a3a565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f840112613b6957613b68613b44565b5b8235905067ffffffffffffffff811115613b8657613b85613b49565b5b602083019150836020820283011115613ba257613ba1613b4e565b5b9250929050565b600080600060408486031215613bc257613bc16138a2565b5b6000613bd086828701613aef565b935050602084013567ffffffffffffffff811115613bf157613bf06138a7565b5b613bfd86828701613b53565b92509250509250925092565b613c1281613a19565b82525050565b6000602082019050613c2d6000830184613c09565b92915050565b600080600060608486031215613c4c57613c4b6138a2565b5b6000613c5a86828701613aef565b9350506020613c6b86828701613aef565b9250506040613c7c86828701613a3a565b9150509250925092565b6000819050919050565b613c9981613c86565b82525050565b6000602082019050613cb46000830184613c90565b92915050565b600060208284031215613cd057613ccf6138a2565b5b6000613cde84828501613aef565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d1f826139ad565b810181811067ffffffffffffffff82111715613d3e57613d3d613ce7565b5b80604052505050565b6000613d51613898565b9050613d5d8282613d16565b919050565b600067ffffffffffffffff821115613d7d57613d7c613ce7565b5b602082029050602081019050919050565b6000613da1613d9c84613d62565b613d47565b90508083825260208201905060208402830185811115613dc457613dc3613b4e565b5b835b81811015613ded5780613dd98882613aef565b845260208401935050602081019050613dc6565b5050509392505050565b600082601f830112613e0c57613e0b613b44565b5b8135613e1c848260208601613d8e565b91505092915050565b600067ffffffffffffffff821115613e4057613e3f613ce7565b5b602082029050602081019050919050565b6000613e64613e5f84613e25565b613d47565b90508083825260208201905060208402830185811115613e8757613e86613b4e565b5b835b81811015613eb05780613e9c8882613a3a565b845260208401935050602081019050613e89565b5050509392505050565b600082601f830112613ecf57613ece613b44565b5b8135613edf848260208601613e51565b91505092915050565b60008060408385031215613eff57613efe6138a2565b5b600083013567ffffffffffffffff811115613f1d57613f1c6138a7565b5b613f2985828601613df7565b925050602083013567ffffffffffffffff811115613f4a57613f496138a7565b5b613f5685828601613eba565b9150509250929050565b60008083601f840112613f7657613f75613b44565b5b8235905067ffffffffffffffff811115613f9357613f92613b49565b5b602083019150836001820283011115613faf57613fae613b4e565b5b9250929050565b60008060208385031215613fcd57613fcc6138a2565b5b600083013567ffffffffffffffff811115613feb57613fea6138a7565b5b613ff785828601613f60565b92509250509250929050565b61400c81613c86565b811461401757600080fd5b50565b60008135905061402981614003565b92915050565b600060208284031215614045576140446138a2565b5b60006140538482850161401a565b91505092915050565b60008060408385031215614073576140726138a2565b5b600061408185828601613a3a565b925050602061409285828601613a3a565b9150509250929050565b6140a581613931565b81146140b057600080fd5b50565b6000813590506140c28161409c565b92915050565b600080604083850312156140df576140de6138a2565b5b60006140ed85828601613aef565b92505060206140fe858286016140b3565b9150509250929050565b600080fd5b600067ffffffffffffffff82111561412857614127613ce7565b5b614131826139ad565b9050602081019050919050565b82818337600083830152505050565b600061416061415b8461410d565b613d47565b90508281526020810184848401111561417c5761417b614108565b5b61418784828561413e565b509392505050565b600082601f8301126141a4576141a3613b44565b5b81356141b484826020860161414d565b91505092915050565b600080600080608085870312156141d7576141d66138a2565b5b60006141e587828801613aef565b94505060206141f687828801613aef565b935050604061420787828801613a3a565b925050606085013567ffffffffffffffff811115614228576142276138a7565b5b6142348782880161418f565b91505092959194509250565b60008060408385031215614257576142566138a2565b5b600061426585828601613aef565b925050602061427685828601613aef565b9150509250929050565b60008060208385031215614297576142966138a2565b5b600083013567ffffffffffffffff8111156142b5576142b46138a7565b5b6142c185828601613b53565b92509250509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061431457607f821691505b602082108103614327576143266142cd565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000614389602d83613972565b91506143948261432d565b604082019050919050565b600060208201905081810360008301526143b88161437c565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b600061441b602283613972565b9150614426826143bf565b604082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b60006144ad603983613972565b91506144b882614451565b604082019050919050565b600060208201905081810360008301526144dc816144a0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061451d82613a19565b915061452883613a19565b92508282039050818111156145405761453f6144e3565b5b92915050565b60008160601b9050919050565b600061455e82614546565b9050919050565b600061457082614553565b9050919050565b61458861458382613a9c565b614565565b82525050565b600061459a8284614577565b60148201915081905092915050565b60006145b482613a19565b91506145bf83613a19565b92508282019050808211156145d7576145d66144e3565b5b92915050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000614639602283613972565b9150614644826145dd565b604082019050919050565b600060208201905081810360008301526146688161462c565b9050919050565b600061467a82613a19565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146ac576146ab6144e3565b5b600182019050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000614713602e83613972565b915061471e826146b7565b604082019050919050565b6000602082019050818103600083015261474281614706565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b60006147d4602383613972565b91506147df82614778565b604082019050919050565b60006020820190508181036000830152614803816147c7565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026148777fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261483a565b614881868361483a565b95508019841693508086168417925050509392505050565b6000819050919050565b60006148be6148b96148b484613a19565b614899565b613a19565b9050919050565b6000819050919050565b6148d8836148a3565b6148ec6148e4826148c5565b848454614847565b825550505050565b600090565b6149016148f4565b61490c8184846148cf565b505050565b5b81811015614930576149256000826148f9565b600181019050614912565b5050565b601f8211156149755761494681614815565b61494f8461482a565b8101602085101561495e578190505b61497261496a8561482a565b830182614911565b50505b505050565b600082821c905092915050565b60006149986000198460080261497a565b1980831691505092915050565b60006149b18383614987565b9150826002028217905092915050565b6149cb838361480a565b67ffffffffffffffff8111156149e4576149e3613ce7565b5b6149ee82546142fc565b6149f9828285614934565b6000601f831160018114614a285760008415614a16578287013590505b614a2085826149a5565b865550614a88565b601f198416614a3686614815565b60005b82811015614a5e57848901358255600182019150602085019450602081019050614a39565b86831015614a7b5784890135614a77601f891682614987565b8355505b6001600288020188555050505b50505050505050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000614aed602b83613972565b9150614af882614a91565b604082019050919050565b60006020820190508181036000830152614b1c81614ae0565b9050919050565b7f4d6178696d756d206c696d697420313030303000000000000000000000000000600082015250565b6000614b59601383613972565b9150614b6482614b23565b602082019050919050565b60006020820190508181036000830152614b8881614b4c565b9050919050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614bc5601a83613972565b9150614bd082614b8f565b602082019050919050565b60006020820190508181036000830152614bf481614bb8565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b6000614c57603383613972565b9150614c6282614bfb565b604082019050919050565b60006020820190508181036000830152614c8681614c4a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ce9602f83613972565b9150614cf482614c8d565b604082019050919050565b60006020820190508181036000830152614d1881614cdc565b9050919050565b600081905092915050565b6000614d3582613967565b614d3f8185614d1f565b9350614d4f818560208601613983565b80840191505092915050565b6000614d678285614d2a565b9150614d738284614d2a565b91508190509392505050565b7f4e6f742054696d6520546f204d696e7400000000000000000000000000000000600082015250565b6000614db5601083613972565b9150614dc082614d7f565b602082019050919050565b60006020820190508181036000830152614de481614da8565b9050919050565b7f43616e204e6f74204d696e74204d6f7265000000000000000000000000000000600082015250565b6000614e21601183613972565b9150614e2c82614deb565b602082019050919050565b60006020820190508181036000830152614e5081614e14565b9050919050565b6000819050919050565b6000614e7c614e77614e7284614e57565b614899565b613a19565b9050919050565b614e8c81614e61565b82525050565b6000606082019050614ea76000830186613aae565b614eb46020830185613c09565b614ec16040830184614e83565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f25602683613972565b9150614f3082614ec9565b604082019050919050565b60006020820190508181036000830152614f5481614f18565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b6000614fb7603283613972565b9150614fc282614f5b565b604082019050919050565b60006020820190508181036000830152614fe681614faa565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b6000615049602683613972565b915061505482614fed565b604082019050919050565b600060208201905081810360008301526150788161503c565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b60006150db602583613972565b91506150e68261507f565b604082019050919050565b6000602082019050818103600083015261510a816150ce565b9050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061513882615111565b915061514383615111565b925082820390506fffffffffffffffffffffffffffffffff81111561516b5761516a6144e3565b5b92915050565b600061517c82615111565b915061518783615111565b925082820190506fffffffffffffffffffffffffffffffff8111156151af576151ae6144e3565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006151eb602083613972565b91506151f6826151b5565b602082019050919050565b6000602082019050818103600083015261521a816151de565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b600061527d602a83613972565b915061528882615221565b604082019050919050565b600060208201905081810360008301526152ac81615270565b9050919050565b60006152be82613a19565b9150600082036152d1576152d06144e3565b5b600182039050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b6000615338602f83613972565b9150615343826152dc565b604082019050919050565b600060208201905081810360008301526153678161532b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006153958261536e565b61539f8185615379565b93506153af818560208601613983565b6153b8816139ad565b840191505092915050565b60006080820190506153d86000830187613aae565b6153e56020830186613aae565b6153f26040830185613c09565b8181036060830152615404818461538a565b905095945050505050565b60008151905061541e816138d8565b92915050565b60006020828403121561543a576154396138a2565b5b60006154488482850161540f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061548b82613a19565b915061549683613a19565b9250826154a6576154a5615451565b5b828204905092915050565b60006154bc82613a19565b91506154c783613a19565b9250826154d7576154d6615451565b5b828206905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b600061553e602183613972565b9150615549826154e2565b604082019050919050565b6000602082019050818103600083015261556d81615531565b9050919050565b7f455243373231413a20746f6b656e20616c7265616479206d696e746564000000600082015250565b60006155aa601d83613972565b91506155b582615574565b602082019050919050565b600060208201905081810360008301526155d98161559d565b9050919050565b7f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960008201527f6768000000000000000000000000000000000000000000000000000000000000602082015250565b600061563c602283613972565b9150615647826155e0565b604082019050919050565b6000602082019050818103600083015261566b8161562f565b905091905056fea2646970667358221220cc72da21e348e870ad4efaafc2f9390ac857f277033b2d4c59f63438205988ea64736f6c63430008110033

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.