ETH Price: $3,506.25 (+4.44%)
Gas: 4 Gwei

Token

ESSENCE// ()
 

Overview

Max Total Supply

2,084

Holders

1,165

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
manifoldvault.eth
0x54ace8d119c4bd7baf11f750c690e9667a80801a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

ESSENCE// is the redeem token for the FVCK_AVATAR// collection created by [FVCKRENDER](https://twitter.com/fvckrender). The redemption requires users to burn one (1) ESSENCE// which will randomly generate one (1) FVCK_AVATAR//.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
ESSENCE

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 19 : ESSENCE.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @artist: FVCKRENDER
/// @title: ESSENCE//
/// @author: manifold.xyz

//////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                          //
//                   ______ _____ _____  ______ _   __ ______ ______    __  ___             //
//                  / ____// ___// ___/ / ____// | / // ____// ____/  _/_/_/_/              //
//                 / __/   \__ \ \__ \ / __/  /  |/ // /    / __/   _/_/_/_/                //
//                / /___  ___/ /___/ // /___ / /|  // /___ / /___ _/_/_/_/                  //
//               /_____/ /____//____//_____//_/ |_/ \____//_____//_/ /_/                    //
//                                                                                          //
//                                                                                          //
//                                                                ,*69.                     //
//                                                             ,**.*@@@.                    //
//                                                   %.#/.,/ /,/((/@@@@,     @@@.           //
//                                     ,(@@@@#&/,,@@/(%(& (@@%@&/##@@@..  /%@*@*,.          //
//                               #@.&@@@#@@@@@@%#@@.. @&@.*(,/,*#%&##%#,(@%/(/(@@           //
//                            &@(@@@@/@@@@*%**,.(%#%&@.@*/@&/&@@#%*/#%#%(##(@@/*.           //
//                         .&%@@@@@@@@@@@@@@@%#(////****//(#(,@.&&%%((//#%%%&*#,,           //
//                        (@%*,#@,*%&@@@@@@@@@%(//////(/**/*/,,.%%%%#*/*/(((*(**,,          //
//                      //,/*/,..#@@@@@@@@@@&%(//********/(/*,,@%%,*/*/////(69/%@.          //
//                    /#@&/#%../#@@@@@@@@@@&%(/*******,*********.%(**#*****/*(              //
//                     (%@(# .*@@@@@@@69#((//***,,,,,,,,,,,,,****,(&**%//(@.                //
//                    //#%*&/(*(%##((///***,,,,.....,,,,,,,,,,,*** @&&/*(/                  //
//                    *(*&. %/,,*/*,,........... ....... .  ..,,*.&&&&#*/(,,                //
//                     &%,  %**..,,.....             ....*(*,,.,,&&&&(,//(**                //
//                  ,*,#%/%%*,/*.......             .  ....,,.,..%(#(,.**/.                 //
//                   */&(*,#(&%/*,,,.            ...     .,*///@/#%,(.((,/                  //
//                   *@(/(/%(@@.****,.. .     ,*,        ./*/@/%&. .(,&&/                   //
//                 .,.,#%//*,#%#*,***.         *,,,    *###@%***#,./(#,                     //
//                 *@@@@(@#@*@ *%,*.*.   .,    &@/**%*#@/*,*(*/@  ,#%&                      //
//                *@@%///*@(%&/,.%.%*&. . /%,,.,&@@&/## %,#  ((@@#((                        //
//             .,@@,@@%&%#**,*//((%**/&,..*,&@.((#%//.,   @@,@(@.                           //
//             ..@@@@@@((/(#///.,,/**/(%,#(%@@@@%%&@@@&#@/./..                              //
//             ,,,,,%@@@@,,%#/*,,&***(,*/,/#%@&@@@@%@@*(%#/                                 //
//                ,***@@@@,&*/.@*,(,,,,.,.                                                  //
//                 ///@@,..,&    .,69.,                                                     //
//                                                                                          //
//                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////


import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";

import "./ERC1155CollectionBase.sol";

contract ESSENCE is ERC1155, ERC1155CollectionBase, AdminControl {

    constructor(address signingAddress_) ERC1155('') {
        _initialize(
            // total supply
            12969,
            // total supply available to purchase
            12969,
            // 0.469 eth public sale price
            469000000000000000,
            // purchase limit (0 for no limit)
            0,
            // transaction limit (0 for no limit)
            1,
            // 0.2 eth presale price
            200000000000000000,
            // presale limit (unused but 0 for no limit)
            0,
            signingAddress_,
            // use dynamic presale purchase limit
            true
        );
    }

    /**
    * @dev See {IERC165-supportsInterface}.
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC1155CollectionBase, AdminControl) returns (bool) {
      return ERC1155CollectionBase.supportsInterface(interfaceId) || ERC1155.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155Collection-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        return ERC1155.balanceOf(owner, TOKEN_ID);
    }

    /**
     * @dev See {IERC1155Collection-withdraw}.
     */
    function withdraw(address payable recipient, uint256 amount) external override adminRequired {
        _withdraw(recipient, amount);
    }

    /**
     * @dev See {IERC1155Collection-setTransferLocked}.
     */
    function setTransferLocked(bool locked) external override adminRequired {
        _setTransferLocked(locked);
    }
    
    /**
     * @dev See {IERC1155Collection-premint}.
     */
    function premint(uint16 amount) external override adminRequired {
        _premint(amount, owner());
    }

    /**
     * @dev See {IERC1155Collection-premint}.
     */
    function premint(uint16[] calldata amounts, address[] calldata addresses) external override adminRequired {
        _premint(amounts, addresses);
    }

    /**
     * @dev See {IERC1155Collection-mintReserve}.
     */
    function mintReserve(uint16 amount) external override adminRequired {
        _mintReserve(amount, owner());
    }

    /**
     * @dev See {IERC1155Collection-mintReserve}.
     */
    function mintReserve(uint16[] calldata amounts, address[] calldata addresses) external override adminRequired {
        _mintReserve(amounts, addresses);
    }

    /**
     * @dev See {IERC1155Collection-activate}.
     */
    function activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) external override adminRequired {
        _activate(startTime_, duration, presaleInterval_, claimStartTime_, claimEndTime_);
    }

    /**
     * @dev See {IERC1155Collection-deactivate}.
     */
    function deactivate() external override adminRequired {
        _deactivate();
    }

    /**
     *  @dev See {IERC1155Collection-setCollectionURI}.
     */
    function setCollectionURI(string calldata uri) external override adminRequired {
        _setURI(uri);
    }

    /**
     * @dev See {IERC1155Collection-burn}
     */
    function burn(address from, uint16 amount) public virtual override {
        require(from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved");
        ERC1155._burn(from, TOKEN_ID, amount);
    }

    /**
     * @dev See {ERC1155CollectionBase-_mint}.
     */
    function _mintERC1155(address to, uint16 amount) internal virtual override {
        ERC1155._mint(to, TOKEN_ID, amount, "");
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(address, address from, address, uint256[] memory, uint256[] memory, bytes memory) internal virtual override {
        _validateTokenTransferability(from);
    }
    
    /**
     * @dev Update royalties
     */
    function updateRoyalties(address payable recipient, uint256 bps) external adminRequired {
      _updateRoyalties(recipient, bps);
    }

}

File 2 of 19 : ERC1155CollectionBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/Strings.sol";

import "./IERC1155Collection.sol";
import "./CollectionBase.sol";

/**
 * ERC1155 Collection Drop Contract (Base)
 */
abstract contract ERC1155CollectionBase is CollectionBase, IERC1155Collection {
    // Token ID to mint
    uint16 internal constant TOKEN_ID = 1;

    // Immutable variables that should only be set by the constructor or initializer
    uint16 public transactionLimit;
    
    uint16 public purchaseMax;
    uint16 public purchaseLimit;
    uint256 public purchasePrice;
    uint16 public presalePurchaseLimit;
    uint256 public presalePurchasePrice;
    uint16 public maxSupply;
    bool public useDynamicPresalePurchaseLimit;

    // Mutable mint state
    uint16 public purchaseCount;
    uint16 public reserveCount;
    mapping(address => uint16) private _mintCount;

    // Royalty
    uint256 private _royaltyBps;
    address payable private _royaltyRecipient;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a;
    bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584;

    // Transfer lock
    bool public transferLocked;

    /**
     * Initializer
     */
    function _initialize(uint16 maxSupply_, uint16 purchaseMax_, uint256 purchasePrice_, uint16 purchaseLimit_, uint16 transactionLimit_, uint256 presalePurchasePrice_, uint16 presalePurchaseLimit_, address signingAddress_, bool useDynamicPresalePurchaseLimit_) internal {
        require(_signingAddress == address(0), "Already initialized");
        require(maxSupply_ >= purchaseMax_, "Invalid input");
        maxSupply = maxSupply_;
        purchaseMax = purchaseMax_;
        purchasePrice = purchasePrice_;
        purchaseLimit = purchaseLimit_;
        transactionLimit = transactionLimit_;
        presalePurchaseLimit = presalePurchaseLimit_;
        presalePurchasePrice = presalePurchasePrice_;
        _signingAddress = signingAddress_;
        useDynamicPresalePurchaseLimit = useDynamicPresalePurchaseLimit_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165) returns (bool) {
      return interfaceId == type(IERC1155Collection).interfaceId ||interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE
          || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE;
    }

    /**
     * @dev See {IERC1155Collection-claim}.
     */
    function claim(uint16 amount, bytes32 message, bytes calldata signature, string calldata nonce) external virtual override {
        _validateClaimRestrictions();
        _validateClaimRequest(message, signature, nonce, amount);
        _mint(msg.sender, amount);
    }

    /**
     * @dev See {IERC1155Collection-purchase}.
     */
    function purchase(uint16 amount, bytes32 message, bytes calldata signature, string calldata nonce) external virtual override payable {
        _validatePurchaseRestrictions();

        bool isPresale = _isPresale();
        uint256 balance = _getMintBalance();

        // Check purchase amounts
        require(amount <= purchaseRemaining() && ((isPresale && useDynamicPresalePurchaseLimit) || transactionLimit == 0 || amount <= transactionLimit), "Too many requested");

        if (isPresale) {
            require(
                useDynamicPresalePurchaseLimit ||
                (
                    // check amount is under presale limit
                    (presalePurchaseLimit == 0 || (presalePurchaseLimit > balance && amount <= (presalePurchaseLimit - balance))) &&
                    // check amount is also under purchase limit
                    (purchaseLimit == 0 || (purchaseLimit > balance && amount <= (purchaseLimit - balance)))
                ),
                "Too many requested"
            );
            _validatePresalePrice(amount);
        } else {
            require(purchaseLimit == 0 || (purchaseLimit > balance && amount <= (purchaseLimit - balance)), "Too many requested");
            _validatePrice(amount);
        }

        if (isPresale && useDynamicPresalePurchaseLimit) {
            _validatePurchaseRequestWithAmount(message, signature, nonce, amount);
        } else {
            _validatePurchaseRequest(message, signature, nonce);
        }

        // Track total mints per address only if necessary
        if (_shouldUseMintCount()) {
           _mintCount[msg.sender] += amount;
        }

        _mint(msg.sender, amount);
    }

    /**
     * @dev See {IERC1155Collection-state}
     */
    function state() external override view returns (CollectionState memory) {
        // No message sender, no purchase balance
        uint16 balance = msg.sender == address(0) ? 0 : uint16(_getMintBalance());
        return CollectionState(transactionLimit, purchaseMax, purchaseRemaining(), purchasePrice, purchaseLimit, presalePurchasePrice, presalePurchaseLimit, balance, active, startTime, endTime, presaleInterval, claimStartTime, claimEndTime, useDynamicPresalePurchaseLimit);
    }

    /**
     * @dev Get balance of address. Similar to IERC1155-balanceOf, but doesn't require token ID
     * @param owner The address to get the token balance of
     */
    function balanceOf(address owner) public virtual override view returns (uint256);

    /**
     * @dev See {IERC1155Collection-purchaseRemaining}.
     */
    function purchaseRemaining() public virtual override view returns (uint16) {
        return purchaseMax - purchaseCount;
    }

    /**
     * ROYALTY FUNCTIONS
     */
    function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return (recipients, bps);
    }

    function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) {
        if (_royaltyRecipient != address(0x0)) {
            recipients = new address payable[](1);
            recipients[0] = _royaltyRecipient;
        }
        return recipients;
    }

    function getFeeBps(uint256) external view returns (uint[] memory bps) {
        if (_royaltyRecipient != address(0x0)) {
            bps = new uint256[](1);
            bps[0] = _royaltyBps;
        }
        return bps;
    }

    function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) {
        return (_royaltyRecipient, value*_royaltyBps/10000);
    }

    /**
     * Premint tokens to the owner.  Purchase must not be active.
     */
    function _premint(uint16 amount, address owner) internal virtual {
        require(!active, "Already active");
        _mint(owner, amount);
    }

    /**
     * Premint tokens to the list of addresses.  Purchase must not be active.
     */
    function _premint(uint16[] calldata amounts, address[] calldata addresses) internal virtual {
        require(!active, "Already active");
        for (uint256 i = 0; i < addresses.length; i++) {
            _mint(addresses[i], amounts[i]);
        }
    }

    /**
     * Mint reserve tokens. Purchase must be completed.
     */
    function _mintReserve(uint16 amount, address owner) internal virtual {
        require(endTime != 0 && endTime <= block.timestamp, "Cannot mint reserve until after sale complete");
        require(purchaseCount + reserveCount + amount <= maxSupply, "Too many requested");
        reserveCount += amount;
        _mintERC1155(owner, amount);
    }

    /**
     * Mint reserve tokens. Purchase must be completed.
     */
    function _mintReserve(uint16[] calldata amounts, address[] calldata addresses) internal virtual {
        require(endTime != 0 && endTime <= block.timestamp, "Cannot mint reserve until after sale complete");
        uint16 totalAmount;
        for (uint256 i = 0; i < addresses.length; i++) {
            totalAmount += amounts[i];
        }
        require(purchaseCount + reserveCount + totalAmount <= maxSupply, "Too many requested");
        reserveCount += totalAmount;
        for (uint256 i = 0; i < addresses.length; i++) {
            _mintERC1155(addresses[i], amounts[i]);
        }
    }

    /**
     * Mint function internal to ERC1155CollectionBase to keep track of state
     */
    function _mint(address to, uint16 amount) internal {
        purchaseCount += amount;
        _mintERC1155(to, amount);
    }

    /**
     * @dev A _mint function is required that calls the underlying ERC1155 mint.
     */
    function _mintERC1155(address to, uint16 amount) internal virtual;

    /**
     * Validate price (override for custom pricing mechanics)
     */
    function _validatePrice(uint16 amount) internal {
        require(msg.value == amount * purchasePrice, "Invalid purchase amount sent");
    }

    /**
     * Validate price (override for custom pricing mechanics)
     */
    function _validatePresalePrice(uint16 amount) internal virtual {
        require(msg.value == amount * presalePurchasePrice, "Invalid purchase amount sent");
    }

    /**
     * If enabled, lock token transfers until after the sale has ended.
     *
     * This helps enforce purchase limits, so someone can't buy -> transfer -> buy again
     * while the token is minting.
     */
    function _validateTokenTransferability(address from) internal view {
        require(!transferLocked || purchaseRemaining() == 0 || (active && block.timestamp >= endTime) || from == address(0), "Transfer locked until sale ends");
    }

    /**
     * Set whether or not token transfers are locked till end of sale
     */
    function _setTransferLocked(bool locked) internal {
        transferLocked = locked;
    }

    /**
     * @dev Update royalties
     */
    function _updateRoyalties(address payable recipient, uint256 bps) internal {
        _royaltyRecipient = recipient;
        _royaltyBps = bps;
    }

    /**
     * @dev Return mint count or balanceOf
     */
    function _getMintBalance() internal view returns (uint256) {
        uint256 balance;
        if (_shouldUseMintCount()) {
            balance = _mintCount[msg.sender];
        } else {
            balance = balanceOf(msg.sender);
        }

        return balance;
    }

    /**
     * @dev Return whether to use our own mint count vs balanceOf.
     *
     * Tokens minted via `premint` and `claim`, for example, don't affect mint count.
     */
    function _shouldUseMintCount() internal view returns (bool) {
        return !transferLocked && (purchaseLimit > 0 || presalePurchaseLimit > 0);
    }
}

