ETH Price: $2,945.39 (-2.29%)
Gas: 3 Gwei

Contract

0xE4173508c2C4a1FB23088D1C6154f91EE5D55Bdb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...193212952024-02-27 20:32:4779 days ago1709065967IN
0xE4173508...EE5D55Bdb
0 ETH0.0012519351.73910364
Set Approval For...189113662024-01-01 8:20:59136 days ago1704097259IN
0xE4173508...EE5D55Bdb
0 ETH0.000219089.05410451
Set Approval For...188542592023-12-24 7:52:35144 days ago1703404355IN
0xE4173508...EE5D55Bdb
0 ETH0.0005508422.76512853
Set Approval For...187675792023-12-12 3:58:35157 days ago1702353515IN
0xE4173508...EE5D55Bdb
0 ETH0.0011286224.4456036
Set Approval For...187331732023-12-07 8:17:47161 days ago1701937067IN
0xE4173508...EE5D55Bdb
0 ETH0.0008836236.5543384
Set Approval For...186192512023-11-21 9:29:35177 days ago1700558975IN
0xE4173508...EE5D55Bdb
0 ETH0.0011210724.28207679
Set Approval For...186185742023-11-21 7:12:35177 days ago1700550755IN
0xE4173508...EE5D55Bdb
0 ETH0.0012289626.61881753
Set Approval For...185141282023-11-06 16:28:47192 days ago1699288127IN
0xE4173508...EE5D55Bdb
0 ETH0.0022077247.81840488
Set Approval For...184185182023-10-24 7:05:11205 days ago1698131111IN
0xE4173508...EE5D55Bdb
0 ETH0.0003482414.39188169
Set Approval For...180998362023-09-09 15:50:47250 days ago1694274647IN
0xE4173508...EE5D55Bdb
0 ETH0.0005881512.73909659
Set Approval For...178206452023-08-01 14:07:11289 days ago1690898831IN
0xE4173508...EE5D55Bdb
0 ETH0.0013026228.21421407
Set Approval For...177258802023-07-19 7:54:35302 days ago1689753275IN
0xE4173508...EE5D55Bdb
0 ETH0.0008498418.40720684
Set Approval For...176983022023-07-15 10:48:35306 days ago1689418115IN
0xE4173508...EE5D55Bdb
0 ETH0.00056612.28181817
Set Approval For...176497142023-07-08 14:44:11313 days ago1688827451IN
0xE4173508...EE5D55Bdb
0 ETH0.0010281422.26911961
Set Approval For...174624512023-06-12 7:18:59339 days ago1686554339IN
0xE4173508...EE5D55Bdb
0 ETH0.0007021115.22738019
Set Approval For...174568662023-06-11 12:27:11340 days ago1686486431IN
0xE4173508...EE5D55Bdb
0 ETH0.0007228715.67742297
Set Approval For...174239312023-06-06 21:00:35345 days ago1686085235IN
0xE4173508...EE5D55Bdb
0 ETH0.0016875736.54903414
Set Approval For...172612892023-05-14 23:16:35368 days ago1684106195IN
0xE4173508...EE5D55Bdb
0 ETH0.0014625231.73543188
Set Approval For...172554772023-05-14 3:29:47369 days ago1684034987IN
0xE4173508...EE5D55Bdb
0 ETH0.0017044436.98491136
Set Approval For...171830322023-05-03 22:03:47379 days ago1683151427IN
0xE4173508...EE5D55Bdb
0 ETH0.0041483389.96806912
Set Approval For...171208782023-04-25 4:23:11388 days ago1682396591IN
0xE4173508...EE5D55Bdb
0 ETH0.0016590935.94454591
Set Approval For...170594732023-04-16 12:33:47396 days ago1681648427IN
0xE4173508...EE5D55Bdb
0 ETH0.0011346324.62055194
Set Approval For...170107402023-04-09 12:27:47403 days ago1681043267IN
0xE4173508...EE5D55Bdb
0 ETH0.0009766721.19288158
Transfer From170106792023-04-09 12:15:35403 days ago1681042535IN
0xE4173508...EE5D55Bdb
0 ETH0.0011918419.3843389
Transfer From170036812023-04-08 12:28:35404 days ago1680956915IN
0xE4173508...EE5D55Bdb
0 ETH0.0011664718.97548164
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
164328532023-01-18 9:40:23484 days ago1674034823
0xE4173508...EE5D55Bdb
40.55 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token0913

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Token0913.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import "./ERC721A.sol";

error InvalidSignature();
error NotMeetDutchMint();
error NotMeetWhiteListMint();
error NotMeetPublicMint();
error NotMeetFreeMint();

