ETH Price: $2,472.11 (+0.94%)
 

Overview

Max Total Supply

0 ug

Holders

464

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
nonfungibull.eth
0xaca3aaa88930c86975359e783474cb3e1662d674
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

A private, members-only collective of 785 talented traders and investors looking to disrupt and define NFT culture. Membership to the organization and all benefits until June 30, 2023 come from holding the Underground S1 Access Pass NFT.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
underground

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : underground.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./Access.sol";
import "./AbstractERC1155.sol";

contract underground is AbstractERC1155, Access {

    uint256 public SEASON;
    uint256 public seasonCount;

    enum Status {
        idle,
        whitelist,
        auction,
        open
    }

    struct Season {
        uint256 id;
        uint256 maxSupply;
        uint256 whitelistPrice;
        uint256 openPrice;
        DutchAuctionConfig dutchAuctionConfig;
        Status status;
        bytes32 merkleRoot;
    }

    struct DutchAuctionConfig {
        uint256 startPoint;
        uint256 startPrice;
        uint256 decreaseInterval;
        uint256 decreaseSize;
        uint256 numDecreases;
    }

    mapping(uint256 => Season) public seasons;
    mapping(uint256 => mapping(address => bool)) mintedPerWallet;
    event Purchased(uint256 indexed index, address indexed account, uint256 amount);

    constructor(
        string memory _name,
        string memory _symbol,
        string memory _uri
    ) ERC1155(_uri) {
        name_ = _name;
        symbol_ = _symbol;
        transferOwnership(tx.origin);
    }

    modifier verifyMint(uint256 _price) {
        require(tx.origin == msg.sender, "underground: only eoa");
        require(!mintedPerWallet[SEASON][msg.sender], "underground: already minted");
        require(msg.value >= _price, "underground: invalid value sent");
        _;
    }

    modifier verifySeasonId(uint256 _id) {
        require(_id > 0 && _id <= seasonCount, "underground: invalid season id");
        _;
    }

    function setStatus(uint256 _id, Status _status) external onlyAdmin verifySeasonId(_id) {
        seasons[_id].status = _status;
        if(_status == Status.auction) {
            // start the auction
            seasons[_id].dutchAuctionConfig.startPoint = block.timestamp;
        }
    }

    function setSeason(uint256 _id) public onlyAdmin verifySeasonId(_id) {
        require(_id > 0 && _id <= seasonCount, "underground: invalid season id");
        SEASON = _id;
    }

    function createNewSeason(
        uint256 _maxSupply,
        uint256 _whitelistPrice,
        uint256 _openPrice,
        DutchAuctionConfig memory _dutchAuctionConfig,
        uint256 _expectedReserve,
        bytes32 _merkleRoot
    ) external onlyAdmin {
        seasonCount++;
        editSeason(seasonCount, _maxSupply, _whitelistPrice, _openPrice, _dutchAuctionConfig, _expectedReserve, _merkleRoot);
        setSeason(seasonCount);
    }

    function editSeason(
        uint256 _id,
        uint256 _maxSupply,
        uint256 _whitelistPrice,
        uint256 _openPrice,
        DutchAuctionConfig memory _dutchAuctionConfig,
        uint256 _expectedReserve,
        bytes32 _merkleRoot
    ) public onlyAdmin verifySeasonId(_id) {
        require(totalSupply(_id) <= _maxSupply, "underground: invalid maxSupply");
        require(_dutchAuctionConfig.decreaseInterval > 0, "underground: zero decrease interval");
        unchecked {
            require(_dutchAuctionConfig.startPrice - _dutchAuctionConfig.decreaseSize * _dutchAuctionConfig.numDecreases == _expectedReserve, "underground: incorrect reserve");
        }

        seasons[_id] = Season(
            _id,
            _maxSupply,
            _whitelistPrice,
            _openPrice,
            _dutchAuctionConfig,
            seasons[_id].status,
            _merkleRoot
        );
    }

    function editWhitelist(uint256 _id, uint256 _whitelistPrice, bytes32 _merkleRoot) external onlyAdmin verifySeasonId(_id) {
        seasons[_id].whitelistPrice = _whitelistPrice;
        seasons[_id].merkleRoot = _merkleRoot;
    }

    function editOpen(uint256 _id, uint256 _openPrice) external onlyAdmin verifySeasonId(_id) {
        seasons[_id].openPrice = _openPrice;
    }

    function editAuction(uint256 _id, DutchAuctionConfig memory _dutchAuctionConfig, uint256 _expectedReserve) external onlyAdmin verifySeasonId(_id) {
        require(_dutchAuctionConfig.decreaseInterval > 0, "underground: zero decrease interval");
        unchecked {
            require(_dutchAuctionConfig.startPrice - _dutchAuctionConfig.decreaseSize * _dutchAuctionConfig.numDecreases == _expectedReserve, "underground: incorrect reserve");
        }
        seasons[_id].dutchAuctionConfig = _dutchAuctionConfig;
    }

    function editSupply(uint256 _id, uint256 _maxSupply) external onlyAdmin verifySeasonId(_id) {
        require(totalSupply(_id) <= _maxSupply, "underground: invalid maxSupply");
        seasons[_id].maxSupply = _maxSupply;
    }

    function devMint(uint256 _amount, address _to) external onlyOwner {
        require(totalSupply(SEASON) + _amount <= seasons[SEASON].maxSupply, "underground: cap for season reached");
        _mint(_to, SEASON, _amount, "");
    }

    function devMintMultiple(address[] calldata _to) external onlyOwner {
        uint256 l = _to.length;
        require(totalSupply(SEASON) + l <= seasons[SEASON].maxSupply, "underground: cap for season reached");

        for(uint256 i = 0; i < l; i++) {
            _mint(_to[i], SEASON, 1, "");
        }
    }

    function whitelistMint(bytes32[] calldata _merkleProof) external payable verifyMint(seasons[SEASON].whitelistPrice) {
        require(seasons[SEASON].status == Status.whitelist, "underground: whitelist not started");

        bytes32 node = keccak256(abi.encodePacked(SEASON, msg.sender));
        require(
            MerkleProof.verify(_merkleProof, seasons[SEASON].merkleRoot, node),
            "underground: invalid proof"
        );
        _internalMint(1);
    }

    function auctionMint() external payable verifyMint(_cost(1)) {
        require(seasons[SEASON].status == Status.auction, "underground: auction not started");
        _internalMint(1);
    }

    function openMint() external payable verifyMint(seasons[SEASON].openPrice) {
        require(seasons[SEASON].status == Status.open, "underground: open not started");
        _internalMint(1);
    }

    function _internalMint(uint256 _amount) internal {
        require(totalSupply(SEASON) + _amount <= seasons[SEASON].maxSupply, "underground: cap for season reached");
        mintedPerWallet[SEASON][msg.sender] = true;

        _mint(msg.sender, SEASON, _amount, "");
        emit Purchased(SEASON, msg.sender, _amount);
    }

    function _cost(uint256 n) internal view returns (uint256) {
        DutchAuctionConfig storage cfg = seasons[SEASON].dutchAuctionConfig;
        return n * (cfg.startPrice - Math.min((block.timestamp - cfg.startPoint) / cfg.decreaseInterval, cfg.numDecreases) * cfg.decreaseSize);
    }

    function currentDutchAuctionPrice() external view returns(uint256) {
        require(seasons[SEASON].status == Status.auction, "underground: auction not started");
        return _cost(1);
    }

    function uri(uint256 _id) public view override returns (string memory) {
        require(exists(_id), "URI: nonexistent token");
        return string(abi.encodePacked(super.uri(_id), Strings.toString(_id)));
    }

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }  

    function withdraw() external onlyOwner {
        owner().call{value: address(this).balance}("");
    }

    // in case of member ban
    function grab(uint256 _id, address _from, address _to, uint256 _amount) external onlyOwner {
        _safeTransferFrom(_from, _to, _id, _amount, "");
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 4 of 16 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 6 of 16 : Access.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";

contract Access is Ownable {

    mapping(address => bool) public isAdmin;
    
    modifier onlyAdmin() {
        require(isAdmin[msg.sender] || msg.sender == owner(), "underground: only admin");
        _;
    }

    function addAdmin(address _admin) external onlyOwner {
        isAdmin[_admin] = true;
    }

    function addAdmins(address[] calldata _admins) external onlyOwner {
        uint256 l = _admins.length;
        for(uint256 i = 0; i < l; i++) {
            isAdmin[_admins[i]] = true;
        }
    }

    function removeAdmin(address _admin) external onlyOwner {
        isAdmin[_admin] = false;
    }

    function removeAdmins(address[] calldata _admins) external onlyOwner {
        uint256 l = _admins.length;
        for(uint256 i = 0; i < l; i++) {
            isAdmin[_admins[i]] = false;
        }
    }
}

File 7 of 16 : AbstractERC1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol";

abstract contract AbstractERC1155 is ERC1155Supply {

    string name_;
    string symbol_;   

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 11 of 16 : ERC1155Supply.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return ERC1155Supply.totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}

File 12 of 16 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Purchased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"SEASON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_admins","type":"address[]"}],"name":"addAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"_openPrice","type":"uint256"},{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint256","name":"numDecreases","type":"uint256"}],"internalType":"struct underground.DutchAuctionConfig","name":"_dutchAuctionConfig","type":"tuple"},{"internalType":"uint256","name":"_expectedReserve","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"createNewSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentDutchAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"}],"name":"devMintMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint256","name":"numDecreases","type":"uint256"}],"internalType":"struct underground.DutchAuctionConfig","name":"_dutchAuctionConfig","type":"tuple"},{"internalType":"uint256","name":"_expectedReserve","type":"uint256"}],"name":"editAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_openPrice","type":"uint256"}],"name":"editOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"_openPrice","type":"uint256"},{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint256","name":"numDecreases","type":"uint256"}],"internalType":"struct underground.DutchAuctionConfig","name":"_dutchAuctionConfig","type":"tuple"},{"internalType":"uint256","name":"_expectedReserve","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"editSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"editSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_whitelistPrice","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"editWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"grab","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_admins","type":"address[]"}],"name":"removeAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seasonCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasons","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"whitelistPrice","type":"uint256"},{"internalType":"uint256","name":"openPrice","type":"uint256"},{"components":[{"internalType":"uint256","name":"startPoint","type":"uint256"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"decreaseInterval","type":"uint256"},{"internalType":"uint256","name":"decreaseSize","type":"uint256"},{"internalType":"uint256","name":"numDecreases","type":"uint256"}],"internalType":"struct underground.DutchAuctionConfig","name":"dutchAuctionConfig","type":"tuple"},{"internalType":"enum underground.Status","name":"status","type":"uint8"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"enum underground.Status","name":"_status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setURI","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":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620044d1380380620044d183398101604081905262000034916200033f565b8062000040816200008c565b506200004c33620000a5565b825162000061906004906020860190620001cc565b50815162000077906005906020850190620001cc565b506200008332620000f7565b5050506200040d565b8051620000a1906002906020840190620001cc565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6006546001600160a01b03163314620001575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620001be5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016200014e565b620001c981620000a5565b50565b828054620001da90620003d0565b90600052602060002090601f016020900481019282620001fe576000855562000249565b82601f106200021957805160ff191683800117855562000249565b8280016001018555821562000249579182015b82811115620002495782518255916020019190600101906200022c565b50620002579291506200025b565b5090565b5b808211156200025757600081556001016200025c565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200029a57600080fd5b81516001600160401b0380821115620002b757620002b762000272565b604051601f8301601f19908116603f01168101908282118183101715620002e257620002e262000272565b81604052838152602092508683858801011115620002ff57600080fd5b600091505b8382101562000323578582018301518183018401529082019062000304565b83821115620003355760008385830101525b9695505050505050565b6000806000606084860312156200035557600080fd5b83516001600160401b03808211156200036d57600080fd5b6200037b8783880162000288565b945060208601519150808211156200039257600080fd5b620003a08783880162000288565b93506040860151915080821115620003b757600080fd5b50620003c68682870162000288565b9150509250925092565b600181811c90821680620003e557607f821691505b602082108114156200040757634e487b7160e01b600052602260045260246000fd5b50919050565b6140b4806200041d6000396000f3fe6080604052600436106102ba5760003560e01c80637e36cfd01161016e578063bd85b039116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610773578063f5d709a114610793578063f9558b621461083b57600080fd5b8063e985e9c51461070a578063f242432a1461075357600080fd5b8063c46ebe71116100b0578063c46ebe71146106c2578063cf3968c0146106ca578063d896dd64146106ea57600080fd5b8063bd85b03914610680578063c2fd291f146106ad57600080fd5b8063a08517b611610122578063af88fac911610107578063af88fac914610638578063b17c1d9d14610658578063bce6d6721461067857600080fd5b8063a08517b6146105f8578063a22cb4651461061857600080fd5b80638fc3045c116101535780638fc3045c146105a357806395d89b41146105c35780639c54df64146105d857600080fd5b80637e36cfd01461055b5780638da5cb5b1461057b57600080fd5b8063372f657c1161021c5780636bc67ad4116101d0578063715018a6116101b5578063715018a61461051a578063715f8fe81461052f5780637bf544d51461054557600080fd5b80636bc67ad4146104da57806370480275146104fa57600080fd5b80633ccfd60b116102015780633ccfd60b146104695780634e1273f41461047e5780634f558e79146104ab57600080fd5b8063372f657c14610436578063377e11e01461044957600080fd5b80631785f53c1161027357806327bb5ab71161025857806327bb5ab7146103d65780632d1a12f6146103f65780632eb2c2d61461041657600080fd5b80631785f53c1461038657806324d7806c146103a657600080fd5b806302fe5305116102a457806302fe53051461032257806306fdde03146103445780630e89341c1461036657600080fd5b8062fdd58e146102bf57806301ffc9a7146102f2575b600080fd5b3480156102cb57600080fd5b506102df6102da3660046134fd565b61085b565b6040519081526020015b60405180910390f35b3480156102fe57600080fd5b5061031261030d36600461353d565b610904565b60405190151581526020016102e9565b34801561032e57600080fd5b5061034261033d3660046135fb565b6109a1565b005b34801561035057600080fd5b506103596109f5565b6040516102e9919061369c565b34801561037257600080fd5b506103596103813660046136af565b610a87565b34801561039257600080fd5b506103426103a13660046136c8565b610b1e565b3480156103b257600080fd5b506103126103c13660046136c8565b60076020526000908152604090205460ff1681565b3480156103e257600080fd5b506103426103f1366004613753565b610b87565b34801561040257600080fd5b506103426104113660046137a8565b610c2e565b34801561042257600080fd5b50610342610431366004613889565b610d1d565b61034261044436600461397f565b610dbf565b34801561045557600080fd5b5061034261046436600461397f565b611075565b34801561047557600080fd5b50610342611130565b34801561048a57600080fd5b5061049e6104993660046139c1565b6111cf565b6040516102e99190613ac7565b3480156104b757600080fd5b506103126104c63660046136af565b600090815260036020526040902054151590565b3480156104e657600080fd5b506103426104f5366004613ada565b61130d565b34801561050657600080fd5b506103426105153660046136c8565b6113f9565b34801561052657600080fd5b50610342611465565b34801561053b57600080fd5b506102df60095481565b34801561055157600080fd5b506102df60085481565b34801561056757600080fd5b50610342610576366004613b06565b6114b9565b34801561058757600080fd5b506006546040516001600160a01b0390911681526020016102e9565b3480156105af57600080fd5b506103426105be366004613b28565b6115fa565b3480156105cf57600080fd5b5061035961165e565b3480156105e457600080fd5b506103426105f336600461397f565b61166d565b34801561060457600080fd5b50610342610613366004613b06565b611728565b34801561062457600080fd5b50610342610633366004613b6c565b61180b565b34801561064457600080fd5b506103426106533660046136af565b611816565b34801561066457600080fd5b5061034261067336600461397f565b611947565b610342611a79565b34801561068c57600080fd5b506102df61069b3660046136af565b60009081526003602052604090205490565b3480156106b957600080fd5b506102df611c1c565b610342611ca5565b3480156106d657600080fd5b506103426106e5366004613ba8565b611e33565b3480156106f657600080fd5b50610342610705366004613c08565b612128565b34801561071657600080fd5b50610312610725366004613c31565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561075f57600080fd5b5061034261076e366004613c5b565b61225b565b34801561077f57600080fd5b5061034261078e3660046136c8565b6122f6565b34801561079f57600080fd5b506108286107ae3660046136af565b600a602081815260009283526040928390208054600182015460028301546003840154875160a0810189526004860154815260058601549681019690965260068501549786019790975260078401546060860152600884015460808601526009840154939095015491959094939092909160ff9091169087565b6040516102e99796959493929190613cd6565b34801561084757600080fd5b50610342610856366004613d59565b6123c3565b60006001600160a01b0383166108de5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061096757506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061099b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b031633146109e95760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6109f281612592565b50565b606060048054610a0490613d8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3090613d8f565b8015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b5050505050905090565b600081815260036020526040902054606090610ae55760405162461bcd60e51b815260206004820152601660248201527f5552493a206e6f6e6578697374656e7420746f6b656e0000000000000000000060448201526064016108d5565b610aee826125a5565b610af783612639565b604051602001610b08929190613dca565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314610b665760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b03166000908152600760205260409020805460ff19169055565b3360009081526007602052604090205460ff1680610baf57506006546001600160a01b031633145b610bf55760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b60098054906000610c0583613e0f565b9190505550610c1b600954878787878787611e33565b610c26600954611816565b505050505050565b6006546001600160a01b03163314610c765760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6008546000908152600a6020908152604080832060010154600390925290912054610ca2908490613e2a565b1115610cfc5760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b610d19816008548460405180602001604052806000815250612773565b5050565b6001600160a01b038516331480610d395750610d398533610725565b610dab5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016108d5565b610db8858585858561289f565b5050505050565b6008546000908152600a6020526040902060020154323314610e235760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615610e905760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015610ee05760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60016008546000908152600a602052604090206009015460ff166003811115610f0b57610f0b613cc0565b14610f7e5760405162461bcd60e51b815260206004820152602260248201527f756e64657267726f756e643a2077686974656c697374206e6f7420737461727460448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016108d5565b600060085433604051602001610fb092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905061101984848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a6020819052604090912001549250859150612b189050565b6110655760405162461bcd60e51b815260206004820152601a60248201527f756e64657267726f756e643a20696e76616c69642070726f6f6600000000000060448201526064016108d5565b61106f6001612b2e565b50505050565b6006546001600160a01b031633146110bd5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b8060005b8181101561106f576000600760008686858181106110e1576110e1613e42565b90506020020160208101906110f691906136c8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061112881613e0f565b9150506110c1565b6006546001600160a01b031633146111785760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6006546040516001600160a01b03909116904790600081818185875af1925050503d80600081146111c5576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b606091505b505050565b606081518351146112485760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016108d5565b6000835167ffffffffffffffff8111156112645761126461355a565b60405190808252806020026020018201604052801561128d578160200160208202803683370190505b50905060005b8451811015611305576112d88582815181106112b1576112b1613e42565b60200260200101518583815181106112cb576112cb613e42565b602002602001015161085b565b8282815181106112ea576112ea613e42565b60209081029190910101526112fe81613e0f565b9050611293565b509392505050565b3360009081526007602052604090205460ff168061133557506006546001600160a01b031633145b61137b5760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8260008111801561138e57506009548111155b6113da5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b506000928352600a602081905260409093206002810192909255910155565b6006546001600160a01b031633146114415760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006546001600160a01b031633146114ad5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6114b76000612c34565b565b3360009081526007602052604090205460ff16806114e157506006546001600160a01b031633145b6115275760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8160008111801561153a57506009548111155b6115865760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000838152600360205260409020548210156115e45760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c6964206d6178537570706c79000060448201526064016108d5565b506000918252600a602052604090912060010155565b6006546001600160a01b031633146116425760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b61106f8383868460405180602001604052806000815250612c9e565b606060058054610a0490613d8f565b6006546001600160a01b031633146116b55760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b8060005b8181101561106f576001600760008686858181106116d9576116d9613e42565b90506020020160208101906116ee91906136c8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061172081613e0f565b9150506116b9565b3360009081526007602052604090205460ff168061175057506006546001600160a01b031633145b6117965760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b816000811180156117a957506009548111155b6117f55760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b506000918252600a602052604090912060030155565b610d19338383612e3c565b3360009081526007602052604090205460ff168061183e57506006546001600160a01b031633145b6118845760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8060008111801561189757506009548111155b6118e35760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000821180156118f557506009548211155b6119415760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b50600855565b6006546001600160a01b0316331461198f5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6008546000908152600a60209081526040808320600101546003909252909120548291906119be908390613e2a565b1115611a185760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b60005b8181101561106f57611a67848483818110611a3857611a38613e42565b9050602002016020810190611a4d91906136c8565b600854600160405180602001604052806000815250612773565b80611a7181613e0f565b915050611a1b565b6008546000908152600a6020526040902060030154323314611add5760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615611b4a5760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015611b9a5760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60036008546000908152600a602052604090206009015460ff166003811115611bc557611bc5613cc0565b14611c125760405162461bcd60e51b815260206004820152601d60248201527f756e64657267726f756e643a206f70656e206e6f74207374617274656400000060448201526064016108d5565b6109f26001612b2e565b600060026008546000908152600a602052604090206009015460ff166003811115611c4957611c49613cc0565b14611c965760405162461bcd60e51b815260206004820181905260248201527f756e64657267726f756e643a2061756374696f6e206e6f74207374617274656460448201526064016108d5565b611ca06001612f31565b905090565b611caf6001612f31565b323314611cfe5760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615611d6b5760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015611dbb5760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60026008546000908152600a602052604090206009015460ff166003811115611de657611de6613cc0565b14611c125760405162461bcd60e51b815260206004820181905260248201527f756e64657267726f756e643a2061756374696f6e206e6f74207374617274656460448201526064016108d5565b3360009081526007602052604090205460ff1680611e5b57506006546001600160a01b031633145b611ea15760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b86600081118015611eb457506009548111155b611f005760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b600088815260036020526040902054871015611f5e5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c6964206d6178537570706c79000060448201526064016108d5565b6000846040015111611fbe5760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a207a65726f20646563726561736520696e7465726044820152621d985b60ea1b60648201526084016108d5565b8284608001518560600151028560200151031461201d5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e636f72726563742072657365727665000060448201526064016108d5565b6040805160e08101825289815260208082018a9052818301899052606082018890526080820187905260008b8152600a909152919091206009015460a082019060ff16600381111561207157612071613cc0565b8152602090810184905260008a8152600a82526040908190208351815583830151600180830191909155848301516002830155606080860151600380850191909155608080880151805160048701559687015160058601559486015160068501559085015160078401559390920151600882015560a084015160098201805492949193909260ff191691849081111561210c5761210c613cc0565b021790555060c082015181600a01559050505050505050505050565b3360009081526007602052604090205460ff168061215057506006546001600160a01b031633145b6121965760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b816000811180156121a957506009548111155b6121f55760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000838152600a60205260409020600901805483919060ff1916600183600381111561222357612223613cc0565b0217905550600282600381111561223c5761223c613cc0565b14156111ca5750506000908152600a6020526040902042600490910155565b6001600160a01b03851633148061227757506122778533610725565b6122e95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016108d5565b610db88585858585612c9e565b6006546001600160a01b0316331461233e5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b0381166123ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108d5565b6109f281612c34565b3360009081526007602052604090205460ff16806123eb57506006546001600160a01b031633145b6124315760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8260008111801561244457506009548111155b6124905760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b60008360400151116124f05760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a207a65726f20646563726561736520696e7465726044820152621d985b60ea1b60648201526084016108d5565b8183608001518460600151028460200151031461254f5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e636f72726563742072657365727665000060448201526064016108d5565b50506000918252600a6020908152604092839020825160048201559082015160058201559181015160068301556060810151600783015560800151600890910155565b8051610d19906002906020840190613448565b6060600280546125b490613d8f565b80601f01602080910402602001604051908101604052809291908181526020018280546125e090613d8f565b801561262d5780601f106126025761010080835404028352916020019161262d565b820191906000526020600020905b81548152906001019060200180831161261057829003601f168201915b50505050509050919050565b60608161267957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126a3578061268d81613e0f565b915061269c9050600a83613e6e565b915061267d565b60008167ffffffffffffffff8111156126be576126be61355a565b6040519080825280601f01601f1916602001820160405280156126e8576020820181803683370190505b5090505b841561276b576126fd600183613e82565b915061270a600a86613e99565b612715906030613e2a565b60f81b81838151811061272a5761272a613e42565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612764600a86613e6e565b94506126ec565b949350505050565b6001600160a01b0384166127ef5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108d5565b3361280f8160008761280088612fa1565b61280988612fa1565b87612fec565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061283f908490613e2a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610db881600087878787612ffa565b81518351146129165760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016108d5565b6001600160a01b03841661297a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b33612989818787878787612fec565b60005b8451811015612ab25760008582815181106129a9576129a9613e42565b6020026020010151905060008583815181106129c7576129c7613e42565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612a5a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108d5565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612a97908490613e2a565b9250508190555050505080612aab90613e0f565b905061298c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b02929190613ead565b60405180910390a4610c268187878787876131af565b600082612b2585846132ba565b14949350505050565b6008546000908152600a6020908152604080832060010154600390925290912054612b5a908390613e2a565b1115612bb45760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b600880546000908152600b6020908152604080832033808552908352818420805460ff1916600117905593548151928301909152918152612bf89291908490612773565b6008546040518281523391907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416612d025760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b33612d1281878761280088612fa1565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612d965760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108d5565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612dd3908490613e2a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e33828888888888612ffa565b50505050505050565b816001600160a01b0316836001600160a01b03161415612ec45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016108d5565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6008546000908152600a6020526040812060078101546006820154600490920180549092612f7791612f639042613e82565b612f6d9190613e6e565b8360040154613326565b612f819190613edb565b8160010154612f909190613e82565b612f9a9084613edb565b9392505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612fdb57612fdb613e42565b602090810291909101015292915050565b610c2686868686868661333c565b6001600160a01b0384163b15610c265760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061303e9089908990889088908890600401613efa565b602060405180830381600087803b15801561305857600080fd5b505af1925050508015613088575060408051601f3d908101601f1916820190925261308591810190613f3d565b60015b61313e57613094613f5a565b806308c379a014156130ce57506130a9613f76565b806130b457506130d0565b8060405162461bcd60e51b81526004016108d5919061369c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016108d5565b6001600160e01b0319811663f23a6e6160e01b14612e335760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108d5565b6001600160a01b0384163b15610c265760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906131f39089908990889088908890600401614000565b602060405180830381600087803b15801561320d57600080fd5b505af192505050801561323d575060408051601f3d908101601f1916820190925261323a91810190613f3d565b60015b61324957613094613f5a565b6001600160e01b0319811663bc197c8160e01b14612e335760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108d5565b600081815b84518110156113055760008582815181106132dc576132dc613e42565b602002602001015190508083116133025760008381526020829052604090209250613313565b600081815260208490526040902092505b508061331e81613e0f565b9150506132bf565b60008183106133355781612f9a565b5090919050565b6001600160a01b0385166133c35760005b83518110156133c15782818151811061336857613368613e42565b60200260200101516003600086848151811061338657613386613e42565b6020026020010151815260200190815260200160002060008282546133ab9190613e2a565b909155506133ba905081613e0f565b905061334d565b505b6001600160a01b038416610c265760005b8351811015612e33578281815181106133ef576133ef613e42565b60200260200101516003600086848151811061340d5761340d613e42565b6020026020010151815260200190815260200160002060008282546134329190613e82565b90915550613441905081613e0f565b90506133d4565b82805461345490613d8f565b90600052602060002090601f01602090048101928261347657600085556134bc565b82601f1061348f57805160ff19168380011785556134bc565b828001600101855582156134bc579182015b828111156134bc5782518255916020019190600101906134a1565b506134c89291506134cc565b5090565b5b808211156134c857600081556001016134cd565b80356001600160a01b03811681146134f857600080fd5b919050565b6000806040838503121561351057600080fd5b613519836134e1565b946020939093013593505050565b6001600160e01b0319811681146109f257600080fd5b60006020828403121561354f57600080fd5b8135612f9a81613527565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156135965761359661355a565b6040525050565b600067ffffffffffffffff8311156135b7576135b761355a565b6040516135ce601f8501601f191660200182613570565b8091508381528484840111156135e357600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561360d57600080fd5b813567ffffffffffffffff81111561362457600080fd5b8201601f8101841361363557600080fd5b61276b8482356020840161359d565b60005b8381101561365f578181015183820152602001613647565b8381111561106f5750506000910152565b60008151808452613688816020860160208601613644565b601f01601f19169290920160200192915050565b602081526000612f9a6020830184613670565b6000602082840312156136c157600080fd5b5035919050565b6000602082840312156136da57600080fd5b612f9a826134e1565b600060a082840312156136f557600080fd5b60405160a0810181811067ffffffffffffffff821117156137185761371861355a565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b600080600080600080610140878903121561376d57600080fd5b86359550602087013594506040870135935061378c88606089016136e3565b9250610100870135915061012087013590509295509295509295565b600080604083850312156137bb57600080fd5b823591506137cb602084016134e1565b90509250929050565b600067ffffffffffffffff8211156137ee576137ee61355a565b5060051b60200190565b600082601f83011261380957600080fd5b81356020613816826137d4565b6040516138238282613570565b83815260059390931b850182019282810191508684111561384357600080fd5b8286015b8481101561385e5780358352918301918301613847565b509695505050505050565b600082601f83011261387a57600080fd5b612f9a8383356020850161359d565b600080600080600060a086880312156138a157600080fd5b6138aa866134e1565b94506138b8602087016134e1565b9350604086013567ffffffffffffffff808211156138d557600080fd5b6138e189838a016137f8565b945060608801359150808211156138f757600080fd5b61390389838a016137f8565b9350608088013591508082111561391957600080fd5b5061392688828901613869565b9150509295509295909350565b60008083601f84011261394557600080fd5b50813567ffffffffffffffff81111561395d57600080fd5b6020830191508360208260051b850101111561397857600080fd5b9250929050565b6000806020838503121561399257600080fd5b823567ffffffffffffffff8111156139a957600080fd5b6139b585828601613933565b90969095509350505050565b600080604083850312156139d457600080fd5b823567ffffffffffffffff808211156139ec57600080fd5b818501915085601f830112613a0057600080fd5b81356020613a0d826137d4565b604051613a1a8282613570565b83815260059390931b8501820192828101915089841115613a3a57600080fd5b948201945b83861015613a5f57613a50866134e1565b82529482019490820190613a3f565b96505086013592505080821115613a7557600080fd5b50613a82858286016137f8565b9150509250929050565b600081518084526020808501945080840160005b83811015613abc57815187529582019590820190600101613aa0565b509495945050505050565b602081526000612f9a6020830184613a8c565b600080600060608486031215613aef57600080fd5b505081359360208301359350604090920135919050565b60008060408385031215613b1957600080fd5b50508035926020909101359150565b60008060008060808587031215613b3e57600080fd5b84359350613b4e602086016134e1565b9250613b5c604086016134e1565b9396929550929360600135925050565b60008060408385031215613b7f57600080fd5b613b88836134e1565b915060208301358015158114613b9d57600080fd5b809150509250929050565b6000806000806000806000610160888a031215613bc457600080fd5b87359650602088013595506040880135945060608801359350613bea8960808a016136e3565b92506101208801359150610140880135905092959891949750929550565b60008060408385031215613c1b57600080fd5b82359150602083013560048110613b9d57600080fd5b60008060408385031215613c4457600080fd5b613c4d836134e1565b91506137cb602084016134e1565b600080600080600060a08688031215613c7357600080fd5b613c7c866134e1565b9450613c8a602087016134e1565b93506040860135925060608601359150608086013567ffffffffffffffff811115613cb457600080fd5b61392688828901613869565b634e487b7160e01b600052602160045260246000fd5b60006101608201905088825287602083015286604083015285606083015284516080830152602085015160a0830152604085015160c0830152606085015160e0830152608085015161010083015260048410613d4257634e487b7160e01b600052602160045260246000fd5b610120820193909352610140015295945050505050565b600080600060e08486031215613d6e57600080fd5b83359250613d7f85602086016136e3565b915060c084013590509250925092565b600181811c90821680613da357607f821691505b60208210811415613dc457634e487b7160e01b600052602260045260246000fd5b50919050565b60008351613ddc818460208801613644565b835190830190613df0818360208801613644565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e2357613e23613df9565b5060010190565b60008219821115613e3d57613e3d613df9565b500190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613e7d57613e7d613e58565b500490565b600082821015613e9457613e94613df9565b500390565b600082613ea857613ea8613e58565b500690565b604081526000613ec06040830185613a8c565b8281036020840152613ed28185613a8c565b95945050505050565b6000816000190483118215151615613ef557613ef5613df9565b500290565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613f3260a0830184613670565b979650505050505050565b600060208284031215613f4f57600080fd5b8151612f9a81613527565b600060033d1115613f735760046000803e5060005160e01c5b90565b600060443d1015613f845790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613fb457505050505090565b8285019150815181811115613fcc5750505050505090565b843d8701016020828501011115613fe65750505050505090565b613ff560208286010187613570565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261402c60a0830186613a8c565b828103606084015261403e8186613a8c565b905082810360808401526140528185613670565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ae3230a40923eb64e2236210e2c14025620898f0706b759620ec78ea0e6317d364736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b756e64657267726f756e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f756e64657267726f756e642e6d7970696e6174612e636c6f75642f697066732f516d54396d467732324e7452586a336b6146436558716e6943576a5453427137386d5273754e424d7375727a67522f000000000000000000

Deployed Bytecode

0x6080604052600436106102ba5760003560e01c80637e36cfd01161016e578063bd85b039116100cb578063e985e9c51161007f578063f2fde38b11610064578063f2fde38b14610773578063f5d709a114610793578063f9558b621461083b57600080fd5b8063e985e9c51461070a578063f242432a1461075357600080fd5b8063c46ebe71116100b0578063c46ebe71146106c2578063cf3968c0146106ca578063d896dd64146106ea57600080fd5b8063bd85b03914610680578063c2fd291f146106ad57600080fd5b8063a08517b611610122578063af88fac911610107578063af88fac914610638578063b17c1d9d14610658578063bce6d6721461067857600080fd5b8063a08517b6146105f8578063a22cb4651461061857600080fd5b80638fc3045c116101535780638fc3045c146105a357806395d89b41146105c35780639c54df64146105d857600080fd5b80637e36cfd01461055b5780638da5cb5b1461057b57600080fd5b8063372f657c1161021c5780636bc67ad4116101d0578063715018a6116101b5578063715018a61461051a578063715f8fe81461052f5780637bf544d51461054557600080fd5b80636bc67ad4146104da57806370480275146104fa57600080fd5b80633ccfd60b116102015780633ccfd60b146104695780634e1273f41461047e5780634f558e79146104ab57600080fd5b8063372f657c14610436578063377e11e01461044957600080fd5b80631785f53c1161027357806327bb5ab71161025857806327bb5ab7146103d65780632d1a12f6146103f65780632eb2c2d61461041657600080fd5b80631785f53c1461038657806324d7806c146103a657600080fd5b806302fe5305116102a457806302fe53051461032257806306fdde03146103445780630e89341c1461036657600080fd5b8062fdd58e146102bf57806301ffc9a7146102f2575b600080fd5b3480156102cb57600080fd5b506102df6102da3660046134fd565b61085b565b6040519081526020015b60405180910390f35b3480156102fe57600080fd5b5061031261030d36600461353d565b610904565b60405190151581526020016102e9565b34801561032e57600080fd5b5061034261033d3660046135fb565b6109a1565b005b34801561035057600080fd5b506103596109f5565b6040516102e9919061369c565b34801561037257600080fd5b506103596103813660046136af565b610a87565b34801561039257600080fd5b506103426103a13660046136c8565b610b1e565b3480156103b257600080fd5b506103126103c13660046136c8565b60076020526000908152604090205460ff1681565b3480156103e257600080fd5b506103426103f1366004613753565b610b87565b34801561040257600080fd5b506103426104113660046137a8565b610c2e565b34801561042257600080fd5b50610342610431366004613889565b610d1d565b61034261044436600461397f565b610dbf565b34801561045557600080fd5b5061034261046436600461397f565b611075565b34801561047557600080fd5b50610342611130565b34801561048a57600080fd5b5061049e6104993660046139c1565b6111cf565b6040516102e99190613ac7565b3480156104b757600080fd5b506103126104c63660046136af565b600090815260036020526040902054151590565b3480156104e657600080fd5b506103426104f5366004613ada565b61130d565b34801561050657600080fd5b506103426105153660046136c8565b6113f9565b34801561052657600080fd5b50610342611465565b34801561053b57600080fd5b506102df60095481565b34801561055157600080fd5b506102df60085481565b34801561056757600080fd5b50610342610576366004613b06565b6114b9565b34801561058757600080fd5b506006546040516001600160a01b0390911681526020016102e9565b3480156105af57600080fd5b506103426105be366004613b28565b6115fa565b3480156105cf57600080fd5b5061035961165e565b3480156105e457600080fd5b506103426105f336600461397f565b61166d565b34801561060457600080fd5b50610342610613366004613b06565b611728565b34801561062457600080fd5b50610342610633366004613b6c565b61180b565b34801561064457600080fd5b506103426106533660046136af565b611816565b34801561066457600080fd5b5061034261067336600461397f565b611947565b610342611a79565b34801561068c57600080fd5b506102df61069b3660046136af565b60009081526003602052604090205490565b3480156106b957600080fd5b506102df611c1c565b610342611ca5565b3480156106d657600080fd5b506103426106e5366004613ba8565b611e33565b3480156106f657600080fd5b50610342610705366004613c08565b612128565b34801561071657600080fd5b50610312610725366004613c31565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561075f57600080fd5b5061034261076e366004613c5b565b61225b565b34801561077f57600080fd5b5061034261078e3660046136c8565b6122f6565b34801561079f57600080fd5b506108286107ae3660046136af565b600a602081815260009283526040928390208054600182015460028301546003840154875160a0810189526004860154815260058601549681019690965260068501549786019790975260078401546060860152600884015460808601526009840154939095015491959094939092909160ff9091169087565b6040516102e99796959493929190613cd6565b34801561084757600080fd5b50610342610856366004613d59565b6123c3565b60006001600160a01b0383166108de5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b031982167fd9b67a2600000000000000000000000000000000000000000000000000000000148061096757506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061099b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6006546001600160a01b031633146109e95760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6109f281612592565b50565b606060048054610a0490613d8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3090613d8f565b8015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b5050505050905090565b600081815260036020526040902054606090610ae55760405162461bcd60e51b815260206004820152601660248201527f5552493a206e6f6e6578697374656e7420746f6b656e0000000000000000000060448201526064016108d5565b610aee826125a5565b610af783612639565b604051602001610b08929190613dca565b6040516020818303038152906040529050919050565b6006546001600160a01b03163314610b665760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b03166000908152600760205260409020805460ff19169055565b3360009081526007602052604090205460ff1680610baf57506006546001600160a01b031633145b610bf55760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b60098054906000610c0583613e0f565b9190505550610c1b600954878787878787611e33565b610c26600954611816565b505050505050565b6006546001600160a01b03163314610c765760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6008546000908152600a6020908152604080832060010154600390925290912054610ca2908490613e2a565b1115610cfc5760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b610d19816008548460405180602001604052806000815250612773565b5050565b6001600160a01b038516331480610d395750610d398533610725565b610dab5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016108d5565b610db8858585858561289f565b5050505050565b6008546000908152600a6020526040902060020154323314610e235760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615610e905760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015610ee05760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60016008546000908152600a602052604090206009015460ff166003811115610f0b57610f0b613cc0565b14610f7e5760405162461bcd60e51b815260206004820152602260248201527f756e64657267726f756e643a2077686974656c697374206e6f7420737461727460448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016108d5565b600060085433604051602001610fb092919091825260601b6bffffffffffffffffffffffff1916602082015260340190565b60405160208183030381529060405280519060200120905061101984848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052506008548152600a6020819052604090912001549250859150612b189050565b6110655760405162461bcd60e51b815260206004820152601a60248201527f756e64657267726f756e643a20696e76616c69642070726f6f6600000000000060448201526064016108d5565b61106f6001612b2e565b50505050565b6006546001600160a01b031633146110bd5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b8060005b8181101561106f576000600760008686858181106110e1576110e1613e42565b90506020020160208101906110f691906136c8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061112881613e0f565b9150506110c1565b6006546001600160a01b031633146111785760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6006546040516001600160a01b03909116904790600081818185875af1925050503d80600081146111c5576040519150601f19603f3d011682016040523d82523d6000602084013e505050565b606091505b505050565b606081518351146112485760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016108d5565b6000835167ffffffffffffffff8111156112645761126461355a565b60405190808252806020026020018201604052801561128d578160200160208202803683370190505b50905060005b8451811015611305576112d88582815181106112b1576112b1613e42565b60200260200101518583815181106112cb576112cb613e42565b602002602001015161085b565b8282815181106112ea576112ea613e42565b60209081029190910101526112fe81613e0f565b9050611293565b509392505050565b3360009081526007602052604090205460ff168061133557506006546001600160a01b031633145b61137b5760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8260008111801561138e57506009548111155b6113da5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b506000928352600a602081905260409093206002810192909255910155565b6006546001600160a01b031633146114415760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b03166000908152600760205260409020805460ff19166001179055565b6006546001600160a01b031633146114ad5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6114b76000612c34565b565b3360009081526007602052604090205460ff16806114e157506006546001600160a01b031633145b6115275760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8160008111801561153a57506009548111155b6115865760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000838152600360205260409020548210156115e45760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c6964206d6178537570706c79000060448201526064016108d5565b506000918252600a602052604090912060010155565b6006546001600160a01b031633146116425760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b61106f8383868460405180602001604052806000815250612c9e565b606060058054610a0490613d8f565b6006546001600160a01b031633146116b55760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b8060005b8181101561106f576001600760008686858181106116d9576116d9613e42565b90506020020160208101906116ee91906136c8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061172081613e0f565b9150506116b9565b3360009081526007602052604090205460ff168061175057506006546001600160a01b031633145b6117965760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b816000811180156117a957506009548111155b6117f55760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b506000918252600a602052604090912060030155565b610d19338383612e3c565b3360009081526007602052604090205460ff168061183e57506006546001600160a01b031633145b6118845760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8060008111801561189757506009548111155b6118e35760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000821180156118f557506009548211155b6119415760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b50600855565b6006546001600160a01b0316331461198f5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6008546000908152600a60209081526040808320600101546003909252909120548291906119be908390613e2a565b1115611a185760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b60005b8181101561106f57611a67848483818110611a3857611a38613e42565b9050602002016020810190611a4d91906136c8565b600854600160405180602001604052806000815250612773565b80611a7181613e0f565b915050611a1b565b6008546000908152600a6020526040902060030154323314611add5760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615611b4a5760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015611b9a5760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60036008546000908152600a602052604090206009015460ff166003811115611bc557611bc5613cc0565b14611c125760405162461bcd60e51b815260206004820152601d60248201527f756e64657267726f756e643a206f70656e206e6f74207374617274656400000060448201526064016108d5565b6109f26001612b2e565b600060026008546000908152600a602052604090206009015460ff166003811115611c4957611c49613cc0565b14611c965760405162461bcd60e51b815260206004820181905260248201527f756e64657267726f756e643a2061756374696f6e206e6f74207374617274656460448201526064016108d5565b611ca06001612f31565b905090565b611caf6001612f31565b323314611cfe5760405162461bcd60e51b815260206004820152601560248201527f756e64657267726f756e643a206f6e6c7920656f61000000000000000000000060448201526064016108d5565b6008546000908152600b6020908152604080832033845290915290205460ff1615611d6b5760405162461bcd60e51b815260206004820152601b60248201527f756e64657267726f756e643a20616c7265616479206d696e746564000000000060448201526064016108d5565b80341015611dbb5760405162461bcd60e51b815260206004820152601f60248201527f756e64657267726f756e643a20696e76616c69642076616c75652073656e740060448201526064016108d5565b60026008546000908152600a602052604090206009015460ff166003811115611de657611de6613cc0565b14611c125760405162461bcd60e51b815260206004820181905260248201527f756e64657267726f756e643a2061756374696f6e206e6f74207374617274656460448201526064016108d5565b3360009081526007602052604090205460ff1680611e5b57506006546001600160a01b031633145b611ea15760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b86600081118015611eb457506009548111155b611f005760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b600088815260036020526040902054871015611f5e5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c6964206d6178537570706c79000060448201526064016108d5565b6000846040015111611fbe5760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a207a65726f20646563726561736520696e7465726044820152621d985b60ea1b60648201526084016108d5565b8284608001518560600151028560200151031461201d5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e636f72726563742072657365727665000060448201526064016108d5565b6040805160e08101825289815260208082018a9052818301899052606082018890526080820187905260008b8152600a909152919091206009015460a082019060ff16600381111561207157612071613cc0565b8152602090810184905260008a8152600a82526040908190208351815583830151600180830191909155848301516002830155606080860151600380850191909155608080880151805160048701559687015160058601559486015160068501559085015160078401559390920151600882015560a084015160098201805492949193909260ff191691849081111561210c5761210c613cc0565b021790555060c082015181600a01559050505050505050505050565b3360009081526007602052604090205460ff168061215057506006546001600160a01b031633145b6121965760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b816000811180156121a957506009548111155b6121f55760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b6000838152600a60205260409020600901805483919060ff1916600183600381111561222357612223613cc0565b0217905550600282600381111561223c5761223c613cc0565b14156111ca5750506000908152600a6020526040902042600490910155565b6001600160a01b03851633148061227757506122778533610725565b6122e95760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016108d5565b610db88585858585612c9e565b6006546001600160a01b0316331461233e5760405162461bcd60e51b8152602060048201819052602482015260008051602061405f83398151915260448201526064016108d5565b6001600160a01b0381166123ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108d5565b6109f281612c34565b3360009081526007602052604090205460ff16806123eb57506006546001600160a01b031633145b6124315760405162461bcd60e51b81526020600482015260176024820152763ab73232b933b937bab7321d1037b7363c9030b236b4b760491b60448201526064016108d5565b8260008111801561244457506009548111155b6124905760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e76616c696420736561736f6e206964000060448201526064016108d5565b60008360400151116124f05760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a207a65726f20646563726561736520696e7465726044820152621d985b60ea1b60648201526084016108d5565b8183608001518460600151028460200151031461254f5760405162461bcd60e51b815260206004820152601e60248201527f756e64657267726f756e643a20696e636f72726563742072657365727665000060448201526064016108d5565b50506000918252600a6020908152604092839020825160048201559082015160058201559181015160068301556060810151600783015560800151600890910155565b8051610d19906002906020840190613448565b6060600280546125b490613d8f565b80601f01602080910402602001604051908101604052809291908181526020018280546125e090613d8f565b801561262d5780601f106126025761010080835404028352916020019161262d565b820191906000526020600020905b81548152906001019060200180831161261057829003601f168201915b50505050509050919050565b60608161267957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156126a3578061268d81613e0f565b915061269c9050600a83613e6e565b915061267d565b60008167ffffffffffffffff8111156126be576126be61355a565b6040519080825280601f01601f1916602001820160405280156126e8576020820181803683370190505b5090505b841561276b576126fd600183613e82565b915061270a600a86613e99565b612715906030613e2a565b60f81b81838151811061272a5761272a613e42565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612764600a86613e6e565b94506126ec565b949350505050565b6001600160a01b0384166127ef5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016108d5565b3361280f8160008761280088612fa1565b61280988612fa1565b87612fec565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061283f908490613e2a565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610db881600087878787612ffa565b81518351146129165760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016108d5565b6001600160a01b03841661297a5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b33612989818787878787612fec565b60005b8451811015612ab25760008582815181106129a9576129a9613e42565b6020026020010151905060008583815181106129c7576129c7613e42565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015612a5a5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108d5565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612a97908490613e2a565b9250508190555050505080612aab90613e0f565b905061298c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051612b02929190613ead565b60405180910390a4610c268187878787876131af565b600082612b2585846132ba565b14949350505050565b6008546000908152600a6020908152604080832060010154600390925290912054612b5a908390613e2a565b1115612bb45760405162461bcd60e51b815260206004820152602360248201527f756e64657267726f756e643a2063617020666f7220736561736f6e20726561636044820152621a195960ea1b60648201526084016108d5565b600880546000908152600b6020908152604080832033808552908352818420805460ff1916600117905593548151928301909152918152612bf89291908490612773565b6008546040518281523391907ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b669060200160405180910390a350565b600680546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416612d025760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016108d5565b33612d1281878761280088612fa1565b6000848152602081815260408083206001600160a01b038a16845290915290205483811015612d965760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016108d5565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612dd3908490613e2a565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612e33828888888888612ffa565b50505050505050565b816001600160a01b0316836001600160a01b03161415612ec45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016108d5565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6008546000908152600a6020526040812060078101546006820154600490920180549092612f7791612f639042613e82565b612f6d9190613e6e565b8360040154613326565b612f819190613edb565b8160010154612f909190613e82565b612f9a9084613edb565b9392505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612fdb57612fdb613e42565b602090810291909101015292915050565b610c2686868686868661333c565b6001600160a01b0384163b15610c265760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061303e9089908990889088908890600401613efa565b602060405180830381600087803b15801561305857600080fd5b505af1925050508015613088575060408051601f3d908101601f1916820190925261308591810190613f3d565b60015b61313e57613094613f5a565b806308c379a014156130ce57506130a9613f76565b806130b457506130d0565b8060405162461bcd60e51b81526004016108d5919061369c565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016108d5565b6001600160e01b0319811663f23a6e6160e01b14612e335760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108d5565b6001600160a01b0384163b15610c265760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906131f39089908990889088908890600401614000565b602060405180830381600087803b15801561320d57600080fd5b505af192505050801561323d575060408051601f3d908101601f1916820190925261323a91810190613f3d565b60015b61324957613094613f5a565b6001600160e01b0319811663bc197c8160e01b14612e335760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016108d5565b600081815b84518110156113055760008582815181106132dc576132dc613e42565b602002602001015190508083116133025760008381526020829052604090209250613313565b600081815260208490526040902092505b508061331e81613e0f565b9150506132bf565b60008183106133355781612f9a565b5090919050565b6001600160a01b0385166133c35760005b83518110156133c15782818151811061336857613368613e42565b60200260200101516003600086848151811061338657613386613e42565b6020026020010151815260200190815260200160002060008282546133ab9190613e2a565b909155506133ba905081613e0f565b905061334d565b505b6001600160a01b038416610c265760005b8351811015612e33578281815181106133ef576133ef613e42565b60200260200101516003600086848151811061340d5761340d613e42565b6020026020010151815260200190815260200160002060008282546134329190613e82565b90915550613441905081613e0f565b90506133d4565b82805461345490613d8f565b90600052602060002090601f01602090048101928261347657600085556134bc565b82601f1061348f57805160ff19168380011785556134bc565b828001600101855582156134bc579182015b828111156134bc5782518255916020019190600101906134a1565b506134c89291506134cc565b5090565b5b808211156134c857600081556001016134cd565b80356001600160a01b03811681146134f857600080fd5b919050565b6000806040838503121561351057600080fd5b613519836134e1565b946020939093013593505050565b6001600160e01b0319811681146109f257600080fd5b60006020828403121561354f57600080fd5b8135612f9a81613527565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff811182821017156135965761359661355a565b6040525050565b600067ffffffffffffffff8311156135b7576135b761355a565b6040516135ce601f8501601f191660200182613570565b8091508381528484840111156135e357600080fd5b83836020830137600060208583010152509392505050565b60006020828403121561360d57600080fd5b813567ffffffffffffffff81111561362457600080fd5b8201601f8101841361363557600080fd5b61276b8482356020840161359d565b60005b8381101561365f578181015183820152602001613647565b8381111561106f5750506000910152565b60008151808452613688816020860160208601613644565b601f01601f19169290920160200192915050565b602081526000612f9a6020830184613670565b6000602082840312156136c157600080fd5b5035919050565b6000602082840312156136da57600080fd5b612f9a826134e1565b600060a082840312156136f557600080fd5b60405160a0810181811067ffffffffffffffff821117156137185761371861355a565b806040525080915082358152602083013560208201526040830135604082015260608301356060820152608083013560808201525092915050565b600080600080600080610140878903121561376d57600080fd5b86359550602087013594506040870135935061378c88606089016136e3565b9250610100870135915061012087013590509295509295509295565b600080604083850312156137bb57600080fd5b823591506137cb602084016134e1565b90509250929050565b600067ffffffffffffffff8211156137ee576137ee61355a565b5060051b60200190565b600082601f83011261380957600080fd5b81356020613816826137d4565b6040516138238282613570565b83815260059390931b850182019282810191508684111561384357600080fd5b8286015b8481101561385e5780358352918301918301613847565b509695505050505050565b600082601f83011261387a57600080fd5b612f9a8383356020850161359d565b600080600080600060a086880312156138a157600080fd5b6138aa866134e1565b94506138b8602087016134e1565b9350604086013567ffffffffffffffff808211156138d557600080fd5b6138e189838a016137f8565b945060608801359150808211156138f757600080fd5b61390389838a016137f8565b9350608088013591508082111561391957600080fd5b5061392688828901613869565b9150509295509295909350565b60008083601f84011261394557600080fd5b50813567ffffffffffffffff81111561395d57600080fd5b6020830191508360208260051b850101111561397857600080fd5b9250929050565b6000806020838503121561399257600080fd5b823567ffffffffffffffff8111156139a957600080fd5b6139b585828601613933565b90969095509350505050565b600080604083850312156139d457600080fd5b823567ffffffffffffffff808211156139ec57600080fd5b818501915085601f830112613a0057600080fd5b81356020613a0d826137d4565b604051613a1a8282613570565b83815260059390931b8501820192828101915089841115613a3a57600080fd5b948201945b83861015613a5f57613a50866134e1565b82529482019490820190613a3f565b96505086013592505080821115613a7557600080fd5b50613a82858286016137f8565b9150509250929050565b600081518084526020808501945080840160005b83811015613abc57815187529582019590820190600101613aa0565b509495945050505050565b602081526000612f9a6020830184613a8c565b600080600060608486031215613aef57600080fd5b505081359360208301359350604090920135919050565b60008060408385031215613b1957600080fd5b50508035926020909101359150565b60008060008060808587031215613b3e57600080fd5b84359350613b4e602086016134e1565b9250613b5c604086016134e1565b9396929550929360600135925050565b60008060408385031215613b7f57600080fd5b613b88836134e1565b915060208301358015158114613b9d57600080fd5b809150509250929050565b6000806000806000806000610160888a031215613bc457600080fd5b87359650602088013595506040880135945060608801359350613bea8960808a016136e3565b92506101208801359150610140880135905092959891949750929550565b60008060408385031215613c1b57600080fd5b82359150602083013560048110613b9d57600080fd5b60008060408385031215613c4457600080fd5b613c4d836134e1565b91506137cb602084016134e1565b600080600080600060a08688031215613c7357600080fd5b613c7c866134e1565b9450613c8a602087016134e1565b93506040860135925060608601359150608086013567ffffffffffffffff811115613cb457600080fd5b61392688828901613869565b634e487b7160e01b600052602160045260246000fd5b60006101608201905088825287602083015286604083015285606083015284516080830152602085015160a0830152604085015160c0830152606085015160e0830152608085015161010083015260048410613d4257634e487b7160e01b600052602160045260246000fd5b610120820193909352610140015295945050505050565b600080600060e08486031215613d6e57600080fd5b83359250613d7f85602086016136e3565b915060c084013590509250925092565b600181811c90821680613da357607f821691505b60208210811415613dc457634e487b7160e01b600052602260045260246000fd5b50919050565b60008351613ddc818460208801613644565b835190830190613df0818360208801613644565b01949350505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415613e2357613e23613df9565b5060010190565b60008219821115613e3d57613e3d613df9565b500190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b600082613e7d57613e7d613e58565b500490565b600082821015613e9457613e94613df9565b500390565b600082613ea857613ea8613e58565b500690565b604081526000613ec06040830185613a8c565b8281036020840152613ed28185613a8c565b95945050505050565b6000816000190483118215151615613ef557613ef5613df9565b500290565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a06080830152613f3260a0830184613670565b979650505050505050565b600060208284031215613f4f57600080fd5b8151612f9a81613527565b600060033d1115613f735760046000803e5060005160e01c5b90565b600060443d1015613f845790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715613fb457505050505090565b8285019150815181811115613fcc5750505050505090565b843d8701016020828501011115613fe65750505050505090565b613ff560208286010187613570565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261402c60a0830186613a8c565b828103606084015261403e8186613a8c565b905082810360808401526140528185613670565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220ae3230a40923eb64e2236210e2c14025620898f0706b759620ec78ea0e6317d364736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000b756e64657267726f756e6400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005768747470733a2f2f756e64657267726f756e642e6d7970696e6174612e636c6f75642f697066732f516d54396d467732324e7452586a336b6146436558716e6943576a5453427137386d5273754e424d7375727a67522f000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): underground
Arg [1] : _symbol (string): ug
Arg [2] : _uri (string): https://underground.mypinata.cloud/ipfs/QmT9mFw22NtRXj3kaFCeXqniCWjTSBq78mRsuNBMsurzgR/

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [4] : 756e64657267726f756e64000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 7567000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000057
Arg [8] : 68747470733a2f2f756e64657267726f756e642e6d7970696e6174612e636c6f
Arg [9] : 75642f697066732f516d54396d467732324e7452586a336b6146436558716e69
Arg [10] : 43576a5453427137386d5273754e424d7375727a67522f000000000000000000


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.