File 3 of 19 : 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 4 of 19 : AdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./IAdminControl.sol";

abstract contract AdminControl is Ownable, IAdminControl, ERC165 {
    using EnumerableSet for EnumerableSet.AddressSet;

    // Track registered admins
    EnumerableSet.AddressSet private _admins;

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

    /**
     * @dev Only allows approved admins to call the specified function
     */
    modifier adminRequired() {
        require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin");
        _;
    }   

    /**
     * @dev See {IAdminControl-getAdmins}.
     */
    function getAdmins() external view override returns (address[] memory admins) {
        admins = new address[](_admins.length());
        for (uint i = 0; i < _admins.length(); i++) {
            admins[i] = _admins.at(i);
        }
        return admins;
    }

    /**
     * @dev See {IAdminControl-approveAdmin}.
     */
    function approveAdmin(address admin) external override onlyOwner {
        if (!_admins.contains(admin)) {
            emit AdminApproved(admin, msg.sender);
            _admins.add(admin);
        }
    }

    /**
     * @dev See {IAdminControl-revokeAdmin}.
     */
    function revokeAdmin(address admin) external override onlyOwner {
        if (_admins.contains(admin)) {
            emit AdminRevoked(admin, msg.sender);
            _admins.remove(admin);
        }
    }

    /**
     * @dev See {IAdminControl-isAdmin}.
     */
    function isAdmin(address admin) public override view returns (bool) {
        return (owner() == admin || _admins.contains(admin));
    }

}

File 5 of 19 : CollectionBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

import "./ICollectionBase.sol";

/**
 * Collection Drop Contract (Base)
 */
abstract contract CollectionBase is ICollectionBase {
    
    using ECDSA for bytes32;
    using Strings for uint256;

    // Immutable variables that should only be set by the constructor or initializer
    address internal _signingAddress;

    // Message nonces
    mapping(bytes32 => bool) private _usedNonces;

    // Sale start/end control
    bool public active;
    uint256 public startTime;
    uint256 public endTime;
    uint256 public presaleInterval;

    // Claim period start/end control
    uint256 public claimStartTime;
    uint256 public claimEndTime;

    /**
     * Withdraw funds
     */
    function _withdraw(address payable recipient, uint256 amount) internal {
        (bool success,) = recipient.call{value:amount}("");
        require(success);
    }

    /**
     * Activate the sale
     */
    function _activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) internal virtual {
        require(!active, "Already active");
        require(startTime_ > block.timestamp, "Cannot activate in the past");
        require(presaleInterval_ < duration, "Presale Interval cannot be longer than the sale");
        require(claimStartTime_ <= claimEndTime_ && claimEndTime_ <= startTime_, "Invalid claim times");
        startTime = startTime_;
        endTime = startTime + duration;
        presaleInterval = presaleInterval_;
        claimStartTime = claimStartTime_;
        claimEndTime = claimEndTime_;
        active = true;

        emit CollectionActivated(startTime, endTime, presaleInterval, claimStartTime, claimEndTime);
    }

    /**
     * Deactivate the sale
     */
    function _deactivate() internal virtual {
        startTime = 0;
        endTime = 0;
        active = false;
        claimStartTime = 0;
        claimEndTime = 0;

        emit CollectionDeactivated();
    }

    function _getNonceBytes32(string memory nonce) internal pure returns(bytes32 nonceBytes32) {
        bytes memory nonceBytes = bytes(nonce);
        require(nonceBytes.length <= 32, "Invalid nonce");
        assembly {
            nonceBytes32 := mload(add(nonce, 32))
        }
    }

    /**
     * Validate claim signature
     */
    function _validateClaimRequest(bytes32 message, bytes calldata signature, string calldata nonce, uint16 amount) internal virtual {
        _validatePurchaseRequestWithAmount(message, signature, nonce, amount);
    }

    /**
     * Validate claim restrictions
     */
    function _validateClaimRestrictions() internal virtual {
        require(active, "Inactive");
        require(block.timestamp >= claimStartTime && block.timestamp <= claimEndTime, "Outside claim period.");
    }

    /**
     * Validate purchase signature
     */
    function _validatePurchaseRequest(bytes32 message, bytes calldata signature, string calldata nonce) internal virtual { 
        // Verify nonce usage/re-use
        bytes32 nonceBytes32 = _getNonceBytes32(nonce);
        require(!_usedNonces[nonceBytes32], "Cannot replay transaction");
        // Verify valid message based on input variables
        bytes32 expectedMessage = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", (20+bytes(nonce).length).toString(), msg.sender, nonce));
        require(message == expectedMessage, "Malformed message");
        // Verify signature was performed by the expected signing address
        address signer = message.recover(signature);
        require(signer == _signingAddress, "Invalid signature");

        _usedNonces[nonceBytes32] = true;
    }

    /**
     * Validate purchase signature with amount
     */
    function _validatePurchaseRequestWithAmount(bytes32 message, bytes calldata signature, string calldata nonce, uint16 amount) internal virtual {
        // Verify nonce usage/re-use
        bytes32 nonceBytes32 = _getNonceBytes32(nonce);
        require(!_usedNonces[nonceBytes32], "Cannot replay transaction");
        // Verify valid message based on input variables
        bytes32 expectedMessage = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", (20+bytes(nonce).length+bytes(uint256(amount).toString()).length).toString(), msg.sender, nonce, uint256(amount).toString()));
        require(message == expectedMessage, "Malformed message");
        // Verify signature was performed by the expected signing address
        address signer = message.recover(signature);
        require(signer == _signingAddress, "Invalid signature");

        _usedNonces[nonceBytes32] = true;
    }

    /**
     * Perform purchase restriciton checks. Override if more logic is needed
     */
    function _validatePurchaseRestrictions() internal virtual {
        require(active, "Inactive");
        require(block.timestamp >= startTime, "Purchasing not active");
    }

    /**
     * @dev See {ICollectionBase-nonceUsed}.
     */
    function nonceUsed(string memory nonce) external view override returns(bool) {
        bytes32 nonceBytes32 = _getNonceBytes32(nonce);
        return _usedNonces[nonceBytes32];
    }

    /**
     * @dev Check if currently in presale
     */
    function _isPresale() internal view returns (bool) {
        return block.timestamp > startTime && block.timestamp - startTime < presaleInterval;
    }
}

File 6 of 19 : IERC1155Collection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

import "./ICollectionBase.sol";

/**
 * @dev ERC1155 Collection Interface
 */
interface IERC1155Collection is ICollectionBase, IERC165 {

    struct CollectionState {
        uint16 transactionLimit;
        uint16 purchaseMax;
        uint16 purchaseRemaining;
        uint256 purchasePrice;
        uint16 purchaseLimit;
        uint256 presalePurchasePrice;
        uint16 presalePurchaseLimit;
        uint16 purchaseCount;
        bool active;
        uint256 startTime;
        uint256 endTime;
        uint256 presaleInterval;
        uint256 claimStartTime;
        uint256 claimEndTime;
        bool useDynamicPresalePurchaseLimit;
    }