contract Token0913 is Ownable, ERC721A, ReentrancyGuard {
    struct DutchItem {
        uint64 dutchStartTime;
        uint64 dutchCyclePriceWei;
        uint64 dutchStartPriceWei;
        uint64 dutchEndPriceWei;
        uint256 total;
    }
    struct WhiteListItem {
        uint64 whiteFutures;
        uint64 whitePriceWei;
        uint64 whitelistStartTime;
        uint64 whitelistEndTime;
        uint256 total;
        address checkAddress;
    }
    struct FreeItem {
        uint64 freeFutures;
        uint64 freeStartTime;
        uint64 freeEndTime;        
        uint64 total;
        address checkAddress;
    }
    struct PublicItem {
        uint64 publicPriceWei;
        uint64 publicStartTime;
        uint64 publicEndTime;
        uint64 total;
    }

    FreeItem public freeCofig;
    DutchItem public dutchConfig;
    PublicItem public publicConfig;
    WhiteListItem public whiteListConfig;
    address public adminAddress;

    uint256 public constant MAX_TOTAL_SUPPLY = 10000;
    uint256 public constant AIRDROP_LOCK_TIMES = 30 days;
    uint256 public constant AUCTION_DROP_INTERVAL = 30 minutes;

    string _baseTokenURI;
    uint256 _curveLength;    
    mapping(address => uint64) freeAddress;
    mapping(address => uint64) whiteListAddress;

    constructor() ERC721A("Token 0913", "0913", 20) {}

    // limit another contract
    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    // imit admin
    modifier onlyAdmin() {
        require(
            (adminAddress == _msgSender()) || (owner() == _msgSender()),
            "Ownable: caller not Admin"
        );
        _;
    }

    // limit total
    modifier maxTotal(uint256 total){
        require(
            (total != 0) && (totalSupply() + total <= MAX_TOTAL_SUPPLY),
            "Error: Exceed max total nor zero"
        );
        _;
    }

    function setDutchConfig(DutchItem calldata configData) external onlyAdmin maxTotal(configData.total) {
        require(!isDutchSaleOn(),"Error: activity has started");
        require(
            configData.dutchStartPriceWei > configData.dutchEndPriceWei,
            "Error: Price misallocation"
        );
        dutchConfig = configData;

        uint256 _startPrice = uint256(configData.dutchStartPriceWei);
        uint256 _endPrice = uint256(configData.dutchEndPriceWei);
        uint256 _cyclePrice = uint256(configData.dutchCyclePriceWei);
        _curveLength = (((_startPrice - _endPrice) / _cyclePrice) + 1) * AUCTION_DROP_INTERVAL;
    }

    function setWhiteListConfig(WhiteListItem calldata configData) external onlyAdmin maxTotal(configData.total) {
        require(!isWhiteListSaleOn(),"Error: activity has started");
        whiteListConfig = configData;
    }

    function setFreeConfig(FreeItem calldata configData) external onlyAdmin maxTotal(configData.total) {
        require(!isFreeSaleOn(),"Error: activity has started");
        freeCofig = configData;
    }

    function setPublicConfig(PublicItem calldata configData) external onlyAdmin maxTotal(configData.total) {
        require(!isPublicSaleOn(),"Error: activity has started");
        publicConfig = configData;
    }

    function endDutch() external onlyAdmin {
        dutchConfig = DutchItem(
            dutchConfig.dutchStartTime,
            0,
            0,
            0,
            0
        );
    }

    function endWhiteList() external onlyAdmin {
        whiteListConfig = WhiteListItem(
            whiteListConfig.whiteFutures,
            0,
            whiteListConfig.whitelistStartTime,
            uint64(block.timestamp),
            0,
            whiteListConfig.checkAddress
        );
    }

    function endPublic() external onlyAdmin {
        publicConfig = PublicItem(
            0,
            publicConfig.publicStartTime,
            uint64(block.timestamp),
            0
        );
    }

    function endFree() external onlyAdmin {
        freeCofig = FreeItem(
            freeCofig.freeFutures,
            freeCofig.freeStartTime,
            uint64(block.timestamp),
            0,
            freeCofig.checkAddress
        );
    }

    function setAdmin(address newAdmin) external onlyOwner {
        adminAddress = newAdmin;
    }

    function airdropMint(address[] calldata tos, uint256[] calldata nums, bool isLock) external onlyAdmin {
        uint256 length = tos.length;
        require(length == nums.length,"Parameter length error");        
        uint256 total = totalSupply();
        for(uint256 t=0; t<length; t++){
            total += nums[t];
        }
        require(total <= MAX_TOTAL_SUPPLY,"Not enough for mint");

        uint64 lockTime = isLock ? uint64(block.timestamp + AIRDROP_LOCK_TIMES) : 0;
        for (uint256 i = 0; i < length; i++) {
            _safeMint(tos[i], nums[i], lockTime);
        }
    }

    function isDutchSaleOn() public view returns (bool) {
        return
            dutchConfig.total > 0 &&
            dutchConfig.dutchStartPriceWei > 0 &&
            dutchConfig.dutchEndPriceWei > 0 &&
            dutchConfig.dutchStartTime <= uint64(block.timestamp) &&
            (dutchConfig.dutchStartTime + _curveLength) > uint64(block.timestamp);
    }

    // Dutch auction
    function dutchMint(uint256 quantity) public payable callerIsUser {
        if (!isDutchSaleOn()) {
            revert NotMeetDutchMint();
        }

        uint256 nowDutchTotal = dutchConfig.total;
        require(nowDutchTotal >= quantity, "Not enough for mint");
        uint256 CostOne = getAuctionPrice();
        uint256 price = (CostOne * quantity);
        require(CostOne != 0 && msg.value >= price, "Need to send more ETH.");

        _safeMint(msg.sender, quantity, 0);
        nowDutchTotal -= quantity;

        dutchConfig.total = nowDutchTotal;
        //Must refund the price difference
        refundIfOver(price);
    }
    
    function isWhiteListSaleOn() public view returns (bool) {
        return
            whiteListConfig.total > 0 &&
            whiteListConfig.whitePriceWei > 0 &&
            whiteListConfig.whitelistStartTime <= uint64(block.timestamp) &&
            whiteListConfig.whitelistEndTime > uint64(block.timestamp);
    }

    // WhiteList Mint
    function whitelistMint(uint256 salt, bytes calldata signature) public payable callerIsUser {
        if (!isWhiteListSaleOn()) {
            revert NotMeetWhiteListMint();
        }

        WhiteListItem memory config = whiteListConfig;
        require(config.total >= 1, "Not enough for mint");
        require(msg.value >= uint256(config.whitePriceWei), "Need to send more ETH.");
        require(whiteListAddress[msg.sender] != config.whiteFutures, "Whitelist Restriction");

        checkSigna(salt,signature,config.checkAddress);
        _safeMint(msg.sender, 1 , 0);
        config.total -= 1;

        whiteListConfig.total = config.total;
        whiteListAddress[msg.sender] = config.whiteFutures;
    }

    function isPublicSaleOn() public view returns (bool) {
        return
            publicConfig.total > 0 &&
            publicConfig.publicPriceWei > 0 &&
            publicConfig.publicStartTime <= uint64(block.timestamp) &&
            publicConfig.publicEndTime > uint64(block.timestamp);
    }

    function publicMint(uint256 quantity) public payable callerIsUser {
        if (!isPublicSaleOn()) {
            revert NotMeetPublicMint();
        }

        PublicItem memory config = publicConfig;
        require(config.total >= quantity, "Not enough for mint");
        require(msg.value >= (uint256(config.publicPriceWei) * quantity), "Need to send more ETH.");

        _safeMint(msg.sender, quantity, 0);
        config.total -= uint64(quantity);

        publicConfig.total = config.total;
    }

    function isFreeSaleOn() public view returns (bool) {
        return
            freeCofig.total > 0 &&
            freeCofig.freeStartTime <= uint64(block.timestamp) &&
            freeCofig.freeEndTime > uint64(block.timestamp);
    }

    //Freemint
    function freeMint(uint256 salt, bytes calldata signature) public {
        if (!isFreeSaleOn()) {
            revert NotMeetFreeMint();
        }

        FreeItem memory config = freeCofig;
        require(config.total >= 1, "Not enough for mint");
        require(freeAddress[msg.sender] != config.freeFutures, "FreeMint Restriction");

        checkSigna(salt,signature,config.checkAddress);
        _safeMint(msg.sender, 1, 0);
        config.total -= 1;
        
        freeCofig.total = config.total;
        freeAddress[msg.sender] = config.freeFutures;
    }

    function getAuctionPrice() public view returns (uint256) {
        require(_curveLength > 0,"config missing");

        uint256 _startTime = uint256(dutchConfig.dutchStartTime);
        uint256 _startPrice = uint256(dutchConfig.dutchStartPriceWei);
        uint256 _endPrice = uint256(dutchConfig.dutchEndPriceWei);
        uint256 _cyclePrice = uint256(dutchConfig.dutchCyclePriceWei);

        if (block.timestamp <= _startTime) {
            return _startPrice;
        }
        if (block.timestamp - _startTime >= _curveLength) {
            return _endPrice;
        } else {
            uint256 steps = (block.timestamp - _startTime) / AUCTION_DROP_INTERVAL;
            return _startPrice - (steps * _cyclePrice);
        }
    }


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

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

    function withdrawMoney() external onlyOwner nonReentrant {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function refundIfOver(uint256 price) private nonReentrant {
        require(msg.value >= price, "Need to send more ETH.");
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    function checkSigna(uint256 salt, bytes calldata signature,address checkAddr) private view{
        bytes32 HashData = keccak256(abi.encodePacked(msg.sender, salt));
        if (
            !SignatureChecker.isValidSignatureNow(
                checkAddr,
                HashData,
                signature
            )
        ) {
            revert InvalidSignature();
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 4 of 16 : 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 16 : SignatureChecker.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";
import "../Address.sol";
import "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Gnosis Safe.
 *
 * _Available since v4.1._
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
        if (error == ECDSA.RecoverError.NoError && recovered == signer) {
            return true;
        }

        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)
        );
        return (success && result.length == 32 && abi.decode(result, (bytes4)) == IERC1271.isValidSignature.selector);
    }
}

File 6 of 16 : 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;

    //startTimestamp be used for lock Token
    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 internal currentIndex = 0;
    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.
    */
    constructor(string memory name_, string memory symbol_, uint256 maxBatchSize_) {
        require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero");
        _name = name_;
        _symbol = symbol_;
        maxBatchSize = maxBatchSize_;
    }

    /**
     * @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}.
     * It may also degrade with extremely large collection sizes (e.g >> 10000)
     */
    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);

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            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);
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        require(_exists(tokenId), 'ERC721A: owner query for nonexistent token');

        unchecked {
            for (uint256 curr = tokenId; curr >= 0; 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}.
     */
    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.
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return tokenId < currentIndex;
    }

    //- If you need lock Token ,`lockTime` must greater than now Time.
    function _safeMint(address to, uint256 quantity,uint64 lockTime) internal {
        _mint(to, quantity, "", lockTime);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     * Requirements:
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     * - If you need lock Token ,`lockTime` must greater than now Time.
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        uint64 lockTime
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), 'ERC721A: mint to the zero address');
        require(quantity != 0, 'ERC721A: quantity must be greater than 0');
        require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high");

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);
            
            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = lockTime > 0 ? lockTime : uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;

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

                updatedIndex++;
            }

            currentIndex = updatedIndex;
        }
    }

    /**
     * @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');
        //lock Token
        require(prevOwnership.startTimestamp <= uint64(block.timestamp), "Token is Lock");

        _beforeTokenTransfer(from, to, tokenId);

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

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].startTimestamp = 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].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @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 _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 startTokenId
    ) internal virtual {}
}

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

pragma solidity ^0.8.0;

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

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

File 8 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 16 : IERC1271.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 *
 * _Available since v4.1._
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 12 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

    /**
     * @dev 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 13 of 16 : 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 14 of 16 : 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 15 of 16 : 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 16 of 16 : 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 17 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NotMeetDutchMint","type":"error"},{"inputs":[],"name":"NotMeetFreeMint","type":"error"},{"inputs":[],"name":"NotMeetPublicMint","type":"error"},{"inputs":[],"name":"NotMeetWhiteListMint","type":"error"},{"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"},{"inputs":[],"name":"AIRDROP_LOCK_TIMES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_DROP_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"nums","type":"uint256[]"},{"internalType":"bool","name":"isLock","type":"bool"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","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":"dutchConfig","outputs":[{"internalType":"uint64","name":"dutchStartTime","type":"uint64"},{"internalType":"uint64","name":"dutchCyclePriceWei","type":"uint64"},{"internalType":"uint64","name":"dutchStartPriceWei","type":"uint64"},{"internalType":"uint64","name":"dutchEndPriceWei","type":"uint64"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"dutchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"endDutch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeCofig","outputs":[{"internalType":"uint64","name":"freeFutures","type":"uint64"},{"internalType":"uint64","name":"freeStartTime","type":"uint64"},{"internalType":"uint64","name":"freeEndTime","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"},{"internalType":"address","name":"checkAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"isDutchSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFreeSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhiteListSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[],"name":"publicConfig","outputs":[{"internalType":"uint64","name":"publicPriceWei","type":"uint64"},{"internalType":"uint64","name":"publicStartTime","type":"uint64"},{"internalType":"uint64","name":"publicEndTime","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"newAdmin","type":"address"}],"name":"setAdmin","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":[{"components":[{"internalType":"uint64","name":"dutchStartTime","type":"uint64"},{"internalType":"uint64","name":"dutchCyclePriceWei","type":"uint64"},{"internalType":"uint64","name":"dutchStartPriceWei","type":"uint64"},{"internalType":"uint64","name":"dutchEndPriceWei","type":"uint64"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct Token0913.DutchItem","name":"configData","type":"tuple"}],"name":"setDutchConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"freeFutures","type":"uint64"},{"internalType":"uint64","name":"freeStartTime","type":"uint64"},{"internalType":"uint64","name":"freeEndTime","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"},{"internalType":"address","name":"checkAddress","type":"address"}],"internalType":"struct Token0913.FreeItem","name":"configData","type":"tuple"}],"name":"setFreeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"publicPriceWei","type":"uint64"},{"internalType":"uint64","name":"publicStartTime","type":"uint64"},{"internalType":"uint64","name":"publicEndTime","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"}],"internalType":"struct Token0913.PublicItem","name":"configData","type":"tuple"}],"name":"setPublicConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint64","name":"whiteFutures","type":"uint64"},{"internalType":"uint64","name":"whitePriceWei","type":"uint64"},{"internalType":"uint64","name":"whitelistStartTime","type":"uint64"},{"internalType":"uint64","name":"whitelistEndTime","type":"uint64"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"address","name":"checkAddress","type":"address"}],"internalType":"struct Token0913.WhiteListItem","name":"configData","type":"tuple"}],"name":"setWhiteListConfig","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"},{"inputs":[],"name":"whiteListConfig","outputs":[{"internalType":"uint64","name":"whiteFutures","type":"uint64"},{"internalType":"uint64","name":"whitePriceWei","type":"uint64"},{"internalType":"uint64","name":"whitelistStartTime","type":"uint64"},{"internalType":"uint64","name":"whitelistEndTime","type":"uint64"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"address","name":"checkAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260006001553480156200001657600080fd5b506040518060400160405280600a815260200169546f6b656e203039313360b01b815250604051806040016040528060048152602001633039313360e01b8152506014620000736200006d6200011460201b60201c565b62000118565b60008111620000d85760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b606482015260840160405180910390fd5b8251620000ed90600290602086019062000168565b5081516200010390600390602085019062000168565b50608052505060016008556200024b565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000176906200020e565b90600052602060002090601f0160209004810192826200019a5760008555620001e5565b82601f10620001b557805160ff1916838001178555620001e5565b82800160010185558215620001e5579182015b82811115620001e5578251825591602001919060010190620001c8565b50620001f3929150620001f7565b5090565b5b80821115620001f35760008155600101620001f8565b600181811c908216806200022357607f821691505b602082108114156200024557634e487b7160e01b600052602260045260246000fd5b50919050565b608051613daa620002676000396000612d290152613daa6000f3fe6080604052600436106102935760003560e01c8063715018a61161015a578063c87b56dd116100c1578063e985e9c51161007a578063e985e9c5146108f4578063f125f2f41461093d578063f2fde38b1461095d578063f42121b11461097d578063f7bcdfee14610992578063fc6f9468146109a757600080fd5b8063c87b56dd14610772578063d34c4c6c14610792578063db7f75fe14610811578063de154b5d146108ac578063de74c89c146108cc578063df4d21cb146108e157600080fd5b8063a22cb46511610113578063a22cb46514610681578063a313d6c2146106a1578063a6599ded146106b6578063ac44600214610728578063b88d4fde1461073d578063c2bb28341461075d57600080fd5b8063715018a6146105f15780637fd5211414610606578063817415c41461061b5780638da5cb5b1461063b57806395d89b41146106595780639e852f751461066e57600080fd5b806342842e0e116101fe5780635eeacefc116101b75780635eeacefc146104c15780636352211e146104e157806367ccb8a5146105015780636f4f7ffe14610591578063704b6c02146105b157806370a08231146105d157600080fd5b806342842e0e1461041657806349eac6a9146104365780634bd25c6f146104565780634f6ccce71461046b57806355f804b31461048b5780635cae01d3146104ab57600080fd5b806323b872dd1161025057806323b872dd146103835780632bd28b1a146103a35780632db11544146103b85780632f745c59146103cb57806333039d3d146103eb5780633f5e47411461040157600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b314610327578063162144371461034957806318160ddd1461036e575b600080fd5b3480156102a457600080fd5b506102b86102b336600461355f565b6109c7565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610a34565b6040516102c4919061375d565b3480156102fb57600080fd5b5061030f61030a366004613613565b610ac6565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b506103476103423660046134b7565b610b56565b005b34801561035557600080fd5b5061036062278d0081565b6040519081526020016102c4565b34801561037a57600080fd5b50600154610360565b34801561038f57600080fd5b5061034761039e36600461336b565b610c6e565b3480156103af57600080fd5b506102b8610c79565b6103476103c6366004613613565b610cd7565b3480156103d757600080fd5b506103606103e63660046134b7565b610e0b565b3480156103f757600080fd5b5061036061271081565b34801561040d57600080fd5b506102b8610f72565b34801561042257600080fd5b5061034761043136600461336b565b610fe5565b34801561044257600080fd5b506103476104513660046135f1565b611000565b34801561046257600080fd5b506103606110d0565b34801561047757600080fd5b50610360610486366004613613565b6111a2565b34801561049757600080fd5b506103476104a6366004613597565b61120b565b3480156104b757600080fd5b5061036061070881565b3480156104cd57600080fd5b506103476104dc3660046134e2565b611256565b3480156104ed57600080fd5b5061030f6104fc366004613613565b611409565b34801561050d57600080fd5b50600954600a5461054e916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b90910416906001600160a01b031685565b604080516001600160401b03968716815294861660208601529285169284019290925290921660608201526001600160a01b03909116608082015260a0016102c4565b34801561059d57600080fd5b506103476105ac3660046135d6565b61141b565b3480156105bd57600080fd5b506103476105cc366004613317565b6114e5565b3480156105dd57600080fd5b506103606105ec366004613317565b611531565b3480156105fd57600080fd5b506103476115c2565b34801561061257600080fd5b506103476115f8565b34801561062757600080fd5b5061034761063636600461362b565b6116d0565b34801561064757600080fd5b506000546001600160a01b031661030f565b34801561066557600080fd5b506102e2611861565b61034761067c36600461362b565b611870565b34801561068d57600080fd5b5061034761069c366004613483565b611a36565b3480156106ad57600080fd5b50610347611afb565b3480156106c257600080fd5b50600d546106f5906001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b604080516001600160401b03958616815293851660208501529184169183019190915290911660608201526080016102c4565b34801561073457600080fd5b50610347611b78565b34801561074957600080fd5b506103476107583660046133ab565b611c8d565b34801561076957600080fd5b50610347611cc0565b34801561077e57600080fd5b506102e261078d366004613613565b611da2565b34801561079e57600080fd5b50600b54600c546107d6916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b909104169085565b604080516001600160401b0396871681529486166020860152928516928401929092529092166060820152608081019190915260a0016102c4565b34801561081d57600080fd5b50600e54600f54601054610862926001600160401b0380821693600160401b8304821693600160801b8404831693600160c01b9004909216916001600160a01b031686565b604080516001600160401b0397881681529587166020870152938616938501939093529316606083015260808201929092526001600160a01b0390911660a082015260c0016102c4565b3480156108b857600080fd5b506103476108c73660046135d6565b611e6f565b3480156108d857600080fd5b506102b8612035565b6103476108ef366004613613565b61209f565b34801561090057600080fd5b506102b861090f366004613333565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561094957600080fd5b50610347610958366004613602565b612171565b34801561096957600080fd5b50610347610978366004613317565b612227565b34801561098957600080fd5b506102b86122c2565b34801561099e57600080fd5b50610347612349565b3480156109b357600080fd5b5060115461030f906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806109f857506001600160e01b03198216635b5e139f60e01b145b80610a1357506001600160e01b0319821663780e9d6360e01b145b80610a2e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a43906139e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6f906139e5565b8015610abc5780601f10610a9157610100808354040283529160200191610abc565b820191906000526020600020905b815481529060010190602001808311610a9f57829003601f168201915b5050505050905090565b6000610ad3826001541190565b610b3a5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b6182611409565b9050806001600160a01b0316836001600160a01b03161415610bd05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b31565b336001600160a01b0382161480610bec5750610bec813361090f565b610c5e5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b31565b610c698383836123fd565b505050565b610c69838383612459565b600954600090600160c01b90046001600160401b031615801590610cb257506009546001600160401b03428116600160401b9092041611155b8015610cd257506009546001600160401b03428116600160801b90920416115b905090565b323314610cf65760405162461bcd60e51b8152600401610b31906137dc565b610cfe610f72565b610d1b5760405163ab8b092d60e01b815260040160405180910390fd5b60408051608081018252600d546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b900490911660608201819052821115610d835760405162461bcd60e51b8152600401610b3190613813565b8051610d999083906001600160401b031661395b565b341015610db85760405162461bcd60e51b8152600401610b31906138ff565b610dc433836000612792565b8181606001818151610dd69190613991565b6001600160401b03908116909152606090920151600d805491909316600160c01b026001600160c01b03909116179091555050565b6000610e1683611531565b8210610e6f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b31565b6000610e7a60015490565b905060008060005b83811015610f12576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610ed457805192505b876001600160a01b0316836001600160a01b03161415610f095786841415610f0257509350610a2e92505050565b6001909301925b50600101610e82565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b31565b600d54600090600160c01b90046001600160401b031615801590610fa05750600d546001600160401b031615155b8015610fc15750600d546001600160401b03428116600160401b9092041611155b8015610cd25750600d546001600160401b03428116600160801b9092041611905090565b610c6983838360405180602001604052806000815250611c8d565b6011546001600160a01b031633148061102357506000546001600160a01b031633145b61103f5760405162461bcd60e51b8152600401610b3190613875565b61104f6080820160608301613674565b6001600160401b0316801580159061107c57506127108161106f60015490565b611079919061392f565b11155b6110985760405162461bcd60e51b8152600401610b3190613770565b6110a0610f72565b156110bd5760405162461bcd60e51b8152600401610b31906137a5565b81600d6110ca8282613bb6565b50505050565b600080601354116111145760405162461bcd60e51b815260206004820152600e60248201526d636f6e666967206d697373696e6760901b6044820152606401610b31565b600b546001600160401b0380821691600160801b8104821691600160c01b8204811691600160401b90041642841061114f5750909392505050565b60135461115c854261397a565b1061116957509392505050565b6000610708611178864261397a565b6111829190613947565b905061118e828261395b565b611198908561397a565b9550505050505090565b60006111ad60015490565b82106112075760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b31565b5090565b6011546001600160a01b031633148061122e57506000546001600160a01b031633145b61124a5760405162461bcd60e51b8152600401610b3190613875565b610c69601283836131da565b6011546001600160a01b031633148061127957506000546001600160a01b031633145b6112955760405162461bcd60e51b8152600401610b3190613875565b838281146112de5760405162461bcd60e51b81526020600482015260166024820152752830b930b6b2ba32b9103632b733ba341032b93937b960511b6044820152606401610b31565b60006112e960015490565b905060005b8281101561133c5785858281811061131657634e487b7160e01b600052603260045260246000fd5b9050602002013582611328919061392f565b91508061133481613a1a565b9150506112ee565b5061271081111561135f5760405162461bcd60e51b8152600401610b3190613813565b60008361136d57600061137a565b61137a62278d004261392f565b905060005b838110156113fe576113ec8989838181106113aa57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113bf9190613317565b8888848181106113df57634e487b7160e01b600052603260045260246000fd5b9050602002013584612792565b806113f681613a1a565b91505061137f565b505050505050505050565b6000611414826127ad565b5192915050565b6011546001600160a01b031633148061143e57506000546001600160a01b031633145b61145a5760405162461bcd60e51b8152600401610b3190613875565b61146a6080820160608301613674565b6001600160401b0316801580159061149757506127108161148a60015490565b611494919061392f565b11155b6114b35760405162461bcd60e51b8152600401610b3190613770565b6114bb610c79565b156114d85760405162461bcd60e51b8152600401610b31906137a5565b8160096110ca8282613b2a565b6000546001600160a01b0316331461150f5760405162461bcd60e51b8152600401610b3190613840565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661159d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b31565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146115ec5760405162461bcd60e51b8152600401610b3190613840565b6115f66000612883565b565b6011546001600160a01b031633148061161b57506000546001600160a01b031633145b6116375760405162461bcd60e51b8152600401610b3190613875565b6040805160a081018252600980546001600160401b03808216808552600160401b8084048316602087018190524290931696860187905260006060870152600a80546001600160a01b03811660809098018890526001600160801b03199095169092179202919091176001600160801b0316600160801b9095026001600160c01b0316949094179091556001600160a01b031916179055565b6116d8610c79565b6116f557604051632927a4e960e21b815260040160405180910390fd5b6040805160a0810182526009546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b900490911660608201819052600a546001600160a01b031660808301526001111561176f5760405162461bcd60e51b8152600401610b3190613813565b8051336000908152601460205260409020546001600160401b03908116911614156117d35760405162461bcd60e51b8152602060048201526014602482015273233932b2a6b4b73a102932b9ba3934b1ba34b7b760611b6044820152606401610b31565b6117e384848484608001516128d3565b6117f03360016000612792565b6001816060018181516118039190613991565b6001600160401b039081169091526060830151600980546001600160c01b0316600160c01b928416929092029190911790559151336000908152601460205260409020805467ffffffffffffffff1916919093161790915550505050565b606060038054610a43906139e5565b32331461188f5760405162461bcd60e51b8152600401610b31906137dc565b611897612035565b6118b4576040516358208c8760e11b815260040160405180910390fd5b6040805160c081018252600e546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b90049091166060820152600f54608082018190526010546001600160a01b031660a0830152600111156119365760405162461bcd60e51b8152600401610b3190613813565b80602001516001600160401b03163410156119635760405162461bcd60e51b8152600401610b31906138ff565b8051336000908152601560205260409020546001600160401b03908116911614156119c85760405162461bcd60e51b81526020600482015260156024820152742bb434ba32b634b9ba102932b9ba3934b1ba34b7b760591b6044820152606401610b31565b6119d88484848460a001516128d3565b6119e53360016000612792565b6001816080018181516119f8919061397a565b9052506080810151600f5551336000908152601560205260409020805467ffffffffffffffff19166001600160401b03909216919091179055505050565b6001600160a01b038216331415611a8f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b31565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6011546001600160a01b0316331480611b1e57506000546001600160a01b031633145b611b3a5760405162461bcd60e51b8152600401610b3190613875565b6040805160a081018252600b80546001600160401b031680835260006020840181905293830184905260608301849052608090920183905255600c55565b6000546001600160a01b03163314611ba25760405162461bcd60e51b8152600401610b3190613840565b60026008541415611bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b6002600855604051600090339047908381818185875af1925050503d8060008114611c3c576040519150601f19603f3d011682016040523d82523d6000602084013e611c41565b606091505b5050905080611c855760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b31565b506001600855565b611c98848484612459565b611ca484848484612971565b6110ca5760405162461bcd60e51b8152600401610b31906138ac565b6011546001600160a01b0316331480611ce357506000546001600160a01b031633145b611cff5760405162461bcd60e51b8152600401610b3190613875565b6040805160c081018252600e80546001600160401b03808216808552600060208601819052600160801b8085048416978701889052429093166060870181905260808701829052601080546001600160a01b03811660a09099018990526001600160c01b031990961690931797909302969096176001600160c01b0316600160c01b90920291909117909255600f939093556001600160a01b0319909216179055565b6060611daf826001541190565b611e135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b31565b6000611e1d612a7f565b90506000815111611e3d5760405180602001604052806000815250611e68565b80611e4784612a8e565b604051602001611e589291906136d8565b6040516020818303038152906040525b9392505050565b6011546001600160a01b0316331480611e9257506000546001600160a01b031633145b611eae5760405162461bcd60e51b8152600401610b3190613875565b60808101358015801590611ed7575061271081611eca60015490565b611ed4919061392f565b11155b611ef35760405162461bcd60e51b8152600401610b3190613770565b611efb6122c2565b15611f185760405162461bcd60e51b8152600401610b31906137a5565b611f286080830160608401613674565b6001600160401b0316611f416060840160408501613674565b6001600160401b031611611f975760405162461bcd60e51b815260206004820152601a60248201527f4572726f723a205072696365206d6973616c6c6f636174696f6e0000000000006044820152606401610b31565b81600b611fa48282613aab565b5060009050611fb96060840160408501613674565b6001600160401b031690506000611fd66080850160608601613674565b6001600160401b031690506000611ff36040860160208701613674565b6001600160401b031690506107088161200c848661397a565b6120169190613947565b61202190600161392f565b61202b919061395b565b6013555050505050565b600f546000901580159061205a5750600e54600160401b90046001600160401b031615155b801561207b5750600e546001600160401b03428116600160801b9092041611155b8015610cd25750600e546001600160401b03428116600160c01b9092041611905090565b3233146120be5760405162461bcd60e51b8152600401610b31906137dc565b6120c66122c2565b6120e35760405163136b7cf160e11b815260040160405180910390fd5b600c54818110156121065760405162461bcd60e51b8152600401610b3190613813565b60006121106110d0565b9050600061211e848361395b565b9050811580159061212f5750803410155b61214b5760405162461bcd60e51b8152600401610b31906138ff565b61215733856000612792565b612161848461397a565b600c81905592506110ca81612ba7565b6011546001600160a01b031633148061219457506000546001600160a01b031633145b6121b05760405162461bcd60e51b8152600401610b3190613875565b608081013580158015906121d95750612710816121cc60015490565b6121d6919061392f565b11155b6121f55760405162461bcd60e51b8152600401610b3190613770565b6121fd612035565b1561221a5760405162461bcd60e51b8152600401610b31906137a5565b81600e6110ca8282613c26565b6000546001600160a01b031633146122515760405162461bcd60e51b8152600401610b3190613840565b6001600160a01b0381166122b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b31565b6122bf81612883565b50565b600c54600090158015906122e75750600b54600160801b90046001600160401b031615155b80156123045750600b54600160c01b90046001600160401b031615155b801561231e5750600b546001600160401b03428116911611155b8015610cd25750601354600b546001600160401b03428116926123439290911661392f565b11905090565b6011546001600160a01b031633148061236c57506000546001600160a01b031633145b6123885760405162461bcd60e51b8152600401610b3190613875565b604080516080810182526000808252600d80546001600160401b03600160401b808304821660208701819052429092169686018790526060909501939093526001600160c01b0319169190920267ffffffffffffffff60801b191617600160801b909202919091176001600160c01b03169055565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612464826127ad565b80519091506000906001600160a01b0316336001600160a01b0316148061249b57503361249084610ac6565b6001600160a01b0316145b806124ad575081516124ad903361090f565b9050806125175760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b31565b846001600160a01b031682600001516001600160a01b03161461258b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b31565b6001600160a01b0384166125ef5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b31565b426001600160401b031682602001516001600160401b031611156126455760405162461bcd60e51b815260206004820152600d60248201526c546f6b656e206973204c6f636b60981b6044820152606401610b31565b61265560008484600001516123fd565b6001600160a01b03858116600090815260056020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600490935281842080546001600160e01b031916909117600160a01b426001600160401b031602179055908601808352912054909116612748576126fc816001541190565b1561274857825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610c6983836040518060200160405280600081525084612c66565b60408051808201909152600080825260208201526127cc826001541190565b61282b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b31565b815b6000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612879579392505050565b506000190161282d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516bffffffffffffffffffffffff193360601b16602082015260348101859052600090605401604051602081830303815290604052805190602001209050612954828286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612eea92505050565b61278b57604051638baa579f60e01b815260040160405180910390fd5b60006001600160a01b0384163b15612a7357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129b5903390899088908890600401613707565b602060405180830381600087803b1580156129cf57600080fd5b505af19250505080156129ff575060408051601f3d908101601f191682019092526129fc9181019061357b565b60015b612a59573d808015612a2d576040519150601f19603f3d011682016040523d82523d6000602084013e612a32565b606091505b508051612a515760405162461bcd60e51b8152600401610b31906138ac565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a77565b5060015b949350505050565b606060128054610a43906139e5565b606081612ab25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612adc5780612ac681613a1a565b9150612ad59050600a83613947565b9150612ab6565b6000816001600160401b03811115612b0457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b2e576020820181803683370190505b5090505b8415612a7757612b4360018361397a565b9150612b50600a86613a35565b612b5b90603061392f565b60f81b818381518110612b7e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ba0600a86613947565b9450612b32565b60026008541415612bfa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b600260085534811115612c1f5760405162461bcd60e51b8152600401610b31906138ff565b80341115611c8557336108fc612c35833461397a565b6040518115909202916000818181858888f19350505050158015612c5d573d6000803e3d6000fd5b50506001600855565b6001546001600160a01b038516612cc95760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b31565b83612d275760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610b31565b7f0000000000000000000000000000000000000000000000000000000000000000841115612da25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b31565b6001600160a01b03851660008181526005602090815260408083208054600160801b6001600160801b038083168c0181166001600160801b0319909316831782900481168c0116021790558483526004909152902080546001600160a01b03191690911790556001600160401b038216612e1c5742612e1e565b815b600082815260046020526040812080546001600160401b0393909316600160a01b0267ffffffffffffffff60a01b199093169290921790915581905b85811015612edf5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0387163b15612ed357612eb76000888488612971565b612ed35760405162461bcd60e51b8152600401610b31906138ac565b60019182019101612e5a565b506001555050505050565b6000806000612ef98585613044565b90925090506000816004811115612f2057634e487b7160e01b600052602160045260246000fd5b148015612f3e5750856001600160a01b0316826001600160a01b0316145b15612f4e57600192505050611e68565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612f76929190613744565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612fb491906136bc565b600060405180830381855afa9150503d8060008114612fef576040519150601f19603f3d011682016040523d82523d6000602084013e612ff4565b606091505b5091509150818015613007575080516020145b801561303857508051630b135d3f60e11b9061302c908301602090810190840161357b565b6001600160e01b031916145b98975050505050505050565b60008082516041141561307b5760208301516040840151606085015160001a61306f878285856130b4565b945094505050506130ad565b8251604014156130a5576020830151604084015161309a8683836131a1565b9350935050506130ad565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156130eb5750600090506003613198565b8460ff16601b1415801561310357508460ff16601c14155b156131145750600090506004613198565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613168573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661319157600060019250925050613198565b9150600090505b94509492505050565b6000806001600160ff1b038316816131be60ff86901c601b61392f565b90506131cc878288856130b4565b935093505050935093915050565b8280546131e6906139e5565b90600052602060002090601f016020900481019282613208576000855561324e565b82601f106132215782800160ff1982351617855561324e565b8280016001018555821561324e579182015b8281111561324e578235825591602001919060010190613233565b506112079291505b808211156112075760008155600101613256565b60008083601f84011261327b578081fd5b5081356001600160401b03811115613291578182fd5b6020830191508360208260051b85010111156130ad57600080fd5b803580151581146132bc57600080fd5b919050565b60008083601f8401126132d2578182fd5b5081356001600160401b038111156132e8578182fd5b6020830191508360208285010111156130ad57600080fd5b600060a08284031215613311578081fd5b50919050565b600060208284031215613328578081fd5b8135611e6881613d34565b60008060408385031215613345578081fd5b823561335081613d34565b9150602083013561336081613d34565b809150509250929050565b60008060006060848603121561337f578081fd5b833561338a81613d34565b9250602084013561339a81613d34565b929592945050506040919091013590565b600080600080608085870312156133c0578081fd5b84356133cb81613d34565b935060208501356133db81613d34565b92506040850135915060608501356001600160401b03808211156133fd578283fd5b818701915087601f830112613410578283fd5b81358181111561342257613422613a75565b604051601f8201601f19908116603f0116810190838211818310171561344a5761344a613a75565b816040528281528a6020848701011115613462578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215613495578182fd5b82356134a081613d34565b91506134ae602084016132ac565b90509250929050565b600080604083850312156134c9578182fd5b82356134d481613d34565b946020939093013593505050565b6000806000806000606086880312156134f9578081fd5b85356001600160401b038082111561350f578283fd5b61351b89838a0161326a565b90975095506020880135915080821115613533578283fd5b506135408882890161326a565b90945092506135539050604087016132ac565b90509295509295909350565b600060208284031215613570578081fd5b8135611e6881613d49565b60006020828403121561358c578081fd5b8151611e6881613d49565b600080602083850312156135a9578182fd5b82356001600160401b038111156135be578283fd5b6135ca858286016132c1565b90969095509350505050565b600060a082840312156135e7578081fd5b611e688383613300565b600060808284031215613311578081fd5b600060c08284031215613311578081fd5b600060208284031215613624578081fd5b5035919050565b60008060006040848603121561363f578081fd5b8335925060208401356001600160401b0381111561365b578182fd5b613667868287016132c1565b9497909650939450505050565b600060208284031215613685578081fd5b8135611e6881613d5f565b600081518084526136a88160208601602086016139b9565b601f01601f19169290920160200192915050565b600082516136ce8184602087016139b9565b9190910192915050565b600083516136ea8184602088016139b9565b8351908301906136fe8183602088016139b9565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373a90830184613690565b9695505050505050565b828152604060208201526000612a776040830184613690565b602081526000611e686020830184613690565b6020808252818101527f4572726f723a20457863656564206d617820746f74616c206e6f72207a65726f604082015260600190565b6020808252601b908201527f4572726f723a2061637469766974792068617320737461727465640000000000604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b602080825260139082015272139bdd08195b9bdd59da08199bdc881b5a5b9d606a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f4f776e61626c653a2063616c6c6572206e6f742041646d696e00000000000000604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601690820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604082015260600190565b6000821982111561394257613942613a49565b500190565b60008261395657613956613a5f565b500490565b600081600019048311821515161561397557613975613a49565b500290565b60008282101561398c5761398c613a49565b500390565b60006001600160401b03838116908316818110156139b1576139b1613a49565b039392505050565b60005b838110156139d45781810151838201526020016139bc565b838111156110ca5750506000910152565b600181811c908216806139f957607f821691505b6020821081141561331157634e487b7160e01b600052602260045260246000fd5b6000600019821415613a2e57613a2e613a49565b5060010190565b600082613a4457613a44613a5f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80546001600160a01b0319166001600160a01b0392909216919091179055565b8135613ab681613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613adf81613d5f565b613ae98183613d0a565b506040820135613af881613d5f565b613b028183613cbc565b506060820135613b1181613d5f565b613b1b8183613ce7565b50608082013560018201555050565b8135613b3581613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613b5e81613d5f565b613b688183613d0a565b506040820135613b7781613d5f565b613b818183613cbc565b506060820135613b9081613d5f565b613b9a8183613ce7565b506080820135613ba981613d34565b610c698160018401613a8b565b8135613bc181613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613bea81613d5f565b613bf48183613d0a565b506040820135613c0381613d5f565b613c0d8183613cbc565b506060820135613c1c81613d5f565b610c698183613ce7565b8135613c3181613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613c5a81613d5f565b613c648183613d0a565b506040820135613c7381613d5f565b613c7d8183613cbc565b506060820135613c8c81613d5f565b613c968183613ce7565b506080820135600182015560a0820135613caf81613d34565b610c698160028401613a8b565b805467ffffffffffffffff60801b191660809290921b67ffffffffffffffff60801b16919091179055565b80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b805467ffffffffffffffff60401b8360401b1667ffffffffffffffff60401b198216178255505050565b6001600160a01b03811681146122bf57600080fd5b6001600160e01b0319811681146122bf57600080fd5b6001600160401b03811681146122bf57600080fdfea26469706673582212206c809687ed61f090134a2cbb5fe921b19c954c9ce116434433363a62b51cbce164736f6c63430008040033

Deployed Bytecode

0x6080604052600436106102935760003560e01c8063715018a61161015a578063c87b56dd116100c1578063e985e9c51161007a578063e985e9c5146108f4578063f125f2f41461093d578063f2fde38b1461095d578063f42121b11461097d578063f7bcdfee14610992578063fc6f9468146109a757600080fd5b8063c87b56dd14610772578063d34c4c6c14610792578063db7f75fe14610811578063de154b5d146108ac578063de74c89c146108cc578063df4d21cb146108e157600080fd5b8063a22cb46511610113578063a22cb46514610681578063a313d6c2146106a1578063a6599ded146106b6578063ac44600214610728578063b88d4fde1461073d578063c2bb28341461075d57600080fd5b8063715018a6146105f15780637fd5211414610606578063817415c41461061b5780638da5cb5b1461063b57806395d89b41146106595780639e852f751461066e57600080fd5b806342842e0e116101fe5780635eeacefc116101b75780635eeacefc146104c15780636352211e146104e157806367ccb8a5146105015780636f4f7ffe14610591578063704b6c02146105b157806370a08231146105d157600080fd5b806342842e0e1461041657806349eac6a9146104365780634bd25c6f146104565780634f6ccce71461046b57806355f804b31461048b5780635cae01d3146104ab57600080fd5b806323b872dd1161025057806323b872dd146103835780632bd28b1a146103a35780632db11544146103b85780632f745c59146103cb57806333039d3d146103eb5780633f5e47411461040157600080fd5b806301ffc9a71461029857806306fdde03146102cd578063081812fc146102ef578063095ea7b314610327578063162144371461034957806318160ddd1461036e575b600080fd5b3480156102a457600080fd5b506102b86102b336600461355f565b6109c7565b60405190151581526020015b60405180910390f35b3480156102d957600080fd5b506102e2610a34565b6040516102c4919061375d565b3480156102fb57600080fd5b5061030f61030a366004613613565b610ac6565b6040516001600160a01b0390911681526020016102c4565b34801561033357600080fd5b506103476103423660046134b7565b610b56565b005b34801561035557600080fd5b5061036062278d0081565b6040519081526020016102c4565b34801561037a57600080fd5b50600154610360565b34801561038f57600080fd5b5061034761039e36600461336b565b610c6e565b3480156103af57600080fd5b506102b8610c79565b6103476103c6366004613613565b610cd7565b3480156103d757600080fd5b506103606103e63660046134b7565b610e0b565b3480156103f757600080fd5b5061036061271081565b34801561040d57600080fd5b506102b8610f72565b34801561042257600080fd5b5061034761043136600461336b565b610fe5565b34801561044257600080fd5b506103476104513660046135f1565b611000565b34801561046257600080fd5b506103606110d0565b34801561047757600080fd5b50610360610486366004613613565b6111a2565b34801561049757600080fd5b506103476104a6366004613597565b61120b565b3480156104b757600080fd5b5061036061070881565b3480156104cd57600080fd5b506103476104dc3660046134e2565b611256565b3480156104ed57600080fd5b5061030f6104fc366004613613565b611409565b34801561050d57600080fd5b50600954600a5461054e916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b90910416906001600160a01b031685565b604080516001600160401b03968716815294861660208601529285169284019290925290921660608201526001600160a01b03909116608082015260a0016102c4565b34801561059d57600080fd5b506103476105ac3660046135d6565b61141b565b3480156105bd57600080fd5b506103476105cc366004613317565b6114e5565b3480156105dd57600080fd5b506103606105ec366004613317565b611531565b3480156105fd57600080fd5b506103476115c2565b34801561061257600080fd5b506103476115f8565b34801561062757600080fd5b5061034761063636600461362b565b6116d0565b34801561064757600080fd5b506000546001600160a01b031661030f565b34801561066557600080fd5b506102e2611861565b61034761067c36600461362b565b611870565b34801561068d57600080fd5b5061034761069c366004613483565b611a36565b3480156106ad57600080fd5b50610347611afb565b3480156106c257600080fd5b50600d546106f5906001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b604080516001600160401b03958616815293851660208501529184169183019190915290911660608201526080016102c4565b34801561073457600080fd5b50610347611b78565b34801561074957600080fd5b506103476107583660046133ab565b611c8d565b34801561076957600080fd5b50610347611cc0565b34801561077e57600080fd5b506102e261078d366004613613565b611da2565b34801561079e57600080fd5b50600b54600c546107d6916001600160401b0380821692600160401b8304821692600160801b8104831692600160c01b909104169085565b604080516001600160401b0396871681529486166020860152928516928401929092529092166060820152608081019190915260a0016102c4565b34801561081d57600080fd5b50600e54600f54601054610862926001600160401b0380821693600160401b8304821693600160801b8404831693600160c01b9004909216916001600160a01b031686565b604080516001600160401b0397881681529587166020870152938616938501939093529316606083015260808201929092526001600160a01b0390911660a082015260c0016102c4565b3480156108b857600080fd5b506103476108c73660046135d6565b611e6f565b3480156108d857600080fd5b506102b8612035565b6103476108ef366004613613565b61209f565b34801561090057600080fd5b506102b861090f366004613333565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561094957600080fd5b50610347610958366004613602565b612171565b34801561096957600080fd5b50610347610978366004613317565b612227565b34801561098957600080fd5b506102b86122c2565b34801561099e57600080fd5b50610347612349565b3480156109b357600080fd5b5060115461030f906001600160a01b031681565b60006001600160e01b031982166380ac58cd60e01b14806109f857506001600160e01b03198216635b5e139f60e01b145b80610a1357506001600160e01b0319821663780e9d6360e01b145b80610a2e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610a43906139e5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6f906139e5565b8015610abc5780601f10610a9157610100808354040283529160200191610abc565b820191906000526020600020905b815481529060010190602001808311610a9f57829003601f168201915b5050505050905090565b6000610ad3826001541190565b610b3a5760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610b6182611409565b9050806001600160a01b0316836001600160a01b03161415610bd05760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610b31565b336001600160a01b0382161480610bec5750610bec813361090f565b610c5e5760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b31565b610c698383836123fd565b505050565b610c69838383612459565b600954600090600160c01b90046001600160401b031615801590610cb257506009546001600160401b03428116600160401b9092041611155b8015610cd257506009546001600160401b03428116600160801b90920416115b905090565b323314610cf65760405162461bcd60e51b8152600401610b31906137dc565b610cfe610f72565b610d1b5760405163ab8b092d60e01b815260040160405180910390fd5b60408051608081018252600d546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b900490911660608201819052821115610d835760405162461bcd60e51b8152600401610b3190613813565b8051610d999083906001600160401b031661395b565b341015610db85760405162461bcd60e51b8152600401610b31906138ff565b610dc433836000612792565b8181606001818151610dd69190613991565b6001600160401b03908116909152606090920151600d805491909316600160c01b026001600160c01b03909116179091555050565b6000610e1683611531565b8210610e6f5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b31565b6000610e7a60015490565b905060008060005b83811015610f12576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610ed457805192505b876001600160a01b0316836001600160a01b03161415610f095786841415610f0257509350610a2e92505050565b6001909301925b50600101610e82565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610b31565b600d54600090600160c01b90046001600160401b031615801590610fa05750600d546001600160401b031615155b8015610fc15750600d546001600160401b03428116600160401b9092041611155b8015610cd25750600d546001600160401b03428116600160801b9092041611905090565b610c6983838360405180602001604052806000815250611c8d565b6011546001600160a01b031633148061102357506000546001600160a01b031633145b61103f5760405162461bcd60e51b8152600401610b3190613875565b61104f6080820160608301613674565b6001600160401b0316801580159061107c57506127108161106f60015490565b611079919061392f565b11155b6110985760405162461bcd60e51b8152600401610b3190613770565b6110a0610f72565b156110bd5760405162461bcd60e51b8152600401610b31906137a5565b81600d6110ca8282613bb6565b50505050565b600080601354116111145760405162461bcd60e51b815260206004820152600e60248201526d636f6e666967206d697373696e6760901b6044820152606401610b31565b600b546001600160401b0380821691600160801b8104821691600160c01b8204811691600160401b90041642841061114f5750909392505050565b60135461115c854261397a565b1061116957509392505050565b6000610708611178864261397a565b6111829190613947565b905061118e828261395b565b611198908561397a565b9550505050505090565b60006111ad60015490565b82106112075760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610b31565b5090565b6011546001600160a01b031633148061122e57506000546001600160a01b031633145b61124a5760405162461bcd60e51b8152600401610b3190613875565b610c69601283836131da565b6011546001600160a01b031633148061127957506000546001600160a01b031633145b6112955760405162461bcd60e51b8152600401610b3190613875565b838281146112de5760405162461bcd60e51b81526020600482015260166024820152752830b930b6b2ba32b9103632b733ba341032b93937b960511b6044820152606401610b31565b60006112e960015490565b905060005b8281101561133c5785858281811061131657634e487b7160e01b600052603260045260246000fd5b9050602002013582611328919061392f565b91508061133481613a1a565b9150506112ee565b5061271081111561135f5760405162461bcd60e51b8152600401610b3190613813565b60008361136d57600061137a565b61137a62278d004261392f565b905060005b838110156113fe576113ec8989838181106113aa57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906113bf9190613317565b8888848181106113df57634e487b7160e01b600052603260045260246000fd5b9050602002013584612792565b806113f681613a1a565b91505061137f565b505050505050505050565b6000611414826127ad565b5192915050565b6011546001600160a01b031633148061143e57506000546001600160a01b031633145b61145a5760405162461bcd60e51b8152600401610b3190613875565b61146a6080820160608301613674565b6001600160401b0316801580159061149757506127108161148a60015490565b611494919061392f565b11155b6114b35760405162461bcd60e51b8152600401610b3190613770565b6114bb610c79565b156114d85760405162461bcd60e51b8152600401610b31906137a5565b8160096110ca8282613b2a565b6000546001600160a01b0316331461150f5760405162461bcd60e51b8152600401610b3190613840565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160a01b03821661159d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610b31565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146115ec5760405162461bcd60e51b8152600401610b3190613840565b6115f66000612883565b565b6011546001600160a01b031633148061161b57506000546001600160a01b031633145b6116375760405162461bcd60e51b8152600401610b3190613875565b6040805160a081018252600980546001600160401b03808216808552600160401b8084048316602087018190524290931696860187905260006060870152600a80546001600160a01b03811660809098018890526001600160801b03199095169092179202919091176001600160801b0316600160801b9095026001600160c01b0316949094179091556001600160a01b031916179055565b6116d8610c79565b6116f557604051632927a4e960e21b815260040160405180910390fd5b6040805160a0810182526009546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b900490911660608201819052600a546001600160a01b031660808301526001111561176f5760405162461bcd60e51b8152600401610b3190613813565b8051336000908152601460205260409020546001600160401b03908116911614156117d35760405162461bcd60e51b8152602060048201526014602482015273233932b2a6b4b73a102932b9ba3934b1ba34b7b760611b6044820152606401610b31565b6117e384848484608001516128d3565b6117f03360016000612792565b6001816060018181516118039190613991565b6001600160401b039081169091526060830151600980546001600160c01b0316600160c01b928416929092029190911790559151336000908152601460205260409020805467ffffffffffffffff1916919093161790915550505050565b606060038054610a43906139e5565b32331461188f5760405162461bcd60e51b8152600401610b31906137dc565b611897612035565b6118b4576040516358208c8760e11b815260040160405180910390fd5b6040805160c081018252600e546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b90049091166060820152600f54608082018190526010546001600160a01b031660a0830152600111156119365760405162461bcd60e51b8152600401610b3190613813565b80602001516001600160401b03163410156119635760405162461bcd60e51b8152600401610b31906138ff565b8051336000908152601560205260409020546001600160401b03908116911614156119c85760405162461bcd60e51b81526020600482015260156024820152742bb434ba32b634b9ba102932b9ba3934b1ba34b7b760591b6044820152606401610b31565b6119d88484848460a001516128d3565b6119e53360016000612792565b6001816080018181516119f8919061397a565b9052506080810151600f5551336000908152601560205260409020805467ffffffffffffffff19166001600160401b03909216919091179055505050565b6001600160a01b038216331415611a8f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b31565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6011546001600160a01b0316331480611b1e57506000546001600160a01b031633145b611b3a5760405162461bcd60e51b8152600401610b3190613875565b6040805160a081018252600b80546001600160401b031680835260006020840181905293830184905260608301849052608090920183905255600c55565b6000546001600160a01b03163314611ba25760405162461bcd60e51b8152600401610b3190613840565b60026008541415611bf55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b6002600855604051600090339047908381818185875af1925050503d8060008114611c3c576040519150601f19603f3d011682016040523d82523d6000602084013e611c41565b606091505b5050905080611c855760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610b31565b506001600855565b611c98848484612459565b611ca484848484612971565b6110ca5760405162461bcd60e51b8152600401610b31906138ac565b6011546001600160a01b0316331480611ce357506000546001600160a01b031633145b611cff5760405162461bcd60e51b8152600401610b3190613875565b6040805160c081018252600e80546001600160401b03808216808552600060208601819052600160801b8085048416978701889052429093166060870181905260808701829052601080546001600160a01b03811660a09099018990526001600160c01b031990961690931797909302969096176001600160c01b0316600160c01b90920291909117909255600f939093556001600160a01b0319909216179055565b6060611daf826001541190565b611e135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b31565b6000611e1d612a7f565b90506000815111611e3d5760405180602001604052806000815250611e68565b80611e4784612a8e565b604051602001611e589291906136d8565b6040516020818303038152906040525b9392505050565b6011546001600160a01b0316331480611e9257506000546001600160a01b031633145b611eae5760405162461bcd60e51b8152600401610b3190613875565b60808101358015801590611ed7575061271081611eca60015490565b611ed4919061392f565b11155b611ef35760405162461bcd60e51b8152600401610b3190613770565b611efb6122c2565b15611f185760405162461bcd60e51b8152600401610b31906137a5565b611f286080830160608401613674565b6001600160401b0316611f416060840160408501613674565b6001600160401b031611611f975760405162461bcd60e51b815260206004820152601a60248201527f4572726f723a205072696365206d6973616c6c6f636174696f6e0000000000006044820152606401610b31565b81600b611fa48282613aab565b5060009050611fb96060840160408501613674565b6001600160401b031690506000611fd66080850160608601613674565b6001600160401b031690506000611ff36040860160208701613674565b6001600160401b031690506107088161200c848661397a565b6120169190613947565b61202190600161392f565b61202b919061395b565b6013555050505050565b600f546000901580159061205a5750600e54600160401b90046001600160401b031615155b801561207b5750600e546001600160401b03428116600160801b9092041611155b8015610cd25750600e546001600160401b03428116600160c01b9092041611905090565b3233146120be5760405162461bcd60e51b8152600401610b31906137dc565b6120c66122c2565b6120e35760405163136b7cf160e11b815260040160405180910390fd5b600c54818110156121065760405162461bcd60e51b8152600401610b3190613813565b60006121106110d0565b9050600061211e848361395b565b9050811580159061212f5750803410155b61214b5760405162461bcd60e51b8152600401610b31906138ff565b61215733856000612792565b612161848461397a565b600c81905592506110ca81612ba7565b6011546001600160a01b031633148061219457506000546001600160a01b031633145b6121b05760405162461bcd60e51b8152600401610b3190613875565b608081013580158015906121d95750612710816121cc60015490565b6121d6919061392f565b11155b6121f55760405162461bcd60e51b8152600401610b3190613770565b6121fd612035565b1561221a5760405162461bcd60e51b8152600401610b31906137a5565b81600e6110ca8282613c26565b6000546001600160a01b031633146122515760405162461bcd60e51b8152600401610b3190613840565b6001600160a01b0381166122b65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b31565b6122bf81612883565b50565b600c54600090158015906122e75750600b54600160801b90046001600160401b031615155b80156123045750600b54600160c01b90046001600160401b031615155b801561231e5750600b546001600160401b03428116911611155b8015610cd25750601354600b546001600160401b03428116926123439290911661392f565b11905090565b6011546001600160a01b031633148061236c57506000546001600160a01b031633145b6123885760405162461bcd60e51b8152600401610b3190613875565b604080516080810182526000808252600d80546001600160401b03600160401b808304821660208701819052429092169686018790526060909501939093526001600160c01b0319169190920267ffffffffffffffff60801b191617600160801b909202919091176001600160c01b03169055565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612464826127ad565b80519091506000906001600160a01b0316336001600160a01b0316148061249b57503361249084610ac6565b6001600160a01b0316145b806124ad575081516124ad903361090f565b9050806125175760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610b31565b846001600160a01b031682600001516001600160a01b03161461258b5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610b31565b6001600160a01b0384166125ef5760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610b31565b426001600160401b031682602001516001600160401b031611156126455760405162461bcd60e51b815260206004820152600d60248201526c546f6b656e206973204c6f636b60981b6044820152606401610b31565b61265560008484600001516123fd565b6001600160a01b03858116600090815260056020908152604080832080546001600160801b03198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255888552600490935281842080546001600160e01b031916909117600160a01b426001600160401b031602179055908601808352912054909116612748576126fc816001541190565b1561274857825160008281526004602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b610c6983836040518060200160405280600081525084612c66565b60408051808201909152600080825260208201526127cc826001541190565b61282b5760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610b31565b815b6000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215612879579392505050565b506000190161282d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516bffffffffffffffffffffffff193360601b16602082015260348101859052600090605401604051602081830303815290604052805190602001209050612954828286868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612eea92505050565b61278b57604051638baa579f60e01b815260040160405180910390fd5b60006001600160a01b0384163b15612a7357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129b5903390899088908890600401613707565b602060405180830381600087803b1580156129cf57600080fd5b505af19250505080156129ff575060408051601f3d908101601f191682019092526129fc9181019061357b565b60015b612a59573d808015612a2d576040519150601f19603f3d011682016040523d82523d6000602084013e612a32565b606091505b508051612a515760405162461bcd60e51b8152600401610b31906138ac565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a77565b5060015b949350505050565b606060128054610a43906139e5565b606081612ab25750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612adc5780612ac681613a1a565b9150612ad59050600a83613947565b9150612ab6565b6000816001600160401b03811115612b0457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612b2e576020820181803683370190505b5090505b8415612a7757612b4360018361397a565b9150612b50600a86613a35565b612b5b90603061392f565b60f81b818381518110612b7e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ba0600a86613947565b9450612b32565b60026008541415612bfa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b31565b600260085534811115612c1f5760405162461bcd60e51b8152600401610b31906138ff565b80341115611c8557336108fc612c35833461397a565b6040518115909202916000818181858888f19350505050158015612c5d573d6000803e3d6000fd5b50506001600855565b6001546001600160a01b038516612cc95760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610b31565b83612d275760405162461bcd60e51b815260206004820152602860248201527f455243373231413a207175616e74697479206d75737420626520677265617465604482015267072207468616e20360c41b6064820152608401610b31565b7f0000000000000000000000000000000000000000000000000000000000000014841115612da25760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610b31565b6001600160a01b03851660008181526005602090815260408083208054600160801b6001600160801b038083168c0181166001600160801b0319909316831782900481168c0116021790558483526004909152902080546001600160a01b03191690911790556001600160401b038216612e1c5742612e1e565b815b600082815260046020526040812080546001600160401b0393909316600160a01b0267ffffffffffffffff60a01b199093169290921790915581905b85811015612edf5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0387163b15612ed357612eb76000888488612971565b612ed35760405162461bcd60e51b8152600401610b31906138ac565b60019182019101612e5a565b506001555050505050565b6000806000612ef98585613044565b90925090506000816004811115612f2057634e487b7160e01b600052602160045260246000fd5b148015612f3e5750856001600160a01b0316826001600160a01b0316145b15612f4e57600192505050611e68565b600080876001600160a01b0316631626ba7e60e01b8888604051602401612f76929190613744565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051612fb491906136bc565b600060405180830381855afa9150503d8060008114612fef576040519150601f19603f3d011682016040523d82523d6000602084013e612ff4565b606091505b5091509150818015613007575080516020145b801561303857508051630b135d3f60e11b9061302c908301602090810190840161357b565b6001600160e01b031916145b98975050505050505050565b60008082516041141561307b5760208301516040840151606085015160001a61306f878285856130b4565b945094505050506130ad565b8251604014156130a5576020830151604084015161309a8683836131a1565b9350935050506130ad565b506000905060025b9250929050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156130eb5750600090506003613198565b8460ff16601b1415801561310357508460ff16601c14155b156131145750600090506004613198565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613168573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661319157600060019250925050613198565b9150600090505b94509492505050565b6000806001600160ff1b038316816131be60ff86901c601b61392f565b90506131cc878288856130b4565b935093505050935093915050565b8280546131e6906139e5565b90600052602060002090601f016020900481019282613208576000855561324e565b82601f106132215782800160ff1982351617855561324e565b8280016001018555821561324e579182015b8281111561324e578235825591602001919060010190613233565b506112079291505b808211156112075760008155600101613256565b60008083601f84011261327b578081fd5b5081356001600160401b03811115613291578182fd5b6020830191508360208260051b85010111156130ad57600080fd5b803580151581146132bc57600080fd5b919050565b60008083601f8401126132d2578182fd5b5081356001600160401b038111156132e8578182fd5b6020830191508360208285010111156130ad57600080fd5b600060a08284031215613311578081fd5b50919050565b600060208284031215613328578081fd5b8135611e6881613d34565b60008060408385031215613345578081fd5b823561335081613d34565b9150602083013561336081613d34565b809150509250929050565b60008060006060848603121561337f578081fd5b833561338a81613d34565b9250602084013561339a81613d34565b929592945050506040919091013590565b600080600080608085870312156133c0578081fd5b84356133cb81613d34565b935060208501356133db81613d34565b92506040850135915060608501356001600160401b03808211156133fd578283fd5b818701915087601f830112613410578283fd5b81358181111561342257613422613a75565b604051601f8201601f19908116603f0116810190838211818310171561344a5761344a613a75565b816040528281528a6020848701011115613462578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215613495578182fd5b82356134a081613d34565b91506134ae602084016132ac565b90509250929050565b600080604083850312156134c9578182fd5b82356134d481613d34565b946020939093013593505050565b6000806000806000606086880312156134f9578081fd5b85356001600160401b038082111561350f578283fd5b61351b89838a0161326a565b90975095506020880135915080821115613533578283fd5b506135408882890161326a565b90945092506135539050604087016132ac565b90509295509295909350565b600060208284031215613570578081fd5b8135611e6881613d49565b60006020828403121561358c578081fd5b8151611e6881613d49565b600080602083850312156135a9578182fd5b82356001600160401b038111156135be578283fd5b6135ca858286016132c1565b90969095509350505050565b600060a082840312156135e7578081fd5b611e688383613300565b600060808284031215613311578081fd5b600060c08284031215613311578081fd5b600060208284031215613624578081fd5b5035919050565b60008060006040848603121561363f578081fd5b8335925060208401356001600160401b0381111561365b578182fd5b613667868287016132c1565b9497909650939450505050565b600060208284031215613685578081fd5b8135611e6881613d5f565b600081518084526136a88160208601602086016139b9565b601f01601f19169290920160200192915050565b600082516136ce8184602087016139b9565b9190910192915050565b600083516136ea8184602088016139b9565b8351908301906136fe8183602088016139b9565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061373a90830184613690565b9695505050505050565b828152604060208201526000612a776040830184613690565b602081526000611e686020830184613690565b6020808252818101527f4572726f723a20457863656564206d617820746f74616c206e6f72207a65726f604082015260600190565b6020808252601b908201527f4572726f723a2061637469766974792068617320737461727465640000000000604082015260600190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b602080825260139082015272139bdd08195b9bdd59da08199bdc881b5a5b9d606a1b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f4f776e61626c653a2063616c6c6572206e6f742041646d696e00000000000000604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601690820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604082015260600190565b6000821982111561394257613942613a49565b500190565b60008261395657613956613a5f565b500490565b600081600019048311821515161561397557613975613a49565b500290565b60008282101561398c5761398c613a49565b500390565b60006001600160401b03838116908316818110156139b1576139b1613a49565b039392505050565b60005b838110156139d45781810151838201526020016139bc565b838111156110ca5750506000910152565b600181811c908216806139f957607f821691505b6020821081141561331157634e487b7160e01b600052602260045260246000fd5b6000600019821415613a2e57613a2e613a49565b5060010190565b600082613a4457613a44613a5f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80546001600160a01b0319166001600160a01b0392909216919091179055565b8135613ab681613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613adf81613d5f565b613ae98183613d0a565b506040820135613af881613d5f565b613b028183613cbc565b506060820135613b1181613d5f565b613b1b8183613ce7565b50608082013560018201555050565b8135613b3581613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613b5e81613d5f565b613b688183613d0a565b506040820135613b7781613d5f565b613b818183613cbc565b506060820135613b9081613d5f565b613b9a8183613ce7565b506080820135613ba981613d34565b610c698160018401613a8b565b8135613bc181613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613bea81613d5f565b613bf48183613d0a565b506040820135613c0381613d5f565b613c0d8183613cbc565b506060820135613c1c81613d5f565b610c698183613ce7565b8135613c3181613d5f565b815467ffffffffffffffff19166001600160401b038216178255506020820135613c5a81613d5f565b613c648183613d0a565b506040820135613c7381613d5f565b613c7d8183613cbc565b506060820135613c8c81613d5f565b613c968183613ce7565b506080820135600182015560a0820135613caf81613d34565b610c698160028401613a8b565b805467ffffffffffffffff60801b191660809290921b67ffffffffffffffff60801b16919091179055565b80546001600160c01b031660c09290921b6001600160c01b031916919091179055565b805467ffffffffffffffff60401b8360401b1667ffffffffffffffff60401b198216178255505050565b6001600160a01b03811681146122bf57600080fd5b6001600160e01b0319811681146122bf57600080fd5b6001600160401b03811681146122bf57600080fdfea26469706673582212206c809687ed61f090134a2cbb5fe921b19c954c9ce116434433363a62b51cbce164736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.