ETH Price: $2,515.82 (+4.66%)
 

Overview

Max Total Supply

0 AMC

Holders

1,592

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
abuali.eth
Balance
2 AMC
0x493e045a42e795c9b692481a84fe881c37d32a67
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

9000 gorillas mutated by a disease on the Ethereum blockchain. Each Mutant Gorilla allows staking to produce serum that can be used to cure the Mutant Cats.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
AuctionMint

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : AuctionMint.sol
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

interface IStaking {
    function depositsOf(address account) external view returns (uint256[] memory);
}

contract AuctionMint is ERC721URIStorage, Ownable, Pausable {
    using Strings for uint256;
    using Counters for Counters.Counter;
    event Mint(address indexed sender, uint256 startWith, uint256 times);
    event AuctionStarted(uint256 auctionID);
    event AuctionEnded(uint256 auctionID);
    event BidPlaced(uint256 indexed auctionID, address indexed bidder, uint256 bidIndex, uint256 unitPrice, uint256 quantity);
    event BidRefunded(address indexed bidder, uint256 refundAmount, uint256 tokensRefunded);
    event WinnerChosen(uint256 indexed auctionID, address indexed bidder, uint256 unitPrice, uint256 quantity);
    struct Bid {
        uint256 quantityToMint;
        uint256 costPerMint;
    }
    struct Status {
        bool started;
        bool ended;
    }
    Counters.Counter private auctionCounter;
    Counters.Counter private bidCounter;

    address public contractAddress;
    IERC20 public erc20Token;
    IStaking public stakingContract;
    uint256 public requiredERC20HoldingAmt;
    uint256 public constant MAX_SUPPLY = 9000;
    uint256 public immutable AUCTION_MINT_QTY;
    uint256 public constant MAX_BID_QUANTITY = 10;
    uint256 public constant NUM_AUCTIONS = 3;
    uint256 public constant MIN_UNIT_PRICE = 0.05 ether;

    uint256 public currentSupply;
    string public baseURI;
    bool public allowRefunds;

    bool private hasAuctionStarted;
    bool private hasAuctionFinished;
    mapping(address => uint256) private auctionWhitelist;
    mapping (uint256 => Status) private auctionStatus;
    mapping(address => Bid) private bids;
    mapping (uint256 => uint256) private auctionRemaingItems;
    mapping(address => uint256) private spentERC20Tokens;

    constructor(uint256 auctionMintQty) ERC721("AuctionMintContract", "AMC") {
        contractAddress = address(this);
        AUCTION_MINT_QTY = auctionMintQty;
        for(uint256 i = 0; i < NUM_AUCTIONS; i++) {
            auctionRemaingItems[i] = auctionMintQty;
        }
        pause(); // start paused to ensure nothing happens
    }
    function pause() public onlyOwner {
        _pause();
    }
    function unpause() public onlyOwner {
        _unpause();
    }
    function setContracts(address erc20Address, address stakingAddress) public onlyOwner {
        erc20Token = IERC20(erc20Address);
        stakingContract = IStaking(stakingAddress);
    }
    function setERC20HoldingAmount(uint256 erc20HoldingAmt) public onlyOwner {
        requiredERC20HoldingAmt = erc20HoldingAmt;
    }
    function _baseURI() internal view virtual override returns (string memory){
        return baseURI;
    }
    function setBaseURI(string memory _newURI) public onlyOwner {
        baseURI = _newURI;
    }
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "Token does not exist.");
        
        return bytes(baseURI).length > 0
            ? string(abi.encodePacked(baseURI, tokenId.toString(), ".json")) : ".json";
    }
    function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwner {
        _setTokenURI(_tokenId, _tokenURI);
    }
    modifier requireContractsSet() {
        require(address(erc20Token) != address(0) && address(stakingContract) != address(0), "Contracts not set");
        _;
    }
    modifier whenAuctionEnded() {
        require(currentAuctionStatus().started && currentAuctionStatus().ended, "Auction has not been completed");
        _;
    }
    modifier whenAuctionActive() {
        require(currentAuctionStatus().started && !currentAuctionStatus().ended, "Auction is not active.");
        _;
    }
    modifier whenRefundsAllowed() {
        require(allowRefunds, "Refunds currently not allowed.");
        _;
    }
    function currentAuctionStatus() public view returns (Status memory) {
        return auctionStatus[auctionCounter.current()];
    }
    function getCurrentAuction() external view returns (uint) {
        return auctionCounter.current();
    }
    function incrementAuction() external onlyOwner whenPaused {
        auctionCounter.increment();
        require(auctionCounter.current() < NUM_AUCTIONS, "Max number of auctions reached.");
    }
    function decrementAuction() external onlyOwner whenPaused {
        auctionCounter.decrement();
    }
    function startCurrentAuction() external onlyOwner whenPaused requireContractsSet {
        uint256 currentAuctionID = auctionCounter.current();
        require(!currentAuctionStatus().started && !currentAuctionStatus().ended, "Auction cannot be started again");
        auctionStatus[currentAuctionID].started = true;
        unpause();
        emit AuctionStarted(currentAuctionID);
    }
    function endCurrentAuction() external onlyOwner whenAuctionActive {
        uint256 currentAuctionID = auctionCounter.current();
        auctionStatus[currentAuctionID].ended = true;
        if (!paused()) {
            pause();
        }
        emit AuctionEnded(currentAuctionID);
    }
    function getBid(address bidAddress) external view returns (Bid memory) {
        return bids[bidAddress];
    }
    function getCostPerMintValue(address bidder) external view returns(uint256) {
        return bids[bidder].costPerMint;
    }
    function getRemainingItemsForAuction(uint256 auctionID) external view returns (uint256) {
        require(auctionID < NUM_AUCTIONS, "Invalid auction");
        return auctionRemaingItems[auctionID];
    }
    function setAllowRefunds(bool allowed) external onlyOwner {
        allowRefunds = allowed;
    }
    function bid(uint256 _times) public payable whenNotPaused whenAuctionActive {
        if(requiredERC20HoldingAmt > 0 && spentERC20Tokens[_msgSender()] == 0) {
            require(erc20Token.balanceOf(_msgSender()) >= requiredERC20HoldingAmt, "Not enough ERC20 tokens");
            uint256[] memory deposits = stakingContract.depositsOf(_msgSender());
            require(deposits.length > 0, "Staked ERC721 tokens required");
            erc20Token.transferFrom(_msgSender(), address(this), requiredERC20HoldingAmt);
            spentERC20Tokens[_msgSender()] += requiredERC20HoldingAmt;
        }
        uint256 quantity = bids[_msgSender()].quantityToMint;
        uint256 costPer = bids[_msgSender()].costPerMint;
        // Allow users with previous mint bids to pump up their total bid up
        require(quantity > 0 || _times > 0, "Invalid number of mints");
        require(quantity + _times <= MAX_BID_QUANTITY, "Quantity too high for auction");
        uint256 totalCost = msg.value + (costPer * quantity);
        quantity += _times;
        costPer = totalCost / quantity;
        require(costPer >= MIN_UNIT_PRICE, "Price per mint too low");
        bids[_msgSender()].quantityToMint = quantity;
        bids[_msgSender()].costPerMint = costPer;
        emit BidPlaced(auctionCounter.current(), _msgSender(), bidCounter.current(), costPer, quantity);
        bidCounter.increment();
    }
    // The input must be sorted off chain by collecting the BidPlaced events.
    function pickWinners(address[] calldata bidders) external onlyOwner whenPaused whenAuctionEnded {
        uint256 auctionID = auctionCounter.current();
        for(uint256 i = 0; i < bidders.length; i++) {
            address bidderCur = bidders[i];
            uint256 bidUnitPrice = bids[bidderCur].costPerMint;
            uint256 bidQuantity = bids[bidderCur].quantityToMint;

            if (bidUnitPrice == 0 || bidQuantity == 0) {
                continue;
            }

            // If this bid uses the last of the available mints, end the loop and choose this last winner
            if (auctionRemaingItems[auctionID] == bidQuantity) {
                auctionWhitelist[bidderCur] += bids[bidderCur].quantityToMint;
                bids[bidderCur] = Bid(0, 0);
                emit WinnerChosen(auctionID, bidderCur, bidUnitPrice, bidQuantity);
                auctionRemaingItems[auctionID] = 0;
                break;
            }
            // If there isn't enough available mints to satisfy the entire bid, give the remaining mints to the winner
            else if(auctionRemaingItems[auctionID] < bidQuantity) {
                auctionWhitelist[bidderCur] += auctionRemaingItems[auctionID];
                emit WinnerChosen(auctionID, bidderCur, bidUnitPrice, auctionRemaingItems[auctionID]);
                bids[bidderCur].quantityToMint -= auctionRemaingItems[auctionID];
                auctionRemaingItems[auctionID] = 0;
                break;
            }
            // The bid doesn't end the auction selection, so choose the bid and move on
            else {
                auctionWhitelist[bidderCur] += bids[bidderCur].quantityToMint;
                bids[bidderCur] = Bid(0, 0);
                emit WinnerChosen(auctionID, bidderCur, bidUnitPrice, bidQuantity);
                auctionRemaingItems[auctionID] -= bidQuantity;
            }
        }
    }
    // Refunds losing bidders from the contract's balance.
    function refundBidders(address payable[] calldata bidders) external onlyOwner whenPaused whenAuctionEnded {
        uint256 totalRefundAmount = 0;
        for(uint256 i = 0; i < bidders.length; i++) {
            address payable bidder = bidders[i];
            uint256 refundAmt = bids[bidder].costPerMint * bids[bidder].quantityToMint;
            if(refundAmt == 0) {
                continue;
            }
            bids[bidder] = Bid(0,0);
            uint256 tokens = spentERC20Tokens[bidder];
            if(tokens > 0) {
                spentERC20Tokens[bidder] = 0;
                erc20Token.transfer(bidder, tokens);
            }
            bidder.transfer(refundAmt);
            totalRefundAmount += refundAmt;
            emit BidRefunded(bidder, refundAmt, tokens);
        }
    }
    // Allow people to claim their own rewards if desired, only when auction has ended and withdrawls are allowed
    function claimRefund() external whenRefundsAllowed whenAuctionEnded {
        require(auctionCounter.current() == NUM_AUCTIONS - 1, "The final auction has not ended");
        uint256 refundAmt = bids[_msgSender()].costPerMint * bids[_msgSender()].quantityToMint;
        require(refundAmt > 0, "Refund amount is 0.");
        bids[_msgSender()] = Bid(0,0);
        uint256 tokens = spentERC20Tokens[_msgSender()];
        if(tokens > 0) {
            spentERC20Tokens[_msgSender()] = 0;
            erc20Token.transfer(_msgSender(), tokens);
        }
        payable(_msgSender()).transfer(refundAmt);
        emit BidRefunded(_msgSender(), refundAmt, tokens);
    }
    function claimAuctionMints() public whenAuctionEnded {
        require(auctionCounter.current() == NUM_AUCTIONS - 1, "The final auction has not ended");
        require(auctionWhitelist[_msgSender()] > 0, "Address didn't win auction");
        uint256 startingSupply = currentSupply;
        for(uint256 i = 0; i < auctionWhitelist[_msgSender()]; i++){
            if(currentSupply >= MAX_SUPPLY) {
                // if the collection mints out before the user is done with what they bid,
                // move to the losing bids to allow the rest to be refunded
                break;
            }
            _mint(_msgSender(), ++currentSupply);
        }
        if(currentSupply - startingSupply < auctionWhitelist[_msgSender()]) {
            auctionWhitelist[_msgSender()] -= (currentSupply - startingSupply);
        }
        else {
            auctionWhitelist[_msgSender()] = 0;
        }
        emit Mint(_msgSender(), startingSupply + 1, currentSupply - startingSupply);
    }
    function withdraw() external onlyOwner whenAuctionEnded {
        require(auctionCounter.current() == NUM_AUCTIONS - 1, "The final auction has not ended");
        payable(_msgSender()).transfer(address(this).balance);
    }
    
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

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

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 5 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT

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 7 of 15 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 9 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 10 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 12 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"auctionMintQty","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"auctionID","type":"uint256"}],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"auctionID","type":"uint256"}],"name":"AuctionStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"auctionID","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"bidIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unitPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"BidPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"refundAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensRefunded","type":"uint256"}],"name":"BidRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"startWith","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"times","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":true,"internalType":"uint256","name":"auctionID","type":"uint256"},{"indexed":true,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"unitPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"WinnerChosen","type":"event"},{"inputs":[],"name":"AUCTION_MINT_QTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BID_QUANTITY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_UNIT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_AUCTIONS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowRefunds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_times","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimAuctionMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentAuctionStatus","outputs":[{"components":[{"internalType":"bool","name":"started","type":"bool"},{"internalType":"bool","name":"ended","type":"bool"}],"internalType":"struct AuctionMint.Status","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decrementAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endCurrentAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"erc20Token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bidAddress","type":"address"}],"name":"getBid","outputs":[{"components":[{"internalType":"uint256","name":"quantityToMint","type":"uint256"},{"internalType":"uint256","name":"costPerMint","type":"uint256"}],"internalType":"struct AuctionMint.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"}],"name":"getCostPerMintValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"auctionID","type":"uint256"}],"name":"getRemainingItemsForAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementAuction","outputs":[],"stateMutability":"nonpayable","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":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"bidders","type":"address[]"}],"name":"pickWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"bidders","type":"address[]"}],"name":"refundBidders","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requiredERC20HoldingAmt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"bool","name":"allowed","type":"bool"}],"name":"setAllowRefunds","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":"_newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"erc20Address","type":"address"},{"internalType":"address","name":"stakingAddress","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"erc20HoldingAmt","type":"uint256"}],"name":"setERC20HoldingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract IStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startCurrentAuction","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":[{"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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162003d3b38038062003d3b833981016040819052620000349162000347565b604080518082018252601381527f41756374696f6e4d696e74436f6e747261637400000000000000000000000000602080830191825283518085019094526003845262414d4360e81b9084015281519192916200009491600091620002a1565b508051620000aa906001906020840190620002a1565b505050620000c7620000c16200013060201b60201c565b62000134565b6007805460ff60a01b19169055600a80546001600160a01b03191630179055608081905260005b60038110156200011e5760008181526014602052604090208290558062000115816200039d565b915050620000ee565b506200012962000186565b50620003c5565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6007546001600160a01b03163314620001e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b620001f0620001f2565b565b62000206600754600160a01b900460ff1690565b15620002485760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401620001dd565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002843390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620002af9062000360565b90600052602060002090601f016020900481019282620002d357600085556200031e565b82601f10620002ee57805160ff19168380011785556200031e565b828001600101855582156200031e579182015b828111156200031e57825182559160200191906001019062000301565b506200032c92915062000330565b5090565b5b808211156200032c576000815560010162000331565b60006020828403121562000359578081fd5b5051919050565b600181811c908216806200037557607f821691505b602082108114156200039757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415620003be57634e487b7160e01b81526011600452602481fd5b5060010190565b60805161395a620003e160003960006104eb015261395a6000f3fe6080604052600436106102e45760003560e01c8063771282f611610190578063c87b56dd116100dc578063dcb66f1211610095578063ee99205c1161006f578063ee99205c146108f1578063f2fde38b14610911578063f6b4dfb414610931578063fb2e0b9d1461095157600080fd5b8063dcb66f121461087e578063e1be6a6214610893578063e985e9c5146108a857600080fd5b8063c87b56dd14610748578063c8b342ab14610768578063d010c298146107e5578063d0986ac114610805578063d8952a4914610825578063db80df8e1461084557600080fd5b806395d89b4111610149578063b453224711610123578063b4532247146106e3578063b5545a3c146106fe578063b88d4fde14610713578063c32b834b1461073357600080fd5b806395d89b4114610699578063a16bad98146106ae578063a22cb465146106c357600080fd5b8063771282f6146105fa578063831788821461061057806383d5f864146106265780638456cb59146106465780638a13eea71461065b5780638da5cb5b1461067b57600080fd5b80633f4ba83a1161024f5780635c975abb116102085780636f411796116101e25780636f4117961461059b57806370a08231146105b0578063715018a6146105d0578063720a1bc0146105e557600080fd5b80635c975abb146105475780636352211e146105665780636c0360eb1461058657600080fd5b80633f4ba83a1461049157806342842e0e146104a6578063454a2ab3146104c65780634f438f07146104d957806355f804b31461050d57806359c656df1461052d57600080fd5b80631e01ea22116102a15780631e01ea22146103cf578063219dd20d1461040357806323b872dd1461043157806332cb6b0c146104515780633ccfd60b146104675780633cf247b11461047c57600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063095ea7b314610378578063162094c41461039a5780631843bde2146103ba575b600080fd5b3480156102f557600080fd5b506103096103043660046133da565b610971565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b506103336109c3565b60405161031591906135f9565b34801561034c57600080fd5b5061036061035b366004613445565b610a55565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b5061039861039336600461328f565b610aef565b005b3480156103a657600080fd5b506103986103b5366004613475565b610c05565b3480156103c657600080fd5b50610398610c3d565b3480156103db57600080fd5b506103e4610cf8565b6040805182511515815260209283015115159281019290925201610315565b34801561040f57600080fd5b5061042361041e366004613445565b610d53565b604051908152602001610315565b34801561043d57600080fd5b5061039861044c3660046131a5565b610daa565b34801561045d57600080fd5b5061042361232881565b34801561047357600080fd5b50610398610ddb565b34801561048857600080fd5b50610423600a81565b34801561049d57600080fd5b50610398610e99565b3480156104b257600080fd5b506103986104c13660046131a5565b610ecb565b6103986104d4366004613445565b610ee6565b3480156104e557600080fd5b506104237f000000000000000000000000000000000000000000000000000000000000000081565b34801561051957600080fd5b50610398610528366004613412565b6113f7565b34801561053957600080fd5b506010546103099060ff1681565b34801561055357600080fd5b50600754600160a01b900460ff16610309565b34801561057257600080fd5b50610360610581366004613445565b611434565b34801561059257600080fd5b506103336114ab565b3480156105a757600080fd5b50610398611539565b3480156105bc57600080fd5b506104236105cb366004613151565b611645565b3480156105dc57600080fd5b506103986116cc565b3480156105f157600080fd5b50610398611700565b34801561060657600080fd5b50610423600e5481565b34801561061c57600080fd5b50610423600d5481565b34801561063257600080fd5b506103986106413660046133a2565b61175d565b34801561065257600080fd5b5061039861179a565b34801561066757600080fd5b50600b54610360906001600160a01b031681565b34801561068757600080fd5b506007546001600160a01b0316610360565b3480156106a557600080fd5b506103336117cc565b3480156106ba57600080fd5b506103986117db565b3480156106cf57600080fd5b506103986106de366004613262565b61195b565b3480156106ef57600080fd5b5061042366b1a2bc2ec5000081565b34801561070a57600080fd5b50610398611a20565b34801561071f57600080fd5b5061039861072e3660046131e5565b611cae565b34801561073f57600080fd5b50610398611ce0565b34801561075457600080fd5b50610333610763366004613445565b611ec1565b34801561077457600080fd5b506107ca610783366004613151565b6040805180820190915260008082526020820152506001600160a01b0316600090815260136020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610315565b3480156107f157600080fd5b506103986108003660046132ba565b611f8a565b34801561081157600080fd5b506103986108203660046132ba565b612354565b34801561083157600080fd5b5061039861084036600461316d565b6125df565b34801561085157600080fd5b50610423610860366004613151565b6001600160a01b031660009081526013602052604090206001015490565b34801561088a57600080fd5b50610423612637565b34801561089f57600080fd5b50610423600381565b3480156108b457600080fd5b506103096108c336600461316d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108fd57600080fd5b50600c54610360906001600160a01b031681565b34801561091d57600080fd5b5061039861092c366004613151565b612647565b34801561093d57600080fd5b50600a54610360906001600160a01b031681565b34801561095d57600080fd5b5061039861096c366004613445565b6126df565b60006001600160e01b031982166380ac58cd60e01b14806109a257506001600160e01b03198216635b5e139f60e01b145b806109bd57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109d29061383f565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe9061383f565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ad35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610afa82611434565b9050806001600160a01b0316836001600160a01b03161415610b685760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610aca565b336001600160a01b0382161480610b845750610b8481336108c3565b610bf65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610aca565b610c00838361270e565b505050565b6007546001600160a01b03163314610c2f5760405162461bcd60e51b8152600401610aca906136fa565b610c39828261277c565b5050565b6007546001600160a01b03163314610c675760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff16610c905760405162461bcd60e51b8152600401610aca9061360c565b610c9e600880546001019055565b6003610ca960085490565b10610cf65760405162461bcd60e51b815260206004820152601f60248201527f4d6178206e756d626572206f662061756374696f6e7320726561636865642e006044820152606401610aca565b565b604080518082019091526000808252602082015260126000610d1960085490565b8152602080820192909252604090810160002081518083019092525460ff8082161515835261010090910416151591810191909152919050565b600060038210610d975760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21030bab1ba34b7b760891b6044820152606401610aca565b5060009081526014602052604090205490565b610db43382612816565b610dd05760405162461bcd60e51b8152600401610aca9061372f565b610c0083838361290d565b6007546001600160a01b03163314610e055760405162461bcd60e51b8152600401610aca906136fa565b610e0d610cf8565b518015610e225750610e1d610cf8565b602001515b610e3e5760405162461bcd60e51b8152600401610aca906136c3565b610e4a600160036137fc565b60085414610e6a5760405162461bcd60e51b8152600401610aca9061368c565b60405133904780156108fc02916000818181858888f19350505050158015610e96573d6000803e3d6000fd5b50565b6007546001600160a01b03163314610ec35760405162461bcd60e51b8152600401610aca906136fa565b610cf6612aad565b610c0083838360405180602001604052806000815250611cae565b600754600160a01b900460ff1615610f335760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aca565b610f3b610cf8565b518015610f515750610f4b610cf8565b60200151155b610f965760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b6000600d54118015610fb5575033600090815260156020526040902054155b1561123a57600d54600b546001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561100e57600080fd5b505afa158015611022573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611046919061345d565b10156110945760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820455243323020746f6b656e730000000000000000006044820152606401610aca565b600c546000906001600160a01b031663e3a9db1a336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160006040518083038186803b1580156110e857600080fd5b505afa1580156110fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261112491908101906132fa565b905060008151116111775760405162461bcd60e51b815260206004820152601d60248201527f5374616b65642045524337323120746f6b656e732072657175697265640000006044820152606401610aca565b600b546001600160a01b03166323b872dd33600d546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b1580156111d857600080fd5b505af11580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121091906133be565b50600d5433600090815260156020526040812080549091906112339084906137b1565b9091555050505b33600090815260136020526040902080546001909101548115158061125f5750600083115b6112ab5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206e756d626572206f66206d696e74730000000000000000006044820152606401610aca565b600a6112b784846137b1565b11156113055760405162461bcd60e51b815260206004820152601d60248201527f5175616e7469747920746f6f206869676820666f722061756374696f6e0000006044820152606401610aca565b600061131183836137dd565b61131b90346137b1565b905061132784846137b1565b925061133383826137c9565b915066b1a2bc2ec500008210156113855760405162461bcd60e51b8152602060048201526016602482015275507269636520706572206d696e7420746f6f206c6f7760501b6044820152606401610aca565b3360008181526013602052604090208481556001018390556008546009547fe0771bb8191f40e2c9380d044dd32271d56e14b7722162d048aa9ebe13eefbb1906040805191825260208201879052810187905260600160405180910390a36113f1600980546001019055565b50505050565b6007546001600160a01b031633146114215760405162461bcd60e51b8152600401610aca906136fa565b8051610c3990600f906020840190612ff0565b6000818152600260205260408120546001600160a01b0316806109bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610aca565b600f80546114b89061383f565b80601f01602080910402602001604051908101604052809291908181526020018280546114e49061383f565b80156115315780601f1061150657610100808354040283529160200191611531565b820191906000526020600020905b81548152906001019060200180831161151457829003601f168201915b505050505081565b6007546001600160a01b031633146115635760405162461bcd60e51b8152600401610aca906136fa565b61156b610cf8565b518015611581575061157b610cf8565b60200151155b6115c65760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b60006115d160085490565b6000818152601260205260409020805461ff001916610100179055905061160260075460ff600160a01b9091041690565b61160e5761160e61179a565b6040518181527f45806e512b1f4f10e33e8b3cb64d1d11d998d8c554a95e0841fc1c701278bd5d906020015b60405180910390a150565b60006001600160a01b0382166116b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610aca565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146116f65760405162461bcd60e51b8152600401610aca906136fa565b610cf66000612b23565b6007546001600160a01b0316331461172a5760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff166117535760405162461bcd60e51b8152600401610aca9061360c565b610cf66008612b75565b6007546001600160a01b031633146117875760405162461bcd60e51b8152600401610aca906136fa565b6010805460ff1916911515919091179055565b6007546001600160a01b031633146117c45760405162461bcd60e51b8152600401610aca906136fa565b610cf6612bcc565b6060600180546109d29061383f565b6007546001600160a01b031633146118055760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff1661182e5760405162461bcd60e51b8152600401610aca9061360c565b600b546001600160a01b0316158015906118525750600c546001600160a01b031615155b6118925760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b6044820152606401610aca565b600061189d60085490565b90506118a7610cf8565b511580156118be57506118b8610cf8565b60200151155b61190a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2063616e6e6f74206265207374617274656420616761696e006044820152606401610aca565b6000818152601260205260409020805460ff1916600117905561192b610e99565b6040518181527f1bb96dff6ab5005aff98cdc0cf176bb7d8e0423cb48e02217d35b042cec81e9f9060200161163a565b6001600160a01b0382163314156119b45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610aca565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60105460ff16611a725760405162461bcd60e51b815260206004820152601e60248201527f526566756e64732063757272656e746c79206e6f7420616c6c6f7765642e00006044820152606401610aca565b611a7a610cf8565b518015611a8f5750611a8a610cf8565b602001515b611aab5760405162461bcd60e51b8152600401610aca906136c3565b611ab7600160036137fc565b60085414611ad75760405162461bcd60e51b8152600401610aca9061368c565b3360009081526013602052604081208054600190910154611af891906137dd565b905060008111611b405760405162461bcd60e51b81526020600482015260136024820152722932b33ab7321030b6b7bab73a1034b990181760691b6044820152606401610aca565b604051806040016040528060008152602001600081525060136000611b623390565b6001600160a01b0316815260208082019290925260409081016000908120845181559383015160019094019390935533835260159091529020548015611c4157336000818152601560209081526040808320839055600b54815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611c0757600080fd5b505af1158015611c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3f91906133be565b505b604051339083156108fc029084906000818181858888f19350505050158015611c6e573d6000803e3d6000fd5b50604080518381526020810183905233917fc483c19469a93c9ffc34ec9c7cca650ee66a9fa14605be87a6b239e47527cd8a910160405180910390a25050565b611cb83383612816565b611cd45760405162461bcd60e51b8152600401610aca9061372f565b6113f184848484612c54565b611ce8610cf8565b518015611cfd5750611cf8610cf8565b602001515b611d195760405162461bcd60e51b8152600401610aca906136c3565b611d25600160036137fc565b60085414611d455760405162461bcd60e51b8152600401610aca9061368c565b33600090815260116020526040902054611da15760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206469646e27742077696e2061756374696f6e0000000000006044820152606401610aca565b600e5460005b33600090815260116020526040902054811015611dfd57612328600e5410611dce57611dfd565b611deb33600e60008154611de19061387a565b9182905550612c87565b80611df58161387a565b915050611da7565b5033600090815260116020526040902054600e54611e1c9083906137fc565b1015611e5a5780600e54611e3091906137fc565b3360009081526011602052604081208054909190611e4f9084906137fc565b90915550611e6b9050565b336000908152601160205260408120555b337f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f611e988360016137b1565b83600e54611ea691906137fc565b6040805192835260208301919091520160405180910390a250565b6000818152600260205260409020546060906001600160a01b0316611f205760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610aca565b6000600f8054611f2f9061383f565b905011611f595760405180604001604052806005815260200164173539b7b760d91b8152506109bd565b600f611f6483612dc9565b604051602001611f75929190613502565b60405160208183030381529060405292915050565b6007546001600160a01b03163314611fb45760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff16611fdd5760405162461bcd60e51b8152600401610aca9061360c565b611fe5610cf8565b518015611ffa5750611ff5610cf8565b602001515b6120165760405162461bcd60e51b8152600401610aca906136c3565b600061202160085490565b905060005b828110156113f157600084848381811061205057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120659190613151565b6001600160a01b03811660009081526013602052604090206001810154905491925090811580612093575080155b156120a057505050612342565b600085815260146020526040902054811415612178576001600160a01b038316600090815260136020908152604080832054601190925282208054919290916120ea9084906137b1565b9091555050604080518082018252600080825260208083018281526001600160a01b0388168084526013835292859020935184555160019093019290925582518581529182018490529187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a35050506000828152601460205260408120556113f1565b600085815260146020526040902054811115612270576000858152601460209081526040808320546001600160a01b0387168452601190925282208054919290916121c49084906137b1565b9091555050600085815260146020908152604091829020548251858152918201526001600160a01b0385169187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a36000858152601460209081526040808320546001600160a01b0387168452601390925282208054919290916122539084906137fc565b909155505050600084815260146020526040812055506113f19050565b6001600160a01b038316600090815260136020908152604080832054601190925282208054919290916122a49084906137b1565b9091555050604080518082018252600080825260208083018281526001600160a01b0388168084526013835292859020935184555160019093019290925582518581529182018490529187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a3600085815260146020526040812080548392906123399084906137fc565b90915550505050505b8061234c8161387a565b915050612026565b6007546001600160a01b0316331461237e5760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff166123a75760405162461bcd60e51b8152600401610aca9061360c565b6123af610cf8565b5180156123c457506123bf610cf8565b602001515b6123e05760405162461bcd60e51b8152600401610aca906136c3565b6000805b828110156113f157600084848381811061240e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124239190613151565b6001600160a01b03811660009081526013602052604081208054600190910154929350909161245291906137dd565b9050806124605750506125cd565b604080518082018252600080825260208083018281526001600160a01b0387168352601382528483209351845551600190930192909255601590915220548015612541576001600160a01b0383811660008181526015602052604080822091909155600b54905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561250757600080fd5b505af115801561251b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253f91906133be565b505b6040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015612577573d6000803e3d6000fd5b5061258282866137b1565b60408051848152602081018490529196506001600160a01b038516917fc483c19469a93c9ffc34ec9c7cca650ee66a9fa14605be87a6b239e47527cd8a910160405180910390a25050505b806125d78161387a565b9150506123e4565b6007546001600160a01b031633146126095760405162461bcd60e51b8152600401610aca906136fa565b600b80546001600160a01b039384166001600160a01b031991821617909155600c8054929093169116179055565b600061264260085490565b905090565b6007546001600160a01b031633146126715760405162461bcd60e51b8152600401610aca906136fa565b6001600160a01b0381166126d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aca565b610e9681612b23565b6007546001600160a01b031633146127095760405162461bcd60e51b8152600401610aca906136fa565b600d55565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061274382611434565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152600260205260409020546001600160a01b03166127f75760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610aca565b60008281526006602090815260409091208251610c0092840190612ff0565b6000818152600260205260408120546001600160a01b031661288f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610aca565b600061289a83611434565b9050806001600160a01b0316846001600160a01b031614806128d55750836001600160a01b03166128ca84610a55565b6001600160a01b0316145b8061290557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661292082611434565b6001600160a01b0316146129885760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610aca565b6001600160a01b0382166129ea5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610aca565b6129f560008261270e565b6001600160a01b0383166000908152600360205260408120805460019290612a1e9084906137fc565b90915550506001600160a01b0382166000908152600360205260408120805460019290612a4c9084906137b1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600754600160a01b900460ff16612ad65760405162461bcd60e51b8152600401610aca9061360c565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b805480612bc45760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610aca565b600019019055565b600754600160a01b900460ff1615612c195760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aca565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b063390565b612c5f84848461290d565b612c6b84848484612ee3565b6113f15760405162461bcd60e51b8152600401610aca9061363a565b6001600160a01b038216612cdd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610aca565b6000818152600260205260409020546001600160a01b031615612d425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610aca565b6001600160a01b0382166000908152600360205260408120805460019290612d6b9084906137b1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081612ded5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e175780612e018161387a565b9150612e109050600a836137c9565b9150612df1565b60008167ffffffffffffffff811115612e4057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e6a576020820181803683370190505b5090505b841561290557612e7f6001836137fc565b9150612e8c600a86613895565b612e979060306137b1565b60f81b818381518110612eba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612edc600a866137c9565b9450612e6e565b60006001600160a01b0384163b15612fe557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f279033908990889088906004016135bc565b602060405180830381600087803b158015612f4157600080fd5b505af1925050508015612f71575060408051601f3d908101601f19168201909252612f6e918101906133f6565b60015b612fcb573d808015612f9f576040519150601f19603f3d011682016040523d82523d6000602084013e612fa4565b606091505b508051612fc35760405162461bcd60e51b8152600401610aca9061363a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612905565b506001949350505050565b828054612ffc9061383f565b90600052602060002090601f01602090048101928261301e5760008555613064565b82601f1061303757805160ff1916838001178555613064565b82800160010185558215613064579182015b82811115613064578251825591602001919060010190613049565b50613070929150613074565b5090565b5b808211156130705760008155600101613075565b600067ffffffffffffffff8311156130a3576130a36138d5565b6130b6601f8401601f1916602001613780565b90508281528383830111156130ca57600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126130f2578182fd5b50813567ffffffffffffffff811115613109578182fd5b6020830191508360208260051b850101111561312457600080fd5b9250929050565b600082601f83011261313b578081fd5b61314a83833560208501613089565b9392505050565b600060208284031215613162578081fd5b813561314a816138eb565b6000806040838503121561317f578081fd5b823561318a816138eb565b9150602083013561319a816138eb565b809150509250929050565b6000806000606084860312156131b9578081fd5b83356131c4816138eb565b925060208401356131d4816138eb565b929592945050506040919091013590565b600080600080608085870312156131fa578081fd5b8435613205816138eb565b93506020850135613215816138eb565b925060408501359150606085013567ffffffffffffffff811115613237578182fd5b8501601f81018713613247578182fd5b61325687823560208401613089565b91505092959194509250565b60008060408385031215613274578182fd5b823561327f816138eb565b9150602083013561319a81613900565b600080604083850312156132a1578182fd5b82356132ac816138eb565b946020939093013593505050565b600080602083850312156132cc578182fd5b823567ffffffffffffffff8111156132e2578283fd5b6132ee858286016130e1565b90969095509350505050565b6000602080838503121561330c578182fd5b825167ffffffffffffffff80821115613323578384fd5b818501915085601f830112613336578384fd5b815181811115613348576133486138d5565b8060051b9150613359848301613780565b8181528481019084860184860187018a1015613373578788fd5b8795505b83861015613395578051835260019590950194918601918601613377565b5098975050505050505050565b6000602082840312156133b3578081fd5b813561314a81613900565b6000602082840312156133cf578081fd5b815161314a81613900565b6000602082840312156133eb578081fd5b813561314a8161390e565b600060208284031215613407578081fd5b815161314a8161390e565b600060208284031215613423578081fd5b813567ffffffffffffffff811115613439578182fd5b6129058482850161312b565b600060208284031215613456578081fd5b5035919050565b60006020828403121561346e578081fd5b5051919050565b60008060408385031215613487578182fd5b82359150602083013567ffffffffffffffff8111156134a4578182fd5b6134b08582860161312b565b9150509250929050565b600081518084526134d2816020860160208601613813565b601f01601f19169290920160200192915050565b600081516134f8818560208601613813565b9290920192915050565b600080845482600182811c91508083168061351e57607f831692505b602080841082141561353e57634e487b7160e01b87526022600452602487fd5b81801561355257600181146135635761358f565b60ff1986168952848901965061358f565b60008b815260209020885b868110156135875781548b82015290850190830161356e565b505084890196505b5050505050506135b36135a282866134e6565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135ef908301846134ba565b9695505050505050565b60208152600061314a60208301846134ba565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f5468652066696e616c2061756374696f6e20686173206e6f7420656e64656400604082015260600190565b6020808252601e908201527f41756374696f6e20686173206e6f74206265656e20636f6d706c657465640000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156137a9576137a96138d5565b604052919050565b600082198211156137c4576137c46138a9565b500190565b6000826137d8576137d86138bf565b500490565b60008160001904831182151516156137f7576137f76138a9565b500290565b60008282101561380e5761380e6138a9565b500390565b60005b8381101561382e578181015183820152602001613816565b838111156113f15750506000910152565b600181811c9082168061385357607f821691505b6020821081141561387457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561388e5761388e6138a9565b5060010190565b6000826138a4576138a46138bf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e9657600080fd5b8015158114610e9657600080fd5b6001600160e01b031981168114610e9657600080fdfea26469706673582212200061afd4366cd5aca6e5bcaa3adb4d474d39723599c0445a88a8365fe6688ca964736f6c634300080400330000000000000000000000000000000000000000000000000000000000000bb8

Deployed Bytecode

0x6080604052600436106102e45760003560e01c8063771282f611610190578063c87b56dd116100dc578063dcb66f1211610095578063ee99205c1161006f578063ee99205c146108f1578063f2fde38b14610911578063f6b4dfb414610931578063fb2e0b9d1461095157600080fd5b8063dcb66f121461087e578063e1be6a6214610893578063e985e9c5146108a857600080fd5b8063c87b56dd14610748578063c8b342ab14610768578063d010c298146107e5578063d0986ac114610805578063d8952a4914610825578063db80df8e1461084557600080fd5b806395d89b4111610149578063b453224711610123578063b4532247146106e3578063b5545a3c146106fe578063b88d4fde14610713578063c32b834b1461073357600080fd5b806395d89b4114610699578063a16bad98146106ae578063a22cb465146106c357600080fd5b8063771282f6146105fa578063831788821461061057806383d5f864146106265780638456cb59146106465780638a13eea71461065b5780638da5cb5b1461067b57600080fd5b80633f4ba83a1161024f5780635c975abb116102085780636f411796116101e25780636f4117961461059b57806370a08231146105b0578063715018a6146105d0578063720a1bc0146105e557600080fd5b80635c975abb146105475780636352211e146105665780636c0360eb1461058657600080fd5b80633f4ba83a1461049157806342842e0e146104a6578063454a2ab3146104c65780634f438f07146104d957806355f804b31461050d57806359c656df1461052d57600080fd5b80631e01ea22116102a15780631e01ea22146103cf578063219dd20d1461040357806323b872dd1461043157806332cb6b0c146104515780633ccfd60b146104675780633cf247b11461047c57600080fd5b806301ffc9a7146102e957806306fdde031461031e578063081812fc14610340578063095ea7b314610378578063162094c41461039a5780631843bde2146103ba575b600080fd5b3480156102f557600080fd5b506103096103043660046133da565b610971565b60405190151581526020015b60405180910390f35b34801561032a57600080fd5b506103336109c3565b60405161031591906135f9565b34801561034c57600080fd5b5061036061035b366004613445565b610a55565b6040516001600160a01b039091168152602001610315565b34801561038457600080fd5b5061039861039336600461328f565b610aef565b005b3480156103a657600080fd5b506103986103b5366004613475565b610c05565b3480156103c657600080fd5b50610398610c3d565b3480156103db57600080fd5b506103e4610cf8565b6040805182511515815260209283015115159281019290925201610315565b34801561040f57600080fd5b5061042361041e366004613445565b610d53565b604051908152602001610315565b34801561043d57600080fd5b5061039861044c3660046131a5565b610daa565b34801561045d57600080fd5b5061042361232881565b34801561047357600080fd5b50610398610ddb565b34801561048857600080fd5b50610423600a81565b34801561049d57600080fd5b50610398610e99565b3480156104b257600080fd5b506103986104c13660046131a5565b610ecb565b6103986104d4366004613445565b610ee6565b3480156104e557600080fd5b506104237f0000000000000000000000000000000000000000000000000000000000000bb881565b34801561051957600080fd5b50610398610528366004613412565b6113f7565b34801561053957600080fd5b506010546103099060ff1681565b34801561055357600080fd5b50600754600160a01b900460ff16610309565b34801561057257600080fd5b50610360610581366004613445565b611434565b34801561059257600080fd5b506103336114ab565b3480156105a757600080fd5b50610398611539565b3480156105bc57600080fd5b506104236105cb366004613151565b611645565b3480156105dc57600080fd5b506103986116cc565b3480156105f157600080fd5b50610398611700565b34801561060657600080fd5b50610423600e5481565b34801561061c57600080fd5b50610423600d5481565b34801561063257600080fd5b506103986106413660046133a2565b61175d565b34801561065257600080fd5b5061039861179a565b34801561066757600080fd5b50600b54610360906001600160a01b031681565b34801561068757600080fd5b506007546001600160a01b0316610360565b3480156106a557600080fd5b506103336117cc565b3480156106ba57600080fd5b506103986117db565b3480156106cf57600080fd5b506103986106de366004613262565b61195b565b3480156106ef57600080fd5b5061042366b1a2bc2ec5000081565b34801561070a57600080fd5b50610398611a20565b34801561071f57600080fd5b5061039861072e3660046131e5565b611cae565b34801561073f57600080fd5b50610398611ce0565b34801561075457600080fd5b50610333610763366004613445565b611ec1565b34801561077457600080fd5b506107ca610783366004613151565b6040805180820190915260008082526020820152506001600160a01b0316600090815260136020908152604091829020825180840190935280548352600101549082015290565b60408051825181526020928301519281019290925201610315565b3480156107f157600080fd5b506103986108003660046132ba565b611f8a565b34801561081157600080fd5b506103986108203660046132ba565b612354565b34801561083157600080fd5b5061039861084036600461316d565b6125df565b34801561085157600080fd5b50610423610860366004613151565b6001600160a01b031660009081526013602052604090206001015490565b34801561088a57600080fd5b50610423612637565b34801561089f57600080fd5b50610423600381565b3480156108b457600080fd5b506103096108c336600461316d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156108fd57600080fd5b50600c54610360906001600160a01b031681565b34801561091d57600080fd5b5061039861092c366004613151565b612647565b34801561093d57600080fd5b50600a54610360906001600160a01b031681565b34801561095d57600080fd5b5061039861096c366004613445565b6126df565b60006001600160e01b031982166380ac58cd60e01b14806109a257506001600160e01b03198216635b5e139f60e01b145b806109bd57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109d29061383f565b80601f01602080910402602001604051908101604052809291908181526020018280546109fe9061383f565b8015610a4b5780601f10610a2057610100808354040283529160200191610a4b565b820191906000526020600020905b815481529060010190602001808311610a2e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610ad35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610afa82611434565b9050806001600160a01b0316836001600160a01b03161415610b685760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610aca565b336001600160a01b0382161480610b845750610b8481336108c3565b610bf65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610aca565b610c00838361270e565b505050565b6007546001600160a01b03163314610c2f5760405162461bcd60e51b8152600401610aca906136fa565b610c39828261277c565b5050565b6007546001600160a01b03163314610c675760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff16610c905760405162461bcd60e51b8152600401610aca9061360c565b610c9e600880546001019055565b6003610ca960085490565b10610cf65760405162461bcd60e51b815260206004820152601f60248201527f4d6178206e756d626572206f662061756374696f6e7320726561636865642e006044820152606401610aca565b565b604080518082019091526000808252602082015260126000610d1960085490565b8152602080820192909252604090810160002081518083019092525460ff8082161515835261010090910416151591810191909152919050565b600060038210610d975760405162461bcd60e51b815260206004820152600f60248201526e24b73b30b634b21030bab1ba34b7b760891b6044820152606401610aca565b5060009081526014602052604090205490565b610db43382612816565b610dd05760405162461bcd60e51b8152600401610aca9061372f565b610c0083838361290d565b6007546001600160a01b03163314610e055760405162461bcd60e51b8152600401610aca906136fa565b610e0d610cf8565b518015610e225750610e1d610cf8565b602001515b610e3e5760405162461bcd60e51b8152600401610aca906136c3565b610e4a600160036137fc565b60085414610e6a5760405162461bcd60e51b8152600401610aca9061368c565b60405133904780156108fc02916000818181858888f19350505050158015610e96573d6000803e3d6000fd5b50565b6007546001600160a01b03163314610ec35760405162461bcd60e51b8152600401610aca906136fa565b610cf6612aad565b610c0083838360405180602001604052806000815250611cae565b600754600160a01b900460ff1615610f335760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aca565b610f3b610cf8565b518015610f515750610f4b610cf8565b60200151155b610f965760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b6000600d54118015610fb5575033600090815260156020526040902054155b1561123a57600d54600b546001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561100e57600080fd5b505afa158015611022573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611046919061345d565b10156110945760405162461bcd60e51b815260206004820152601760248201527f4e6f7420656e6f75676820455243323020746f6b656e730000000000000000006044820152606401610aca565b600c546000906001600160a01b031663e3a9db1a336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160006040518083038186803b1580156110e857600080fd5b505afa1580156110fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261112491908101906132fa565b905060008151116111775760405162461bcd60e51b815260206004820152601d60248201527f5374616b65642045524337323120746f6b656e732072657175697265640000006044820152606401610aca565b600b546001600160a01b03166323b872dd33600d546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301523060248301526044820152606401602060405180830381600087803b1580156111d857600080fd5b505af11580156111ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121091906133be565b50600d5433600090815260156020526040812080549091906112339084906137b1565b9091555050505b33600090815260136020526040902080546001909101548115158061125f5750600083115b6112ab5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206e756d626572206f66206d696e74730000000000000000006044820152606401610aca565b600a6112b784846137b1565b11156113055760405162461bcd60e51b815260206004820152601d60248201527f5175616e7469747920746f6f206869676820666f722061756374696f6e0000006044820152606401610aca565b600061131183836137dd565b61131b90346137b1565b905061132784846137b1565b925061133383826137c9565b915066b1a2bc2ec500008210156113855760405162461bcd60e51b8152602060048201526016602482015275507269636520706572206d696e7420746f6f206c6f7760501b6044820152606401610aca565b3360008181526013602052604090208481556001018390556008546009547fe0771bb8191f40e2c9380d044dd32271d56e14b7722162d048aa9ebe13eefbb1906040805191825260208201879052810187905260600160405180910390a36113f1600980546001019055565b50505050565b6007546001600160a01b031633146114215760405162461bcd60e51b8152600401610aca906136fa565b8051610c3990600f906020840190612ff0565b6000818152600260205260408120546001600160a01b0316806109bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610aca565b600f80546114b89061383f565b80601f01602080910402602001604051908101604052809291908181526020018280546114e49061383f565b80156115315780601f1061150657610100808354040283529160200191611531565b820191906000526020600020905b81548152906001019060200180831161151457829003601f168201915b505050505081565b6007546001600160a01b031633146115635760405162461bcd60e51b8152600401610aca906136fa565b61156b610cf8565b518015611581575061157b610cf8565b60200151155b6115c65760405162461bcd60e51b815260206004820152601660248201527520bab1ba34b7b71034b9903737ba1030b1ba34bb329760511b6044820152606401610aca565b60006115d160085490565b6000818152601260205260409020805461ff001916610100179055905061160260075460ff600160a01b9091041690565b61160e5761160e61179a565b6040518181527f45806e512b1f4f10e33e8b3cb64d1d11d998d8c554a95e0841fc1c701278bd5d906020015b60405180910390a150565b60006001600160a01b0382166116b05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610aca565b506001600160a01b031660009081526003602052604090205490565b6007546001600160a01b031633146116f65760405162461bcd60e51b8152600401610aca906136fa565b610cf66000612b23565b6007546001600160a01b0316331461172a5760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff166117535760405162461bcd60e51b8152600401610aca9061360c565b610cf66008612b75565b6007546001600160a01b031633146117875760405162461bcd60e51b8152600401610aca906136fa565b6010805460ff1916911515919091179055565b6007546001600160a01b031633146117c45760405162461bcd60e51b8152600401610aca906136fa565b610cf6612bcc565b6060600180546109d29061383f565b6007546001600160a01b031633146118055760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff1661182e5760405162461bcd60e51b8152600401610aca9061360c565b600b546001600160a01b0316158015906118525750600c546001600160a01b031615155b6118925760405162461bcd60e51b815260206004820152601160248201527010dbdb9d1c9858dd1cc81b9bdd081cd95d607a1b6044820152606401610aca565b600061189d60085490565b90506118a7610cf8565b511580156118be57506118b8610cf8565b60200151155b61190a5760405162461bcd60e51b815260206004820152601f60248201527f41756374696f6e2063616e6e6f74206265207374617274656420616761696e006044820152606401610aca565b6000818152601260205260409020805460ff1916600117905561192b610e99565b6040518181527f1bb96dff6ab5005aff98cdc0cf176bb7d8e0423cb48e02217d35b042cec81e9f9060200161163a565b6001600160a01b0382163314156119b45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610aca565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60105460ff16611a725760405162461bcd60e51b815260206004820152601e60248201527f526566756e64732063757272656e746c79206e6f7420616c6c6f7765642e00006044820152606401610aca565b611a7a610cf8565b518015611a8f5750611a8a610cf8565b602001515b611aab5760405162461bcd60e51b8152600401610aca906136c3565b611ab7600160036137fc565b60085414611ad75760405162461bcd60e51b8152600401610aca9061368c565b3360009081526013602052604081208054600190910154611af891906137dd565b905060008111611b405760405162461bcd60e51b81526020600482015260136024820152722932b33ab7321030b6b7bab73a1034b990181760691b6044820152606401610aca565b604051806040016040528060008152602001600081525060136000611b623390565b6001600160a01b0316815260208082019290925260409081016000908120845181559383015160019094019390935533835260159091529020548015611c4157336000818152601560209081526040808320839055600b54815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015611c0757600080fd5b505af1158015611c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3f91906133be565b505b604051339083156108fc029084906000818181858888f19350505050158015611c6e573d6000803e3d6000fd5b50604080518381526020810183905233917fc483c19469a93c9ffc34ec9c7cca650ee66a9fa14605be87a6b239e47527cd8a910160405180910390a25050565b611cb83383612816565b611cd45760405162461bcd60e51b8152600401610aca9061372f565b6113f184848484612c54565b611ce8610cf8565b518015611cfd5750611cf8610cf8565b602001515b611d195760405162461bcd60e51b8152600401610aca906136c3565b611d25600160036137fc565b60085414611d455760405162461bcd60e51b8152600401610aca9061368c565b33600090815260116020526040902054611da15760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206469646e27742077696e2061756374696f6e0000000000006044820152606401610aca565b600e5460005b33600090815260116020526040902054811015611dfd57612328600e5410611dce57611dfd565b611deb33600e60008154611de19061387a565b9182905550612c87565b80611df58161387a565b915050611da7565b5033600090815260116020526040902054600e54611e1c9083906137fc565b1015611e5a5780600e54611e3091906137fc565b3360009081526011602052604081208054909190611e4f9084906137fc565b90915550611e6b9050565b336000908152601160205260408120555b337f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f611e988360016137b1565b83600e54611ea691906137fc565b6040805192835260208301919091520160405180910390a250565b6000818152600260205260409020546060906001600160a01b0316611f205760405162461bcd60e51b81526020600482015260156024820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b6044820152606401610aca565b6000600f8054611f2f9061383f565b905011611f595760405180604001604052806005815260200164173539b7b760d91b8152506109bd565b600f611f6483612dc9565b604051602001611f75929190613502565b60405160208183030381529060405292915050565b6007546001600160a01b03163314611fb45760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff16611fdd5760405162461bcd60e51b8152600401610aca9061360c565b611fe5610cf8565b518015611ffa5750611ff5610cf8565b602001515b6120165760405162461bcd60e51b8152600401610aca906136c3565b600061202160085490565b905060005b828110156113f157600084848381811061205057634e487b7160e01b600052603260045260246000fd5b90506020020160208101906120659190613151565b6001600160a01b03811660009081526013602052604090206001810154905491925090811580612093575080155b156120a057505050612342565b600085815260146020526040902054811415612178576001600160a01b038316600090815260136020908152604080832054601190925282208054919290916120ea9084906137b1565b9091555050604080518082018252600080825260208083018281526001600160a01b0388168084526013835292859020935184555160019093019290925582518581529182018490529187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a35050506000828152601460205260408120556113f1565b600085815260146020526040902054811115612270576000858152601460209081526040808320546001600160a01b0387168452601190925282208054919290916121c49084906137b1565b9091555050600085815260146020908152604091829020548251858152918201526001600160a01b0385169187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a36000858152601460209081526040808320546001600160a01b0387168452601390925282208054919290916122539084906137fc565b909155505050600084815260146020526040812055506113f19050565b6001600160a01b038316600090815260136020908152604080832054601190925282208054919290916122a49084906137b1565b9091555050604080518082018252600080825260208083018281526001600160a01b0388168084526013835292859020935184555160019093019290925582518581529182018490529187917f10ee45f267d8b67443714f8ec4cb39a0309dadf0474dc1cac44b7c3ea83ca0a2910160405180910390a3600085815260146020526040812080548392906123399084906137fc565b90915550505050505b8061234c8161387a565b915050612026565b6007546001600160a01b0316331461237e5760405162461bcd60e51b8152600401610aca906136fa565b600754600160a01b900460ff166123a75760405162461bcd60e51b8152600401610aca9061360c565b6123af610cf8565b5180156123c457506123bf610cf8565b602001515b6123e05760405162461bcd60e51b8152600401610aca906136c3565b6000805b828110156113f157600084848381811061240e57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906124239190613151565b6001600160a01b03811660009081526013602052604081208054600190910154929350909161245291906137dd565b9050806124605750506125cd565b604080518082018252600080825260208083018281526001600160a01b0387168352601382528483209351845551600190930192909255601590915220548015612541576001600160a01b0383811660008181526015602052604080822091909155600b54905163a9059cbb60e01b81526004810192909252602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561250757600080fd5b505af115801561251b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061253f91906133be565b505b6040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015612577573d6000803e3d6000fd5b5061258282866137b1565b60408051848152602081018490529196506001600160a01b038516917fc483c19469a93c9ffc34ec9c7cca650ee66a9fa14605be87a6b239e47527cd8a910160405180910390a25050505b806125d78161387a565b9150506123e4565b6007546001600160a01b031633146126095760405162461bcd60e51b8152600401610aca906136fa565b600b80546001600160a01b039384166001600160a01b031991821617909155600c8054929093169116179055565b600061264260085490565b905090565b6007546001600160a01b031633146126715760405162461bcd60e51b8152600401610aca906136fa565b6001600160a01b0381166126d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aca565b610e9681612b23565b6007546001600160a01b031633146127095760405162461bcd60e51b8152600401610aca906136fa565b600d55565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061274382611434565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000828152600260205260409020546001600160a01b03166127f75760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610aca565b60008281526006602090815260409091208251610c0092840190612ff0565b6000818152600260205260408120546001600160a01b031661288f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610aca565b600061289a83611434565b9050806001600160a01b0316846001600160a01b031614806128d55750836001600160a01b03166128ca84610a55565b6001600160a01b0316145b8061290557506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b031661292082611434565b6001600160a01b0316146129885760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610aca565b6001600160a01b0382166129ea5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610aca565b6129f560008261270e565b6001600160a01b0383166000908152600360205260408120805460019290612a1e9084906137fc565b90915550506001600160a01b0382166000908152600360205260408120805460019290612a4c9084906137b1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600754600160a01b900460ff16612ad65760405162461bcd60e51b8152600401610aca9061360c565b6007805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b805480612bc45760405162461bcd60e51b815260206004820152601b60248201527f436f756e7465723a2064656372656d656e74206f766572666c6f7700000000006044820152606401610aca565b600019019055565b600754600160a01b900460ff1615612c195760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610aca565b6007805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b063390565b612c5f84848461290d565b612c6b84848484612ee3565b6113f15760405162461bcd60e51b8152600401610aca9061363a565b6001600160a01b038216612cdd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610aca565b6000818152600260205260409020546001600160a01b031615612d425760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610aca565b6001600160a01b0382166000908152600360205260408120805460019290612d6b9084906137b1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081612ded5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e175780612e018161387a565b9150612e109050600a836137c9565b9150612df1565b60008167ffffffffffffffff811115612e4057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e6a576020820181803683370190505b5090505b841561290557612e7f6001836137fc565b9150612e8c600a86613895565b612e979060306137b1565b60f81b818381518110612eba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612edc600a866137c9565b9450612e6e565b60006001600160a01b0384163b15612fe557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f279033908990889088906004016135bc565b602060405180830381600087803b158015612f4157600080fd5b505af1925050508015612f71575060408051601f3d908101601f19168201909252612f6e918101906133f6565b60015b612fcb573d808015612f9f576040519150601f19603f3d011682016040523d82523d6000602084013e612fa4565b606091505b508051612fc35760405162461bcd60e51b8152600401610aca9061363a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612905565b506001949350505050565b828054612ffc9061383f565b90600052602060002090601f01602090048101928261301e5760008555613064565b82601f1061303757805160ff1916838001178555613064565b82800160010185558215613064579182015b82811115613064578251825591602001919060010190613049565b50613070929150613074565b5090565b5b808211156130705760008155600101613075565b600067ffffffffffffffff8311156130a3576130a36138d5565b6130b6601f8401601f1916602001613780565b90508281528383830111156130ca57600080fd5b828260208301376000602084830101529392505050565b60008083601f8401126130f2578182fd5b50813567ffffffffffffffff811115613109578182fd5b6020830191508360208260051b850101111561312457600080fd5b9250929050565b600082601f83011261313b578081fd5b61314a83833560208501613089565b9392505050565b600060208284031215613162578081fd5b813561314a816138eb565b6000806040838503121561317f578081fd5b823561318a816138eb565b9150602083013561319a816138eb565b809150509250929050565b6000806000606084860312156131b9578081fd5b83356131c4816138eb565b925060208401356131d4816138eb565b929592945050506040919091013590565b600080600080608085870312156131fa578081fd5b8435613205816138eb565b93506020850135613215816138eb565b925060408501359150606085013567ffffffffffffffff811115613237578182fd5b8501601f81018713613247578182fd5b61325687823560208401613089565b91505092959194509250565b60008060408385031215613274578182fd5b823561327f816138eb565b9150602083013561319a81613900565b600080604083850312156132a1578182fd5b82356132ac816138eb565b946020939093013593505050565b600080602083850312156132cc578182fd5b823567ffffffffffffffff8111156132e2578283fd5b6132ee858286016130e1565b90969095509350505050565b6000602080838503121561330c578182fd5b825167ffffffffffffffff80821115613323578384fd5b818501915085601f830112613336578384fd5b815181811115613348576133486138d5565b8060051b9150613359848301613780565b8181528481019084860184860187018a1015613373578788fd5b8795505b83861015613395578051835260019590950194918601918601613377565b5098975050505050505050565b6000602082840312156133b3578081fd5b813561314a81613900565b6000602082840312156133cf578081fd5b815161314a81613900565b6000602082840312156133eb578081fd5b813561314a8161390e565b600060208284031215613407578081fd5b815161314a8161390e565b600060208284031215613423578081fd5b813567ffffffffffffffff811115613439578182fd5b6129058482850161312b565b600060208284031215613456578081fd5b5035919050565b60006020828403121561346e578081fd5b5051919050565b60008060408385031215613487578182fd5b82359150602083013567ffffffffffffffff8111156134a4578182fd5b6134b08582860161312b565b9150509250929050565b600081518084526134d2816020860160208601613813565b601f01601f19169290920160200192915050565b600081516134f8818560208601613813565b9290920192915050565b600080845482600182811c91508083168061351e57607f831692505b602080841082141561353e57634e487b7160e01b87526022600452602487fd5b81801561355257600181146135635761358f565b60ff1986168952848901965061358f565b60008b815260209020885b868110156135875781548b82015290850190830161356e565b505084890196505b5050505050506135b36135a282866134e6565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135ef908301846134ba565b9695505050505050565b60208152600061314a60208301846134ba565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601f908201527f5468652066696e616c2061756374696f6e20686173206e6f7420656e64656400604082015260600190565b6020808252601e908201527f41756374696f6e20686173206e6f74206265656e20636f6d706c657465640000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156137a9576137a96138d5565b604052919050565b600082198211156137c4576137c46138a9565b500190565b6000826137d8576137d86138bf565b500490565b60008160001904831182151516156137f7576137f76138a9565b500290565b60008282101561380e5761380e6138a9565b500390565b60005b8381101561382e578181015183820152602001613816565b838111156113f15750506000910152565b600181811c9082168061385357607f821691505b6020821081141561387457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561388e5761388e6138a9565b5060010190565b6000826138a4576138a46138bf565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e9657600080fd5b8015158114610e9657600080fd5b6001600160e01b031981168114610e9657600080fdfea26469706673582212200061afd4366cd5aca6e5bcaa3adb4d474d39723599c0445a88a8365fe6688ca964736f6c63430008040033

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

0000000000000000000000000000000000000000000000000000000000000bb8

-----Decoded View---------------
Arg [0] : auctionMintQty (uint256): 3000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000bb8


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.