    /**
     * @dev Activates the contract.
     * @param startTime_ The UNIX timestamp in seconds the sale should start at.
     * @param duration The number of seconds the sale should remain active.
     * @param presaleInterval_ The period of time the contract should only be active for presale.
     */
    function activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) external;

    /**
     * @dev Deactivate the contract
     */
    function deactivate() external;

    /**
     * @dev Pre-mint tokens to the owner. Sale must not be active.
     * @param amount The number of tokens to mint.
     */
    function premint(uint16 amount) external;

    /**
     * @dev Pre-mint tokens to the list of addresses. Sale must not be active.
     * @param amounts The amount of tokens to mint per address.
     * @param addresses The list of addresses to mint a token to.
     */
    function premint(uint16[] calldata amounts, address[] calldata addresses) external;

    /**
     * @dev Claim - mint with validation.
     * @param amount The number of tokens to mint.
     * @param message Signed message to validate input args.
     * @param signature Signature of the signer to recover from signed message.
     * @param nonce Manifold-generated nonce.
     */
    function claim(uint16 amount, bytes32 message, bytes calldata signature, string calldata nonce) external;

    /**
     * @dev Purchase - mint with validation.
     * @param amount The number of tokens to mint.
     * @param message Signed message to validate input args.
     * @param signature Signature of the signer to recover from signed message.
     * @param nonce Manifold-generated nonce.
     */
    function purchase(uint16 amount, bytes32 message, bytes calldata signature, string calldata nonce) external payable;

    /**
     * @dev Mint reserve tokens to the owner. Sale must be complete.
     * @param amount The number of tokens to mint.
     */
    function mintReserve(uint16 amount) external;

    /**
     * @dev Mint reserve tokens to the list of addresses. Sale must be complete.
     * @param amounts The amount of tokens to mint per address.
     * @param addresses The list of addresses to mint a token to.
     */
    function mintReserve(uint16[] calldata amounts, address[] calldata addresses) external;

    /**
     * @dev Set the URI for the metadata for the collection.
     * @param uri The metadata URI.
     */
    function setCollectionURI(string calldata uri) external;

    /**
     * @dev returns the collection state
     */
    function state() external view returns (CollectionState memory);

    /**
     * @dev Total amount of tokens remaining for the given token id.
     */
    function purchaseRemaining() external view returns (uint16);

    /**
     * @dev Withdraw funds (requires contract admin).
     * @param recipient The address to withdraw funds to
     * @param amount The amount to withdraw
     */
    function withdraw(address payable recipient, uint256 amount) external;

    /**
     * @dev Set whether or not token transfers are locked until end of sale.
     * @param locked Whether or not transfers are locked
     */
    function setTransferLocked(bool locked) external;

    /**
     * @dev Get balance of address. Similar to IERC1155-balanceOf, but doesn't require token ID
     * @param owner The address to get the token balance of
     */
    function balanceOf(address owner) external view returns (uint256);

    /**
     * @dev Destroys `amount` tokens from `from`
     * @param from The address to remove tokens from
     * @param amount The amount of tokens to remove
     */
    function burn(address from, uint16 amount) external;
}

File 7 of 19 : 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 8 of 19 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 9 of 19 : 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 10 of 19 : 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 11 of 19 : 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 12 of 19 : 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 13 of 19 : 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 14 of 19 : IAdminControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @dev Interface for admin control
 */
interface IAdminControl is IERC165 {

    event AdminApproved(address indexed account, address indexed sender);
    event AdminRevoked(address indexed account, address indexed sender);

    /**
     * @dev gets address of all admins
     */
    function getAdmins() external view returns (address[] memory);

    /**
     * @dev add an admin.  Can only be called by contract owner.
     */
    function approveAdmin(address admin) external;

    /**
     * @dev remove an admin.  Can only be called by contract owner.
     */
    function revokeAdmin(address admin) external;

    /**
     * @dev checks whether or not given address is an admin
     * Returns True if they are
     */
    function isAdmin(address admin) external view returns (bool);

}

File 15 of 19 : 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 16 of 19 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 17 of 19 : ICollectionBase.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/// @author: manifold.xyz

/**
 * @dev Collection Interface
 */
interface ICollectionBase {

    event CollectionActivated(uint256 startTime, uint256 endTime, uint256 presaleInterval, uint256 claimStartTime, uint256 claimEndTime);
    event CollectionDeactivated();

