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

Overview

Max Total Supply

207 HyewonPaintings

Holders

23

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
1-ether.eth
Balance
15 HyewonPaintings
0x0945c91d5ddc3cdfdf7fdd45ded0746d0f31296e
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
HyewonNft

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

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

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./IHyewonNft.sol";

contract HyewonNft is IHyewonNft, ERC721A, Ownable, ReentrancyGuard, Pausable {
    /**
     * Maximum number of supply
     */
    uint256 public maximumSupply;

    /**
     *  To make token uri immutable permanently
     */
    bool public permanent;

    /**
     *  Minting rounds
     */
    mapping(uint16 => Round) rounds;

    uint256 public revealBlockOffset = 3000;

    /**
     *  Record how many tokens claimed for each whitelist
     */
    mapping(uint16 => mapping(address => uint16)) whitelists;

    /**
     *  Current round number
     */
    uint16 public currentRoundNumber;

    address private _receiver;
    address private _signer;

    /**
     * Base uri for token uri
     */
    string public baseURI;

    /**
     * Default unrevealed uri
     */
    string private defaultUnrevealedURI;

    /**
     * Modifier for onlyOwnerAndAdmin
     * Each round could have different admin
     */
    modifier onlyOwnerOrAdmin(uint16 roundNumber) {
        Round memory r = rounds[roundNumber];

        address admin = rounds[roundNumber].admin;

        if (admin == address(0)) {
            revert BadRequest("Not allowed address");
        }

        if (msg.sender != owner() && msg.sender != admin) {
            revert NotOwnerNorAdmin(msg.sender);
        }
        _;
    }

    constructor(
        address receiver,
        uint256 maxSupply,
        string memory _baseUri,
        string memory _defaultUnrevealedURI
    )
        ERC721A("Hyewon's Album of Genre Paintings", "HyewonPaintings")
        Ownable()
        Pausable()
    {
        _receiver = receiver;
        maximumSupply = maxSupply;
        baseURI = _baseUri;
        defaultUnrevealedURI = _defaultUnrevealedURI;
    }

    /**
     *  Get the STATE of the contract
     */
    function getState() public view returns (State) {
        if (currentRoundNumber == 0) {
            return State.DEPLOYED;
        }

        Round memory currentRound = rounds[currentRoundNumber];

        uint256 startTime = currentRound.startTime;
        uint256 endTime = currentRound.endTime;
        uint256 currentTime = block.timestamp;

        State currentState;

        if (currentTime < startTime) {
            currentState = State.PREPARE_MINTING;
        } else if (currentTime < endTime) {
            if (currentRound.maxMintingId > totalSupply()) {
                currentState = State.ON_MINTING;
            } else {
                currentState = State.END_MINTING;
            }
        } else {
            currentState = State.END_MINTING;
        }

        return currentState;
    }

    /**
     * Normal account minting
     */
    function mint(uint256 quantity)
        external
        payable
        nonReentrant
        whenNotPaused
    {
        Round memory currentRound = getRound(currentRoundNumber);

        // check if whitelist only round
        if (currentRound.whitelisted) {
            revert WhitelistOnlyRound();
        }

        _sanityCheckForMinting(currentRound, quantity);

        require(safeMint(msg.sender, quantity));
    }

    /**
     *  Minting for whitelisted accounts only
     */
    function whitelistMint(
        uint8 v,
        bytes32 r,
        bytes32 s,
        uint16 quantity
    ) external payable nonReentrant whenNotPaused {
        Round memory currentRound = getRound(currentRoundNumber);

        // check if whitelist only round
        if (!currentRound.whitelisted) {
            revert NotWhitelistOnlyRound();
        }

        _sanityCheckForMinting(currentRound, quantity);

        // check if the address has enough allowance
        uint16 claimed = whitelists[currentRoundNumber][_msgSender()];
        uint16 maxAllowedQuantity = currentRound.maxAllowedMintingQuantity;

        if (claimed + quantity > maxAllowedQuantity) {
            revert ExceedAllowedQuantity(maxAllowedQuantity);
        }

        _updateWhitelistUsed(currentRoundNumber, quantity, v, r, s);

        require(safeMint(msg.sender, quantity));
    }

    function safeMint(address receiver, uint256 quantity)
        public
        returns (bool)
    {
        _safeMint(receiver, quantity);
        return true;
    }

    /**
     * Minting for admin account
     */
    function adminMint(uint256 quantity)
        external
        onlyOwnerOrAdmin(currentRoundNumber)
        nonReentrant
    {
        Round memory currentRound = rounds[currentRoundNumber];
        // check if minting does not exceed the maximum tokens for the round
        uint256 maxMintingId = currentRound.maxMintingId;
        if (!_isTokenAvailable(quantity, maxMintingId)) {
            revert ExceedMaximumForTheRound();
        }

        require(safeMint(msg.sender, quantity));
    }

    /**
     * Minting and transfer tokens
     * Only for owner
     */
    function adminMintTo(address[] calldata tos, uint256[] calldata quantities)
        external
        payable
        onlyOwner
    {
        uint256 length = tos.length;
        if (length != quantities.length) {
            revert BadRequest("Input size not match");
        }

        uint256 totalQuantity = 0;

        for (uint256 i = 0; i < tos.length; i++) {
            totalQuantity += quantities[i];
        }

        Round memory currentRound = rounds[currentRoundNumber];
        // check if minting does not exceed the maximum tokens for the round
        uint256 maxMintingId = currentRound.maxMintingId;

        if (!_isTokenAvailable(totalQuantity, maxMintingId)) {
            revert ExceedMaximumForTheRound();
        }

        for (uint256 i = 0; i < length; i++) {
            require(safeMint(tos[i], quantities[i]));
        }
    }

    /**
     * Transfer multiple tokens to an account
     */
    function transferBatch(uint256[] calldata tokenIds, address to)
        external
        nonReentrant
    {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            safeTransferFrom(_msgSender(), to, tokenIds[i]);
        }
    }

    /**
     * Get token uri
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        Round memory round = _getRoundByTokenId(tokenId);

        if (
            round.revealed &&
            keccak256(abi.encodePacked(round.tokenURIPrefix)) !=
            keccak256(abi.encodePacked(""))
        ) {
            return
                string(
                    abi.encodePacked(
                        baseURI,
                        round.tokenURIPrefix,
                        "/",
                        _toString(tokenId),
                        ".json"
                    )
                );
        } else {
            return
                string(
                    abi.encodePacked(
                        defaultUnrevealedURI,
                        _toString(tokenId),
                        ".json"
                    )
                );
        }
    }

    /**
     *  Create a new minting round
     *  For owner only
     */
    function newRound(
        uint256 maxMintingId, // largest minting id for the round
        uint256 mintingFee, // minting fee
        uint16 maxAllowedMintingQuantity, // maximum number of minting quantity per account
        bool whitelisted, // use whitelist or not
        bool revealed, // reveal image or not
        uint256 startTime, // round starting time
        uint256 endTime, // round ending time
        bool onlyAdminRound, // only owner and admin can mint
        address admin // admin for the round
    ) external onlyOwner {
        // wrap-up the existing round
        if (currentRoundNumber > 0) {
            endRound();
        }

        // the maxMintingId of new round can NOT exceed the maximumSupply
        if (maxMintingId > maximumSupply) {
            revert BadRequest("maxMintingId exceed the maximumSupply");
        }

        if (startTime >= endTime) {
            revert BadRequest("endTime should be bigger");
        }

        uint16 newRoundNumber = ++currentRoundNumber;

        rounds[newRoundNumber] = Round({
            roundNumber: newRoundNumber,
            maxMintingId: maxMintingId,
            startId: _nextTokenId(),
            lastMintedId: 0,
            tokenURIPrefix: "",
            mintingFee: mintingFee,
            maxAllowedMintingQuantity: maxAllowedMintingQuantity,
            whitelisted: whitelisted,
            revealed: revealed,
            revealBlockNumber: 0,
            randomSelection: 0,
            startTime: startTime,
            endTime: endTime,
            onlyAdminRound: onlyAdminRound,
            admin: admin
        });

        emit NewRoundCreated();
    }

    /**
     * End the current round
     * For owner and admin
     */
    function endRound() public onlyOwnerOrAdmin(currentRoundNumber) {
        Round storage currentRound = rounds[currentRoundNumber];
        currentRound.lastMintedId = _nextTokenId() - 1;
        currentRound.endTime = block.timestamp;
    }

    /**
     *  Get round detail
     */
    function getRound(uint16 roundNumber) public view returns (Round memory) {
        return rounds[roundNumber];
    }

    /**
     *  Get the detail of the current round
     */
    function getCurrentRound() public view returns (Round memory) {
        return getRound(currentRoundNumber);
    }

    /**
     *  Set the maximum minting id for the current round
     *  For owner and admin
     */
    function setMaxMintingId(uint256 maxId) external {
        setMaxMintingId(currentRoundNumber, maxId);
    }

    /**
     *  Set the maximum minting id for the specified round
     *  For owner and admin
     */
    function setMaxMintingId(uint16 roundNumber, uint256 maxId)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        if (maxId < _nextTokenId()) {
            revert MaxMintingIdLowerThanCurrentId();
        }

        if (maxId > maximumSupply) {
            revert ExceedMaximumSupply();
        }

        Round storage round = rounds[roundNumber];
        round.maxMintingId = maxId;

        emit MaxMintingIdUpdated(roundNumber, maxId);
    }

    /**
     *  Set the token uri prefix for the current round
     *  For owner and admin
     */
    function setTokenURIPrefix(string memory prefix) external {
        setTokenURIPrefix(currentRoundNumber, prefix);
    }

    /**
     *  Set the token uri prefix for the specified round
     *  For owner and admin
     */
    function setTokenURIPrefix(uint16 roundNumber, string memory prefix)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        if (permanent) {
            revert ImmutableState();
        }

        Round storage round = rounds[roundNumber];
        round.tokenURIPrefix = prefix;

        emit TokenURIPrefixUpdated(roundNumber, prefix);
    }

    /**
     *  Set the minting for the current round
     *  OnlyOwner functions
     */
    function setMintingFee(uint256 fee) external {
        setMintingFee(currentRoundNumber, fee);
    }

    /**
     *  Set the minting for the specified round
     *  OnlyOwner functions
     */
    function setMintingFee(uint16 roundNumber, uint256 fee)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];
        round.mintingFee = fee;

        emit MintingFeeUpdated(roundNumber, fee);
    }

    /**
     *  Set maximum minting quantity for an account
     *  For owner and admin
     */
    function setMaxAllowedMintingQuantity(uint16 quantity) external {
        setMaxAllowedMintingQuantity(currentRoundNumber, quantity);
    }

    /**
     *  Set maximum minting quantity for an account
     *  For owner and admin
     */
    function setMaxAllowedMintingQuantity(uint16 roundNumber, uint16 quantity)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];
        round.maxAllowedMintingQuantity = quantity;

        emit MaxAllowedMintingCountUpdated(roundNumber, quantity);
    }

    /**
     *  On/off the whitelisted for the current round
     *  For owner and admin
     */
    function setWhitelisted(bool whitelisted) external {
        setWhitelisted(currentRoundNumber, whitelisted);
    }

    /**
     *  On/off the whitelisted for the specified round
     *  For owner and admin
     */
    function setWhitelisted(uint16 roundNumber, bool whitelisted)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];
        round.whitelisted = whitelisted;

        emit WhitelistRequiredChanged(roundNumber, whitelisted);
    }

    /**
     *  Trigger reveal process for the current round
     *  For owner and admin
     */
    function setRevealBlock() external {
        setRevealBlock(currentRoundNumber);
    }

    /**
     *  Trigger reveal process for the specified round
     *  For owner and admin
     */
    function setRevealBlock(uint16 roundNumber)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];

        if (round.lastMintedId == 0) {
            revert BadRequest("Round should be closed");
        }

        round.revealBlockNumber = block.number + revealBlockOffset;

        emit SetRevealBlock(round.revealBlockNumber);
    }

    /**
     *  Set random selection number based on entropy
     *  It set the reveal on
     */
    function setRandomSelection(uint16 roundNumber) public {
        Round storage round = rounds[roundNumber];

        if (round.revealed) {
            revert AlreadyRevealed();
        }

        uint256 revealBlockNumber = round.revealBlockNumber;

        if (revealBlockNumber > block.number) {
            revert BadRequest("Random selection is not ready");
        }

        bytes32 entropy;

        if (blockhash(revealBlockNumber - 1) != 0) {
            entropy = keccak256(
                abi.encodePacked(
                    blockhash(revealBlockNumber),
                    blockhash(revealBlockNumber - 1),
                    block.timestamp
                )
            );
        } else {
            entropy = keccak256(
                abi.encodePacked(
                    blockhash(block.number - 1),
                    blockhash(block.number - 2),
                    block.timestamp
                )
            );
        }

        round.revealed = true;

        uint256 selected = _getRandomInRange(
            entropy,
            round.startId,
            round.lastMintedId
        );

        round.randomSelection = selected;

        emit Revealed(roundNumber);
    }

    /**
     * Set revealed
     * For owner and admin
     */
    function setRevealed() external {
        setRevealed(currentRoundNumber);
    }

    function setRevealed(uint16 roundNumber)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];

        if (round.lastMintedId == 0) {
            revert BadRequest("Round is still open");
        }

        round.revealed = true;

        emit Revealed(roundNumber);
    }

    /**
     *  Set minting start time for the current round
     *  Only for owner and admin
     */
    function setStartTime(uint256 time) external {
        setStartTime(currentRoundNumber, time);
    }

    /**
     *  Set minting start time for the specified round
     *  Only for owner and admin
     */
    function setStartTime(uint16 roundNumber, uint256 time)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];
        round.startTime = time;

        emit StartTimeUpdated(roundNumber, time);
    }

    /**
     *  Set minting end time for the current round
     *  Only for owner and admin
     */
    function setEndTime(uint256 time) external {
        setEndTime(currentRoundNumber, time);
    }

    /**
     *  Set minting end time for the specified round
     *  Only for owner and admin
     */
    function setEndTime(uint16 roundNumber, uint256 time)
        public
        onlyOwnerOrAdmin(roundNumber)
    {
        Round storage round = rounds[roundNumber];
        round.endTime = time;

        emit EndTimeUpdated(roundNumber, time);
    }

    /**
     *  On/off admin only round for the current round
     *  OnlyOwner
     */
    function setOnlyAdminRound(bool onlyAdmin) external {
        setOnlyAdminRound(currentRoundNumber, onlyAdmin);
    }

    /**
     *  On/off admin only round for the specified round
     *  OnlyOwner
     */
    function setOnlyAdminRound(uint16 roundNumber, bool onlyAdmin)
        public
        onlyOwner
    {
        Round storage round = rounds[roundNumber];
        round.onlyAdminRound = onlyAdmin;

        emit OnlyAdminRoundChanged(roundNumber, onlyAdmin);
    }

    /**
     *  Set the admin for the current round
     *  OnlyOwner
     */
    function setAdmin(address admin) external {
        setAdmin(currentRoundNumber, admin);
    }

    /**
     * Set the admin for the specified round
     * OnlyOwner
     */
    function setAdmin(uint16 roundNumber, address admin) public onlyOwner {
        Round storage round = rounds[roundNumber];
        round.admin = admin;

        emit AdminUpdated(roundNumber, admin);
    }

    /**
     *  Internal function to override the ERC721A _baseURI()
     */
    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }

    /**
     *  Get the base uri
     */
    function getBaseURI() external view returns (string memory) {
        return _baseURI();
    }

    /**
     * Set the base uri
     * Only for the owner
     */
    function setBaseURI(string memory _newBaseURI) external onlyOwner {
        if (permanent) {
            revert ImmutableState();
        }

        baseURI = _newBaseURI;
        emit BaseURIUpdated(_newBaseURI);
    }

    /**
     * Set the default unrevealed uri
     * Only for the owner
     */
    function setDefaultUnrealedURI(string memory _defaultUnrevealedURI)
        external
        onlyOwner
    {
        defaultUnrevealedURI = _defaultUnrevealedURI;
        emit DefaultUnrevealedURIUpdated(_defaultUnrevealedURI);
    }

    /**
     *  Paused the contract
     *  Only for the owner
     */
    function pause() external onlyOwner {
        _pause();
    }

    /**
     *  Unpause the contract
     *  Only for the owner
     */
    function unpause() external onlyOwner {
        _unpause();
    }

    /**
     *  Set the receiver
     *  Only for the owner
     */
    function setReceiver(address receiver) external onlyOwner {
        _receiver = receiver;
    }

    /**
     * Withdraw the balance in the contract
     */
    function withdraw() external payable onlyOwner {
        uint256 amount = address(this).balance;
        (bool success, ) = _receiver.call{value: amount}("");
        if (!success) {
            revert FailedToSendBalance();
        }
        emit Withdraw(_receiver, amount);
    }

    /**
     *  Fallback function
     */
    fallback() external payable {
        emit Received(_msgSender(), msg.value);
    }

    /**
     *  Fallback function
     */
    receive() external payable {
        emit Received(_msgSender(), msg.value);
    }

    /**
     * Set the 'perment' to true to prevent token uri change
     */
    function setPermanent() external onlyOwner {
        permanent = true;
    }

    /**
     *  Update signer
     *  For only owner
     */
    function updateSigner(address newSigner) external onlyOwner {
        _signer = newSigner;
    }

    function updateRevealBlockOffset(uint256 newOffset) external onlyOwner {
        revealBlockOffset = newOffset;
    }

    /**
     *  Sanity check before transfer tokens
     */
    function _sanityCheckForMinting(Round memory currentRound, uint256 quantity)
        private
    {
        // check if onlyAdminRound
        if (currentRound.onlyAdminRound) {
            revert AdminOnlyRound();
        }

        State currentState = getState();

        if (currentState != State.ON_MINTING) {
            revert MintingNotAllowed();
        }

        // check if not exceeding the maxAllowedMintingQuantity
        if (
            currentRound.maxAllowedMintingQuantity != 0 &&
            currentRound.maxAllowedMintingQuantity < quantity
        ) {
            revert ExceedAllowedQuantity(
                currentRound.maxAllowedMintingQuantity
            );
        }

        // check if minting does not exceed the maximum tokens for the round
        if (!_isTokenAvailable(quantity, currentRound.maxMintingId)) {
            revert ExceedMaximumForTheRound();
        }

        // check if proper fee is received
        uint256 neededFee = currentRound.mintingFee * quantity;
        if (neededFee != msg.value) revert NoMatchingFee();
    }

    /**
     *  Check the availability of tokens mintable for the round
     */
    function _isTokenAvailable(uint256 quantity, uint256 maxId)
        private
        view
        returns (bool)
    {
        // check if minting does not exceed the maximum tokens for the round
        if (_nextTokenId() + quantity > (maxId + 1)) {
            return false;
        }

        return true;
    }

    /**
     *  Private function to get the round number with token id
     */
    function _getRoundByTokenId(uint256 tokenId)
        private
        view
        returns (Round memory r)
    {
        if (!_exists(tokenId)) revert NonExistingToken(tokenId);

        uint16 roundNumber = 1;

        while (roundNumber <= currentRoundNumber) {
            r = rounds[roundNumber];
            uint256 roundMax = r.lastMintedId != 0
                ? r.lastMintedId
                : r.maxMintingId;
            if (tokenId > roundMax) {
                roundNumber++;
                continue;
            }
            return r;
        }
    }

    function _updateWhitelistUsed(
        uint16 round,
        uint16 quantity,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) private {
        // verify the signature
        bytes32 hash = _getHash(round, _msgSender(), "whitelistClaim");
        if (!_verifySig(hash, v, r, s)) {
            revert SignatureNotMatch();
        }

        // add the claimed quantity
        whitelists[round][_msgSender()] += quantity;
    }

    function _getHash(
        uint16 round,
        address sender,
        string memory message
    ) private view returns (bytes32) {
        return
            keccak256(abi.encodePacked(address(this), round, sender, message));
    }

    function _verifySig(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) private view returns (bool) {
        return ecrecover(hash, v, r, s) == _signer;
    }

    function _getRandomInRange(
        bytes32 hash,
        uint256 begin,
        uint256 end
    ) private pure returns (uint256) {
        uint256 diff = end - begin + 1;
        return (uint256(hash) % diff) + begin;
    }
}