    /**
     * @dev Check if nonce has been used
     */
    function nonceUsed(string memory nonce) external view returns(bool);
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"signingAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"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":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"presaleInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimStartTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimEndTime","type":"uint256"}],"name":"CollectionActivated","type":"event"},{"anonymous":false,"inputs":[],"name":"CollectionDeactivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"uint256","name":"startTime_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"presaleInterval_","type":"uint256"},{"internalType":"uint256","name":"claimStartTime_","type":"uint256"},{"internalType":"uint256","name":"claimEndTime_","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","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":"owner","type":"address"}],"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":"address","name":"from","type":"address"},{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"nonce","type":"string"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","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":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"amounts","type":"uint16[]"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mintReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"nonce","type":"string"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"amounts","type":"uint16[]"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePurchaseLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePurchasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"nonce","type":"string"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"purchaseCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseMax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseRemaining","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setCollectionURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"locked","type":"bool"}],"name":"setTransferLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"components":[{"internalType":"uint16","name":"transactionLimit","type":"uint16"},{"internalType":"uint16","name":"purchaseMax","type":"uint16"},{"internalType":"uint16","name":"purchaseRemaining","type":"uint16"},{"internalType":"uint256","name":"purchasePrice","type":"uint256"},{"internalType":"uint16","name":"purchaseLimit","type":"uint16"},{"internalType":"uint256","name":"presalePurchasePrice","type":"uint256"},{"internalType":"uint16","name":"presalePurchaseLimit","type":"uint16"},{"internalType":"uint16","name":"purchaseCount","type":"uint16"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"presaleInterval","type":"uint256"},{"internalType":"uint256","name":"claimStartTime","type":"uint256"},{"internalType":"uint256","name":"claimEndTime","type":"uint256"},{"internalType":"bool","name":"useDynamicPresalePurchaseLimit","type":"bool"}],"internalType":"struct IERC1155Collection.CollectionState","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactionLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"useDynamicPresalePurchaseLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004b9238038062004b928339810160408190526200003491620002e6565b6040805160208101909152600081526200004e3362000088565b6200005981620000da565b50620000816132a9806706823903dfa88000600060016702c68af0bb140000828883620000f3565b5062000355565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8051620000ef90600b90602084019062000240565b5050565b6000546001600160a01b031615620001525760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a65640000000000000000000000000060448201526064015b60405180910390fd5b8761ffff168961ffff1610156200019c5760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b604482015260640162000149565b60108054600c8054600d9a909a5561ffff1965ffffffff000019909a166201000061ffff9c8d16810261ffff60201b1916919091176401000000009a8d169a909a02999099178a16978b1697909717909655600e805490981693891693909317909655600f92909255600080546001600160a01b0319166001600160a01b03909316929092179091559490931662ffffff1990931692909217901515909102179055565b8280546200024e9062000318565b90600052602060002090601f016020900481019282620002725760008555620002bd565b82601f106200028d57805160ff1916838001178555620002bd565b82800160010185558215620002bd579182015b82811115620002bd578251825591602001919060010190620002a0565b50620002cb929150620002cf565b5090565b5b80821115620002cb5760008155600101620002d0565b600060208284031215620002f957600080fd5b81516001600160a01b03811681146200031157600080fd5b9392505050565b600181811c908216806200032d57607f821691505b602082108114156200034f57634e487b7160e01b600052602260045260246000fd5b50919050565b61482d80620003656000396000f3fe6080604052600436106103195760003560e01c80636f6f53fe116101ab578063bb3bafd6116100f7578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610990578063f3fef3a3146109b0578063f4743070146109d0578063fe73ad77146109eb57600080fd5b8063e985e9c51461090c578063f19605d614610955578063f242432a1461097057600080fd5b8063d55f2d9d116100d1578063d55f2d9d146108a5578063d5abeb01146108c5578063defd6c5f146108e0578063e3b9398b146108f657600080fd5b8063bb3bafd614610834578063c19d93fb14610862578063c8a84a821461088457600080fd5b80638da5cb5b11610164578063a22cb4651161013e578063a22cb465146107be578063a6a11bb1146107de578063b0ad3541146107f4578063b9c4d9fb1461080757600080fd5b80638da5cb5b14610756578063923c235b1461077e578063956447d81461079e57600080fd5b80636f6f53fe146106b557806370a08231146106d5578063715018a6146106f557806378e979251461070a57806381960b5c14610720578063850217d81461073657600080fd5b80632b85ed9c1161026a57806336ef89af1161022357806351b42b00116101fd57806351b42b001461064057806355461d6d146106555780636c2f5acd146106755780636d73e6691461069557600080fd5b806336ef89af146105ea57806340d1d2551461060a5780634e1273f41461062057600080fd5b80632b85ed9c146105305780632d345670146105525780632eb2c2d6146105725780633197cbb61461059257806331ae450b146105a857806335e60bd4146105ca57600080fd5b806316317c21116102d7578063249c478b116102b1578063249c478b1461049157806324d7806c146104b15780632639f460146104d15780632a55205a146104f157600080fd5b806316317c211461041657806317bffd6b1461044d578063188866571461046f57600080fd5b8062fdd58e1461031e57806301ffc9a71461035157806302fb0c5e146103815780630e89341c1461039b5780630ebd4c7f146103c857806312686aae146103f5575b600080fd5b34801561032a57600080fd5b5061033e6103393660046139dc565b610a00565b6040519081526020015b60405180910390f35b34801561035d57600080fd5b5061037161036c366004613d0f565b610a9c565b6040519015158152602001610348565b34801561038d57600080fd5b506002546103719060ff1681565b3480156103a757600080fd5b506103bb6103b6366004613e76565b610ac5565b60405161034891906141df565b3480156103d457600080fd5b506103e86103e3366004613e76565b610b59565b60405161034891906141b9565b34801561040157600080fd5b5060135461037190600160a01b900460ff1681565b34801561042257600080fd5b5060105461043a9065010000000000900461ffff1681565b60405161ffff9091168152602001610348565b34801561045957600080fd5b5061046d610468366004613c89565b610bb5565b005b34801561047b57600080fd5b50600c5461043a90600160201b900461ffff1681565b34801561049d57600080fd5b5061046d6104ac366004613dd2565b610c11565b3480156104bd57600080fd5b506103716104cc3660046139bf565b610c79565b3480156104dd57600080fd5b5061046d6104ec366004613d49565b610cb2565b3480156104fd57600080fd5b5061051161050c366004613e8f565b610d3f565b604080516001600160a01b039093168352602083019190915201610348565b34801561053c57600080fd5b5060105461043a906301000000900461ffff1681565b34801561055e57600080fd5b5061046d61056d3660046139bf565b610d7a565b34801561057e57600080fd5b5061046d61058d366004613a41565b610df5565b34801561059e57600080fd5b5061033e60045481565b3480156105b457600080fd5b506105bd610e8c565b604051610348919061412b565b3480156105d657600080fd5b5061046d6105e5366004613cf4565b610f3a565b3480156105f657600080fd5b5061046d610605366004613ded565b610f9e565b34801561061657600080fd5b5061033e60075481565b34801561062c57600080fd5b506103e861063b366004613bb7565b610fc6565b34801561064c57600080fd5b5061046d6110ef565b34801561066157600080fd5b506010546103719062010000900460ff1681565b34801561068157600080fd5b5061046d6106903660046139dc565b611143565b3480156106a157600080fd5b5061046d6106b03660046139bf565b6111b1565b3480156106c157600080fd5b5061046d6106d0366004613c89565b61122b565b3480156106e157600080fd5b5061033e6106f03660046139bf565b611281565b34801561070157600080fd5b5061046d61128e565b34801561071657600080fd5b5061033e60035481565b34801561072c57600080fd5b5061033e600f5481565b34801561074257600080fd5b5061046d610751366004613dd2565b6112c2565b34801561076257600080fd5b506008546040516001600160a01b039091168152602001610348565b34801561078a57600080fd5b50610371610799366004613d8a565b611327565b3480156107aa57600080fd5b5061046d6107b9366004613eb1565b61134c565b3480156107ca57600080fd5b5061046d6107d9366004613b56565b6113a3565b3480156107ea57600080fd5b5061033e60065481565b61046d610802366004613ded565b6113ae565b34801561081357600080fd5b50610827610822366004613e76565b611616565b6040516103489190614178565b34801561084057600080fd5b5061085461084f366004613e76565b61168f565b60405161034892919061418b565b34801561086e57600080fd5b50610877611743565b604051610348919061442c565b34801561089057600080fd5b50600c5461043a9062010000900461ffff1681565b3480156108b157600080fd5b5061046d6108c0366004613b8b565b611894565b3480156108d157600080fd5b5060105461043a9061ffff1681565b3480156108ec57600080fd5b5061033e600d5481565b34801561090257600080fd5b5061033e60055481565b34801561091857600080fd5b50610371610927366004613a08565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561096157600080fd5b50600c5461043a9061ffff1681565b34801561097c57600080fd5b5061046d61098b366004613aee565b6118dc565b34801561099c57600080fd5b5061046d6109ab3660046139bf565b611921565b3480156109bc57600080fd5b5061046d6109cb3660046139dc565b6119b9565b3480156109dc57600080fd5b50600e5461043a9061ffff1681565b3480156109f757600080fd5b5061043a611a0d565b60006001600160a01b038316610a715760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526009602090815260408083206001600160a01b03861684529091529020545b92915050565b6000610aa782611a3a565b80610ab65750610ab682611aa6565b80610a965750610a9682611af6565b6060600b8054610ad49061460d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b009061460d565b8015610b4d5780601f10610b2257610100808354040283529160200191610b4d565b820191906000526020600020905b815481529060010190602001808311610b3057829003601f168201915b50505050509050919050565b6013546060906001600160a01b031615610bb057604080516001808252818301909252906020808301908036833701905050905060125481600081518110610ba357610ba36146fb565b6020026020010181815250505b919050565b33610bc86008546001600160a01b031690565b6001600160a01b03161480610be35750610be3601433611b1b565b610bff5760405162461bcd60e51b8152600401610a68906143e8565b610c0b84848484611b40565b50505050565b33610c246008546001600160a01b031690565b6001600160a01b03161480610c3f5750610c3f601433611b1b565b610c5b5760405162461bcd60e51b8152600401610a68906143e8565b610c7681610c716008546001600160a01b031690565b611cc3565b50565b6000816001600160a01b0316610c976008546001600160a01b031690565b6001600160a01b03161480610a965750610a96601483611b1b565b33610cc56008546001600160a01b031690565b6001600160a01b03161480610ce05750610ce0601433611b1b565b610cfc5760405162461bcd60e51b8152600401610a68906143e8565b610d3b82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d8b92505050565b5050565b60135460125460009182916001600160a01b039091169061271090610d649086614588565b610d6e9190614574565b915091505b9250929050565b6008546001600160a01b03163314610da45760405162461bcd60e51b8152600401610a689061438b565b610daf601482611b1b565b15610c765760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610d3b601482611d9e565b6001600160a01b038516331480610e115750610e118533610927565b610e785760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a68565b610e858585858585611db3565b5050505050565b6060610e986014611f99565b6001600160401b03811115610eaf57610eaf614711565b604051908082528060200260200182016040528015610ed8578160200160208202803683370190505b50905060005b610ee86014611f99565b811015610f3657610efa601482611fa3565b828281518110610f0c57610f0c6146fb565b6001600160a01b039092166020928302919091019091015280610f2e81614674565b915050610ede565b5090565b33610f4d6008546001600160a01b031690565b6001600160a01b03161480610f685750610f68601433611b1b565b610f845760405162461bcd60e51b8152600401610a68906143e8565b6013805460ff60a01b1916600160a01b8315150217905550565b610fa6611faf565b610fb485858585858b612044565b610fbe3387612052565b505050505050565b6060815183511461102b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a68565b600083516001600160401b0381111561104657611046614711565b60405190808252806020026020018201604052801561106f578160200160208202803683370190505b50905060005b84518110156110e7576110ba858281518110611093576110936146fb565b60200260200101518583815181106110ad576110ad6146fb565b6020026020010151610a00565b8282815181106110cc576110cc6146fb565b60209081029190910101526110e081614674565b9050611075565b509392505050565b336111026008546001600160a01b031690565b6001600160a01b0316148061111d575061111d601433611b1b565b6111395760405162461bcd60e51b8152600401610a68906143e8565b611141612095565b565b336111566008546001600160a01b031690565b6001600160a01b031614806111715750611171601433611b1b565b61118d5760405162461bcd60e51b8152600401610a68906143e8565b601380546001600160a01b0319166001600160a01b03841617905560128190555050565b6008546001600160a01b031633146111db5760405162461bcd60e51b8152600401610a689061438b565b6111e6601482611b1b565b610c765760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610d3b6014826120de565b3361123e6008546001600160a01b031690565b6001600160a01b031614806112595750611259601433611b1b565b6112755760405162461bcd60e51b8152600401610a68906143e8565b610c0b848484846120f3565b6000610a96826001610a00565b6008546001600160a01b031633146112b85760405162461bcd60e51b8152600401610a689061438b565b6111416000612189565b336112d56008546001600160a01b031690565b6001600160a01b031614806112f057506112f0601433611b1b565b61130c5760405162461bcd60e51b8152600401610a68906143e8565b610c76816113226008546001600160a01b031690565b6121db565b60008061133383612208565b60009081526001602052604090205460ff169392505050565b3361135f6008546001600160a01b031690565b6001600160a01b0316148061137a575061137a601433611b1b565b6113965760405162461bcd60e51b8152600401610a68906143e8565b610e858585858585612259565b610d3b33838361240e565b6113b66124ef565b60006113c0612576565b905060006113cc61259a565b90506113d6611a0d565b61ffff168861ffff161115801561142157508180156113fd575060105462010000900460ff165b8061140c5750600c5461ffff16155b806114215750600c5461ffff90811690891611155b61143d5760405162461bcd60e51b8152600401610a6890614283565b811561150b5760105462010000900460ff16806114e15750600e5461ffff16158061148d5750600e5461ffff168110801561148d5750600e5461148590829061ffff166145ca565b8861ffff1611155b80156114e15750600c54600160201b900461ffff1615806114e15750600c54600160201b900461ffff16811080156114e15750600c546114d9908290600160201b900461ffff166145ca565b8861ffff1611155b6114fd5760405162461bcd60e51b8152600401610a6890614283565b611506886125cc565b61157d565b600c54600160201b900461ffff1615806115585750600c54600160201b900461ffff16811080156115585750600c54611550908290600160201b900461ffff166145ca565b8861ffff1611155b6115745760405162461bcd60e51b8152600401610a6890614283565b61157d8861262b565b818015611592575060105462010000900460ff165b156115aa576115a587878787878d61263c565b6115b7565b6115b78787878787612845565b6115bf612a22565b156116025733600090815260116020526040812080548a92906115e790849061ffff16614536565b92506101000a81548161ffff021916908361ffff1602179055505b61160c3389612052565b5050505050505050565b6013546060906001600160a01b031615610bb0576040805160018082528183019092529060208083019080368337505060135482519293506001600160a01b03169183915060009061166a5761166a6146fb565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60135460609081906001600160a01b03161561173e576040805160018082528183019092529060208083019080368337505060135482519294506001600160a01b0316918491506000906116e5576116e56146fb565b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050905060125481600081518110611731576117316146fb565b6020026020010181815250505b915091565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290529033156117cf576117ca61259a565b6117d2565b60005b604080516101e081018252600c5461ffff8082168352620100009091041660208201529192508101611802611a0d565b61ffff9081168252600d546020830152600c54600160201b900481166040830152600f546060830152600e54811660808301529290921660a083015260025460ff908116151560c084015260035460e084015260045461010084015260055461012084015260065461014084015260075461016084015260105462010000900416151561018090920191909152919050565b6001600160a01b0382163314806118b057506118b08233610927565b6118cc5760405162461bcd60e51b8152600401610a689061423a565b610d3b82600161ffff8416612a5d565b6001600160a01b0385163314806118f857506118f88533610927565b6119145760405162461bcd60e51b8152600401610a689061423a565b610e858585858585612bda565b6008546001600160a01b0316331461194b5760405162461bcd60e51b8152600401610a689061438b565b6001600160a01b0381166119b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a68565b610c7681612189565b336119cc6008546001600160a01b031690565b6001600160a01b031614806119e757506119e7601433611b1b565b611a035760405162461bcd60e51b8152600401610a68906143e8565b610d3b8282612d0a565b601054600c54600091611a359161ffff630100000090920482169162010000909104166145a7565b905090565b60006001600160e01b0319821663e1ecb3c760e01b1480611a6b57506001600160e01b03198216635d9dd7eb60e11b145b80611a8657506001600160e01b0319821663152a902d60e11b145b80610a9657506001600160e01b03198216632dde656160e21b1492915050565b60006001600160e01b03198216636cdb3d1360e11b1480611ad757506001600160e01b031982166303a24d0760e21b145b80610a9657506301ffc9a760e01b6001600160e01b0319831614610a96565b60006001600160e01b03198216632a9f3abf60e11b1480610a965750610a9682611a3a565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60045415801590611b5357504260045411155b611b6f5760405162461bcd60e51b8152600401610a68906142af565b6000805b82811015611bc057858582818110611b8d57611b8d6146fb565b9050602002016020810190611ba29190613dd2565b611bac9083614536565b915080611bb881614674565b915050611b73565b5060105461ffff808216918391611beb91650100000000008104821691630100000090910416614536565b611bf59190614536565b61ffff161115611c175760405162461bcd60e51b8152600401610a6890614283565b80601060058282829054906101000a900461ffff16611c369190614536565b92506101000a81548161ffff021916908361ffff16021790555060005b82811015610fbe57611cb1848483818110611c7057611c706146fb565b9050602002016020810190611c8591906139bf565b878784818110611c9757611c976146fb565b9050602002016020810190611cac9190613dd2565b612d6f565b80611cbb81614674565b915050611c53565b60045415801590611cd657504260045411155b611cf25760405162461bcd60e51b8152600401610a68906142af565b60105461ffff808216918491611d1c91650100000000008104821691630100000090910416614536565b611d269190614536565b61ffff161115611d485760405162461bcd60e51b8152600401610a6890614283565b81601060058282829054906101000a900461ffff16611d679190614536565b92506101000a81548161ffff021916908361ffff160217905550610d3b8183612d6f565b8051610d3b90600b906020840190613794565b6000611b39836001600160a01b038416612d93565b8151835114611e155760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a68565b6001600160a01b038416611e3b5760405162461bcd60e51b8152600401610a68906142fc565b33611e4a818787878787612e86565b60005b8451811015611f33576000858281518110611e6a57611e6a6146fb565b602002602001015190506000858381518110611e8857611e886146fb565b60209081029190910181015160008481526009835260408082206001600160a01b038e168352909352919091205490915081811015611ed95760405162461bcd60e51b8152600401610a6890614341565b60008381526009602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f1890849061455c565b9250508190555050505080611f2c90614674565b9050611e4d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f839291906141cc565b60405180910390a4610fbe818787878787612e8f565b6000610a96825490565b6000611b398383612ffa565b60025460ff16611fec5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610a68565b600654421015801561200057506007544211155b6111415760405162461bcd60e51b815260206004820152601560248201527427baba39b4b2329031b630b4b6903832b934b7b21760591b6044820152606401610a68565b610fbe86868686868661263c565b80601060038282829054906101000a900461ffff166120719190614536565b92506101000a81548161ffff021916908361ffff160217905550610d3b8282612d6f565b6000600381905560048190556002805460ff19169055600681905560078190556040517fb02389feab3af620e2374d4d559b436ea226b1e6c9c31fe77dfbff3d40cbe9ba9190a1565b6000611b39836001600160a01b038416613024565b60025460ff16156121165760405162461bcd60e51b8152600401610a68906143c0565b60005b81811015610e8557612177838383818110612136576121366146fb565b905060200201602081019061214b91906139bf565b86868481811061215d5761215d6146fb565b90506020020160208101906121729190613dd2565b612052565b8061218181614674565b915050612119565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60025460ff16156121fe5760405162461bcd60e51b8152600401610a68906143c0565b610d3b8183612052565b6000808290506020815111156122505760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964206e6f6e636560981b6044820152606401610a68565b50506020015190565b60025460ff161561227c5760405162461bcd60e51b8152600401610a68906143c0565b4285116122cb5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420616374697661746520696e20746865207061737400000000006044820152606401610a68565b8383106123325760405162461bcd60e51b815260206004820152602f60248201527f50726573616c6520496e74657276616c2063616e6e6f74206265206c6f6e676560448201526e72207468616e207468652073616c6560881b6064820152608401610a68565b8082111580156123425750848111155b6123845760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420636c61696d2074696d657360681b6044820152606401610a68565b6003859055612393848661455c565b60048190556005849055600683905560078290556002805460ff1916600117905560035460408051918252602082019290925290810184905260608101839052608081018290527fe512d106f8172b08abfd2fc5ddfdb7e2401381780ae29e29f1352b862f1d27319060a00160405180910390a15050505050565b816001600160a01b0316836001600160a01b031614156124825760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a68565b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60025460ff1661252c5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610a68565b6003544210156111415760405162461bcd60e51b815260206004820152601560248201527450757263686173696e67206e6f742061637469766560581b6044820152606401610a68565b600060035442118015611a35575060055460035461259490426145ca565b10905090565b6000806125a5612a22565b156125c35750503360009081526011602052604090205461ffff1690565b610a9633611281565b600f546125dd9061ffff8316614588565b3414610c765760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420707572636861736520616d6f756e742073656e74000000006044820152606401610a68565b600d546125dd9061ffff8316614588565b600061267d84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061220892505050565b60008181526001602052604090205490915060ff16156126db5760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610a68565b60006127086126ed8461ffff16613073565b516126f986601461455c565b612703919061455c565b613073565b3386866127188761ffff16613073565b60405160200161272c959493929190613ffc565b6040516020818303038152906040528051906020012090508088146127875760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610a68565b60006127cb88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d939250506131789050565b6000549091506001600160a01b0380831691161461281f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a68565b50506000908152600160208190526040909120805460ff19169091179055505050505050565b600061288683838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061220892505050565b60008181526001602052604090205490915060ff16156128e45760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610a68565b60006128f461270384601461455c565b33858560405160200161290a9493929190613f8c565b6040516020818303038152906040528051906020012090508087146129655760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610a68565b60006129a987878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c939250506131789050565b6000549091506001600160a01b038083169116146129fd5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a68565b50506000908152600160208190526040909120805460ff191690911790555050505050565b601354600090600160a01b900460ff16158015611a355750600c54600160201b900461ffff16151580611a35575050600e5461ffff16151590565b6001600160a01b038316612abf5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610a68565b33612aee81856000612ad087613194565b612ad987613194565b60405180602001604052806000815250612e86565b60008381526009602090815260408083206001600160a01b038816845290915290205482811015612b6d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610a68565b60008481526009602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416612c005760405162461bcd60e51b8152600401610a68906142fc565b33612c1f818787612c1088613194565b612c1988613194565b87612e86565b60008481526009602090815260408083206001600160a01b038a16845290915290205483811015612c625760405162461bcd60e51b8152600401610a6890614341565b60008581526009602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612ca190849061455c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d018288888888886131df565b50505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d57576040519150601f19603f3d011682016040523d82523d6000602084013e612d5c565b606091505b5050905080612d6a57600080fd5b505050565b610d3b82600161ffff168361ffff16604051806020016040528060008152506132a9565b60008181526001830160205260408120548015612e7c576000612db76001836145ca565b8554909150600090612dcb906001906145ca565b9050818114612e30576000866000018281548110612deb57612deb6146fb565b9060005260206000200154905080876000018481548110612e0e57612e0e6146fb565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612e4157612e416146e5565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a96565b6000915050610a96565b610fbe856133ac565b6001600160a01b0384163b15610fbe5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ed39089908990889088908890600401614088565b602060405180830381600087803b158015612eed57600080fd5b505af1925050508015612f1d575060408051601f3d908101601f19168201909252612f1a91810190613d2c565b60015b612fca57612f29614727565b806308c379a01415612f635750612f3e614743565b80612f495750612f65565b8060405162461bcd60e51b8152600401610a6891906141df565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a68565b6001600160e01b0319811663bc197c8160e01b14612d015760405162461bcd60e51b8152600401610a68906141f2565b6000826000018281548110613011576130116146fb565b9060005260206000200154905092915050565b600081815260018301602052604081205461306b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a96565b506000610a96565b6060816130975750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130c157806130ab81614674565b91506130ba9050600a83614574565b915061309b565b6000816001600160401b038111156130db576130db614711565b6040519080825280601f01601f191660200182016040528015613105576020820181803683370190505b5090505b84156131705761311a6001836145ca565b9150613127600a8661468f565b61313290603061455c565b60f81b818381518110613147576131476146fb565b60200101906001600160f81b031916908160001a905350613169600a86614574565b9450613109565b949350505050565b60008060006131878585613446565b915091506110e7816134b3565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106131ce576131ce6146fb565b602090810291909101015292915050565b6001600160a01b0384163b15610fbe5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061322390899089908890889088906004016140e6565b602060405180830381600087803b15801561323d57600080fd5b505af192505050801561326d575060408051601f3d908101601f1916820190925261326a91810190613d2c565b60015b61327957612f29614727565b6001600160e01b0319811663f23a6e6160e01b14612d015760405162461bcd60e51b8152600401610a68906141f2565b6001600160a01b0384166133095760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a68565b3361331a81600087612c1088613194565b60008481526009602090815260408083206001600160a01b03891684529091528120805485929061334c90849061455c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e85816000878787876131df565b601354600160a01b900460ff1615806133ce57506133c8611a0d565b61ffff16155b806133e8575060025460ff1680156133e857506004544210155b806133fa57506001600160a01b038116155b610c765760405162461bcd60e51b815260206004820152601f60248201527f5472616e73666572206c6f636b656420756e74696c2073616c6520656e6473006044820152606401610a68565b60008082516041141561347d5760208301516040840151606085015160001a6134718782858561366e565b94509450505050610d73565b8251604014156134a7576020830151604084015161349c86838361375b565b935093505050610d73565b50600090506002610d73565b60008160048111156134c7576134c76146cf565b14156134d05750565b60018160048111156134e4576134e46146cf565b14156135325760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a68565b6002816004811115613546576135466146cf565b14156135945760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a68565b60038160048111156135a8576135a86146cf565b14156136015760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a68565b6004816004811115613615576136156146cf565b1415610c765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a68565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136a55750600090506003613752565b8460ff16601b141580156136bd57508460ff16601c14155b156136ce5750600090506004613752565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613722573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661374b57600060019250925050613752565b9150600090505b94509492505050565b6000806001600160ff1b0383168161377860ff86901c601b61455c565b90506137868782888561366e565b935093505050935093915050565b8280546137a09061460d565b90600052602060002090601f0160209004810192826137c25760008555613808565b82601f106137db57805160ff1916838001178555613808565b82800160010185558215613808579182015b828111156138085782518255916020019190600101906137ed565b50610f369291505b80821115610f365760008155600101613810565b60006001600160401b0383111561383d5761383d614711565b604051613854601f8501601f191660200182614648565b80915083815284848401111561386957600080fd5b83836020830137600060208583010152509392505050565b60008083601f84011261389357600080fd5b5081356001600160401b038111156138aa57600080fd5b6020830191508360208260051b8501011115610d7357600080fd5b600082601f8301126138d657600080fd5b813560206138e382614513565b6040516138f08282614648565b8381528281019150858301600585901b8701840188101561391057600080fd5b60005b8581101561392f57813584529284019290840190600101613913565b5090979650505050505050565b80358015158114610bb057600080fd5b60008083601f84011261395e57600080fd5b5081356001600160401b0381111561397557600080fd5b602083019150836020828501011115610d7357600080fd5b600082601f83011261399e57600080fd5b611b3983833560208501613824565b803561ffff81168114610bb057600080fd5b6000602082840312156139d157600080fd5b8135611b39816147cc565b600080604083850312156139ef57600080fd5b82356139fa816147cc565b946020939093013593505050565b60008060408385031215613a1b57600080fd5b8235613a26816147cc565b91506020830135613a36816147cc565b809150509250929050565b600080600080600060a08688031215613a5957600080fd5b8535613a64816147cc565b94506020860135613a74816147cc565b935060408601356001600160401b0380821115613a9057600080fd5b613a9c89838a016138c5565b94506060880135915080821115613ab257600080fd5b613abe89838a016138c5565b93506080880135915080821115613ad457600080fd5b50613ae18882890161398d565b9150509295509295909350565b600080600080600060a08688031215613b0657600080fd5b8535613b11816147cc565b94506020860135613b21816147cc565b9350604086013592506060860135915060808601356001600160401b03811115613b4a57600080fd5b613ae18882890161398d565b60008060408385031215613b6957600080fd5b8235613b74816147cc565b9150613b826020840161393c565b90509250929050565b60008060408385031215613b9e57600080fd5b8235613ba9816147cc565b9150613b82602084016139ad565b60008060408385031215613bca57600080fd5b82356001600160401b0380821115613be157600080fd5b818501915085601f830112613bf557600080fd5b81356020613c0282614513565b604051613c0f8282614648565b8381528281019150858301600585901b870184018b1015613c2f57600080fd5b600096505b84871015613c5b578035613c47816147cc565b835260019690960195918301918301613c34565b5096505086013592505080821115613c7257600080fd5b50613c7f858286016138c5565b9150509250929050565b60008060008060408587031215613c9f57600080fd5b84356001600160401b0380821115613cb657600080fd5b613cc288838901613881565b90965094506020870135915080821115613cdb57600080fd5b50613ce887828801613881565b95989497509550505050565b600060208284031215613d0657600080fd5b611b398261393c565b600060208284031215613d2157600080fd5b8135611b39816147e1565b600060208284031215613d3e57600080fd5b8151611b39816147e1565b60008060208385031215613d5c57600080fd5b82356001600160401b03811115613d7257600080fd5b613d7e8582860161394c565b90969095509350505050565b600060208284031215613d9c57600080fd5b81356001600160401b03811115613db257600080fd5b8201601f81018413613dc357600080fd5b61317084823560208401613824565b600060208284031215613de457600080fd5b611b39826139ad565b60008060008060008060808789031215613e0657600080fd5b613e0f876139ad565b95506020870135945060408701356001600160401b0380821115613e3257600080fd5b613e3e8a838b0161394c565b90965094506060890135915080821115613e5757600080fd5b50613e6489828a0161394c565b979a9699509497509295939492505050565b600060208284031215613e8857600080fd5b5035919050565b60008060408385031215613ea257600080fd5b50508035926020909101359150565b600080600080600060a08688031215613ec957600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600081518084526020808501945080840160005b83811015613f255781516001600160a01b031687529582019590820190600101613f00565b509495945050505050565b600081518084526020808501945080840160005b83811015613f2557815187529582019590820190600101613f44565b60008151808452613f788160208601602086016145e1565b601f01601f19169290920160200192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008551613fc481601a850160208a016145e1565b606086901b6bffffffffffffffffffffffff1916601a918401918201528385602e83013760009301602e019283525090949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000865161403481601a850160208b016145e1565b606087901b6bffffffffffffffffffffffff1916601a918401918201528486602e8301378481019050602e81016000815284516140758183602089016145e1565b91909101602e0198975050505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906140b490830186613f30565b82810360608401526140c68186613f30565b905082810360808401526140da8185613f60565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061412090830184613f60565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561416c5783516001600160a01b031683529284019291840191600101614147565b50909695505050505050565b602081526000611b396020830184613eec565b60408152600061419e6040830185613eec565b82810360208401526141b08185613f30565b95945050505050565b602081526000611b396020830184613f30565b60408152600061419e6040830185613f30565b602081526000611b396020830184613f60565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b602080825260129082015271151bdbc81b585b9e481c995c5d595cdd195960721b604082015260600190565b6020808252602d908201527f43616e6e6f74206d696e74207265736572766520756e74696c2061667465722060408201526c73616c6520636f6d706c65746560981b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d416c72656164792061637469766560901b604082015260600190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b815161ffff1681526101e08101602083015161444e602084018261ffff169052565b506040830151614464604084018261ffff169052565b50606083015160608301526080830151614484608084018261ffff169052565b5060a083015160a083015260c08301516144a460c084018261ffff169052565b5060e08301516144ba60e084018261ffff169052565b506101008381015115159083015261012080840151908301526101408084015190830152610160808401519083015261018080840151908301526101a080840151908301526101c0928301511515929091019190915290565b60006001600160401b0382111561452c5761452c614711565b5060051b60200190565b600061ffff808316818516808303821115614553576145536146a3565b01949350505050565b6000821982111561456f5761456f6146a3565b500190565b600082614583576145836146b9565b500490565b60008160001904831182151516156145a2576145a26146a3565b500290565b600061ffff838116908316818110156145c2576145c26146a3565b039392505050565b6000828210156145dc576145dc6146a3565b500390565b60005b838110156145fc5781810151838201526020016145e4565b83811115610c0b5750506000910152565b600181811c9082168061462157607f821691505b6020821081141561464257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561466d5761466d614711565b6040525050565b6000600019821415614688576146886146a3565b5060010190565b60008261469e5761469e6146b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156147405760046000803e5060005160e01c5b90565b600060443d10156147515790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561478057505050505090565b82850191508151818111156147985750505050505090565b843d87010160208285010111156147b25750505050505090565b6147c160208286010187614648565b509095945050505050565b6001600160a01b0381168114610c7657600080fd5b6001600160e01b031981168114610c7657600080fdfea2646970667358221220cdbd2688bef391789bcf16f937e96f58f9402ba918a2045a7258c881b1043cf064736f6c63430008070033000000000000000000000000d46f1966b470f848b20000842f7ee69b4d01203c

Deployed Bytecode

0x6080604052600436106103195760003560e01c80636f6f53fe116101ab578063bb3bafd6116100f7578063e985e9c511610095578063f2fde38b1161006f578063f2fde38b14610990578063f3fef3a3146109b0578063f4743070146109d0578063fe73ad77146109eb57600080fd5b8063e985e9c51461090c578063f19605d614610955578063f242432a1461097057600080fd5b8063d55f2d9d116100d1578063d55f2d9d146108a5578063d5abeb01146108c5578063defd6c5f146108e0578063e3b9398b146108f657600080fd5b8063bb3bafd614610834578063c19d93fb14610862578063c8a84a821461088457600080fd5b80638da5cb5b11610164578063a22cb4651161013e578063a22cb465146107be578063a6a11bb1146107de578063b0ad3541146107f4578063b9c4d9fb1461080757600080fd5b80638da5cb5b14610756578063923c235b1461077e578063956447d81461079e57600080fd5b80636f6f53fe146106b557806370a08231146106d5578063715018a6146106f557806378e979251461070a57806381960b5c14610720578063850217d81461073657600080fd5b80632b85ed9c1161026a57806336ef89af1161022357806351b42b00116101fd57806351b42b001461064057806355461d6d146106555780636c2f5acd146106755780636d73e6691461069557600080fd5b806336ef89af146105ea57806340d1d2551461060a5780634e1273f41461062057600080fd5b80632b85ed9c146105305780632d345670146105525780632eb2c2d6146105725780633197cbb61461059257806331ae450b146105a857806335e60bd4146105ca57600080fd5b806316317c21116102d7578063249c478b116102b1578063249c478b1461049157806324d7806c146104b15780632639f460146104d15780632a55205a146104f157600080fd5b806316317c211461041657806317bffd6b1461044d578063188866571461046f57600080fd5b8062fdd58e1461031e57806301ffc9a71461035157806302fb0c5e146103815780630e89341c1461039b5780630ebd4c7f146103c857806312686aae146103f5575b600080fd5b34801561032a57600080fd5b5061033e6103393660046139dc565b610a00565b6040519081526020015b60405180910390f35b34801561035d57600080fd5b5061037161036c366004613d0f565b610a9c565b6040519015158152602001610348565b34801561038d57600080fd5b506002546103719060ff1681565b3480156103a757600080fd5b506103bb6103b6366004613e76565b610ac5565b60405161034891906141df565b3480156103d457600080fd5b506103e86103e3366004613e76565b610b59565b60405161034891906141b9565b34801561040157600080fd5b5060135461037190600160a01b900460ff1681565b34801561042257600080fd5b5060105461043a9065010000000000900461ffff1681565b60405161ffff9091168152602001610348565b34801561045957600080fd5b5061046d610468366004613c89565b610bb5565b005b34801561047b57600080fd5b50600c5461043a90600160201b900461ffff1681565b34801561049d57600080fd5b5061046d6104ac366004613dd2565b610c11565b3480156104bd57600080fd5b506103716104cc3660046139bf565b610c79565b3480156104dd57600080fd5b5061046d6104ec366004613d49565b610cb2565b3480156104fd57600080fd5b5061051161050c366004613e8f565b610d3f565b604080516001600160a01b039093168352602083019190915201610348565b34801561053c57600080fd5b5060105461043a906301000000900461ffff1681565b34801561055e57600080fd5b5061046d61056d3660046139bf565b610d7a565b34801561057e57600080fd5b5061046d61058d366004613a41565b610df5565b34801561059e57600080fd5b5061033e60045481565b3480156105b457600080fd5b506105bd610e8c565b604051610348919061412b565b3480156105d657600080fd5b5061046d6105e5366004613cf4565b610f3a565b3480156105f657600080fd5b5061046d610605366004613ded565b610f9e565b34801561061657600080fd5b5061033e60075481565b34801561062c57600080fd5b506103e861063b366004613bb7565b610fc6565b34801561064c57600080fd5b5061046d6110ef565b34801561066157600080fd5b506010546103719062010000900460ff1681565b34801561068157600080fd5b5061046d6106903660046139dc565b611143565b3480156106a157600080fd5b5061046d6106b03660046139bf565b6111b1565b3480156106c157600080fd5b5061046d6106d0366004613c89565b61122b565b3480156106e157600080fd5b5061033e6106f03660046139bf565b611281565b34801561070157600080fd5b5061046d61128e565b34801561071657600080fd5b5061033e60035481565b34801561072c57600080fd5b5061033e600f5481565b34801561074257600080fd5b5061046d610751366004613dd2565b6112c2565b34801561076257600080fd5b506008546040516001600160a01b039091168152602001610348565b34801561078a57600080fd5b50610371610799366004613d8a565b611327565b3480156107aa57600080fd5b5061046d6107b9366004613eb1565b61134c565b3480156107ca57600080fd5b5061046d6107d9366004613b56565b6113a3565b3480156107ea57600080fd5b5061033e60065481565b61046d610802366004613ded565b6113ae565b34801561081357600080fd5b50610827610822366004613e76565b611616565b6040516103489190614178565b34801561084057600080fd5b5061085461084f366004613e76565b61168f565b60405161034892919061418b565b34801561086e57600080fd5b50610877611743565b604051610348919061442c565b34801561089057600080fd5b50600c5461043a9062010000900461ffff1681565b3480156108b157600080fd5b5061046d6108c0366004613b8b565b611894565b3480156108d157600080fd5b5060105461043a9061ffff1681565b3480156108ec57600080fd5b5061033e600d5481565b34801561090257600080fd5b5061033e60055481565b34801561091857600080fd5b50610371610927366004613a08565b6001600160a01b039182166000908152600a6020908152604080832093909416825291909152205460ff1690565b34801561096157600080fd5b50600c5461043a9061ffff1681565b34801561097c57600080fd5b5061046d61098b366004613aee565b6118dc565b34801561099c57600080fd5b5061046d6109ab3660046139bf565b611921565b3480156109bc57600080fd5b5061046d6109cb3660046139dc565b6119b9565b3480156109dc57600080fd5b50600e5461043a9061ffff1681565b3480156109f757600080fd5b5061043a611a0d565b60006001600160a01b038316610a715760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526009602090815260408083206001600160a01b03861684529091529020545b92915050565b6000610aa782611a3a565b80610ab65750610ab682611aa6565b80610a965750610a9682611af6565b6060600b8054610ad49061460d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b009061460d565b8015610b4d5780601f10610b2257610100808354040283529160200191610b4d565b820191906000526020600020905b815481529060010190602001808311610b3057829003601f168201915b50505050509050919050565b6013546060906001600160a01b031615610bb057604080516001808252818301909252906020808301908036833701905050905060125481600081518110610ba357610ba36146fb565b6020026020010181815250505b919050565b33610bc86008546001600160a01b031690565b6001600160a01b03161480610be35750610be3601433611b1b565b610bff5760405162461bcd60e51b8152600401610a68906143e8565b610c0b84848484611b40565b50505050565b33610c246008546001600160a01b031690565b6001600160a01b03161480610c3f5750610c3f601433611b1b565b610c5b5760405162461bcd60e51b8152600401610a68906143e8565b610c7681610c716008546001600160a01b031690565b611cc3565b50565b6000816001600160a01b0316610c976008546001600160a01b031690565b6001600160a01b03161480610a965750610a96601483611b1b565b33610cc56008546001600160a01b031690565b6001600160a01b03161480610ce05750610ce0601433611b1b565b610cfc5760405162461bcd60e51b8152600401610a68906143e8565b610d3b82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d8b92505050565b5050565b60135460125460009182916001600160a01b039091169061271090610d649086614588565b610d6e9190614574565b915091505b9250929050565b6008546001600160a01b03163314610da45760405162461bcd60e51b8152600401610a689061438b565b610daf601482611b1b565b15610c765760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610d3b601482611d9e565b6001600160a01b038516331480610e115750610e118533610927565b610e785760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610a68565b610e858585858585611db3565b5050505050565b6060610e986014611f99565b6001600160401b03811115610eaf57610eaf614711565b604051908082528060200260200182016040528015610ed8578160200160208202803683370190505b50905060005b610ee86014611f99565b811015610f3657610efa601482611fa3565b828281518110610f0c57610f0c6146fb565b6001600160a01b039092166020928302919091019091015280610f2e81614674565b915050610ede565b5090565b33610f4d6008546001600160a01b031690565b6001600160a01b03161480610f685750610f68601433611b1b565b610f845760405162461bcd60e51b8152600401610a68906143e8565b6013805460ff60a01b1916600160a01b8315150217905550565b610fa6611faf565b610fb485858585858b612044565b610fbe3387612052565b505050505050565b6060815183511461102b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610a68565b600083516001600160401b0381111561104657611046614711565b60405190808252806020026020018201604052801561106f578160200160208202803683370190505b50905060005b84518110156110e7576110ba858281518110611093576110936146fb565b60200260200101518583815181106110ad576110ad6146fb565b6020026020010151610a00565b8282815181106110cc576110cc6146fb565b60209081029190910101526110e081614674565b9050611075565b509392505050565b336111026008546001600160a01b031690565b6001600160a01b0316148061111d575061111d601433611b1b565b6111395760405162461bcd60e51b8152600401610a68906143e8565b611141612095565b565b336111566008546001600160a01b031690565b6001600160a01b031614806111715750611171601433611b1b565b61118d5760405162461bcd60e51b8152600401610a68906143e8565b601380546001600160a01b0319166001600160a01b03841617905560128190555050565b6008546001600160a01b031633146111db5760405162461bcd60e51b8152600401610a689061438b565b6111e6601482611b1b565b610c765760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610d3b6014826120de565b3361123e6008546001600160a01b031690565b6001600160a01b031614806112595750611259601433611b1b565b6112755760405162461bcd60e51b8152600401610a68906143e8565b610c0b848484846120f3565b6000610a96826001610a00565b6008546001600160a01b031633146112b85760405162461bcd60e51b8152600401610a689061438b565b6111416000612189565b336112d56008546001600160a01b031690565b6001600160a01b031614806112f057506112f0601433611b1b565b61130c5760405162461bcd60e51b8152600401610a68906143e8565b610c76816113226008546001600160a01b031690565b6121db565b60008061133383612208565b60009081526001602052604090205460ff169392505050565b3361135f6008546001600160a01b031690565b6001600160a01b0316148061137a575061137a601433611b1b565b6113965760405162461bcd60e51b8152600401610a68906143e8565b610e858585858585612259565b610d3b33838361240e565b6113b66124ef565b60006113c0612576565b905060006113cc61259a565b90506113d6611a0d565b61ffff168861ffff161115801561142157508180156113fd575060105462010000900460ff165b8061140c5750600c5461ffff16155b806114215750600c5461ffff90811690891611155b61143d5760405162461bcd60e51b8152600401610a6890614283565b811561150b5760105462010000900460ff16806114e15750600e5461ffff16158061148d5750600e5461ffff168110801561148d5750600e5461148590829061ffff166145ca565b8861ffff1611155b80156114e15750600c54600160201b900461ffff1615806114e15750600c54600160201b900461ffff16811080156114e15750600c546114d9908290600160201b900461ffff166145ca565b8861ffff1611155b6114fd5760405162461bcd60e51b8152600401610a6890614283565b611506886125cc565b61157d565b600c54600160201b900461ffff1615806115585750600c54600160201b900461ffff16811080156115585750600c54611550908290600160201b900461ffff166145ca565b8861ffff1611155b6115745760405162461bcd60e51b8152600401610a6890614283565b61157d8861262b565b818015611592575060105462010000900460ff165b156115aa576115a587878787878d61263c565b6115b7565b6115b78787878787612845565b6115bf612a22565b156116025733600090815260116020526040812080548a92906115e790849061ffff16614536565b92506101000a81548161ffff021916908361ffff1602179055505b61160c3389612052565b5050505050505050565b6013546060906001600160a01b031615610bb0576040805160018082528183019092529060208083019080368337505060135482519293506001600160a01b03169183915060009061166a5761166a6146fb565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60135460609081906001600160a01b03161561173e576040805160018082528183019092529060208083019080368337505060135482519294506001600160a01b0316918491506000906116e5576116e56146fb565b6001600160a01b039290921660209283029190910182015260408051600180825281830190925291828101908036833701905050905060125481600081518110611731576117316146fb565b6020026020010181815250505b915091565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c081018290529033156117cf576117ca61259a565b6117d2565b60005b604080516101e081018252600c5461ffff8082168352620100009091041660208201529192508101611802611a0d565b61ffff9081168252600d546020830152600c54600160201b900481166040830152600f546060830152600e54811660808301529290921660a083015260025460ff908116151560c084015260035460e084015260045461010084015260055461012084015260065461014084015260075461016084015260105462010000900416151561018090920191909152919050565b6001600160a01b0382163314806118b057506118b08233610927565b6118cc5760405162461bcd60e51b8152600401610a689061423a565b610d3b82600161ffff8416612a5d565b6001600160a01b0385163314806118f857506118f88533610927565b6119145760405162461bcd60e51b8152600401610a689061423a565b610e858585858585612bda565b6008546001600160a01b0316331461194b5760405162461bcd60e51b8152600401610a689061438b565b6001600160a01b0381166119b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a68565b610c7681612189565b336119cc6008546001600160a01b031690565b6001600160a01b031614806119e757506119e7601433611b1b565b611a035760405162461bcd60e51b8152600401610a68906143e8565b610d3b8282612d0a565b601054600c54600091611a359161ffff630100000090920482169162010000909104166145a7565b905090565b60006001600160e01b0319821663e1ecb3c760e01b1480611a6b57506001600160e01b03198216635d9dd7eb60e11b145b80611a8657506001600160e01b0319821663152a902d60e11b145b80610a9657506001600160e01b03198216632dde656160e21b1492915050565b60006001600160e01b03198216636cdb3d1360e11b1480611ad757506001600160e01b031982166303a24d0760e21b145b80610a9657506301ffc9a760e01b6001600160e01b0319831614610a96565b60006001600160e01b03198216632a9f3abf60e11b1480610a965750610a9682611a3a565b6001600160a01b038116600090815260018301602052604081205415155b9392505050565b60045415801590611b5357504260045411155b611b6f5760405162461bcd60e51b8152600401610a68906142af565b6000805b82811015611bc057858582818110611b8d57611b8d6146fb565b9050602002016020810190611ba29190613dd2565b611bac9083614536565b915080611bb881614674565b915050611b73565b5060105461ffff808216918391611beb91650100000000008104821691630100000090910416614536565b611bf59190614536565b61ffff161115611c175760405162461bcd60e51b8152600401610a6890614283565b80601060058282829054906101000a900461ffff16611c369190614536565b92506101000a81548161ffff021916908361ffff16021790555060005b82811015610fbe57611cb1848483818110611c7057611c706146fb565b9050602002016020810190611c8591906139bf565b878784818110611c9757611c976146fb565b9050602002016020810190611cac9190613dd2565b612d6f565b80611cbb81614674565b915050611c53565b60045415801590611cd657504260045411155b611cf25760405162461bcd60e51b8152600401610a68906142af565b60105461ffff808216918491611d1c91650100000000008104821691630100000090910416614536565b611d269190614536565b61ffff161115611d485760405162461bcd60e51b8152600401610a6890614283565b81601060058282829054906101000a900461ffff16611d679190614536565b92506101000a81548161ffff021916908361ffff160217905550610d3b8183612d6f565b8051610d3b90600b906020840190613794565b6000611b39836001600160a01b038416612d93565b8151835114611e155760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610a68565b6001600160a01b038416611e3b5760405162461bcd60e51b8152600401610a68906142fc565b33611e4a818787878787612e86565b60005b8451811015611f33576000858281518110611e6a57611e6a6146fb565b602002602001015190506000858381518110611e8857611e886146fb565b60209081029190910181015160008481526009835260408082206001600160a01b038e168352909352919091205490915081811015611ed95760405162461bcd60e51b8152600401610a6890614341565b60008381526009602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611f1890849061455c565b9250508190555050505080611f2c90614674565b9050611e4d565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611f839291906141cc565b60405180910390a4610fbe818787878787612e8f565b6000610a96825490565b6000611b398383612ffa565b60025460ff16611fec5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610a68565b600654421015801561200057506007544211155b6111415760405162461bcd60e51b815260206004820152601560248201527427baba39b4b2329031b630b4b6903832b934b7b21760591b6044820152606401610a68565b610fbe86868686868661263c565b80601060038282829054906101000a900461ffff166120719190614536565b92506101000a81548161ffff021916908361ffff160217905550610d3b8282612d6f565b6000600381905560048190556002805460ff19169055600681905560078190556040517fb02389feab3af620e2374d4d559b436ea226b1e6c9c31fe77dfbff3d40cbe9ba9190a1565b6000611b39836001600160a01b038416613024565b60025460ff16156121165760405162461bcd60e51b8152600401610a68906143c0565b60005b81811015610e8557612177838383818110612136576121366146fb565b905060200201602081019061214b91906139bf565b86868481811061215d5761215d6146fb565b90506020020160208101906121729190613dd2565b612052565b8061218181614674565b915050612119565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60025460ff16156121fe5760405162461bcd60e51b8152600401610a68906143c0565b610d3b8183612052565b6000808290506020815111156122505760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964206e6f6e636560981b6044820152606401610a68565b50506020015190565b60025460ff161561227c5760405162461bcd60e51b8152600401610a68906143c0565b4285116122cb5760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420616374697661746520696e20746865207061737400000000006044820152606401610a68565b8383106123325760405162461bcd60e51b815260206004820152602f60248201527f50726573616c6520496e74657276616c2063616e6e6f74206265206c6f6e676560448201526e72207468616e207468652073616c6560881b6064820152608401610a68565b8082111580156123425750848111155b6123845760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420636c61696d2074696d657360681b6044820152606401610a68565b6003859055612393848661455c565b60048190556005849055600683905560078290556002805460ff1916600117905560035460408051918252602082019290925290810184905260608101839052608081018290527fe512d106f8172b08abfd2fc5ddfdb7e2401381780ae29e29f1352b862f1d27319060a00160405180910390a15050505050565b816001600160a01b0316836001600160a01b031614156124825760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a68565b6001600160a01b038381166000818152600a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60025460ff1661252c5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610a68565b6003544210156111415760405162461bcd60e51b815260206004820152601560248201527450757263686173696e67206e6f742061637469766560581b6044820152606401610a68565b600060035442118015611a35575060055460035461259490426145ca565b10905090565b6000806125a5612a22565b156125c35750503360009081526011602052604090205461ffff1690565b610a9633611281565b600f546125dd9061ffff8316614588565b3414610c765760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420707572636861736520616d6f756e742073656e74000000006044820152606401610a68565b600d546125dd9061ffff8316614588565b600061267d84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061220892505050565b60008181526001602052604090205490915060ff16156126db5760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610a68565b60006127086126ed8461ffff16613073565b516126f986601461455c565b612703919061455c565b613073565b3386866127188761ffff16613073565b60405160200161272c959493929190613ffc565b6040516020818303038152906040528051906020012090508088146127875760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610a68565b60006127cb88888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508d939250506131789050565b6000549091506001600160a01b0380831691161461281f5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a68565b50506000908152600160208190526040909120805460ff19169091179055505050505050565b600061288683838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061220892505050565b60008181526001602052604090205490915060ff16156128e45760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610a68565b60006128f461270384601461455c565b33858560405160200161290a9493929190613f8c565b6040516020818303038152906040528051906020012090508087146129655760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610a68565b60006129a987878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508c939250506131789050565b6000549091506001600160a01b038083169116146129fd5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610a68565b50506000908152600160208190526040909120805460ff191690911790555050505050565b601354600090600160a01b900460ff16158015611a355750600c54600160201b900461ffff16151580611a35575050600e5461ffff16151590565b6001600160a01b038316612abf5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610a68565b33612aee81856000612ad087613194565b612ad987613194565b60405180602001604052806000815250612e86565b60008381526009602090815260408083206001600160a01b038816845290915290205482811015612b6d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610a68565b60008481526009602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416612c005760405162461bcd60e51b8152600401610a68906142fc565b33612c1f818787612c1088613194565b612c1988613194565b87612e86565b60008481526009602090815260408083206001600160a01b038a16845290915290205483811015612c625760405162461bcd60e51b8152600401610a6890614341565b60008581526009602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612ca190849061455c565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612d018288888888886131df565b50505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612d57576040519150601f19603f3d011682016040523d82523d6000602084013e612d5c565b606091505b5050905080612d6a57600080fd5b505050565b610d3b82600161ffff168361ffff16604051806020016040528060008152506132a9565b60008181526001830160205260408120548015612e7c576000612db76001836145ca565b8554909150600090612dcb906001906145ca565b9050818114612e30576000866000018281548110612deb57612deb6146fb565b9060005260206000200154905080876000018481548110612e0e57612e0e6146fb565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612e4157612e416146e5565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610a96565b6000915050610a96565b610fbe856133ac565b6001600160a01b0384163b15610fbe5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612ed39089908990889088908890600401614088565b602060405180830381600087803b158015612eed57600080fd5b505af1925050508015612f1d575060408051601f3d908101601f19168201909252612f1a91810190613d2c565b60015b612fca57612f29614727565b806308c379a01415612f635750612f3e614743565b80612f495750612f65565b8060405162461bcd60e51b8152600401610a6891906141df565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610a68565b6001600160e01b0319811663bc197c8160e01b14612d015760405162461bcd60e51b8152600401610a68906141f2565b6000826000018281548110613011576130116146fb565b9060005260206000200154905092915050565b600081815260018301602052604081205461306b57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610a96565b506000610a96565b6060816130975750506040805180820190915260018152600360fc1b602082015290565b8160005b81156130c157806130ab81614674565b91506130ba9050600a83614574565b915061309b565b6000816001600160401b038111156130db576130db614711565b6040519080825280601f01601f191660200182016040528015613105576020820181803683370190505b5090505b84156131705761311a6001836145ca565b9150613127600a8661468f565b61313290603061455c565b60f81b818381518110613147576131476146fb565b60200101906001600160f81b031916908160001a905350613169600a86614574565b9450613109565b949350505050565b60008060006131878585613446565b915091506110e7816134b3565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106131ce576131ce6146fb565b602090810291909101015292915050565b6001600160a01b0384163b15610fbe5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061322390899089908890889088906004016140e6565b602060405180830381600087803b15801561323d57600080fd5b505af192505050801561326d575060408051601f3d908101601f1916820190925261326a91810190613d2c565b60015b61327957612f29614727565b6001600160e01b0319811663f23a6e6160e01b14612d015760405162461bcd60e51b8152600401610a68906141f2565b6001600160a01b0384166133095760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610a68565b3361331a81600087612c1088613194565b60008481526009602090815260408083206001600160a01b03891684529091528120805485929061334c90849061455c565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610e85816000878787876131df565b601354600160a01b900460ff1615806133ce57506133c8611a0d565b61ffff16155b806133e8575060025460ff1680156133e857506004544210155b806133fa57506001600160a01b038116155b610c765760405162461bcd60e51b815260206004820152601f60248201527f5472616e73666572206c6f636b656420756e74696c2073616c6520656e6473006044820152606401610a68565b60008082516041141561347d5760208301516040840151606085015160001a6134718782858561366e565b94509450505050610d73565b8251604014156134a7576020830151604084015161349c86838361375b565b935093505050610d73565b50600090506002610d73565b60008160048111156134c7576134c76146cf565b14156134d05750565b60018160048111156134e4576134e46146cf565b14156135325760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a68565b6002816004811115613546576135466146cf565b14156135945760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a68565b60038160048111156135a8576135a86146cf565b14156136015760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a68565b6004816004811115613615576136156146cf565b1415610c765760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a68565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156136a55750600090506003613752565b8460ff16601b141580156136bd57508460ff16601c14155b156136ce5750600090506004613752565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613722573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661374b57600060019250925050613752565b9150600090505b94509492505050565b6000806001600160ff1b0383168161377860ff86901c601b61455c565b90506137868782888561366e565b935093505050935093915050565b8280546137a09061460d565b90600052602060002090601f0160209004810192826137c25760008555613808565b82601f106137db57805160ff1916838001178555613808565b82800160010185558215613808579182015b828111156138085782518255916020019190600101906137ed565b50610f369291505b80821115610f365760008155600101613810565b60006001600160401b0383111561383d5761383d614711565b604051613854601f8501601f191660200182614648565b80915083815284848401111561386957600080fd5b83836020830137600060208583010152509392505050565b60008083601f84011261389357600080fd5b5081356001600160401b038111156138aa57600080fd5b6020830191508360208260051b8501011115610d7357600080fd5b600082601f8301126138d657600080fd5b813560206138e382614513565b6040516138f08282614648565b8381528281019150858301600585901b8701840188101561391057600080fd5b60005b8581101561392f57813584529284019290840190600101613913565b5090979650505050505050565b80358015158114610bb057600080fd5b60008083601f84011261395e57600080fd5b5081356001600160401b0381111561397557600080fd5b602083019150836020828501011115610d7357600080fd5b600082601f83011261399e57600080fd5b611b3983833560208501613824565b803561ffff81168114610bb057600080fd5b6000602082840312156139d157600080fd5b8135611b39816147cc565b600080604083850312156139ef57600080fd5b82356139fa816147cc565b946020939093013593505050565b60008060408385031215613a1b57600080fd5b8235613a26816147cc565b91506020830135613a36816147cc565b809150509250929050565b600080600080600060a08688031215613a5957600080fd5b8535613a64816147cc565b94506020860135613a74816147cc565b935060408601356001600160401b0380821115613a9057600080fd5b613a9c89838a016138c5565b94506060880135915080821115613ab257600080fd5b613abe89838a016138c5565b93506080880135915080821115613ad457600080fd5b50613ae18882890161398d565b9150509295509295909350565b600080600080600060a08688031215613b0657600080fd5b8535613b11816147cc565b94506020860135613b21816147cc565b9350604086013592506060860135915060808601356001600160401b03811115613b4a57600080fd5b613ae18882890161398d565b60008060408385031215613b6957600080fd5b8235613b74816147cc565b9150613b826020840161393c565b90509250929050565b60008060408385031215613b9e57600080fd5b8235613ba9816147cc565b9150613b82602084016139ad565b60008060408385031215613bca57600080fd5b82356001600160401b0380821115613be157600080fd5b818501915085601f830112613bf557600080fd5b81356020613c0282614513565b604051613c0f8282614648565b8381528281019150858301600585901b870184018b1015613c2f57600080fd5b600096505b84871015613c5b578035613c47816147cc565b835260019690960195918301918301613c34565b5096505086013592505080821115613c7257600080fd5b50613c7f858286016138c5565b9150509250929050565b60008060008060408587031215613c9f57600080fd5b84356001600160401b0380821115613cb657600080fd5b613cc288838901613881565b90965094506020870135915080821115613cdb57600080fd5b50613ce887828801613881565b95989497509550505050565b600060208284031215613d0657600080fd5b611b398261393c565b600060208284031215613d2157600080fd5b8135611b39816147e1565b600060208284031215613d3e57600080fd5b8151611b39816147e1565b60008060208385031215613d5c57600080fd5b82356001600160401b03811115613d7257600080fd5b613d7e8582860161394c565b90969095509350505050565b600060208284031215613d9c57600080fd5b81356001600160401b03811115613db257600080fd5b8201601f81018413613dc357600080fd5b61317084823560208401613824565b600060208284031215613de457600080fd5b611b39826139ad565b60008060008060008060808789031215613e0657600080fd5b613e0f876139ad565b95506020870135945060408701356001600160401b0380821115613e3257600080fd5b613e3e8a838b0161394c565b90965094506060890135915080821115613e5757600080fd5b50613e6489828a0161394c565b979a9699509497509295939492505050565b600060208284031215613e8857600080fd5b5035919050565b60008060408385031215613ea257600080fd5b50508035926020909101359150565b600080600080600060a08688031215613ec957600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600081518084526020808501945080840160005b83811015613f255781516001600160a01b031687529582019590820190600101613f00565b509495945050505050565b600081518084526020808501945080840160005b83811015613f2557815187529582019590820190600101613f44565b60008151808452613f788160208601602086016145e1565b601f01601f19169290920160200192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008551613fc481601a850160208a016145e1565b606086901b6bffffffffffffffffffffffff1916601a918401918201528385602e83013760009301602e019283525090949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a00000000000081526000865161403481601a850160208b016145e1565b606087901b6bffffffffffffffffffffffff1916601a918401918201528486602e8301378481019050602e81016000815284516140758183602089016145e1565b91909101602e0198975050505050505050565b6001600160a01b0386811682528516602082015260a0604082018190526000906140b490830186613f30565b82810360608401526140c68186613f30565b905082810360808401526140da8185613f60565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061412090830184613f60565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561416c5783516001600160a01b031683529284019291840191600101614147565b50909695505050505050565b602081526000611b396020830184613eec565b60408152600061419e6040830185613eec565b82810360208401526141b08185613f30565b95945050505050565b602081526000611b396020830184613f30565b60408152600061419e6040830185613f30565b602081526000611b396020830184613f60565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b602080825260129082015271151bdbc81b585b9e481c995c5d595cdd195960721b604082015260600190565b6020808252602d908201527f43616e6e6f74206d696e74207265736572766520756e74696c2061667465722060408201526c73616c6520636f6d706c65746560981b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d416c72656164792061637469766560901b604082015260600190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b815161ffff1681526101e08101602083015161444e602084018261ffff169052565b506040830151614464604084018261ffff169052565b50606083015160608301526080830151614484608084018261ffff169052565b5060a083015160a083015260c08301516144a460c084018261ffff169052565b5060e08301516144ba60e084018261ffff169052565b506101008381015115159083015261012080840151908301526101408084015190830152610160808401519083015261018080840151908301526101a080840151908301526101c0928301511515929091019190915290565b60006001600160401b0382111561452c5761452c614711565b5060051b60200190565b600061ffff808316818516808303821115614553576145536146a3565b01949350505050565b6000821982111561456f5761456f6146a3565b500190565b600082614583576145836146b9565b500490565b60008160001904831182151516156145a2576145a26146a3565b500290565b600061ffff838116908316818110156145c2576145c26146a3565b039392505050565b6000828210156145dc576145dc6146a3565b500390565b60005b838110156145fc5781810151838201526020016145e4565b83811115610c0b5750506000910152565b600181811c9082168061462157607f821691505b6020821081141561464257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561466d5761466d614711565b6040525050565b6000600019821415614688576146886146a3565b5060010190565b60008261469e5761469e6146b9565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156147405760046000803e5060005160e01c5b90565b600060443d10156147515790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561478057505050505090565b82850191508151818111156147985750505050505090565b843d87010160208285010111156147b25750505050505090565b6147c160208286010187614648565b509095945050505050565b6001600160a01b0381168114610c7657600080fd5b6001600160e01b031981168114610c7657600080fdfea2646970667358221220cdbd2688bef391789bcf16f937e96f58f9402ba918a2045a7258c881b1043cf064736f6c63430008070033

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

000000000000000000000000d46f1966b470f848b20000842f7ee69b4d01203c

-----Decoded View---------------
Arg [0] : signingAddress_ (address): 0xd46F1966B470F848b20000842f7eE69B4d01203c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d46f1966b470f848b20000842f7ee69b4d01203c


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.