File 2 of 8 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev ERC721 token receiver interface.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Mask of an entry in packed address data.
    uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant BITMASK_BURNED = 1 << 224;
    
    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The tokenId of the next token to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // 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 `_packedOwnershipOf` implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

    // 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;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * @dev Returns the starting token ID. 
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count. 
     * To get the total number of tokens minted, please see `_totalMinted`.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to `_startTokenId()`
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes of the XOR of
        // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165
        // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> BITPOS_AUX);
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP);
        ownership.burned = packed & BITMASK_BURNED != 0;
    }

    /**
     * Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * 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) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

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

    /**
     * @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) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

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

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

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

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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 {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * 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`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * 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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function _toString(uint256 value) internal pure returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

            // Cache the end of the memory to calculate the length later.
            let end := ptr

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for { 
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer. 48 is the ASCII index of '0'.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp { 
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } { // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }
            
            let length := sub(end, ptr)
            // Move the pointer 32 bytes leftwards to make room for the length.
            ptr := sub(ptr, 32)
            // Store the length.
            mstore(ptr, length)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 6 of 8 : IHyewonNft.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IHyewonNft {
    error MintingNotStarted(uint256 startTime);
    error MintingEnded(uint256 endTime);
    error MintingNotAllowed();
    error ExceedMaximumForTheRound();
    error ExceedMaximumSupply();
    error ExceedAllowedQuantity(uint16 maximumAllowedQuantity);
    error MaxMintingIdLowerThanCurrentId();
    error NoMatchingFee();
    error NonExistingToken(uint256 tokenId);
    error AddressNotWhitelisted(address candidate);
    error NotEnoughAllowanceLeft(uint16 remainingAllowance);
    error FailedToSendBalance();
    error NotOwnerNorAdmin(address account);
    error AdminOnlyRound();
    error BadRequest(string reason);
    error WhitelistOnlyRound();
    error NotWhitelistOnlyRound();
    error SignatureNotMatch();
    error AlreadyRevealed();
    error ImmutableState();

    enum State {
        DEPLOYED,
        PREPARE_MINTING,
        ON_MINTING,
        END_MINTING,
        ALL_MINTING_DONE
    }

    struct Round {
        uint16 roundNumber; // round number
        uint256 maxMintingId; // maximum token id for this round
        uint256 startId; // beginning of the tokenId for the round
        uint256 lastMintedId; // last token id actually minted before the next round starts
        string tokenURIPrefix; // directory hash value for token uri
        uint256 mintingFee; // minting for the round
        uint16 maxAllowedMintingQuantity; // max number of tokens for an account (if zero, no limit)
        bool whitelisted; // use whitelist or not
        bool revealed; // released token is revealed or not
        uint256 revealBlockNumber; // blocknubmer which entropy will calculated
        uint256 randomSelection;
        uint256 startTime; // round start time
        uint256 endTime; // round end time (if zero, no end time)
        bool onlyAdminRound; // only admin can mint tokens
        address admin; // additional admin account
    }

    event NewRoundCreated();
    event MaxMintingIdUpdated(uint16 roundNumber, uint256 maxId);
    event TokenURIPrefixUpdated(uint16 roundNumber, string prefix);
    event MintingFeeUpdated(uint16 roundNumber, uint256 fee);
    event MaxAllowedMintingCountUpdated(uint16 roundNumber, uint16 count);
    event WhitelistRequiredChanged(uint16 roundNumber, bool whitelisted);
    event SetRevealBlock(uint256 revealBlockNumber);
    event Revealed(uint16 roundNumber);
    event UnrevealedURIUpdated(uint16 roundNumber, string uri);
    event StartTimeUpdated(uint16 roundNumber, uint256 time);
    event EndTimeUpdated(uint16 roundNumber, uint256 time);
    event OnlyAdminRoundChanged(uint16 roundNumber, bool onlyAdmin);
    event AdminUpdated(uint16 roundNumber, address admin);

    event BaseURIUpdated(string baseURI);
    event DefaultUnrevealedURIUpdated(string defaultUnrevealedURI);
    event MintingFeeChanged(uint256 newFee);
    event MaxPublicIdChanged(uint16 newMaxPubId);
    event Received(address called, uint256 amount);
    event Withdraw(address receiver, uint256 amount);
}

File 7 of 8 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.0.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

    // ==============================
    //            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);

    // ==============================
    //            IERC721
    // ==============================

    /**
     * @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);

    // ==============================
    //        IERC721Metadata
    // ==============================

    /**
     * @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 8 of 8 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_defaultUnrevealedURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"AddressNotWhitelisted","type":"error"},{"inputs":[],"name":"AdminOnlyRound","type":"error"},{"inputs":[],"name":"AlreadyRevealed","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[{"internalType":"string","name":"reason","type":"string"}],"name":"BadRequest","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint16","name":"maximumAllowedQuantity","type":"uint16"}],"name":"ExceedAllowedQuantity","type":"error"},{"inputs":[],"name":"ExceedMaximumForTheRound","type":"error"},{"inputs":[],"name":"ExceedMaximumSupply","type":"error"},{"inputs":[],"name":"FailedToSendBalance","type":"error"},{"inputs":[],"name":"ImmutableState","type":"error"},{"inputs":[],"name":"MaxMintingIdLowerThanCurrentId","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"MintingEnded","type":"error"},{"inputs":[],"name":"MintingNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"MintingNotStarted","type":"error"},{"inputs":[],"name":"NoMatchingFee","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NonExistingToken","type":"error"},{"inputs":[{"internalType":"uint16","name":"remainingAllowance","type":"uint16"}],"name":"NotEnoughAllowanceLeft","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"NotOwnerNorAdmin","type":"error"},{"inputs":[],"name":"NotWhitelistOnlyRound","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SignatureNotMatch","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhitelistOnlyRound","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminUpdated","type":"event"},{"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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"defaultUnrevealedURI","type":"string"}],"name":"DefaultUnrevealedURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"EndTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"count","type":"uint16"}],"name":"MaxAllowedMintingCountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"MaxMintingIdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newMaxPubId","type":"uint16"}],"name":"MaxPublicIdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"MintingFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"MintingFeeUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"NewRoundCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"OnlyAdminRoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"called","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"revealBlockNumber","type":"uint256"}],"name":"SetRevealBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"StartTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"string","name":"prefix","type":"string"}],"name":"TokenURIPrefixUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"UnrevealedURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"WhitelistRequiredChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"adminMintTo","outputs":[],"stateMutability":"payable","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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRoundNumber","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endRound","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":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRound","outputs":[{"components":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"lastMintedId","type":"uint256"},{"internalType":"string","name":"tokenURIPrefix","type":"string"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"revealBlockNumber","type":"uint256"},{"internalType":"uint256","name":"randomSelection","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"internalType":"struct IHyewonNft.Round","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"getRound","outputs":[{"components":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"lastMintedId","type":"uint256"},{"internalType":"string","name":"tokenURIPrefix","type":"string"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"revealBlockNumber","type":"uint256"},{"internalType":"uint256","name":"randomSelection","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"internalType":"struct IHyewonNft.Round","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"internalType":"enum IHyewonNft.State","name":"","type":"uint8"}],"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":"maximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"name":"newRound","outputs":[],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permanent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealBlockOffset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"safeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_defaultUnrevealedURI","type":"string"}],"name":"setDefaultUnrealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"setMaxAllowedMintingQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"setMaxAllowedMintingQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"setMaxMintingId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"setMaxMintingId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setMintingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setMintingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"setOnlyAdminRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"setOnlyAdminRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRandomSelection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRevealBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setWhitelisted","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":"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":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newOffset","type":"uint256"}],"name":"updateRevealBlockOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052610bb8600e553480156200001757600080fd5b5060405162005c5138038062005c518339810160408190526200003a91620002d3565b60405180606001604052806021815260200162005c30602191396040518060400160405280600f81526020016e487965776f6e5061696e74696e677360881b8152508160029080519060200190620000949291906200017a565b508051620000aa9060039060208401906200017a565b50506000805550620000bc3362000128565b6001600955600a805460ff191690556010805462010000600160b01b031916620100006001600160a01b03871602179055600b8390558151620001079060129060208501906200017a565b5080516200011d9060139060208401906200017a565b5050505050620003b6565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001889062000363565b90600052602060002090601f016020900481019282620001ac5760008555620001f7565b82601f10620001c757805160ff1916838001178555620001f7565b82800160010185558215620001f7579182015b82811115620001f7578251825591602001919060010190620001da565b506200020592915062000209565b5090565b5b808211156200020557600081556001016200020a565b600082601f83011262000231578081fd5b81516001600160401b03808211156200024e576200024e620003a0565b604051601f8301601f19908116603f01168101908282118183101715620002795762000279620003a0565b8160405283815260209250868385880101111562000295578485fd5b8491505b83821015620002b8578582018301518183018401529082019062000299565b83821115620002c957848385830101525b9695505050505050565b60008060008060808587031215620002e9578384fd5b84516001600160a01b038116811462000300578485fd5b6020860151604087015191955093506001600160401b038082111562000324578384fd5b620003328883890162000220565b9350606087015191508082111562000348578283fd5b50620003578782880162000220565b91505092959194509250565b600181811c908216806200037857607f821691505b602082108114156200039a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61586a80620003c66000396000f3fe6080604052600436106103e85760003560e01c8063749aa2d911610208578063a32bf59711610118578063c2207328116100ab578063cb096a7f1161007a578063cb096a7f14610b9c578063ccb98ffc14610bbc578063e985e9c514610bdc578063ec342b7f14610c25578063f2fde38b14610c3b57610432565b8063c220732814610b2f578063c33ac6bb14610b42578063c6ad320014610b62578063c87b56dd14610b7c57610432565b8063b2c73e28116100e7578063b2c73e2814610aaf578063b2cebd8d14610acf578063b88d4fde14610aef578063c1f2612314610b0f57610432565b8063a32bf59714610a2d578063a7bfd04114610a4f578063a7ecd37e14610a6f578063a9a8baa514610a8f57610432565b8063852c64131161019b57806399e0dd7c1161016a57806399e0dd7c1461098c5780639c4780d8146109ac578063a0712d68146109da578063a1448194146109ed578063a22cb46514610a0d57610432565b8063852c6413146109195780638da5cb5b1461093957806395ba9d0a1461095757806395d89b411461097757610432565b80637abd6292116101d75780637abd6292146108af5780637b789204146108cf57806380aafbdb146108ef5780638456cb591461090457610432565b8063749aa2d91461083a5780637583a9d51461084f57806378642aee1461086f5780637905ee0f1461088f57610432565b80633bd649681161030357806355f804b311610296578063704b6c0211610265578063704b6c02146107b057806370a08231146107d0578063714c5398146107f0578063715018a614610805578063718da7ee1461081a57610432565b806355f804b3146107435780635c975abb146107635780636352211e1461077b5780636c0360eb1461079b57610432565b80633f4ba83a116102d25780633f4ba83a146106e657806340d34285146106fb57806342842e0e146107105780634a61ccfd1461073057610432565b80633bd64968146106895780633c482a501461069e5780633ccfd60b146106be5780633e0a322d146106c657610432565b80631ccbf84d1161037b5780633059fb871161034a5780633059fb87146106095780633084a42f1461062957806334d15ae51461064957806334e2d1111461066957610432565b80631ccbf84d14610589578063238a4709146105a957806323b872dd146105c95780632e0b3006146105e957610432565b8063081812fc116103b7578063081812fc146104f6578063095ea7b31461052e57806318160ddd1461054e5780631865c57d1461056757610432565b806301ffc9a7146104595780630202def11461048e5780630480e58b146104b057806306fdde03146104d457610432565b36610432577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874335b604080516001600160a01b0390921682523460208301520160405180910390a1005b7f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433610410565b34801561046557600080fd5b5061047961047436600461506b565b610c5b565b60405190151581526020015b60405180910390f35b34801561049a57600080fd5b506104ae6104a9366004614fff565b610cad565b005b3480156104bc57600080fd5b506104c6600b5481565b604051908152602001610485565b3480156104e057600080fd5b506104e9610d37565b60405161048591906154ce565b34801561050257600080fd5b506105166105113660046151b6565b610dc9565b6040516001600160a01b039091168152602001610485565b34801561053a57600080fd5b506104ae610549366004614f6d565b610e0d565b34801561055a57600080fd5b50600154600054036104c6565b34801561057357600080fd5b5061057c610ee0565b60405161048591906154a6565b34801561059557600080fd5b506104ae6105a4366004615172565b6110be565b3480156105b557600080fd5b506104ae6105c43660046151b6565b61131f565b3480156105d557600080fd5b506104ae6105e4366004614e90565b611333565b3480156105f557600080fd5b506104ae610604366004615126565b611343565b34801561061557600080fd5b506104ae610624366004615051565b6115ba565b34801561063557600080fd5b506104ae6106443660046150f0565b6115cb565b34801561065557600080fd5b506104ae6106643660046151b6565b611672565b34801561067557600080fd5b506104ae6106843660046150a3565b6116a1565b34801561069557600080fd5b506104ae611719565b3480156106aa57600080fd5b506104ae6106b936600461519b565b61172b565b6104ae611973565b3480156106d257600080fd5b506104ae6106e13660046151b6565b611a6e565b3480156106f257600080fd5b506104ae611a7f565b34801561070757600080fd5b506104ae611ab1565b34801561071c57600080fd5b506104ae61072b366004614e90565b611aea565b6104ae61073e366004614f96565b611b05565b34801561074f57600080fd5b506104ae61075e3660046150a3565b611e00565b34801561076f57600080fd5b50600a5460ff16610479565b34801561078757600080fd5b506105166107963660046151b6565b611e91565b3480156107a757600080fd5b506104e9611e9c565b3480156107bc57600080fd5b506104ae6107cb366004614e44565b611f2a565b3480156107dc57600080fd5b506104c66107eb366004614e44565b611f3b565b3480156107fc57600080fd5b506104e9611f8a565b34801561081157600080fd5b506104ae611f99565b34801561082657600080fd5b506104ae610835366004614e44565b611fcd565b34801561084657600080fd5b506104ae612021565b34801561085b57600080fd5b506104ae61086a3660046150d6565b612256565b34801561087b57600080fd5b506104ae61088a36600461519b565b6124fb565b34801561089b57600080fd5b506104ae6108aa3660046150d6565b612789565b3480156108bb57600080fd5b506104ae6108ca3660046151ce565b61279a565b3480156108db57600080fd5b506104ae6108ea366004615051565b612aab565b3480156108fb57600080fd5b506104ae612abc565b34801561091057600080fd5b506104ae612acc565b34801561092557600080fd5b506104ae61093436600461519b565b612afe565b34801561094557600080fd5b506008546001600160a01b0316610516565b34801561096357600080fd5b506104ae61097236600461510b565b612d46565b34801561098357600080fd5b506104e9612dcf565b34801561099857600080fd5b506104ae6109a73660046150a3565b612dde565b3480156109b857600080fd5b506010546109c79061ffff1681565b60405161ffff9091168152602001610485565b6104ae6109e83660046151b6565b612def565b3480156109f957600080fd5b50610479610a08366004614f6d565b612e98565b348015610a1957600080fd5b506104ae610a28366004614f44565b612ead565b348015610a3957600080fd5b50610a42612f43565b60405161048591906155a4565b348015610a5b57600080fd5b506104ae610a6a36600461519b565b612f5b565b348015610a7b57600080fd5b506104ae610a8a366004614e44565b6131a3565b348015610a9b57600080fd5b506104ae610aaa3660046150d6565b6131ef565b348015610abb57600080fd5b506104ae610aca36600461510b565b613487565b348015610adb57600080fd5b506104ae610aea3660046150d6565b6136e6565b348015610afb57600080fd5b506104ae610b0a366004614ecb565b61388b565b348015610b1b57600080fd5b506104ae610b2a3660046151b6565b6138d5565b6104ae610b3d366004615259565b613cbc565b348015610b4e57600080fd5b50610a42610b5d3660046150d6565b613de6565b348015610b6e57600080fd5b50600c546104799060ff1681565b348015610b8857600080fd5b506104e9610b973660046151b6565b613f62565b348015610ba857600080fd5b506104ae610bb73660046151b6565b61401b565b348015610bc857600080fd5b506104ae610bd73660046151b6565b61402c565b348015610be857600080fd5b50610479610bf7366004614e5e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c3157600080fd5b506104c6600e5481565b348015610c4757600080fd5b506104ae610c56366004614e44565b61403d565b60006301ffc9a760e01b6001600160e01b031983161480610c8c57506380ac58cd60e01b6001600160e01b03198316145b80610ca75750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009541415610cd95760405162461bcd60e51b8152600401610cd09061556d565b60405180910390fd5b600260095560005b82811015610d2c57610d1a3383868685818110610d0e57634e487b7160e01b600052603260045260246000fd5b90506020020135611aea565b80610d24816157b7565b915050610ce1565b505060016009555050565b606060028054610d4690615760565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7290615760565b8015610dbf5780601f10610d9457610100808354040283529160200191610dbf565b820191906000526020600020905b815481529060010190602001808311610da257829003601f168201915b5050505050905090565b6000610dd4826140d5565b610df1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e18826140fc565b9050806001600160a01b0316836001600160a01b03161415610e4d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e8457610e678133610bf7565b610e84576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105460009061ffff16610ef45750600090565b60105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190610f5590615760565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8190615760565b8015610fce5780601f10610fa357610100808354040283529160200191610fce565b820191906000526020600020905b815481529060010190602001808311610fb157829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b0316610140909101526101608101516101808201519192509042600083821015611087575060016110b5565b828210156110b15760015460005403856020015111156110a9575060026110b5565b5060036110b5565b5060035b95945050505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161111c90615760565b80601f016020809104026020016040519081016040528092919081815260200182805461114890615760565b80156111955780601f1061116a57610100808354040283529160200191611195565b820191906000526020600020905b81548152906001019060200180831161117857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061127057604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906112945750336001600160a01b03821614155b156112b4576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff8581166000818152600d602090815260409182902060068101805461ffff1916958a1695861790558251938452908301939093527fa66ed5115ae0083f4d108e7dd6a9140d1efb8d1285c1d185717c34b56b9f500991015b60405180910390a1505050505050565b6010546113309061ffff168261172b565b50565b61133e838383614164565b505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916113a190615760565b80601f01602080910402602001604051908101604052809291908181526020018280546113cd90615760565b801561141a5780601f106113ef5761010080835404028352916020019161141a565b820191906000526020600020905b8154815290600101906020018083116113fd57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806114f557604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906115195750336001600160a01b03821614155b15611539576040516377efd02b60e11b8152336004820152602401610cd0565b600c5460ff161561155d57604051636bf43ac160e11b815260040160405180910390fd5b61ffff85166000908152600d6020908152604090912085519091611588916004840191880190614c01565b507fd1c3bef23efc23b7b878bc09751c78345ceda36e3ba298e9caf49f7b728a1578868660405161130f9291906156a3565b6010546113309061ffff1682612d46565b6008546001600160a01b031633146115f55760405162461bcd60e51b8152600401610cd090615538565b61ffff82166000818152600d6020908152604091829020600b81018054610100600160a81b0319166101006001600160a01b03881690810291909117909155835194855291840191909152917f86b856311c919f1689ecc77b792e78812fc6c032256176835bf651873eb6b64291015b60405180910390a1505050565b6008546001600160a01b0316331461169c5760405162461bcd60e51b8152600401610cd090615538565b600e55565b6008546001600160a01b031633146116cb5760405162461bcd60e51b8152600401610cd090615538565b80516116de906013906020840190614c01565b507fa5d40bbdde39fa9ed704b3ede3470a370dedabb286ed798d27b843adedae454e8160405161170e91906154ce565b60405180910390a150565b6010546117299061ffff16612256565b565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161178990615760565b80601f01602080910402602001604051908101604052809291908181526020018280546117b590615760565b80156118025780601f106117d757610100808354040283529160200191611802565b820191906000526020600020905b8154815290600101906020018083116117e557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806118dd57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906119015750336001600160a01b03821614155b15611921576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600581018890558251938452908301879052917f1faf3d0584be1139173a62dfb8ed9cc0a2a518b83a89b99fd5a05131d4fcbb09910161130f565b6008546001600160a01b0316331461199d5760405162461bcd60e51b8152600401610cd090615538565b6010546040514791600091620100009091046001600160a01b031690839060006040518083038185875af1925050503d80600081146119f8576040519150601f19603f3d011682016040523d82523d6000602084013e6119fd565b606091505b5050905080611a1f5760405163ce43c9c560e01b815260040160405180910390fd5b60105460408051620100009092046001600160a01b03168252602082018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6010546113309061ffff1682612afe565b6008546001600160a01b03163314611aa95760405162461bcd60e51b8152600401610cd090615538565b611729614307565b6008546001600160a01b03163314611adb5760405162461bcd60e51b8152600401610cd090615538565b600c805460ff19166001179055565b61133e8383836040518060200160405280600081525061388b565b6008546001600160a01b03163314611b2f5760405162461bcd60e51b8152600401610cd090615538565b82818114611b7757604051632c73a0bf60e11b8152602060048201526014602482015273092dce0eae840e6d2f4ca40dcdee840dac2e8c6d60631b6044820152606401610cd0565b6000805b85811015611bc957848482818110611ba357634e487b7160e01b600052603260045260246000fd5b9050602002013582611bb591906156e6565b915080611bc1816157b7565b915050611b7b565b5060105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190611c2b90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5790615760565b8015611ca45780601f10611c7957610100808354040283529160200191611ca4565b820191906000526020600020905b815481529060010190602001808311611c8757829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150611d4e838261439a565b611d6b57604051636f5606f560e01b815260040160405180910390fd5b60005b84811015611df557611dda898983818110611d9957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611dae9190614e44565b888884818110611dce57634e487b7160e01b600052603260045260246000fd5b90506020020135612e98565b611de357600080fd5b80611ded816157b7565b915050611d6e565b505050505050505050565b6008546001600160a01b03163314611e2a5760405162461bcd60e51b8152600401610cd090615538565b600c5460ff1615611e4e57604051636bf43ac160e11b815260040160405180910390fd5b8051611e61906012906020840190614c01565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161170e91906154ce565b6000610ca7826140fc565b60128054611ea990615760565b80601f0160208091040260200160405190810160405280929190818152602001828054611ed590615760565b8015611f225780601f10611ef757610100808354040283529160200191611f22565b820191906000526020600020905b815481529060010190602001808311611f0557829003601f168201915b505050505081565b6010546113309061ffff16826115cb565b60006001600160a01b038216611f64576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060611f946143c9565b905090565b6008546001600160a01b03163314611fc35760405162461bcd60e51b8152600401610cd090615538565b61172960006143d8565b6008546001600160a01b03163314611ff75760405162461bcd60e51b8152600401610cd090615538565b601080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061208390615760565b80601f01602080910402602001604051908101604052809291908181526020018280546120af90615760565b80156120fc5780601f106120d1576101008083540402835291602001916120fc565b820191906000526020600020905b8154815290600101906020018083116120df57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806121d757604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906121fb5750336001600160a01b03821614155b1561221b576040516377efd02b60e11b8152336004820152602401610cd0565b60105461ffff166000908152600d60205260409020600161223b60005490565b612245919061571d565b600382015542600a90910155505050565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916122b490615760565b80601f01602080910402602001604051908101604052809291908181526020018280546122e090615760565b801561232d5780601f106123025761010080835404028352916020019161232d565b820191906000526020600020905b81548152906001019060200180831161231057829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061240857604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b0316331480159061242c5750336001600160a01b03821614155b1561244c576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff84166000908152600d6020526040902060038101546124a757604051632c73a0bf60e11b81526020600482015260136024820152722937bab7321034b99039ba34b6361037b832b760691b6044820152606401610cd0565b60068101805463ff0000001916630100000017905560405161ffff861681527fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020015b60405180910390a15050505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161255990615760565b80601f016020809104026020016040519081016040528092919081815260200182805461258590615760565b80156125d25780601f106125a7576101008083540402835291602001916125d2565b820191906000526020600020905b8154815290600101906020018083116125b557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806126ad57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906126d15750336001600160a01b03821614155b156126f1576040516377efd02b60e11b8152336004820152602401610cd0565b600054841015612714576040516335d5065160e11b815260040160405180910390fd5b600b54841115612737576040516316b0321960e01b815260040160405180910390fd5b61ffff85166000818152600d6020908152604091829020600181018890558251938452908301879052917f69ebea7b3f0ad8a601d0bbc817571c5b811f59977005bacf183812641b06dc2b910161130f565b6010546113309061ffff16826110be565b6008546001600160a01b031633146127c45760405162461bcd60e51b8152600401610cd090615538565b60105461ffff16156127d8576127d8612021565b600b5489111561283957604051632c73a0bf60e11b815260206004820152602560248201527f6d61784d696e74696e6749642065786365656420746865206d6178696d756d536044820152647570706c7960d81b6064820152608401610cd0565b82841061288957604051632c73a0bf60e11b815260206004820152601860248201527f656e6454696d652073686f756c642062652062696767657200000000000000006044820152606401610cd0565b601080546000919082906128a09061ffff16615795565b91906101000a81548161ffff021916908361ffff16021790559050604051806101e001604052808261ffff1681526020018b81526020016128e060005490565b8152600060208083018290526040805180830182528381528185015260608085018f905261ffff8e81166080808801919091528e151560a08801528d151560c088015260e08701869052610100870186905261012087018d905261014087018c90528a15156101608801526001600160a01b038a16610180909701969096528781168552600d8452938290208651815461ffff19169516949094178455858301516001850155908501516002840155840151600383015591830151805191926129b192600485019290910190614c01565b5060a0820151600582015560c082015160068201805460e085015161010080870151151563010000000263ff00000019921515620100000262ffffff1990941661ffff909616959095179290921716929092179055610120830151600783015561014083015160088301556101608301516009830155610180830151600a8301556101a0830151600b90920180546101c0909401516001600160a01b0316909102610100600160a81b0319921515929092166001600160a81b0319909316929092171790556040517f726dac3df892bcc17d3a1e4f613ac2fea16a105790dbc38bcf72ceac61b8bc4f90600090a150505050505050505050565b6010546113309061ffff1682613487565b6010546117299061ffff166131ef565b6008546001600160a01b03163314612af65760405162461bcd60e51b8152600401610cd090615538565b61172961442a565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612b5c90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8890615760565b8015612bd55780601f10612baa57610100808354040283529160200191612bd5565b820191906000526020600020905b815481529060010190602001808311612bb857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680612cb057604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b03163314801590612cd45750336001600160a01b03821614155b15612cf4576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600981018890558251938452908301879052917f9eaad6dc90ce510660aaa5b4c6ddba6bf6182ef52ff0ba7a74dcdd1962ca56cf910161130f565b6008546001600160a01b03163314612d705760405162461bcd60e51b8152600401610cd090615538565b61ffff82166000818152600d6020908152604091829020600b8101805460ff1916861515908117909155835194855291840191909152917f9e6cc3cb1b1df4cded6e070aacdafb5ae51c14813df699b91009e4c916d283ee9101611665565b606060038054610d4690615760565b6010546113309061ffff1682611343565b60026009541415612e125760405162461bcd60e51b8152600401610cd09061556d565b6002600955600a5460ff1615612e3a5760405162461bcd60e51b8152600401610cd0906154e1565b601054600090612e4d9061ffff16613de6565b90508060e0015115612e7257604051630539aec560e21b815260040160405180910390fd5b612e7c8183614482565b612e863383612e98565b612e8f57600080fd5b50506001600955565b6000612ea48383614599565b50600192915050565b6001600160a01b038216331415612ed75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612f4b614c85565b601054611f949061ffff16613de6565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612fb990615760565b80601f0160208091040260200160405190810160405280929190818152602001828054612fe590615760565b80156130325780601f1061300757610100808354040283529160200191613032565b820191906000526020600020905b81548152906001019060200180831161301557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061310d57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906131315750336001600160a01b03821614155b15613151576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600a81018890558251938452908301879052917f387a2f9288a8a4c69041aa692c6b82f74d9d1049cd2f1612e8b510fd22642800910161130f565b6008546001600160a01b031633146131cd5760405162461bcd60e51b8152600401610cd090615538565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61ffff8082166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805485949291608084019161324d90615760565b80601f016020809104026020016040519081016040528092919081815260200182805461327990615760565b80156132c65780601f1061329b576101008083540402835291602001916132c6565b820191906000526020600020905b8154815290600101906020018083116132a957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806133a157604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906133c55750336001600160a01b03821614155b156133e5576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff84166000908152600d60205260409020600381015461344357604051632c73a0bf60e11b8152602060048201526016602482015275149bdd5b99081cda1bdd5b190818994818db1bdcd95960521b6044820152606401610cd0565b600e5461345090436156e6565b600782018190556040519081527ffd1cd879b90803328042915a0dab567886d80637d84c7875df6a3e4495c379ac906020016124ec565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916134e590615760565b80601f016020809104026020016040519081016040528092919081815260200182805461351190615760565b801561355e5780601f106135335761010080835404028352916020019161355e565b820191906000526020600020905b81548152906001019060200180831161354157829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061363957604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b0316331480159061365d5750336001600160a01b03821614155b1561367d576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d602090815260409182902060068101805462ff00001916620100008a151590810291909117909155835194855291840191909152917f19608cbe5005d5dad05b0e47ee094b28412334d790fadf379bcff2d4fd7eec75910161130f565b61ffff81166000908152600d6020526040902060068101546301000000900460ff16156137265760405163a89ac15160e01b815260040160405180910390fd5b60078101544381111561377c57604051632c73a0bf60e11b815260206004820152601d60248201527f52616e646f6d2073656c656374696f6e206973206e6f742072656164790000006044820152606401610cd0565b600061378960018361571d565b40156137d457814061379c60018461571d565b60408051602081019390935290409082015242606082015260800160405160208183030381529060405280519060200120905061381f565b6137df60014361571d565b406137eb60024361571d565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090505b60068301805463ff000000191663010000001790556002830154600384015460009161384d918491906145b7565b6008850181905560405161ffff871681529091507fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020016124ec565b613896848484614164565b6001600160a01b0383163b156138cf576138b2848484846145e6565b6138cf576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061393790615760565b80601f016020809104026020016040519081016040528092919081815260200182805461396390615760565b80156139b05780601f10613985576101008083540402835291602001916139b0565b820191906000526020600020905b81548152906001019060200180831161399357829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680613a8b57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b03163314801590613aaf5750336001600160a01b03821614155b15613acf576040516377efd02b60e11b8152336004820152602401610cd0565b60026009541415613af25760405162461bcd60e51b8152600401610cd09061556d565b6002600981905560105461ffff9081166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252938101549383019390935260038301546060830152600483018054919391608084019190613b5c90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054613b8890615760565b8015613bd55780601f10613baa57610100808354040283529160200191613bd5565b820191906000526020600020905b815481529060010190602001808311613bb857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150613c7f868261439a565b613c9c57604051636f5606f560e01b815260040160405180910390fd5b613ca63387612e98565b613caf57600080fd5b5050600160095550505050565b60026009541415613cdf5760405162461bcd60e51b8152600401610cd09061556d565b6002600955600a5460ff1615613d075760405162461bcd60e51b8152600401610cd0906154e1565b601054600090613d1a9061ffff16613de6565b90508060e00151613d3e57604051631681075160e21b815260040160405180910390fd5b613d4c818361ffff16614482565b60105461ffff9081166000908152600f6020908152604080832033845290915290205460c0830151908216918116613d8485846156c0565b61ffff161115613dad5760405163e70937a360e01b815261ffff82166004820152602401610cd0565b601054613dc19061ffff16858989896146de565b613dcf338561ffff16612e98565b613dd857600080fd5b505060016009555050505050565b613dee614c85565b61ffff8083166000908152600d602090815260409182902082516101e0810184528154909416845260018101549184019190915260028101549183019190915260038101546060830152600481018054608084019190613e4d90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054613e7990615760565b8015613ec65780601f10613e9b57610100808354040283529160200191613ec6565b820191906000526020600020905b815481529060010190602001808311613ea957829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b03166101409091015292915050565b60606000613f6f83614790565b90508061010001518015613fbb57506040805160008152602081018083528151902060808401519092613fa292016153c0565b6040516020818303038152906040528051906020012014155b15613ff95760128160800151613fd085614988565b604051602001613fe293929190615411565b604051602081830303815290604052915050919050565b601361400484614988565b604051602001613fe29291906153dc565b50919050565b6010546113309061ffff16826124fb565b6010546113309061ffff1682612f5b565b6008546001600160a01b031633146140675760405162461bcd60e51b8152600401610cd090615538565b6001600160a01b0381166140cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd0565b611330816143d8565b6000805482108015610ca7575050600090815260046020526040902054600160e01b161590565b60008160005481101561414b57600081815260046020526040902054600160e01b8116614149575b80614142575060001901600081815260046020526040902054614124565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061416f826140fc565b9050836001600160a01b0316816001600160a01b0316146141a25760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806141c057506141c08533610bf7565b806141db5750336141d084610dc9565b6001600160a01b0316145b9050806141fb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661422257604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166142bf57600183016000818152600460205260409020546142bd5760005481146142bd5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a5460ff166143505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cd0565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006143a78260016156e6565b836143b160005490565b6143bb91906156e6565b1115612ea457506000610ca7565b606060128054610d4690615760565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff161561444d5760405162461bcd60e51b8152600401610cd0906154e1565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861437d3390565b816101a00151156144a657604051639649b2a360e01b815260040160405180910390fd5b60006144b0610ee0565b905060028160048111156144d457634e487b7160e01b600052602160045260246000fd5b146144f257604051632ac9194b60e21b815260040160405180910390fd5b60c083015161ffff16158015906145105750818360c0015161ffff16105b1561453a5760c083015160405163e70937a360e01b815261ffff9091166004820152602401610cd0565b61454882846020015161439a565b61456557604051636f5606f560e01b815260040160405180910390fd5b6000828460a0015161457791906156fe565b90503481146138cf5760405163bfa3573760e01b815260040160405180910390fd5b6145b38282604051806020016040528060008152506149d7565b5050565b6000806145c4848461571d565b6145cf9060016156e6565b9050836145dc82876157d2565b6110b591906156e6565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061461b903390899088908890600401615469565b602060405180830381600087803b15801561463557600080fd5b505af1925050508015614665575060408051601f3d908101601f1916820190925261466291810190615087565b60015b6146c0573d808015614693576040519150601f19603f3d011682016040523d82523d6000602084013e614698565b606091505b5080516146b8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600061471186336040518060400160405280600e81526020016d77686974656c697374436c61696d60901b815250614b48565b905061471f81858585614b80565b61473c57604051630510cc4560e01b815260040160405180910390fd5b61ffff8681166000908152600f6020908152604080832033845290915281208054889391929161476e918591166156c0565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b614798614c85565b6147a1826140d5565b6147c15760405163b5706f4f60e01b815260048101839052602401610cd0565b60015b60105461ffff908116908216116140155761ffff8082166000908152600d602090815260409182902082516101e081018452815490941684526001810154918401919091526002810154918301919091526003810154606083015260048101805460808401919061483490615760565b80601f016020809104026020016040519081016040528092919081815260200182805461486090615760565b80156148ad5780601f10614882576101008083540402835291602001916148ad565b820191906000526020600020905b81548152906001019060200180831161489057829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff90811615156060808501919091526301000000909204811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b03166101409091015281015190925060009061495e578260200151614964565b82606001515b905080841115614981578161497881615795565b925050506147c4565b5050919050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156149c557600183039250600a81066030018353600a90046149a7565b50819003601f19909101908152919050565b6000546001600160a01b038416614a0057604051622e076360e81b815260040160405180910390fd5b82614a1e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15614af3575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614abc60008784806001019550876145e6565b614ad9576040516368d2bf6b60e11b815260040160405180910390fd5b808210614a71578260005414614aee57600080fd5b614b38565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614af4575b5060009081556138cf9085838684565b600030848484604051602001614b619493929190615369565b6040516020818303038152906040528051906020012090509392505050565b6011546040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905290916001600160a01b03169060019060a0016020604051602081039080840390855afa158015614be3573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149050949350505050565b828054614c0d90615760565b90600052602060002090601f016020900481019282614c2f5760008555614c75565b82601f10614c4857805160ff1916838001178555614c75565b82800160010185558215614c75579182015b82811115614c75578251825591602001919060010190614c5a565b50614c81929150614d12565b5090565b604051806101e00160405280600061ffff1681526020016000815260200160008152602001600081526020016060815260200160008152602001600061ffff1681526020016000151581526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b5b80821115614c815760008155600101614d13565b600067ffffffffffffffff80841115614d4257614d42615808565b604051601f8501601f19908116603f01168101908282118183101715614d6a57614d6a615808565b81604052809350858152868686011115614d8357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114614db457600080fd5b919050565b60008083601f840112614dca578081fd5b50813567ffffffffffffffff811115614de1578182fd5b6020830191508360208260051b8501011115614dfc57600080fd5b9250929050565b80358015158114614db457600080fd5b600082601f830112614e23578081fd5b61414283833560208501614d27565b803561ffff81168114614db457600080fd5b600060208284031215614e55578081fd5b61414282614d9d565b60008060408385031215614e70578081fd5b614e7983614d9d565b9150614e8760208401614d9d565b90509250929050565b600080600060608486031215614ea4578081fd5b614ead84614d9d565b9250614ebb60208501614d9d565b9150604084013590509250925092565b60008060008060808587031215614ee0578081fd5b614ee985614d9d565b9350614ef760208601614d9d565b925060408501359150606085013567ffffffffffffffff811115614f19578182fd5b8501601f81018713614f29578182fd5b614f3887823560208401614d27565b91505092959194509250565b60008060408385031215614f56578182fd5b614f5f83614d9d565b9150614e8760208401614e03565b60008060408385031215614f7f578182fd5b614f8883614d9d565b946020939093013593505050565b60008060008060408587031215614fab578384fd5b843567ffffffffffffffff80821115614fc2578586fd5b614fce88838901614db9565b90965094506020870135915080821115614fe6578384fd5b50614ff387828801614db9565b95989497509550505050565b600080600060408486031215615013578283fd5b833567ffffffffffffffff811115615029578384fd5b61503586828701614db9565b9094509250615048905060208501614d9d565b90509250925092565b600060208284031215615062578081fd5b61414282614e03565b60006020828403121561507c578081fd5b81356141428161581e565b600060208284031215615098578081fd5b81516141428161581e565b6000602082840312156150b4578081fd5b813567ffffffffffffffff8111156150ca578182fd5b6146d684828501614e13565b6000602082840312156150e7578081fd5b61414282614e32565b60008060408385031215615102578182fd5b614e7983614e32565b6000806040838503121561511d578182fd5b614f5f83614e32565b60008060408385031215615138578182fd5b61514183614e32565b9150602083013567ffffffffffffffff81111561515c578182fd5b61516885828601614e13565b9150509250929050565b60008060408385031215615184578182fd5b61518d83614e32565b9150614e8760208401614e32565b600080604083850312156151ad578182fd5b614f8883614e32565b6000602082840312156151c7578081fd5b5035919050565b60008060008060008060008060006101208a8c0312156151ec578687fd5b8935985060208a0135975061520360408b01614e32565b965061521160608b01614e03565b955061521f60808b01614e03565b945060a08a0135935060c08a0135925061523b60e08b01614e03565b915061524a6101008b01614d9d565b90509295985092959850929598565b6000806000806080858703121561526e578182fd5b843560ff8116811461527e578283fd5b9350602085013592506040850135915061529a60608601614e32565b905092959194509250565b600081518084526152bd816020860160208601615734565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806152eb57607f831692505b602080841082141561530b57634e487b7160e01b86526022600452602486fd5b81801561531f57600181146153305761535d565b60ff1986168952848901965061535d565b60008881526020902060005b868110156153555781548b82015290850190830161533c565b505084890196505b50505050505092915050565b60006bffffffffffffffffffffffff19808760601b16835261ffff60f01b8660f01b166014840152808560601b1660168401525082516153b081602a850160208701615734565b91909101602a0195945050505050565b600082516153d2818460208701615734565b9190910192915050565b60006153e882856152d1565b83516153f8818360208801615734565b64173539b7b760d91b9101908152600501949350505050565b600061541d82866152d1565b845161542d818360208901615734565b602f60f81b9101908152835161544a816001840160208801615734565b64173539b7b760d91b6001929091019182015260060195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061549c908301846152a5565b9695505050505050565b60208101600583106154c857634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061414260208301846152a5565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601390820152724e6f7420616c6c6f776564206164647265737360681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602081526155b960208201835161ffff169052565b602082015160408201526040820151606082015260608201516080820152600060808301516101e08060a08501526155f56102008501836152a5565b915060a085015160c085015260c085015161561660e086018261ffff169052565b5060e085015161010061562c8187018315159052565b86015190506101206156418682018315159052565b8601516101408681019190915286015161016080870191909152860151610180808701919091528601516101a08087019190915286015190506101c061568a8187018315159052565b909501516001600160a01b031693019290925250919050565b61ffff831681526040602082015260006146d660408301846152a5565b600061ffff8083168185168083038211156156dd576156dd6157f2565b01949350505050565b600082198211156156f9576156f96157f2565b500190565b6000816000190483118215151615615718576157186157f2565b500290565b60008282101561572f5761572f6157f2565b500390565b60005b8381101561574f578181015183820152602001615737565b838111156138cf5750506000910152565b600181811c9082168061577457607f821691505b6020821081141561401557634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156157ad576157ad6157f2565b6001019392505050565b60006000198214156157cb576157cb6157f2565b5060010190565b6000826157ed57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461133057600080fdfea264697066735822122040f42ad675b04043f01c38a825d4fd7c6b690fd07937c8dda714b5f0268a59ea64736f6c63430008040033487965776f6e277320416c62756d206f662047656e7265205061696e74696e67730000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e730000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f676174657761792d697066732e61746f6d726967732e696f2f6b6d6d2f000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103e85760003560e01c8063749aa2d911610208578063a32bf59711610118578063c2207328116100ab578063cb096a7f1161007a578063cb096a7f14610b9c578063ccb98ffc14610bbc578063e985e9c514610bdc578063ec342b7f14610c25578063f2fde38b14610c3b57610432565b8063c220732814610b2f578063c33ac6bb14610b42578063c6ad320014610b62578063c87b56dd14610b7c57610432565b8063b2c73e28116100e7578063b2c73e2814610aaf578063b2cebd8d14610acf578063b88d4fde14610aef578063c1f2612314610b0f57610432565b8063a32bf59714610a2d578063a7bfd04114610a4f578063a7ecd37e14610a6f578063a9a8baa514610a8f57610432565b8063852c64131161019b57806399e0dd7c1161016a57806399e0dd7c1461098c5780639c4780d8146109ac578063a0712d68146109da578063a1448194146109ed578063a22cb46514610a0d57610432565b8063852c6413146109195780638da5cb5b1461093957806395ba9d0a1461095757806395d89b411461097757610432565b80637abd6292116101d75780637abd6292146108af5780637b789204146108cf57806380aafbdb146108ef5780638456cb591461090457610432565b8063749aa2d91461083a5780637583a9d51461084f57806378642aee1461086f5780637905ee0f1461088f57610432565b80633bd649681161030357806355f804b311610296578063704b6c0211610265578063704b6c02146107b057806370a08231146107d0578063714c5398146107f0578063715018a614610805578063718da7ee1461081a57610432565b806355f804b3146107435780635c975abb146107635780636352211e1461077b5780636c0360eb1461079b57610432565b80633f4ba83a116102d25780633f4ba83a146106e657806340d34285146106fb57806342842e0e146107105780634a61ccfd1461073057610432565b80633bd64968146106895780633c482a501461069e5780633ccfd60b146106be5780633e0a322d146106c657610432565b80631ccbf84d1161037b5780633059fb871161034a5780633059fb87146106095780633084a42f1461062957806334d15ae51461064957806334e2d1111461066957610432565b80631ccbf84d14610589578063238a4709146105a957806323b872dd146105c95780632e0b3006146105e957610432565b8063081812fc116103b7578063081812fc146104f6578063095ea7b31461052e57806318160ddd1461054e5780631865c57d1461056757610432565b806301ffc9a7146104595780630202def11461048e5780630480e58b146104b057806306fdde03146104d457610432565b36610432577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874335b604080516001600160a01b0390921682523460208301520160405180910390a1005b7f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433610410565b34801561046557600080fd5b5061047961047436600461506b565b610c5b565b60405190151581526020015b60405180910390f35b34801561049a57600080fd5b506104ae6104a9366004614fff565b610cad565b005b3480156104bc57600080fd5b506104c6600b5481565b604051908152602001610485565b3480156104e057600080fd5b506104e9610d37565b60405161048591906154ce565b34801561050257600080fd5b506105166105113660046151b6565b610dc9565b6040516001600160a01b039091168152602001610485565b34801561053a57600080fd5b506104ae610549366004614f6d565b610e0d565b34801561055a57600080fd5b50600154600054036104c6565b34801561057357600080fd5b5061057c610ee0565b60405161048591906154a6565b34801561059557600080fd5b506104ae6105a4366004615172565b6110be565b3480156105b557600080fd5b506104ae6105c43660046151b6565b61131f565b3480156105d557600080fd5b506104ae6105e4366004614e90565b611333565b3480156105f557600080fd5b506104ae610604366004615126565b611343565b34801561061557600080fd5b506104ae610624366004615051565b6115ba565b34801561063557600080fd5b506104ae6106443660046150f0565b6115cb565b34801561065557600080fd5b506104ae6106643660046151b6565b611672565b34801561067557600080fd5b506104ae6106843660046150a3565b6116a1565b34801561069557600080fd5b506104ae611719565b3480156106aa57600080fd5b506104ae6106b936600461519b565b61172b565b6104ae611973565b3480156106d257600080fd5b506104ae6106e13660046151b6565b611a6e565b3480156106f257600080fd5b506104ae611a7f565b34801561070757600080fd5b506104ae611ab1565b34801561071c57600080fd5b506104ae61072b366004614e90565b611aea565b6104ae61073e366004614f96565b611b05565b34801561074f57600080fd5b506104ae61075e3660046150a3565b611e00565b34801561076f57600080fd5b50600a5460ff16610479565b34801561078757600080fd5b506105166107963660046151b6565b611e91565b3480156107a757600080fd5b506104e9611e9c565b3480156107bc57600080fd5b506104ae6107cb366004614e44565b611f2a565b3480156107dc57600080fd5b506104c66107eb366004614e44565b611f3b565b3480156107fc57600080fd5b506104e9611f8a565b34801561081157600080fd5b506104ae611f99565b34801561082657600080fd5b506104ae610835366004614e44565b611fcd565b34801561084657600080fd5b506104ae612021565b34801561085b57600080fd5b506104ae61086a3660046150d6565b612256565b34801561087b57600080fd5b506104ae61088a36600461519b565b6124fb565b34801561089b57600080fd5b506104ae6108aa3660046150d6565b612789565b3480156108bb57600080fd5b506104ae6108ca3660046151ce565b61279a565b3480156108db57600080fd5b506104ae6108ea366004615051565b612aab565b3480156108fb57600080fd5b506104ae612abc565b34801561091057600080fd5b506104ae612acc565b34801561092557600080fd5b506104ae61093436600461519b565b612afe565b34801561094557600080fd5b506008546001600160a01b0316610516565b34801561096357600080fd5b506104ae61097236600461510b565b612d46565b34801561098357600080fd5b506104e9612dcf565b34801561099857600080fd5b506104ae6109a73660046150a3565b612dde565b3480156109b857600080fd5b506010546109c79061ffff1681565b60405161ffff9091168152602001610485565b6104ae6109e83660046151b6565b612def565b3480156109f957600080fd5b50610479610a08366004614f6d565b612e98565b348015610a1957600080fd5b506104ae610a28366004614f44565b612ead565b348015610a3957600080fd5b50610a42612f43565b60405161048591906155a4565b348015610a5b57600080fd5b506104ae610a6a36600461519b565b612f5b565b348015610a7b57600080fd5b506104ae610a8a366004614e44565b6131a3565b348015610a9b57600080fd5b506104ae610aaa3660046150d6565b6131ef565b348015610abb57600080fd5b506104ae610aca36600461510b565b613487565b348015610adb57600080fd5b506104ae610aea3660046150d6565b6136e6565b348015610afb57600080fd5b506104ae610b0a366004614ecb565b61388b565b348015610b1b57600080fd5b506104ae610b2a3660046151b6565b6138d5565b6104ae610b3d366004615259565b613cbc565b348015610b4e57600080fd5b50610a42610b5d3660046150d6565b613de6565b348015610b6e57600080fd5b50600c546104799060ff1681565b348015610b8857600080fd5b506104e9610b973660046151b6565b613f62565b348015610ba857600080fd5b506104ae610bb73660046151b6565b61401b565b348015610bc857600080fd5b506104ae610bd73660046151b6565b61402c565b348015610be857600080fd5b50610479610bf7366004614e5e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c3157600080fd5b506104c6600e5481565b348015610c4757600080fd5b506104ae610c56366004614e44565b61403d565b60006301ffc9a760e01b6001600160e01b031983161480610c8c57506380ac58cd60e01b6001600160e01b03198316145b80610ca75750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009541415610cd95760405162461bcd60e51b8152600401610cd09061556d565b60405180910390fd5b600260095560005b82811015610d2c57610d1a3383868685818110610d0e57634e487b7160e01b600052603260045260246000fd5b90506020020135611aea565b80610d24816157b7565b915050610ce1565b505060016009555050565b606060028054610d4690615760565b80601f0160208091040260200160405190810160405280929190818152602001828054610d7290615760565b8015610dbf5780601f10610d9457610100808354040283529160200191610dbf565b820191906000526020600020905b815481529060010190602001808311610da257829003601f168201915b5050505050905090565b6000610dd4826140d5565b610df1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e18826140fc565b9050806001600160a01b0316836001600160a01b03161415610e4d5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e8457610e678133610bf7565b610e84576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105460009061ffff16610ef45750600090565b60105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190610f5590615760565b80601f0160208091040260200160405190810160405280929190818152602001828054610f8190615760565b8015610fce5780601f10610fa357610100808354040283529160200191610fce565b820191906000526020600020905b815481529060010190602001808311610fb157829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b0316610140909101526101608101516101808201519192509042600083821015611087575060016110b5565b828210156110b15760015460005403856020015111156110a9575060026110b5565b5060036110b5565b5060035b95945050505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161111c90615760565b80601f016020809104026020016040519081016040528092919081815260200182805461114890615760565b80156111955780601f1061116a57610100808354040283529160200191611195565b820191906000526020600020905b81548152906001019060200180831161117857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061127057604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906112945750336001600160a01b03821614155b156112b4576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff8581166000818152600d602090815260409182902060068101805461ffff1916958a1695861790558251938452908301939093527fa66ed5115ae0083f4d108e7dd6a9140d1efb8d1285c1d185717c34b56b9f500991015b60405180910390a1505050505050565b6010546113309061ffff168261172b565b50565b61133e838383614164565b505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916113a190615760565b80601f01602080910402602001604051908101604052809291908181526020018280546113cd90615760565b801561141a5780601f106113ef5761010080835404028352916020019161141a565b820191906000526020600020905b8154815290600101906020018083116113fd57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806114f557604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906115195750336001600160a01b03821614155b15611539576040516377efd02b60e11b8152336004820152602401610cd0565b600c5460ff161561155d57604051636bf43ac160e11b815260040160405180910390fd5b61ffff85166000908152600d6020908152604090912085519091611588916004840191880190614c01565b507fd1c3bef23efc23b7b878bc09751c78345ceda36e3ba298e9caf49f7b728a1578868660405161130f9291906156a3565b6010546113309061ffff1682612d46565b6008546001600160a01b031633146115f55760405162461bcd60e51b8152600401610cd090615538565b61ffff82166000818152600d6020908152604091829020600b81018054610100600160a81b0319166101006001600160a01b03881690810291909117909155835194855291840191909152917f86b856311c919f1689ecc77b792e78812fc6c032256176835bf651873eb6b64291015b60405180910390a1505050565b6008546001600160a01b0316331461169c5760405162461bcd60e51b8152600401610cd090615538565b600e55565b6008546001600160a01b031633146116cb5760405162461bcd60e51b8152600401610cd090615538565b80516116de906013906020840190614c01565b507fa5d40bbdde39fa9ed704b3ede3470a370dedabb286ed798d27b843adedae454e8160405161170e91906154ce565b60405180910390a150565b6010546117299061ffff16612256565b565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161178990615760565b80601f01602080910402602001604051908101604052809291908181526020018280546117b590615760565b80156118025780601f106117d757610100808354040283529160200191611802565b820191906000526020600020905b8154815290600101906020018083116117e557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806118dd57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906119015750336001600160a01b03821614155b15611921576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600581018890558251938452908301879052917f1faf3d0584be1139173a62dfb8ed9cc0a2a518b83a89b99fd5a05131d4fcbb09910161130f565b6008546001600160a01b0316331461199d5760405162461bcd60e51b8152600401610cd090615538565b6010546040514791600091620100009091046001600160a01b031690839060006040518083038185875af1925050503d80600081146119f8576040519150601f19603f3d011682016040523d82523d6000602084013e6119fd565b606091505b5050905080611a1f5760405163ce43c9c560e01b815260040160405180910390fd5b60105460408051620100009092046001600160a01b03168252602082018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6010546113309061ffff1682612afe565b6008546001600160a01b03163314611aa95760405162461bcd60e51b8152600401610cd090615538565b611729614307565b6008546001600160a01b03163314611adb5760405162461bcd60e51b8152600401610cd090615538565b600c805460ff19166001179055565b61133e8383836040518060200160405280600081525061388b565b6008546001600160a01b03163314611b2f5760405162461bcd60e51b8152600401610cd090615538565b82818114611b7757604051632c73a0bf60e11b8152602060048201526014602482015273092dce0eae840e6d2f4ca40dcdee840dac2e8c6d60631b6044820152606401610cd0565b6000805b85811015611bc957848482818110611ba357634e487b7160e01b600052603260045260246000fd5b9050602002013582611bb591906156e6565b915080611bc1816157b7565b915050611b7b565b5060105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190611c2b90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5790615760565b8015611ca45780601f10611c7957610100808354040283529160200191611ca4565b820191906000526020600020905b815481529060010190602001808311611c8757829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150611d4e838261439a565b611d6b57604051636f5606f560e01b815260040160405180910390fd5b60005b84811015611df557611dda898983818110611d9957634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611dae9190614e44565b888884818110611dce57634e487b7160e01b600052603260045260246000fd5b90506020020135612e98565b611de357600080fd5b80611ded816157b7565b915050611d6e565b505050505050505050565b6008546001600160a01b03163314611e2a5760405162461bcd60e51b8152600401610cd090615538565b600c5460ff1615611e4e57604051636bf43ac160e11b815260040160405180910390fd5b8051611e61906012906020840190614c01565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad8160405161170e91906154ce565b6000610ca7826140fc565b60128054611ea990615760565b80601f0160208091040260200160405190810160405280929190818152602001828054611ed590615760565b8015611f225780601f10611ef757610100808354040283529160200191611f22565b820191906000526020600020905b815481529060010190602001808311611f0557829003601f168201915b505050505081565b6010546113309061ffff16826115cb565b60006001600160a01b038216611f64576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060611f946143c9565b905090565b6008546001600160a01b03163314611fc35760405162461bcd60e51b8152600401610cd090615538565b61172960006143d8565b6008546001600160a01b03163314611ff75760405162461bcd60e51b8152600401610cd090615538565b601080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061208390615760565b80601f01602080910402602001604051908101604052809291908181526020018280546120af90615760565b80156120fc5780601f106120d1576101008083540402835291602001916120fc565b820191906000526020600020905b8154815290600101906020018083116120df57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806121d757604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906121fb5750336001600160a01b03821614155b1561221b576040516377efd02b60e11b8152336004820152602401610cd0565b60105461ffff166000908152600d60205260409020600161223b60005490565b612245919061571d565b600382015542600a90910155505050565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916122b490615760565b80601f01602080910402602001604051908101604052809291908181526020018280546122e090615760565b801561232d5780601f106123025761010080835404028352916020019161232d565b820191906000526020600020905b81548152906001019060200180831161231057829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061240857604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b0316331480159061242c5750336001600160a01b03821614155b1561244c576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff84166000908152600d6020526040902060038101546124a757604051632c73a0bf60e11b81526020600482015260136024820152722937bab7321034b99039ba34b6361037b832b760691b6044820152606401610cd0565b60068101805463ff0000001916630100000017905560405161ffff861681527fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020015b60405180910390a15050505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161255990615760565b80601f016020809104026020016040519081016040528092919081815260200182805461258590615760565b80156125d25780601f106125a7576101008083540402835291602001916125d2565b820191906000526020600020905b8154815290600101906020018083116125b557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806126ad57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906126d15750336001600160a01b03821614155b156126f1576040516377efd02b60e11b8152336004820152602401610cd0565b600054841015612714576040516335d5065160e11b815260040160405180910390fd5b600b54841115612737576040516316b0321960e01b815260040160405180910390fd5b61ffff85166000818152600d6020908152604091829020600181018890558251938452908301879052917f69ebea7b3f0ad8a601d0bbc817571c5b811f59977005bacf183812641b06dc2b910161130f565b6010546113309061ffff16826110be565b6008546001600160a01b031633146127c45760405162461bcd60e51b8152600401610cd090615538565b60105461ffff16156127d8576127d8612021565b600b5489111561283957604051632c73a0bf60e11b815260206004820152602560248201527f6d61784d696e74696e6749642065786365656420746865206d6178696d756d536044820152647570706c7960d81b6064820152608401610cd0565b82841061288957604051632c73a0bf60e11b815260206004820152601860248201527f656e6454696d652073686f756c642062652062696767657200000000000000006044820152606401610cd0565b601080546000919082906128a09061ffff16615795565b91906101000a81548161ffff021916908361ffff16021790559050604051806101e001604052808261ffff1681526020018b81526020016128e060005490565b8152600060208083018290526040805180830182528381528185015260608085018f905261ffff8e81166080808801919091528e151560a08801528d151560c088015260e08701869052610100870186905261012087018d905261014087018c90528a15156101608801526001600160a01b038a16610180909701969096528781168552600d8452938290208651815461ffff19169516949094178455858301516001850155908501516002840155840151600383015591830151805191926129b192600485019290910190614c01565b5060a0820151600582015560c082015160068201805460e085015161010080870151151563010000000263ff00000019921515620100000262ffffff1990941661ffff909616959095179290921716929092179055610120830151600783015561014083015160088301556101608301516009830155610180830151600a8301556101a0830151600b90920180546101c0909401516001600160a01b0316909102610100600160a81b0319921515929092166001600160a81b0319909316929092171790556040517f726dac3df892bcc17d3a1e4f613ac2fea16a105790dbc38bcf72ceac61b8bc4f90600090a150505050505050505050565b6010546113309061ffff1682613487565b6010546117299061ffff166131ef565b6008546001600160a01b03163314612af65760405162461bcd60e51b8152600401610cd090615538565b61172961442a565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612b5c90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054612b8890615760565b8015612bd55780601f10612baa57610100808354040283529160200191612bd5565b820191906000526020600020905b815481529060010190602001808311612bb857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680612cb057604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b03163314801590612cd45750336001600160a01b03821614155b15612cf4576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600981018890558251938452908301879052917f9eaad6dc90ce510660aaa5b4c6ddba6bf6182ef52ff0ba7a74dcdd1962ca56cf910161130f565b6008546001600160a01b03163314612d705760405162461bcd60e51b8152600401610cd090615538565b61ffff82166000818152600d6020908152604091829020600b8101805460ff1916861515908117909155835194855291840191909152917f9e6cc3cb1b1df4cded6e070aacdafb5ae51c14813df699b91009e4c916d283ee9101611665565b606060038054610d4690615760565b6010546113309061ffff1682611343565b60026009541415612e125760405162461bcd60e51b8152600401610cd09061556d565b6002600955600a5460ff1615612e3a5760405162461bcd60e51b8152600401610cd0906154e1565b601054600090612e4d9061ffff16613de6565b90508060e0015115612e7257604051630539aec560e21b815260040160405180910390fd5b612e7c8183614482565b612e863383612e98565b612e8f57600080fd5b50506001600955565b6000612ea48383614599565b50600192915050565b6001600160a01b038216331415612ed75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612f4b614c85565b601054611f949061ffff16613de6565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612fb990615760565b80601f0160208091040260200160405190810160405280929190818152602001828054612fe590615760565b80156130325780601f1061300757610100808354040283529160200191613032565b820191906000526020600020905b81548152906001019060200180831161301557829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061310d57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906131315750336001600160a01b03821614155b15613151576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d6020908152604091829020600a81018890558251938452908301879052917f387a2f9288a8a4c69041aa692c6b82f74d9d1049cd2f1612e8b510fd22642800910161130f565b6008546001600160a01b031633146131cd5760405162461bcd60e51b8152600401610cd090615538565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61ffff8082166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805485949291608084019161324d90615760565b80601f016020809104026020016040519081016040528092919081815260200182805461327990615760565b80156132c65780601f1061329b576101008083540402835291602001916132c6565b820191906000526020600020905b8154815290600101906020018083116132a957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806133a157604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b031633148015906133c55750336001600160a01b03821614155b156133e5576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff84166000908152600d60205260409020600381015461344357604051632c73a0bf60e11b8152602060048201526016602482015275149bdd5b99081cda1bdd5b190818994818db1bdcd95960521b6044820152606401610cd0565b600e5461345090436156e6565b600782018190556040519081527ffd1cd879b90803328042915a0dab567886d80637d84c7875df6a3e4495c379ac906020016124ec565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916134e590615760565b80601f016020809104026020016040519081016040528092919081815260200182805461351190615760565b801561355e5780601f106135335761010080835404028352916020019161355e565b820191906000526020600020905b81548152906001019060200180831161354157829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061363957604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b0316331480159061365d5750336001600160a01b03821614155b1561367d576040516377efd02b60e11b8152336004820152602401610cd0565b61ffff85166000818152600d602090815260409182902060068101805462ff00001916620100008a151590810291909117909155835194855291840191909152917f19608cbe5005d5dad05b0e47ee094b28412334d790fadf379bcff2d4fd7eec75910161130f565b61ffff81166000908152600d6020526040902060068101546301000000900460ff16156137265760405163a89ac15160e01b815260040160405180910390fd5b60078101544381111561377c57604051632c73a0bf60e11b815260206004820152601d60248201527f52616e646f6d2073656c656374696f6e206973206e6f742072656164790000006044820152606401610cd0565b600061378960018361571d565b40156137d457814061379c60018461571d565b60408051602081019390935290409082015242606082015260800160405160208183030381529060405280519060200120905061381f565b6137df60014361571d565b406137eb60024361571d565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090505b60068301805463ff000000191663010000001790556002830154600384015460009161384d918491906145b7565b6008850181905560405161ffff871681529091507fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020016124ec565b613896848484614164565b6001600160a01b0383163b156138cf576138b2848484846145e6565b6138cf576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061393790615760565b80601f016020809104026020016040519081016040528092919081815260200182805461396390615760565b80156139b05780601f10613985576101008083540402835291602001916139b0565b820191906000526020600020905b81548152906001019060200180831161399357829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680613a8b57604051632c73a0bf60e11b8152600401610cd09061550b565b6008546001600160a01b03163314801590613aaf5750336001600160a01b03821614155b15613acf576040516377efd02b60e11b8152336004820152602401610cd0565b60026009541415613af25760405162461bcd60e51b8152600401610cd09061556d565b6002600981905560105461ffff9081166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252938101549383019390935260038301546060830152600483018054919391608084019190613b5c90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054613b8890615760565b8015613bd55780601f10613baa57610100808354040283529160200191613bd5565b820191906000526020600020905b815481529060010190602001808311613bb857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150613c7f868261439a565b613c9c57604051636f5606f560e01b815260040160405180910390fd5b613ca63387612e98565b613caf57600080fd5b5050600160095550505050565b60026009541415613cdf5760405162461bcd60e51b8152600401610cd09061556d565b6002600955600a5460ff1615613d075760405162461bcd60e51b8152600401610cd0906154e1565b601054600090613d1a9061ffff16613de6565b90508060e00151613d3e57604051631681075160e21b815260040160405180910390fd5b613d4c818361ffff16614482565b60105461ffff9081166000908152600f6020908152604080832033845290915290205460c0830151908216918116613d8485846156c0565b61ffff161115613dad5760405163e70937a360e01b815261ffff82166004820152602401610cd0565b601054613dc19061ffff16858989896146de565b613dcf338561ffff16612e98565b613dd857600080fd5b505060016009555050505050565b613dee614c85565b61ffff8083166000908152600d602090815260409182902082516101e0810184528154909416845260018101549184019190915260028101549183019190915260038101546060830152600481018054608084019190613e4d90615760565b80601f0160208091040260200160405190810160405280929190818152602001828054613e7990615760565b8015613ec65780601f10613e9b57610100808354040283529160200191613ec6565b820191906000526020600020905b815481529060010190602001808311613ea957829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b03166101409091015292915050565b60606000613f6f83614790565b90508061010001518015613fbb57506040805160008152602081018083528151902060808401519092613fa292016153c0565b6040516020818303038152906040528051906020012014155b15613ff95760128160800151613fd085614988565b604051602001613fe293929190615411565b604051602081830303815290604052915050919050565b601361400484614988565b604051602001613fe29291906153dc565b50919050565b6010546113309061ffff16826124fb565b6010546113309061ffff1682612f5b565b6008546001600160a01b031633146140675760405162461bcd60e51b8152600401610cd090615538565b6001600160a01b0381166140cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cd0565b611330816143d8565b6000805482108015610ca7575050600090815260046020526040902054600160e01b161590565b60008160005481101561414b57600081815260046020526040902054600160e01b8116614149575b80614142575060001901600081815260046020526040902054614124565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600061416f826140fc565b9050836001600160a01b0316816001600160a01b0316146141a25760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806141c057506141c08533610bf7565b806141db5750336141d084610dc9565b6001600160a01b0316145b9050806141fb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661422257604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166142bf57600183016000818152600460205260409020546142bd5760005481146142bd5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a5460ff166143505760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cd0565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60006143a78260016156e6565b836143b160005490565b6143bb91906156e6565b1115612ea457506000610ca7565b606060128054610d4690615760565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff161561444d5760405162461bcd60e51b8152600401610cd0906154e1565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861437d3390565b816101a00151156144a657604051639649b2a360e01b815260040160405180910390fd5b60006144b0610ee0565b905060028160048111156144d457634e487b7160e01b600052602160045260246000fd5b146144f257604051632ac9194b60e21b815260040160405180910390fd5b60c083015161ffff16158015906145105750818360c0015161ffff16105b1561453a5760c083015160405163e70937a360e01b815261ffff9091166004820152602401610cd0565b61454882846020015161439a565b61456557604051636f5606f560e01b815260040160405180910390fd5b6000828460a0015161457791906156fe565b90503481146138cf5760405163bfa3573760e01b815260040160405180910390fd5b6145b38282604051806020016040528060008152506149d7565b5050565b6000806145c4848461571d565b6145cf9060016156e6565b9050836145dc82876157d2565b6110b591906156e6565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061461b903390899088908890600401615469565b602060405180830381600087803b15801561463557600080fd5b505af1925050508015614665575060408051601f3d908101601f1916820190925261466291810190615087565b60015b6146c0573d808015614693576040519150601f19603f3d011682016040523d82523d6000602084013e614698565b606091505b5080516146b8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600061471186336040518060400160405280600e81526020016d77686974656c697374436c61696d60901b815250614b48565b905061471f81858585614b80565b61473c57604051630510cc4560e01b815260040160405180910390fd5b61ffff8681166000908152600f6020908152604080832033845290915281208054889391929161476e918591166156c0565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b614798614c85565b6147a1826140d5565b6147c15760405163b5706f4f60e01b815260048101839052602401610cd0565b60015b60105461ffff908116908216116140155761ffff8082166000908152600d602090815260409182902082516101e081018452815490941684526001810154918401919091526002810154918301919091526003810154606083015260048101805460808401919061483490615760565b80601f016020809104026020016040519081016040528092919081815260200182805461486090615760565b80156148ad5780601f10614882576101008083540402835291602001916148ad565b820191906000526020600020905b81548152906001019060200180831161489057829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff90811615156060808501919091526301000000909204811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b03166101409091015281015190925060009061495e578260200151614964565b82606001515b905080841115614981578161497881615795565b925050506147c4565b5050919050565b604080516080810191829052607f0190826030600a8206018353600a90045b80156149c557600183039250600a81066030018353600a90046149a7565b50819003601f19909101908152919050565b6000546001600160a01b038416614a0057604051622e076360e81b815260040160405180910390fd5b82614a1e5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15614af3575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614abc60008784806001019550876145e6565b614ad9576040516368d2bf6b60e11b815260040160405180910390fd5b808210614a71578260005414614aee57600080fd5b614b38565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614af4575b5060009081556138cf9085838684565b600030848484604051602001614b619493929190615369565b6040516020818303038152906040528051906020012090509392505050565b6011546040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905290916001600160a01b03169060019060a0016020604051602081039080840390855afa158015614be3573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149050949350505050565b828054614c0d90615760565b90600052602060002090601f016020900481019282614c2f5760008555614c75565b82601f10614c4857805160ff1916838001178555614c75565b82800160010185558215614c75579182015b82811115614c75578251825591602001919060010190614c5a565b50614c81929150614d12565b5090565b604051806101e00160405280600061ffff1681526020016000815260200160008152602001600081526020016060815260200160008152602001600061ffff1681526020016000151581526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b5b80821115614c815760008155600101614d13565b600067ffffffffffffffff80841115614d4257614d42615808565b604051601f8501601f19908116603f01168101908282118183101715614d6a57614d6a615808565b81604052809350858152868686011115614d8357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114614db457600080fd5b919050565b60008083601f840112614dca578081fd5b50813567ffffffffffffffff811115614de1578182fd5b6020830191508360208260051b8501011115614dfc57600080fd5b9250929050565b80358015158114614db457600080fd5b600082601f830112614e23578081fd5b61414283833560208501614d27565b803561ffff81168114614db457600080fd5b600060208284031215614e55578081fd5b61414282614d9d565b60008060408385031215614e70578081fd5b614e7983614d9d565b9150614e8760208401614d9d565b90509250929050565b600080600060608486031215614ea4578081fd5b614ead84614d9d565b9250614ebb60208501614d9d565b9150604084013590509250925092565b60008060008060808587031215614ee0578081fd5b614ee985614d9d565b9350614ef760208601614d9d565b925060408501359150606085013567ffffffffffffffff811115614f19578182fd5b8501601f81018713614f29578182fd5b614f3887823560208401614d27565b91505092959194509250565b60008060408385031215614f56578182fd5b614f5f83614d9d565b9150614e8760208401614e03565b60008060408385031215614f7f578182fd5b614f8883614d9d565b946020939093013593505050565b60008060008060408587031215614fab578384fd5b843567ffffffffffffffff80821115614fc2578586fd5b614fce88838901614db9565b90965094506020870135915080821115614fe6578384fd5b50614ff387828801614db9565b95989497509550505050565b600080600060408486031215615013578283fd5b833567ffffffffffffffff811115615029578384fd5b61503586828701614db9565b9094509250615048905060208501614d9d565b90509250925092565b600060208284031215615062578081fd5b61414282614e03565b60006020828403121561507c578081fd5b81356141428161581e565b600060208284031215615098578081fd5b81516141428161581e565b6000602082840312156150b4578081fd5b813567ffffffffffffffff8111156150ca578182fd5b6146d684828501614e13565b6000602082840312156150e7578081fd5b61414282614e32565b60008060408385031215615102578182fd5b614e7983614e32565b6000806040838503121561511d578182fd5b614f5f83614e32565b60008060408385031215615138578182fd5b61514183614e32565b9150602083013567ffffffffffffffff81111561515c578182fd5b61516885828601614e13565b9150509250929050565b60008060408385031215615184578182fd5b61518d83614e32565b9150614e8760208401614e32565b600080604083850312156151ad578182fd5b614f8883614e32565b6000602082840312156151c7578081fd5b5035919050565b60008060008060008060008060006101208a8c0312156151ec578687fd5b8935985060208a0135975061520360408b01614e32565b965061521160608b01614e03565b955061521f60808b01614e03565b945060a08a0135935060c08a0135925061523b60e08b01614e03565b915061524a6101008b01614d9d565b90509295985092959850929598565b6000806000806080858703121561526e578182fd5b843560ff8116811461527e578283fd5b9350602085013592506040850135915061529a60608601614e32565b905092959194509250565b600081518084526152bd816020860160208601615734565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806152eb57607f831692505b602080841082141561530b57634e487b7160e01b86526022600452602486fd5b81801561531f57600181146153305761535d565b60ff1986168952848901965061535d565b60008881526020902060005b868110156153555781548b82015290850190830161533c565b505084890196505b50505050505092915050565b60006bffffffffffffffffffffffff19808760601b16835261ffff60f01b8660f01b166014840152808560601b1660168401525082516153b081602a850160208701615734565b91909101602a0195945050505050565b600082516153d2818460208701615734565b9190910192915050565b60006153e882856152d1565b83516153f8818360208801615734565b64173539b7b760d91b9101908152600501949350505050565b600061541d82866152d1565b845161542d818360208901615734565b602f60f81b9101908152835161544a816001840160208801615734565b64173539b7b760d91b6001929091019182015260060195945050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061549c908301846152a5565b9695505050505050565b60208101600583106154c857634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061414260208301846152a5565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601390820152724e6f7420616c6c6f776564206164647265737360681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b602081526155b960208201835161ffff169052565b602082015160408201526040820151606082015260608201516080820152600060808301516101e08060a08501526155f56102008501836152a5565b915060a085015160c085015260c085015161561660e086018261ffff169052565b5060e085015161010061562c8187018315159052565b86015190506101206156418682018315159052565b8601516101408681019190915286015161016080870191909152860151610180808701919091528601516101a08087019190915286015190506101c061568a8187018315159052565b909501516001600160a01b031693019290925250919050565b61ffff831681526040602082015260006146d660408301846152a5565b600061ffff8083168185168083038211156156dd576156dd6157f2565b01949350505050565b600082198211156156f9576156f96157f2565b500190565b6000816000190483118215151615615718576157186157f2565b500290565b60008282101561572f5761572f6157f2565b500390565b60005b8381101561574f578181015183820152602001615737565b838111156138cf5750506000910152565b600181811c9082168061577457607f821691505b6020821081141561401557634e487b7160e01b600052602260045260246000fd5b600061ffff808316818114156157ad576157ad6157f2565b6001019392505050565b60006000198214156157cb576157cb6157f2565b5060010190565b6000826157ed57634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461133057600080fdfea264697066735822122040f42ad675b04043f01c38a825d4fd7c6b690fd07937c8dda714b5f0268a59ea64736f6c63430008040033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e730000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f676174657761792d697066732e61746f6d726967732e696f2f6b6d6d2f000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : receiver (address): 0x6c9e30F0340e32fDe08deADE9bE98ad83df05e73
Arg [1] : maxSupply (uint256): 20000
Arg [2] : _baseUri (string): https://kmm.mypinata.cloud/
Arg [3] : _defaultUnrevealedURI (string): https://gateway-ipfs.atomrigs.io/kmm/

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e73
Arg [1] : 0000000000000000000000000000000000000000000000000000000000004e20
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [5] : 68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [7] : 68747470733a2f2f676174657761792d697066732e61746f6d726967732e696f
Arg [8] : 2f6b6d6d2f000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.