ETH Price: $2,690.71 (+0.83%)

Token

 

Overview

Max Total Supply

770

Holders

231

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
mr.kongz.eth
0x92f93FaDcACb86F6Bd163A87a0944341B838CC62
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
AnomalyPass

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 26 : AnomalyPass.sol
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                           //
//                                                                                                                           //
//                .----:     :--:     :--:    :------:    :----.     :----:     :----.     :--:   .---:     :---.            //
//                #@@@@%     *@@@-    +@@#  :%@@@@@@@@%-  *@@@@#     %@@@@+    .@@@@@#     #@@*    #@@%.   .@@@#             //
//               :@@@%@@=    *@@@@-   +@@#  %@@%=--=#@@%  *@@@@@-   =@@@@@+    =@@%@@@:    #@@*    .%@@#   #@@%.             //
//               *@@*=@@%    *@@@@@:  +@@#  @@@=    -@@@. *@@*%@#   %@##@@+    %@@=*@@*    #@@*     :@@@= +@@@:              //
//              .@@@:.@@@-   *@@%@@%: +@@#  @@@=    -@@@. *@@*-@@- =@@-#@@+   -@@% :@@@.   #@@*      =@@@=@@@-               //
//              *@@#  +@@#   *@@#:@@%.+@@#  @@@=    -@@@. *@@* %@%.%@# #@@+   #@@+  #@@+   #@@*       +@@@@@=                //
//             .@@@-  .@@@:  *@@# -@@%*@@#  @@@=    -@@@. *@@* -@@#@@: #@@+  -@@@.  -@@@.  #@@*        #@@@*                 //
//             +@@@%#  #@@*  *@@#  =@@@@@#  @@@=    -@@@. *@@*  #@@@*  #@@+  #@@@%+  %@@=  #@@*        :@@@:                 //
//             %@@#**. -@@@: *@@#   =@@@@#  @@@*    +@@@. *@@*  :+++.  #@@+ :@@@##*  +@@%  #@@*        :@@@:                 //
//            =@@@.     %@@* *@@#    +@@@#  +@@@@@@@@@@*  *@@*         #@@+ *@@%     .@@@= #@@@@@@@@@: :@@@:                 //
//            *##+      -### =##+     +##*   :+######*-   +##+         +##= ###-      +##* *#########: :###.                 //
//                                                                                                                           //
//                                                                                                                           //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/structs/BitMaps.sol";
import "./ERC1155MultiSupplies.sol";
import "./MultiMint.sol";
import "./Withdraw.sol";
import "./ExternalContracts.sol";
import "./Collection.sol";

// @author: miinded.com

contract AnomalyPass is ERC1155Multi, MultiMint, ExternalContracts, Collection, Withdraw {
    using BitMaps for BitMaps.BitMap;

    mapping(uint256 => BitMaps.BitMap) private tokensFlagged;

    constructor(string memory baseURI, address _collectionAddress, Part[] memory _parts) ERC1155(baseURI) {
        Collection.setCollection(_collectionAddress);

        ERC1155Multi.setSupply(1, Supply(1127, 0, 0, false, true));

        MultiMint.setMint("HOLDERS", Mint(1675810800, 1675897200, 0, 100, 0, false, true));
        MultiMint.setMint("PUBLIC", Mint(1675897200, 2654875480, 3, 3, 0.01 ether, false, true));

        for(uint256 i = 0; i < _parts.length; i++){
            Withdraw.withdrawAdd(_parts[i]);
        }
    }

    function MintPassHolders(uint256 _id, uint256[] memory _tokenIds) public payable notSoldOut(_id, uint64(_tokenIds.length)) canMint("HOLDERS", _tokenIds.length) nonReentrant {
        require(_tokenIds.length > 0, "Missing _tokenIds");

        for(uint256 i = 0; i < _tokenIds.length; i++){
            require(isTokenClaimed(_id, _tokenIds[i]) == false, "tokenId already flagged");
            tokensFlagged[_id].set(_tokenIds[i]);

            require(IERC721(Collection.contractAddress).ownerOf(_tokenIds[i]) == _msgSender(), "Bad owner of the tokenId");
        }

        _mintTokens(_msgSender(), _id, uint64(_tokenIds.length));
    }

    function MintPassPublic(uint256 _id, uint64 _count) public payable notSoldOut(_id, _count) canMint("PUBLIC", uint256(_count)) nonReentrant {
        _mintTokens(_msgSender(), _id, _count);
    }

    function ExternalBurn(address _to, uint256 _id, uint64 _count) public externalContract {
        _burnInternal(_to, _id, _count);
    }

    function isTokenClaimed(uint256 _id, uint256 _tokenId) public view returns(bool){
        return tokensFlagged[_id].get(_tokenId);
    }
    function isTokensClaimed(uint256 _id, uint256[] memory _tokenIds) public view returns(bool[] memory){
        bool[] memory claimed = new bool[](_tokenIds.length);
        for(uint256 i = 0; i < _tokenIds.length; i++){
            claimed[i] = isTokenClaimed(_id, _tokenIds[i]);
        }
        return claimed;
    }
}

File 2 of 26 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 3 of 26 : BitMaps.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/BitMaps.sol)
pragma solidity ^0.8.0;

/**
 * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential.
 * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor].
 */
library BitMaps {
    struct BitMap {
        mapping(uint256 => uint256) _data;
    }

    /**
     * @dev Returns whether the bit at `index` is set.
     */
    function get(BitMap storage bitmap, uint256 index) internal view returns (bool) {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        return bitmap._data[bucket] & mask != 0;
    }

    /**
     * @dev Sets the bit at `index` to the boolean `value`.
     */
    function setTo(
        BitMap storage bitmap,
        uint256 index,
        bool value
    ) internal {
        if (value) {
            set(bitmap, index);
        } else {
            unset(bitmap, index);
        }
    }

    /**
     * @dev Sets the bit at `index`.
     */
    function set(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] |= mask;
    }

    /**
     * @dev Unsets the bit at `index`.
     */
    function unset(BitMap storage bitmap, uint256 index) internal {
        uint256 bucket = index >> 8;
        uint256 mask = 1 << (index & 0xff);
        bitmap._data[bucket] &= ~mask;
    }
}

File 4 of 26 : ERC1155MultiSupplies.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./Admins.sol";
import "./ERC1155.sol";

// @author: miinded.com

abstract contract ERC1155Multi is ERC1155, ERC2981, Admins, ReentrancyGuard, DefaultOperatorFilterer {

    struct Supply {
        uint64 max;
        uint64 minted;
        uint64 burned;
        bool paused;
        bool valid;
    }

    Supply[] public supplies;

    mapping(uint256 => bool) burnsPublicDisabled;

    modifier notSoldOut(uint256 _id, uint64 _count) {
        require(isValidSupplyId(_id), "Supply not valid");
        require(supplies[_id].paused == false, "Supply paused");

        require(supplies[_id].minted + _count <= supplies[_id].max, "Sold out!");
        _;
    }

    function isValidSupplyId(uint256 _id) public view returns (bool){
        return supplies.length > _id && supplies[_id].valid;
    }

    function isSoldOut(uint256 _id) public view returns(bool){
        require(isValidSupplyId(_id), "Supply not valid");
        return supplies[_id].minted >= supplies[_id].max;
    }

    function setSupply(uint256 _id, Supply memory _supply) public onlyOwnerOrAdmins {
        require(_supply.valid, "_supply not valid");

        if(supplies.length > _id){
            if (supplies[_id].valid) {
                require(_supply.max <= supplies[_id].max, "Not possible to increase the supply max, only decrease");
                supplies[_id].max = _supply.max;
                return;
            }
        }

        for (uint256 i = supplies.length; i <= _id; i++) {
            supplies.push(Supply(0, 0, 0, false, false));
        }

        supplies[_id] = _supply;
    }

    function pauseSupply(uint256 _id, bool _pause) public onlyOwnerOrAdmins {
        require(isValidSupplyId(_id), "Supply not valid");

        supplies[_id].paused = _pause;
    }

    function setBaseUri(string memory baseURI) public onlyOwnerOrAdmins {
        _setURI(baseURI);
    }

    function walletOfOwner(address _wallet) public view returns (uint256[] memory){
        uint256[] memory ids = new uint256[](supplies.length);
        for (uint256 id = 1; id < supplies.length; id++) {
            ids[id] = balanceOf(_wallet, id);
        }
        return ids;
    }

    function totalSupply(uint256 _id) public view returns (uint64) {
        require(isValidSupplyId(_id), "Supply not valid");
        return supplies[_id].minted - supplies[_id].burned;
    }

    function _mintTokens(address _wallet, uint256 _id, uint64 _count) internal {
        supplies[_id].minted += _count;
        _mint(_wallet, _id, _count, "");
    }

    function reserve(address _to, uint256 _id, uint64 _count) public virtual notSoldOut(_id, _count) onlyOwnerOrAdmins {
        _mintTokens(_to, _id, _count);
    }

    function toggleBurnPublic(uint256 _id, bool _disabled) public onlyOwnerOrAdmins {
        burnsPublicDisabled[_id] = _disabled;
    }

    function burn(uint256 _id, uint64 _count) public virtual {
        require(burnsPublicDisabled[_id] == false, "Burn public is disabled for this _id");

        _burnInternal(_msgSender(), _id, _count);
    }

    function _burnInternal(address _to, uint256 _id, uint64 _count) internal virtual {
        require(isValidSupplyId(_id), "Supply not valid");

        supplies[_id].burned += _count;
        _burn(_to, _id, _count);
    }

    /**
     * @notice Allows the owner to set default royalties following EIP-2981 royalty standard.
     */
    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwnerOrAdmins {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC1155, ERC2981) returns (bool) {
        return super.supportsInterface(_interfaceId);
    }

    /**
    @notice Add the Operator filter functions
    */
    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes memory data)
    public
    override
    onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, amount, data);
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override onlyAllowedOperator(from) {
        super.safeBatchTransferFrom(from, to, ids, amounts, data);
    }
}

File 5 of 26 : MultiMint.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./interface/IMultiMint.sol";
import "./Admins.sol";

// @author: miinded.com

abstract contract MultiMint is IMultiMint, Admins, ReentrancyGuard {

    string[] public mintsNames;
    mapping(string => Mint) public mints;
    mapping(string => uint8) public mintNamesKey;
    mapping(uint8 => mapping(address => uint256)) balance;

    modifier canMint(string memory _name, uint256 _count) virtual {
        require(mintIsOpen(_name), "Mint not open");
        require(_count <= mints[_name].maxPerTx, "Max per tx limit");
        require(msg.value >= mintPrice(_name, _count), "Value limit");

        if(mints[_name].maxPerWallet > 0){
            require(balance[mintNamesKey[_name]][_msgSender()] + _count <= mints[_name].maxPerWallet, "Max per wallet limit");
            balance[mintNamesKey[_name]][_msgSender()] += _count;
        }

        _;
    }

    function setMint(string memory _name, Mint memory _mint) public override onlyOwnerOrAdmins{
        require(_mint.valid, "_mint.valid is missing");

        if(!mints[_name].valid){
            mintsNames.push(_name);
            mintNamesKey[_name] = uint8(mintsNames.length);
        }

        mints[_name] = _mint;
        emit EventMintChange(_name, _mint);
    }

    function pauseMint(string memory _name, bool _pause) public override onlyOwnerOrAdmins{
        mints[_name].paused = _pause;
    }

    function mintIsOpen(string memory _name) public view override returns(bool){
        return mints[_name].start > 0 && block.timestamp >= mints[_name].start && block.timestamp <= mints[_name].end && !mints[_name].paused;
    }

    function mintCurrent() public override view returns (string memory){
        for(uint256 i = 0; i < mintsNames.length; i++){
            if(mintIsOpen(mintsNames[i])){
                return mintsNames[i];
            }
        }
        return "NONE";
    }

    function mintNames() public view override returns (string[] memory){
        return mintsNames;
    }

    function mintPrice(string memory _name, uint256 _count) public view virtual override returns (uint256){
        return mints[_name].price * _count;
    }

    function mintBalance(string memory _name, address _wallet) public view override returns(uint256){
        return balance[mintNamesKey[_name]][_wallet];
    }
}

File 6 of 26 : Withdraw.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./Admins.sol";

// @author: miinded.com

contract Withdraw is Admins {
    using SafeMath for uint256;

    /**
    @notice Struct containing the association between the wallet and its share
    @dev The share can be /100 or /1000 or something else like /50
    */
    struct Part {
        address wallet;
        uint256 salePart;
    }

    /**
    @notice Stock the parts of each wallets
    */
    Part[] public parts;

    /**
    @dev Calculation of the divider for the calculation of each part
    */
    uint256 public saleDivider;

    /**
    @notice Add a new wallet in the withdraw process
    @dev this method is only internal, it's not possible to add someone after the contract minting
    */
    function withdrawAdd(Part memory _part) internal {
        parts.push(_part);
        saleDivider += _part.salePart;
    }

    /**
    @notice Run the transfer of all ETH to the wallets with each % part
    */
    function withdraw() public onlyOwnerOrAdmins {

        uint256 balance = address(this).balance;
        require(balance > 0, "Sales Balance = 0");

        for (uint8 i = 0; i < parts.length; i++) {
            if (parts[i].salePart > 0) {
                _withdraw(parts[i].wallet, balance.mul(parts[i].salePart).div(saleDivider));
            }
        }

        _withdraw(owner(), address(this).balance);
    }

    /**
    @notice Do a transfer ETH to _address
    */
    function _withdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }
}

File 7 of 26 : ExternalContracts.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Admins.sol";


abstract contract ExternalContracts is Admins {

    mapping(address => bool) internal contracts;

    modifier externalContract() {
        require(isExternalContract(_msgSender()), "ExternalContracts: not external Contract");
        _;
    }

    function isExternalContract(address _contractAddress) public view returns(bool){
        return contracts[_contractAddress];
    }

    function setExternalContract(address _contract, bool _state) public onlyOwnerOrAdmins {
        contracts[_contract] = _state;
    }

}

File 8 of 26 : Collection.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Admins.sol";


abstract contract Collection is Admins {

    address public contractAddress;

    function isCollectionContract(address _contractAddress) public view returns(bool){
        return contractAddress == _contractAddress;
    }

    function setCollection(address _contractAddress) public onlyOwnerOrAdmins {
        contractAddress = _contractAddress;
    }
}

File 9 of 26 : 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 10 of 26 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 11 of 26 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 12 of 26 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 13 of 26 : Admins.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

// @author: miinded.com

abstract contract Admins is Ownable{

    mapping(address => bool) private admins;

    /**
    @dev check if the address is admin or not
    **/
    function isAdmin(address _admin) public view returns(bool) {
        return admins[_admin];
    }

    /**
    @dev Set the wallet address who can pass the onlyAdmin modifier
    **/
    function setAdminAddress(address _admin, bool _active) public virtual onlyOwner {
        admins[_admin] = _active;
    }

    /**
    @notice Check if the sender is owner() or admin
    **/
    modifier onlyOwnerOrAdmins() {
        require(admins[_msgSender()] == true || owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

}

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/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 15 of 26 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 16 of 26 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 17 of 26 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 18 of 26 : 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 19 of 26 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 20 of 26 : 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 21 of 26 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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 22 of 26 : 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 23 of 26 : 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 24 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 25 of 26 : IMultiMint.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// @author: miinded.com

interface IMultiMint {

    struct Mint {
        uint256 start;
        uint256 end;
        uint256 maxPerWallet;
        uint256 maxPerTx;
        uint256 price;
        bool paused;
        bool valid;
    }

    event EventMintChange(string _name, Mint sale);

    function setMint(string calldata _name, Mint memory _sale) external;

    function pauseMint(string calldata _name, bool _pause) external;

    function mintIsOpen(string memory _name) external returns(bool);

    function mintCurrent() external returns(string memory);

    function mintNames() external returns(string[] memory);

    function mintPrice(string memory _name, uint256 _count) external returns(uint256);

    function mintBalance(string memory _name, address _wallet) external view returns(uint256);
}

File 26 of 26 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"address","name":"_collectionAddress","type":"address"},{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"}],"internalType":"struct Withdraw.Part[]","name":"_parts","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":"string","name":"_name","type":"string"},{"components":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"indexed":false,"internalType":"struct IMultiMint.Mint","name":"sale","type":"tuple"}],"name":"EventMintChange","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"ExternalBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"MintPassHolders","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"MintPassPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"isCollectionContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"isExternalContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isSoldOut","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTokenClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"isTokensClaimed","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isValidSupplyId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCurrent","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"mintIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintNames","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mintNamesKey","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"mints","outputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintsNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parts","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"salePart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint64","name":"_count","type":"uint64"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","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":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleDivider","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setAdminAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setExternalContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"components":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"maxPerWallet","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"internalType":"struct IMultiMint.Mint","name":"_mint","type":"tuple"}],"name":"setMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"components":[{"internalType":"uint64","name":"max","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint64","name":"burned","type":"uint64"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"internalType":"struct ERC1155Multi.Supply","name":"_supply","type":"tuple"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"supplies","outputs":[{"internalType":"uint64","name":"max","type":"uint64"},{"internalType":"uint64","name":"minted","type":"uint64"},{"internalType":"uint64","name":"burned","type":"uint64"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bool","name":"_disabled","type":"bool"}],"name":"toggleBurnPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620064e2380380620064e2833981016040819052620000349162000c16565b733cc6cdda760b79bafa08df41ecfa224f810dceb660018462000057816200035e565b50620000633362000370565b60016007556daaeb6d7670e522a718067333cd4e3b15620001ad578015620000fb57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620000dc57600080fd5b505af1158015620000f1573d6000803e3d6000fd5b50505050620001ad565b6001600160a01b038216156200014c5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000c1565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200019357600080fd5b505af1158015620001a8573d6000803e3d6000fd5b505050505b5050620001c582620003c260201b62001b9c1760201c565b6040805160a0810182526104678152600060208083018290529282018190526060820152600160808201819052620002099290919062000f1362000453821b17901c565b6200028260405180604001604052806007815260200166484f4c4445525360c81b8152506040518060e001604052806363e2d7f081526020016363e42970815260200160008152602001606481526020016000815260200160001515815260200160011515815250620007df60201b62002f351760201c565b62000300604051806040016040528060068152602001655055424c494360d01b8152506040518060e001604052806363e429708152602001639e3e2f5881526020016003815260200160038152602001662386f26fc10000815260200160001515815260200160011515815250620007df60201b62002f351760201c565b60005b815181101562000354576200033f82828151811062000326576200032662000cee565b602002602001015162000a0760201b620033001760201c565b806200034b8162000d1a565b91505062000303565b5050505062000f4f565b60026200036c828262000dc5565b5050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b3360009081526006602052604090205460ff16151560011480620003f057506005546001600160a01b031633145b620004315760405162461bcd60e51b81526020600482018190526024820152600080516020620064c283398151915260448201526064015b60405180910390fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526006602052604090205460ff161515600114806200048157506005546001600160a01b031633145b620004be5760405162461bcd60e51b81526020600482018190526024820152600080516020620064c2833981519152604482015260640162000428565b8060800151620005055760405162461bcd60e51b815260206004820152601160248201527017dcdd5c1c1b1e481b9bdd081d985b1a59607a1b604482015260640162000428565b6008548210156200062f576008828154811062000526576200052662000cee565b600091825260209091200154600160c81b900460ff16156200062f576008828154811062000558576200055862000cee565b60009182526020909120015481516001600160401b0391821691161115620005e95760405162461bcd60e51b815260206004820152603660248201527f4e6f7420706f737369626c6520746f20696e637265617365207468652073757060448201527f706c79206d61782c206f6e6c7920646563726561736500000000000000000000606482015260840162000428565b8051600880548490811062000602576200060262000cee565b600091825260209091200180546001600160401b0319166001600160401b03929092169190911790555050565b6008545b8281116200072a576040805160a081018252600080825260208201818152928201818152606083018281526080840183815260088054600181018255945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3909301805495519251915194511515600160c81b0260ff60c81b19951515600160c01b0260ff60c01b196001600160401b03948516600160801b0216600160801b600160c81b031995851668010000000000000000026001600160801b03199099169690941695909517969096179290921617919091179190911691909117905580620007218162000d1a565b91505062000633565b50806008838154811062000742576200074262000cee565b600091825260209182902083519101805492840151604085015160608601516080909601511515600160c81b0260ff60c81b19961515600160c01b0260ff60c01b196001600160401b03938416600160801b0216600160801b600160c81b031994841668010000000000000000026001600160801b0319909816939096169290921795909517919091169290921791909117929092161790555050565b3360009081526006602052604090205460ff161515600114806200080d57506005546001600160a01b031633145b6200084a5760405162461bcd60e51b81526020600482018190526024820152600080516020620064c2833981519152604482015260640162000428565b8060c001516200089d5760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e6700000000000000000000604482015260640162000428565b600b82604051620008af919062000e91565b9081526040519081900360200190206005015460ff610100909104166200094957600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8016200090e838262000dc5565b50600a54604051600c906200092590859062000e91565b908152604051908190036020019020805460ff9290921660ff199092169190911790555b80600b836040516200095c919062000e91565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c09094015115156101000261ff00199215159290921661ffff1990941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e90620009fb908490849062000eaf565b60405180910390a15050565b60108054600181018255600091825282517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672600290920291820180546001600160a01b0319166001600160a01b0390921691909117905560208301517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae673909101819055601180549192909162000a9f90849062000f33565b909155505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171562000ae25762000ae262000aa7565b60405290565b604051601f8201601f191681016001600160401b038111828210171562000b135762000b1362000aa7565b604052919050565b60005b8381101562000b3857818101518382015260200162000b1e565b50506000910152565b80516001600160a01b038116811462000b5957600080fd5b919050565b600082601f83011262000b7057600080fd5b815160206001600160401b0382111562000b8e5762000b8e62000aa7565b62000b9e818360051b0162000ae8565b82815260069290921b8401810191818101908684111562000bbe57600080fd5b8286015b8481101562000c0b576040818903121562000bdd5760008081fd5b62000be762000abd565b62000bf28262000b41565b8152818501518582015283529183019160400162000bc2565b509695505050505050565b60008060006060848603121562000c2c57600080fd5b83516001600160401b038082111562000c4457600080fd5b818601915086601f83011262000c5957600080fd5b81518181111562000c6e5762000c6e62000aa7565b62000c83601f8201601f191660200162000ae8565b81815288602083860101111562000c9957600080fd5b62000cac82602083016020870162000b1b565b955062000cbe90506020870162000b41565b9350604086015191508082111562000cd557600080fd5b5062000ce48682870162000b5e565b9150509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000d2f5762000d2f62000d04565b5060010190565b600181811c9082168062000d4b57607f821691505b60208210810362000d6c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000dc057600081815260208120601f850160051c8101602086101562000d9b5750805b601f850160051c820191505b8181101562000dbc5782815560010162000da7565b5050505b505050565b81516001600160401b0381111562000de15762000de162000aa7565b62000df98162000df2845462000d36565b8462000d72565b602080601f83116001811462000e31576000841562000e185750858301515b600019600386901b1c1916600185901b17855562000dbc565b600085815260208120601f198616915b8281101562000e625788860151825594840194600190910190840162000e41565b508582101562000e815787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000825162000ea581846020870162000b1b565b9190910192915050565b600061010080835284518082850152610120915062000ed5818386016020890162000b1b565b81601f19601f8301168501019250505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b8082018082111562000f495762000f4962000d04565b92915050565b6155638062000f5f6000396000f3fe6080604052600436106103285760003560e01c8063715018a6116101a5578063a705d4eb116100ec578063e3b85eef11610095578063f0ba9cb81161006f578063f0ba9cb814610a99578063f242432a14610ab9578063f2fde38b14610ad9578063f6b4dfb414610af957600080fd5b8063e3b85eef14610a1d578063e6e28ff914610a30578063e985e9c514610a5057600080fd5b8063bde2de87116100c6578063bde2de87146109c8578063c9eb4662146109e8578063e1ac347214610a0857600080fd5b8063a705d4eb1461094f578063bc08caac1461096f578063bd85b0391461098f57600080fd5b8063885850781161014e578063a0bcfc7f11610128578063a0bcfc7f146108ef578063a17768f41461090f578063a22cb4651461092f57600080fd5b806388585078146108845780638da5cb5b146108a457806396a8e124146108c257600080fd5b80637e4d20a71161017f5780637e4d20a7146108045780637f5ae91a146108245780638323662d1461087157600080fd5b8063715018a614610796578063768b5fd5146107ab578063772973ee146107cb57600080fd5b80632eb2c2d611610274578063438b63001161021d5780634e1273f4116101f75780634e1273f4146107205780635bc63820146107405780636667df6c146107605780636c4684df1461077657600080fd5b8063438b630014610633578063438c0f6f14610660578063494a65891461068057600080fd5b80633ccfd60b1161024e5780633ccfd60b146105c45780633ebfd46f146105d957806341f43434146105f957600080fd5b80632eb2c2d614610555578063338231de146105755780633b8361711461059557600080fd5b80631cbaeb1d116102d657806326f1a1fd116102b057806326f1a1fd1461049a5780632a55205a146104f65780632a63d5761461053557600080fd5b80631cbaeb1d146104215780631f43d11e1461044157806324d7806c1461046157600080fd5b806304634d8d1161030757806304634d8d146103b2578063071c8e52146103d25780630e89341c146103f457600080fd5b8062fdd58e1461032d57806301ffc9a71461036057806303a56ebe14610390575b600080fd5b34801561033957600080fd5b5061034d6103483660046146f2565b610b19565b6040519081526020015b60405180910390f35b34801561036c57600080fd5b5061038061037b366004614734565b610bc5565b6040519015158152602001610357565b34801561039c57600080fd5b506103b06103ab36600461475f565b610bd0565b005b3480156103be57600080fd5b506103b06103cd36600461478f565b610ce9565b3480156103de57600080fd5b506103e7610d70565b604051610357919061481e565b34801561040057600080fd5b5061041461040f36600461489e565b610e49565b60405161035791906148b7565b34801561042d57600080fd5b5061034d61043c3660046149a7565b610edd565b34801561044d57600080fd5b506103b061045c366004614a09565b610f13565b34801561046d57600080fd5b5061038061047c366004614abb565b6001600160a01b031660009081526006602052604090205460ff1690565b3480156104a657600080fd5b506104ba6104b536600461489e565b61139f565b6040805167ffffffffffffffff96871681529486166020860152929094169183019190915215156060820152901515608082015260a001610357565b34801561050257600080fd5b50610516610511366004614ad8565b611407565b604080516001600160a01b039093168352602083019190915201610357565b34801561054157600080fd5b506103b0610550366004614afa565b6114e4565b34801561056157600080fd5b506103b0610570366004614bbd565b611588565b34801561058157600080fd5b50610380610590366004614c6b565b6115b7565b3480156105a157600080fd5b506103806105b0366004614abb565b600f546001600160a01b0390811691161490565b3480156105d057600080fd5b506103b0611667565b3480156105e557600080fd5b506103b06105f4366004614ca8565b611828565b34801561060557600080fd5b5061061b6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610357565b34801561063f57600080fd5b5061065361064e366004614abb565b6118b7565b6040516103579190614d0f565b34801561066c57600080fd5b506103b061067b36600461475f565b611951565b34801561068c57600080fd5b506106e761069b366004614c6b565b8051602081830181018051600b82529282019190930120915280546001820154600283015460038401546004850154600590950154939492939192909160ff8082169161010090041687565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e001610357565b34801561072c57600080fd5b5061065361073b366004614d22565b6119ea565b34801561074c57600080fd5b506103b061075b366004614afa565b611b28565b34801561076c57600080fd5b5061034d60115481565b34801561078257600080fd5b50610380610791366004614ad8565b611b5b565b3480156107a257600080fd5b506103b0611b88565b3480156107b757600080fd5b506103b06107c6366004614abb565b611b9c565b3480156107d757600080fd5b506103806107e6366004614abb565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561081057600080fd5b5061038061081f36600461489e565b611c44565b34801561083057600080fd5b5061085f61083f366004614c6b565b8051602081830181018051600c8252928201919093012091525460ff1681565b60405160ff9091168152602001610357565b6103b061087f366004614def565b611c82565b34801561089057600080fd5b506103b061089f366004614e2c565b6122c4565b3480156108b057600080fd5b506005546001600160a01b031661061b565b3480156108ce57600080fd5b506108e26108dd366004614def565b612375565b6040516103579190614e73565b3480156108fb57600080fd5b506103b061090a366004614c6b565b612415565b34801561091b57600080fd5b5061041461092a36600461489e565b612497565b34801561093b57600080fd5b506103b061094a366004614afa565b612543565b34801561095b57600080fd5b506103b061096a366004614eb9565b61255c565b34801561097b57600080fd5b5061034d61098a366004614ef7565b61276e565b34801561099b57600080fd5b506109af6109aa36600461489e565b6127c5565b60405167ffffffffffffffff9091168152602001610357565b3480156109d457600080fd5b506103b06109e3366004614eb9565b612883565b3480156109f457600080fd5b50610516610a0336600461489e565b612909565b348015610a1457600080fd5b50610414612941565b6103b0610a2b366004614ca8565b612afa565b348015610a3c57600080fd5b506103b0610a4b366004614f3e565b612f35565b348015610a5c57600080fd5b50610380610a6b366004614ff8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610aa557600080fd5b50610380610ab436600461489e565b613198565b348015610ac557600080fd5b506103b0610ad4366004615026565b61324c565b348015610ae557600080fd5b506103b0610af4366004614abb565b613273565b348015610b0557600080fd5b50600f5461061b906001600160a01b031681565b60006001600160a01b038316610b9c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610bbf826133ab565b3360009081526006602052604090205460ff16151560011480610bfd57506005546001600160a01b031633145b610c495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b610c5282611c44565b610c915760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b8060088381548110610ca557610ca561508f565b60009182526020909120018054911515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff9092169190911790555050565b3360009081526006602052604090205460ff16151560011480610d1657506005546001600160a01b031633145b610d625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b610d6c82826133e9565b5050565b6060600a805480602002602001604051908101604052809291908181526020016000905b82821015610e40578382906000526020600020018054610db3906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddf906150a5565b8015610e2c5780601f10610e0157610100808354040283529160200191610e2c565b820191906000526020600020905b815481529060010190602001808311610e0f57829003601f168201915b505050505081526020019060010190610d94565b50505050905090565b606060028054610e58906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e84906150a5565b8015610ed15780601f10610ea657610100808354040283529160200191610ed1565b820191906000526020600020905b815481529060010190602001808311610eb457829003601f168201915b50505050509050919050565b600081600b84604051610ef091906150df565b908152602001604051809103902060040154610f0c9190615111565b9392505050565b3360009081526006602052604090205460ff16151560011480610f4057506005546001600160a01b031633145b610f8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b8060800151610fdd5760405162461bcd60e51b815260206004820152601160248201527f5f737570706c79206e6f742076616c69640000000000000000000000000000006044820152606401610b93565b6008548210156111145760088281548110610ffa57610ffa61508f565b600091825260209091200154600160c81b900460ff161561111457600882815481106110285761102861508f565b600091825260209091200154815167ffffffffffffffff918216911611156110b85760405162461bcd60e51b815260206004820152603660248201527f4e6f7420706f737369626c6520746f20696e637265617365207468652073757060448201527f706c79206d61782c206f6e6c79206465637265617365000000000000000000006064820152608401610b93565b805160088054849081106110ce576110ce61508f565b600091825260209091200180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff929092169190911790555050565b6008545b82811161127c576040805160a081018252600080825260208201818152928201818152606083018281526080840183815260088054600181018255945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3909301805495519251915194511515600160c81b027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff951515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff94851670010000000000000000000000000000000002167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff95851668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909916969094169590951796909617929092161791909117919091169190911790558061127481615128565b915050611118565b5080600883815481106112915761129161508f565b600091825260209182902083519101805492840151604085015160608601516080909601511515600160c81b027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff961515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff93841670010000000000000000000000000000000002167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff94841668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909816939096169290921795909517919091169290921791909117929092161790555050565b600881815481106113af57600080fd5b60009182526020909120015467ffffffffffffffff808216925068010000000000000000820481169170010000000000000000000000000000000081049091169060ff600160c01b8204811691600160c81b90041685565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916114a85750604080518082019091526003546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b6020810151600090612710906114cc906bffffffffffffffffffffffff1687615111565b6114d69190615142565b915196919550909350505050565b3360009081526006602052604090205460ff1615156001148061151157506005546001600160a01b031633145b61155d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b846001600160a01b03811633146115a2576115a233613514565b6115af86868686866135ff565b505050505050565b600080600b836040516115ca91906150df565b908152604051908190036020019020541180156116065750600b826040516115f291906150df565b908152604051908190036020019020544210155b80156116335750600b8260405161161d91906150df565b9081526020016040518091039020600101544211155b8015610bbf5750600b8260405161164a91906150df565b9081526040519081900360200190206005015460ff161592915050565b3360009081526006602052604090205460ff1615156001148061169457506005546001600160a01b031633145b6116e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b478061172e5760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610b93565b60005b60105460ff8216101561180957600060108260ff16815481106117565761175661508f565b90600052602060002090600202016001015411156117f7576117f760108260ff16815481106117875761178761508f565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166117f26011546117ec60108660ff16815481106117cb576117cb61508f565b9060005260206000209060020201600101548761369a90919063ffffffff16565b906136a6565b6136b2565b8061180181615164565b915050611731565b5061182561181f6005546001600160a01b031690565b476136b2565b50565b60008281526009602052604090205460ff16156118ac5760405162461bcd60e51b8152602060048201526024808201527f4275726e207075626c69632069732064697361626c656420666f72207468697360448201527f205f6964000000000000000000000000000000000000000000000000000000006064820152608401610b93565b610d6c338383613755565b60085460609060009067ffffffffffffffff8111156118d8576118d86148ca565b604051908082528060200260200182016040528015611901578160200160208202803683370190505b50905060015b60085481101561194a5761191b8482610b19565b82828151811061192d5761192d61508f565b60209081029190910101528061194281615128565b915050611907565b5092915050565b3360009081526006602052604090205460ff1615156001148061197e57506005546001600160a01b031633145b6119ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600091825260096020526040909120805460ff1916911515919091179055565b60608151835114611a635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610b93565b6000835167ffffffffffffffff811115611a7f57611a7f6148ca565b604051908082528060200260200182016040528015611aa8578160200160208202803683370190505b50905060005b8451811015611b2057611af3858281518110611acc57611acc61508f565b6020026020010151858381518110611ae657611ae661508f565b6020026020010151610b19565b828281518110611b0557611b0561508f565b6020908102919091010152611b1981615128565b9050611aae565b509392505050565b611b30613825565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6000828152601260209081526040808320600885901c8452909152812054600160ff84161b161515610f0c565b611b90613825565b611b9a600061387f565b565b3360009081526006602052604090205460ff16151560011480611bc957506005546001600160a01b031633145b611c155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60085460009082108015610bbf575060088281548110611c6657611c6661508f565b600091825260209091200154600160c81b900460ff1692915050565b818151611c8e82611c44565b611ccd5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b60088281548110611ce057611ce061508f565b600091825260209091200154600160c01b900460ff1615611d435760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b60088281548110611d5657611d5661508f565b6000918252602090912001546008805467ffffffffffffffff9092169183919085908110611d8657611d8661508f565b600091825260209091200154611db2919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff161115611e0a5760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b6040518060400160405280600781526020017f484f4c44455253000000000000000000000000000000000000000000000000008152508351611e4b826115b7565b611e975760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610b93565b600b82604051611ea791906150df565b908152602001604051809103902060030154811115611f085760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610b93565b611f128282610edd565b341015611f615760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610b93565b6000600b83604051611f7391906150df565b90815260200160405180910390206002015411156120a257600b82604051611f9b91906150df565b90815260200160405180910390206002015481600d6000600c86604051611fc291906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091522054611ffa91906151a4565b11156120485760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610b93565b80600d6000600c8560405161205d91906150df565b90815260408051602092819003830190205460ff168352828201939093529082016000908120338252909152908120805490919061209c9084906151a4565b90915550505b6120aa6138de565b60008551116120fb5760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67205f746f6b656e4964730000000000000000000000000000006044820152606401610b93565b60005b85518110156122ad5761212a8787838151811061211d5761211d61508f565b6020026020010151611b5b565b156121775760405162461bcd60e51b815260206004820152601760248201527f746f6b656e496420616c726561647920666c61676765640000000000000000006044820152606401610b93565b6121b586828151811061218c5761218c61508f565b6020026020010151601260008a815260200190815260200160002061393790919063ffffffff16565b600f54865133916001600160a01b031690636352211e908990859081106121de576121de61508f565b60200260200101516040518263ffffffff1660e01b815260040161220491815260200190565b602060405180830381865afa158015612221573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224591906151b7565b6001600160a01b03161461229b5760405162461bcd60e51b815260206004820152601860248201527f426164206f776e6572206f662074686520746f6b656e496400000000000000006044820152606401610b93565b806122a581615128565b9150506120fe565b506122ba33878751613960565b6115af6001600755565b3360009081526006602052604090205460ff161515600114806122f157506005546001600160a01b031633145b61233d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b80600b8360405161234e91906150df565b908152604051908190036020019020600501805491151560ff199092169190911790555050565b60606000825167ffffffffffffffff811115612393576123936148ca565b6040519080825280602002602001820160405280156123bc578160200160208202803683370190505b50905060005b8351811015611b20576123e18585838151811061211d5761211d61508f565b8282815181106123f3576123f361508f565b911515602092830291909101909101528061240d81615128565b9150506123c2565b3360009081526006602052604090205460ff1615156001148061244257506005546001600160a01b031633145b61248e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b611825816139f0565b600a81815481106124a757600080fd5b9060005260206000200160009150905080546124c2906150a5565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee906150a5565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505081565b8161254d81613514565b61255783836139fc565b505050565b818161256782611c44565b6125a65760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106125b9576125b961508f565b600091825260209091200154600160c01b900460ff161561261c5760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b6008828154811061262f5761262f61508f565b6000918252602090912001546008805467ffffffffffffffff909216918391908590811061265f5761265f61508f565b60009182526020909120015461268b919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff1611156126e35760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b3360009081526006602052604090205460ff1615156001148061271057506005546001600160a01b031633145b61275c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b612767858585613960565b5050505050565b6000600d6000600c8560405161278491906150df565b908152604080519182900360209081019092205460ff1683528282019390935290820160009081206001600160a01b03861682529091522054905092915050565b60006127d082611c44565b61280f5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106128225761282261508f565b9060005260206000200160000160109054906101000a900467ffffffffffffffff16600883815481106128575761285761508f565b600091825260209091200154610bbf919068010000000000000000900467ffffffffffffffff166151d4565b61288c336107e6565b6128fe5760405162461bcd60e51b815260206004820152602860248201527f45787465726e616c436f6e7472616374733a206e6f742065787465726e616c2060448201527f436f6e74726163740000000000000000000000000000000000000000000000006064820152608401610b93565b612557838383613755565b6010818154811061291957600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b606060005b600a54811015612ac1576129fe600a82815481106129665761296661508f565b90600052602060002001805461297b906150a5565b80601f01602080910402602001604051908101604052809291908181526020018280546129a7906150a5565b80156129f45780601f106129c9576101008083540402835291602001916129f4565b820191906000526020600020905b8154815290600101906020018083116129d757829003601f168201915b50505050506115b7565b15612aaf57600a8181548110612a1657612a1661508f565b906000526020600020018054612a2b906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612a57906150a5565b8015612aa45780601f10612a7957610100808354040283529160200191612aa4565b820191906000526020600020905b815481529060010190602001808311612a8757829003601f168201915b505050505091505090565b80612ab981615128565b915050612946565b505060408051808201909152600481527f4e4f4e4500000000000000000000000000000000000000000000000000000000602082015290565b8181612b0582611c44565b612b445760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b60088281548110612b5757612b5761508f565b600091825260209091200154600160c01b900460ff1615612bba5760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b60088281548110612bcd57612bcd61508f565b6000918252602090912001546008805467ffffffffffffffff9092169183919085908110612bfd57612bfd61508f565b600091825260209091200154612c29919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff161115612c815760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b6040518060400160405280600681526020017f5055424c494300000000000000000000000000000000000000000000000000008152508367ffffffffffffffff16612ccb826115b7565b612d175760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610b93565b600b82604051612d2791906150df565b908152602001604051809103902060030154811115612d885760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610b93565b612d928282610edd565b341015612de15760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610b93565b6000600b83604051612df391906150df565b9081526020016040518091039020600201541115612f2257600b82604051612e1b91906150df565b90815260200160405180910390206002015481600d6000600c86604051612e4291906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091522054612e7a91906151a4565b1115612ec85760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610b93565b80600d6000600c85604051612edd91906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091529081208054909190612f1c9084906151a4565b90915550505b612f2a6138de565b6122ba338787613960565b3360009081526006602052604090205460ff16151560011480612f6257506005546001600160a01b031633145b612fae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b8060c00151612fff5760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e67000000000000000000006044820152606401610b93565b600b8260405161300f91906150df565b9081526040519081900360200190206005015460ff610100909104166130a457600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80161306b838261523b565b50600a54604051600c906130809085906150df565b908152604051908190036020019020805460ff9290921660ff199092169190911790555b80600b836040516130b591906150df565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c0909401511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e9061318c90849084906152fb565b60405180910390a15050565b60006131a382611c44565b6131e25760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106131f5576131f561508f565b6000918252602090912001546008805467ffffffffffffffff90921691849081106132225761322261508f565b60009182526020909120015468010000000000000000900467ffffffffffffffff16101592915050565b846001600160a01b03811633146132665761326633613514565b6115af8686868686613a07565b61327b613825565b6001600160a01b0381166132f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b93565b6118258161387f565b60108054600181018255600091825282517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6726002909202918201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117905560208301517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67390910181905560118054919290916133a39084906151a4565b909155505050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82613aa2565b6127106bffffffffffffffffffffffff8216111561346f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b0382166134c55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b93565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600355565b6daaeb6d7670e522a718067333cd4e3b15611825576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561359a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135be9190615360565b611825576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610b93565b6001600160a01b03851633148061361b575061361b8533610a6b565b61368d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b93565b6127678585858585613b3d565b6000610f0c8284615111565b6000610f0c8284615142565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146136ff576040519150601f19603f3d011682016040523d82523d6000602084013e613704565b606091505b50509050806125575760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b93565b61375e82611c44565b61379d5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b80600883815481106137b1576137b161508f565b600091825260209091200180546010906137ea908490700100000000000000000000000000000000900467ffffffffffffffff16615183565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061255783838367ffffffffffffffff16613dd3565b6005546001600160a01b03163314611b9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600754036139305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b93565b6002600755565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b80600883815481106139745761397461508f565b600091825260209091200180546008906139a590849068010000000000000000900467ffffffffffffffff16615183565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061255783838367ffffffffffffffff1660405180602001604052806000815250613f80565b6002610d6c828261523b565b610d6c3383836140a6565b6001600160a01b038516331480613a235750613a238533610a6b565b613a955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610b93565b612767858585858561419a565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480613b0557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bbf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bbf565b8151835114613bb45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b038416613c305760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b93565b3360005b8451811015613d6d576000858281518110613c5157613c5161508f565b602002602001015190506000858381518110613c6f57613c6f61508f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613d155760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610b93565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613d529084906151a4565b9250508190555050505080613d6690615128565b9050613c34565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613dbd92919061537d565b60405180910390a46115af818787878787614363565b6001600160a01b038316613e4f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b93565b33613e7f81856000613e608761454f565b613e698761454f565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613f155760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610b93565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416613ffc5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b93565b336140168160008761400d8861454f565b6127678861454f565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906140469084906151a4565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127678160008787878761459a565b816001600160a01b0316836001600160a01b03160361412d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166142165760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b93565b3361422681878761400d8861454f565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156142bd5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610b93565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906142fa9084906151a4565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461435a82888888888861459a565b50505050505050565b6001600160a01b0384163b156115af576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c81906143c090899089908890889088906004016153ab565b6020604051808303816000875af19250505080156143fb575060408051601f3d908101601f191682019092526143f891810190615409565b60015b6144b057614407615426565b806308c379a003614440575061441b615442565b806144265750614442565b8060405162461bcd60e51b8152600401610b9391906148b7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610b93565b6001600160e01b031981167fbc197c81000000000000000000000000000000000000000000000000000000001461435a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610b93565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106145895761458961508f565b602090810291909101015292915050565b6001600160a01b0384163b156115af576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e61906145f790899089908890889088906004016154ea565b6020604051808303816000875af1925050508015614632575060408051601f3d908101601f1916820190925261462f91810190615409565b60015b61463e57614407615426565b6001600160e01b031981167ff23a6e61000000000000000000000000000000000000000000000000000000001461435a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b038116811461182557600080fd5b6000806040838503121561470557600080fd5b8235614710816146dd565b946020939093013593505050565b6001600160e01b03198116811461182557600080fd5b60006020828403121561474657600080fd5b8135610f0c8161471e565b801515811461182557600080fd5b6000806040838503121561477257600080fd5b82359150602083013561478481614751565b809150509250929050565b600080604083850312156147a257600080fd5b82356147ad816146dd565b915060208301356bffffffffffffffffffffffff8116811461478457600080fd5b60005b838110156147e95781810151838201526020016147d1565b50506000910152565b6000815180845261480a8160208601602086016147ce565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015614891577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261487f8583516147f2565b94509285019290850190600101614845565b5092979650505050505050565b6000602082840312156148b057600080fd5b5035919050565b602081526000610f0c60208301846147f2565b634e487b7160e01b600052604160045260246000fd5b60e0810181811067ffffffffffffffff82111715614900576149006148ca565b60405250565b601f19601f830116810181811067ffffffffffffffff8211171561492c5761492c6148ca565b6040525050565b600082601f83011261494457600080fd5b813567ffffffffffffffff81111561495e5761495e6148ca565b6040516149756020601f19601f8501160182614906565b81815284602083860101111561498a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156149ba57600080fd5b823567ffffffffffffffff8111156149d157600080fd5b6149dd85828601614933565b95602094909401359450505050565b803567ffffffffffffffff81168114614a0457600080fd5b919050565b60008082840360c0811215614a1d57600080fd5b8335925060a0601f1982011215614a3357600080fd5b5060405160a0810181811067ffffffffffffffff82111715614a5757614a576148ca565b604052614a66602085016149ec565b8152614a74604085016149ec565b6020820152614a85606085016149ec565b60408201526080840135614a9881614751565b606082015260a0840135614aab81614751565b6080820152919491935090915050565b600060208284031215614acd57600080fd5b8135610f0c816146dd565b60008060408385031215614aeb57600080fd5b50508035926020909101359150565b60008060408385031215614b0d57600080fd5b8235614b18816146dd565b9150602083013561478481614751565b600067ffffffffffffffff821115614b4257614b426148ca565b5060051b60200190565b600082601f830112614b5d57600080fd5b81356020614b6a82614b28565b604051614b778282614906565b83815260059390931b8501820192828101915086841115614b9757600080fd5b8286015b84811015614bb25780358352918301918301614b9b565b509695505050505050565b600080600080600060a08688031215614bd557600080fd5b8535614be0816146dd565b94506020860135614bf0816146dd565b9350604086013567ffffffffffffffff80821115614c0d57600080fd5b614c1989838a01614b4c565b94506060880135915080821115614c2f57600080fd5b614c3b89838a01614b4c565b93506080880135915080821115614c5157600080fd5b50614c5e88828901614933565b9150509295509295909350565b600060208284031215614c7d57600080fd5b813567ffffffffffffffff811115614c9457600080fd5b614ca084828501614933565b949350505050565b60008060408385031215614cbb57600080fd5b82359150614ccb602084016149ec565b90509250929050565b600081518084526020808501945080840160005b83811015614d0457815187529582019590820190600101614ce8565b509495945050505050565b602081526000610f0c6020830184614cd4565b60008060408385031215614d3557600080fd5b823567ffffffffffffffff80821115614d4d57600080fd5b818501915085601f830112614d6157600080fd5b81356020614d6e82614b28565b604051614d7b8282614906565b83815260059390931b8501820192828101915089841115614d9b57600080fd5b948201945b83861015614dc2578535614db3816146dd565b82529482019490820190614da0565b96505086013592505080821115614dd857600080fd5b50614de585828601614b4c565b9150509250929050565b60008060408385031215614e0257600080fd5b82359150602083013567ffffffffffffffff811115614e2057600080fd5b614de585828601614b4c565b60008060408385031215614e3f57600080fd5b823567ffffffffffffffff811115614e5657600080fd5b614e6285828601614933565b925050602083013561478481614751565b6020808252825182820181905260009190848201906040850190845b81811015614ead578351151583529284019291840191600101614e8f565b50909695505050505050565b600080600060608486031215614ece57600080fd5b8335614ed9816146dd565b925060208401359150614eee604085016149ec565b90509250925092565b60008060408385031215614f0a57600080fd5b823567ffffffffffffffff811115614f2157600080fd5b614f2d85828601614933565b9250506020830135614784816146dd565b600080828403610100811215614f5357600080fd5b833567ffffffffffffffff811115614f6a57600080fd5b614f7686828701614933565b93505060e0601f1982011215614f8b57600080fd5b50604051614f98816148e0565b6020840135815260408401356020820152606084013560408201526080840135606082015260a0840135608082015260c0840135614fd581614751565b60a082015260e0840135614fe881614751565b60c0820152919491935090915050565b6000806040838503121561500b57600080fd5b8235615016816146dd565b91506020830135614784816146dd565b600080600080600060a0868803121561503e57600080fd5b8535615049816146dd565b94506020860135615059816146dd565b93506040860135925060608601359150608086013567ffffffffffffffff81111561508357600080fd5b614c5e88828901614933565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806150b957607f821691505b6020821081036150d957634e487b7160e01b600052602260045260246000fd5b50919050565b600082516150f18184602087016147ce565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610bbf57610bbf6150fb565b6000600019820361513b5761513b6150fb565b5060010190565b60008261515f57634e487b7160e01b600052601260045260246000fd5b500490565b600060ff821660ff810361517a5761517a6150fb565b60010192915050565b67ffffffffffffffff81811683821601908082111561194a5761194a6150fb565b80820180821115610bbf57610bbf6150fb565b6000602082840312156151c957600080fd5b8151610f0c816146dd565b67ffffffffffffffff82811682821603908082111561194a5761194a6150fb565b601f82111561255757600081815260208120601f850160051c8101602086101561521c5750805b601f850160051c820191505b818110156115af57828155600101615228565b815167ffffffffffffffff811115615255576152556148ca565b6152698161526384546150a5565b846151f5565b602080601f83116001811461529e57600084156152865750858301515b600019600386901b1c1916600185901b1785556115af565b600085815260208120601f198616915b828110156152cd578886015182559484019460019091019084016152ae565b50858210156152eb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600061010080835261530f818401866147f2565b91505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b60006020828403121561537257600080fd5b8151610f0c81614751565b6040815260006153906040830185614cd4565b82810360208401526153a28185614cd4565b95945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526153d760a0830186614cd4565b82810360608401526153e98186614cd4565b905082810360808401526153fd81856147f2565b98975050505050505050565b60006020828403121561541b57600080fd5b8151610f0c8161471e565b600060033d111561543f5760046000803e5060005160e01c5b90565b600060443d10156154505790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561549e57505050505090565b82850191508151818111156154b65750505050505090565b843d87010160208285010111156154d05750505050505090565b6154df60208286010187614906565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261552260a08301846147f2565b97965050505050505056fea2646970667358221220c4bc1648ea68532dd1526a8a6e8e52f7fe29cabf98e31bd5215ad0f66721cb8964736f6c634300081100334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000600000000000000000000000003457b953d1a37b2ebb584c11484ee9b74a70f00100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6170692d746f6f6c2e6d69696e6465642e636f6d2f64726f702f746f6b656e2f37306333326338612d373138372d343034662d623939362d6431613862373761653366652f7b69647d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000070f4e4f7a1d6af7d800f16fe17b2a7883a46c7fe0000000000000000000000000000000000000000000000000000000000000064

Deployed Bytecode

0x6080604052600436106103285760003560e01c8063715018a6116101a5578063a705d4eb116100ec578063e3b85eef11610095578063f0ba9cb81161006f578063f0ba9cb814610a99578063f242432a14610ab9578063f2fde38b14610ad9578063f6b4dfb414610af957600080fd5b8063e3b85eef14610a1d578063e6e28ff914610a30578063e985e9c514610a5057600080fd5b8063bde2de87116100c6578063bde2de87146109c8578063c9eb4662146109e8578063e1ac347214610a0857600080fd5b8063a705d4eb1461094f578063bc08caac1461096f578063bd85b0391461098f57600080fd5b8063885850781161014e578063a0bcfc7f11610128578063a0bcfc7f146108ef578063a17768f41461090f578063a22cb4651461092f57600080fd5b806388585078146108845780638da5cb5b146108a457806396a8e124146108c257600080fd5b80637e4d20a71161017f5780637e4d20a7146108045780637f5ae91a146108245780638323662d1461087157600080fd5b8063715018a614610796578063768b5fd5146107ab578063772973ee146107cb57600080fd5b80632eb2c2d611610274578063438b63001161021d5780634e1273f4116101f75780634e1273f4146107205780635bc63820146107405780636667df6c146107605780636c4684df1461077657600080fd5b8063438b630014610633578063438c0f6f14610660578063494a65891461068057600080fd5b80633ccfd60b1161024e5780633ccfd60b146105c45780633ebfd46f146105d957806341f43434146105f957600080fd5b80632eb2c2d614610555578063338231de146105755780633b8361711461059557600080fd5b80631cbaeb1d116102d657806326f1a1fd116102b057806326f1a1fd1461049a5780632a55205a146104f65780632a63d5761461053557600080fd5b80631cbaeb1d146104215780631f43d11e1461044157806324d7806c1461046157600080fd5b806304634d8d1161030757806304634d8d146103b2578063071c8e52146103d25780630e89341c146103f457600080fd5b8062fdd58e1461032d57806301ffc9a71461036057806303a56ebe14610390575b600080fd5b34801561033957600080fd5b5061034d6103483660046146f2565b610b19565b6040519081526020015b60405180910390f35b34801561036c57600080fd5b5061038061037b366004614734565b610bc5565b6040519015158152602001610357565b34801561039c57600080fd5b506103b06103ab36600461475f565b610bd0565b005b3480156103be57600080fd5b506103b06103cd36600461478f565b610ce9565b3480156103de57600080fd5b506103e7610d70565b604051610357919061481e565b34801561040057600080fd5b5061041461040f36600461489e565b610e49565b60405161035791906148b7565b34801561042d57600080fd5b5061034d61043c3660046149a7565b610edd565b34801561044d57600080fd5b506103b061045c366004614a09565b610f13565b34801561046d57600080fd5b5061038061047c366004614abb565b6001600160a01b031660009081526006602052604090205460ff1690565b3480156104a657600080fd5b506104ba6104b536600461489e565b61139f565b6040805167ffffffffffffffff96871681529486166020860152929094169183019190915215156060820152901515608082015260a001610357565b34801561050257600080fd5b50610516610511366004614ad8565b611407565b604080516001600160a01b039093168352602083019190915201610357565b34801561054157600080fd5b506103b0610550366004614afa565b6114e4565b34801561056157600080fd5b506103b0610570366004614bbd565b611588565b34801561058157600080fd5b50610380610590366004614c6b565b6115b7565b3480156105a157600080fd5b506103806105b0366004614abb565b600f546001600160a01b0390811691161490565b3480156105d057600080fd5b506103b0611667565b3480156105e557600080fd5b506103b06105f4366004614ca8565b611828565b34801561060557600080fd5b5061061b6daaeb6d7670e522a718067333cd4e81565b6040516001600160a01b039091168152602001610357565b34801561063f57600080fd5b5061065361064e366004614abb565b6118b7565b6040516103579190614d0f565b34801561066c57600080fd5b506103b061067b36600461475f565b611951565b34801561068c57600080fd5b506106e761069b366004614c6b565b8051602081830181018051600b82529282019190930120915280546001820154600283015460038401546004850154600590950154939492939192909160ff8082169161010090041687565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e001610357565b34801561072c57600080fd5b5061065361073b366004614d22565b6119ea565b34801561074c57600080fd5b506103b061075b366004614afa565b611b28565b34801561076c57600080fd5b5061034d60115481565b34801561078257600080fd5b50610380610791366004614ad8565b611b5b565b3480156107a257600080fd5b506103b0611b88565b3480156107b757600080fd5b506103b06107c6366004614abb565b611b9c565b3480156107d757600080fd5b506103806107e6366004614abb565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561081057600080fd5b5061038061081f36600461489e565b611c44565b34801561083057600080fd5b5061085f61083f366004614c6b565b8051602081830181018051600c8252928201919093012091525460ff1681565b60405160ff9091168152602001610357565b6103b061087f366004614def565b611c82565b34801561089057600080fd5b506103b061089f366004614e2c565b6122c4565b3480156108b057600080fd5b506005546001600160a01b031661061b565b3480156108ce57600080fd5b506108e26108dd366004614def565b612375565b6040516103579190614e73565b3480156108fb57600080fd5b506103b061090a366004614c6b565b612415565b34801561091b57600080fd5b5061041461092a36600461489e565b612497565b34801561093b57600080fd5b506103b061094a366004614afa565b612543565b34801561095b57600080fd5b506103b061096a366004614eb9565b61255c565b34801561097b57600080fd5b5061034d61098a366004614ef7565b61276e565b34801561099b57600080fd5b506109af6109aa36600461489e565b6127c5565b60405167ffffffffffffffff9091168152602001610357565b3480156109d457600080fd5b506103b06109e3366004614eb9565b612883565b3480156109f457600080fd5b50610516610a0336600461489e565b612909565b348015610a1457600080fd5b50610414612941565b6103b0610a2b366004614ca8565b612afa565b348015610a3c57600080fd5b506103b0610a4b366004614f3e565b612f35565b348015610a5c57600080fd5b50610380610a6b366004614ff8565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b348015610aa557600080fd5b50610380610ab436600461489e565b613198565b348015610ac557600080fd5b506103b0610ad4366004615026565b61324c565b348015610ae557600080fd5b506103b0610af4366004614abb565b613273565b348015610b0557600080fd5b50600f5461061b906001600160a01b031681565b60006001600160a01b038316610b9c5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b6000610bbf826133ab565b3360009081526006602052604090205460ff16151560011480610bfd57506005546001600160a01b031633145b610c495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b610c5282611c44565b610c915760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b8060088381548110610ca557610ca561508f565b60009182526020909120018054911515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff9092169190911790555050565b3360009081526006602052604090205460ff16151560011480610d1657506005546001600160a01b031633145b610d625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b610d6c82826133e9565b5050565b6060600a805480602002602001604051908101604052809291908181526020016000905b82821015610e40578382906000526020600020018054610db3906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610ddf906150a5565b8015610e2c5780601f10610e0157610100808354040283529160200191610e2c565b820191906000526020600020905b815481529060010190602001808311610e0f57829003601f168201915b505050505081526020019060010190610d94565b50505050905090565b606060028054610e58906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610e84906150a5565b8015610ed15780601f10610ea657610100808354040283529160200191610ed1565b820191906000526020600020905b815481529060010190602001808311610eb457829003601f168201915b50505050509050919050565b600081600b84604051610ef091906150df565b908152602001604051809103902060040154610f0c9190615111565b9392505050565b3360009081526006602052604090205460ff16151560011480610f4057506005546001600160a01b031633145b610f8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b8060800151610fdd5760405162461bcd60e51b815260206004820152601160248201527f5f737570706c79206e6f742076616c69640000000000000000000000000000006044820152606401610b93565b6008548210156111145760088281548110610ffa57610ffa61508f565b600091825260209091200154600160c81b900460ff161561111457600882815481106110285761102861508f565b600091825260209091200154815167ffffffffffffffff918216911611156110b85760405162461bcd60e51b815260206004820152603660248201527f4e6f7420706f737369626c6520746f20696e637265617365207468652073757060448201527f706c79206d61782c206f6e6c79206465637265617365000000000000000000006064820152608401610b93565b805160088054849081106110ce576110ce61508f565b600091825260209091200180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff929092169190911790555050565b6008545b82811161127c576040805160a081018252600080825260208201818152928201818152606083018281526080840183815260088054600181018255945293517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3909301805495519251915194511515600160c81b027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff951515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff94851670010000000000000000000000000000000002167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff95851668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909916969094169590951796909617929092161791909117919091169190911790558061127481615128565b915050611118565b5080600883815481106112915761129161508f565b600091825260209182902083519101805492840151604085015160608601516080909601511515600160c81b027fffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffff961515600160c01b027fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff93841670010000000000000000000000000000000002167fffffffffffffff000000000000000000ffffffffffffffffffffffffffffffff94841668010000000000000000027fffffffffffffffffffffffffffffffff00000000000000000000000000000000909816939096169290921795909517919091169290921791909117929092161790555050565b600881815481106113af57600080fd5b60009182526020909120015467ffffffffffffffff808216925068010000000000000000820481169170010000000000000000000000000000000081049091169060ff600160c01b8204811691600160c81b90041685565b60008281526004602090815260408083208151808301909252546001600160a01b038116808352740100000000000000000000000000000000000000009091046bffffffffffffffffffffffff169282019290925282916114a85750604080518082019091526003546001600160a01b03811682527401000000000000000000000000000000000000000090046bffffffffffffffffffffffff1660208201525b6020810151600090612710906114cc906bffffffffffffffffffffffff1687615111565b6114d69190615142565b915196919550909350505050565b3360009081526006602052604090205460ff1615156001148061151157506005546001600160a01b031633145b61155d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b846001600160a01b03811633146115a2576115a233613514565b6115af86868686866135ff565b505050505050565b600080600b836040516115ca91906150df565b908152604051908190036020019020541180156116065750600b826040516115f291906150df565b908152604051908190036020019020544210155b80156116335750600b8260405161161d91906150df565b9081526020016040518091039020600101544211155b8015610bbf5750600b8260405161164a91906150df565b9081526040519081900360200190206005015460ff161592915050565b3360009081526006602052604090205460ff1615156001148061169457506005546001600160a01b031633145b6116e05760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b478061172e5760405162461bcd60e51b815260206004820152601160248201527f53616c65732042616c616e6365203d20300000000000000000000000000000006044820152606401610b93565b60005b60105460ff8216101561180957600060108260ff16815481106117565761175661508f565b90600052602060002090600202016001015411156117f7576117f760108260ff16815481106117875761178761508f565b906000526020600020906002020160000160009054906101000a90046001600160a01b03166117f26011546117ec60108660ff16815481106117cb576117cb61508f565b9060005260206000209060020201600101548761369a90919063ffffffff16565b906136a6565b6136b2565b8061180181615164565b915050611731565b5061182561181f6005546001600160a01b031690565b476136b2565b50565b60008281526009602052604090205460ff16156118ac5760405162461bcd60e51b8152602060048201526024808201527f4275726e207075626c69632069732064697361626c656420666f72207468697360448201527f205f6964000000000000000000000000000000000000000000000000000000006064820152608401610b93565b610d6c338383613755565b60085460609060009067ffffffffffffffff8111156118d8576118d86148ca565b604051908082528060200260200182016040528015611901578160200160208202803683370190505b50905060015b60085481101561194a5761191b8482610b19565b82828151811061192d5761192d61508f565b60209081029190910101528061194281615128565b915050611907565b5092915050565b3360009081526006602052604090205460ff1615156001148061197e57506005546001600160a01b031633145b6119ca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600091825260096020526040909120805460ff1916911515919091179055565b60608151835114611a635760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608401610b93565b6000835167ffffffffffffffff811115611a7f57611a7f6148ca565b604051908082528060200260200182016040528015611aa8578160200160208202803683370190505b50905060005b8451811015611b2057611af3858281518110611acc57611acc61508f565b6020026020010151858381518110611ae657611ae661508f565b6020026020010151610b19565b828281518110611b0557611b0561508f565b6020908102919091010152611b1981615128565b9050611aae565b509392505050565b611b30613825565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6000828152601260209081526040808320600885901c8452909152812054600160ff84161b161515610f0c565b611b90613825565b611b9a600061387f565b565b3360009081526006602052604090205460ff16151560011480611bc957506005546001600160a01b031633145b611c155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60085460009082108015610bbf575060088281548110611c6657611c6661508f565b600091825260209091200154600160c81b900460ff1692915050565b818151611c8e82611c44565b611ccd5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b60088281548110611ce057611ce061508f565b600091825260209091200154600160c01b900460ff1615611d435760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b60088281548110611d5657611d5661508f565b6000918252602090912001546008805467ffffffffffffffff9092169183919085908110611d8657611d8661508f565b600091825260209091200154611db2919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff161115611e0a5760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b6040518060400160405280600781526020017f484f4c44455253000000000000000000000000000000000000000000000000008152508351611e4b826115b7565b611e975760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610b93565b600b82604051611ea791906150df565b908152602001604051809103902060030154811115611f085760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610b93565b611f128282610edd565b341015611f615760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610b93565b6000600b83604051611f7391906150df565b90815260200160405180910390206002015411156120a257600b82604051611f9b91906150df565b90815260200160405180910390206002015481600d6000600c86604051611fc291906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091522054611ffa91906151a4565b11156120485760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610b93565b80600d6000600c8560405161205d91906150df565b90815260408051602092819003830190205460ff168352828201939093529082016000908120338252909152908120805490919061209c9084906151a4565b90915550505b6120aa6138de565b60008551116120fb5760405162461bcd60e51b815260206004820152601160248201527f4d697373696e67205f746f6b656e4964730000000000000000000000000000006044820152606401610b93565b60005b85518110156122ad5761212a8787838151811061211d5761211d61508f565b6020026020010151611b5b565b156121775760405162461bcd60e51b815260206004820152601760248201527f746f6b656e496420616c726561647920666c61676765640000000000000000006044820152606401610b93565b6121b586828151811061218c5761218c61508f565b6020026020010151601260008a815260200190815260200160002061393790919063ffffffff16565b600f54865133916001600160a01b031690636352211e908990859081106121de576121de61508f565b60200260200101516040518263ffffffff1660e01b815260040161220491815260200190565b602060405180830381865afa158015612221573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224591906151b7565b6001600160a01b03161461229b5760405162461bcd60e51b815260206004820152601860248201527f426164206f776e6572206f662074686520746f6b656e496400000000000000006044820152606401610b93565b806122a581615128565b9150506120fe565b506122ba33878751613960565b6115af6001600755565b3360009081526006602052604090205460ff161515600114806122f157506005546001600160a01b031633145b61233d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b80600b8360405161234e91906150df565b908152604051908190036020019020600501805491151560ff199092169190911790555050565b60606000825167ffffffffffffffff811115612393576123936148ca565b6040519080825280602002602001820160405280156123bc578160200160208202803683370190505b50905060005b8351811015611b20576123e18585838151811061211d5761211d61508f565b8282815181106123f3576123f361508f565b911515602092830291909101909101528061240d81615128565b9150506123c2565b3360009081526006602052604090205460ff1615156001148061244257506005546001600160a01b031633145b61248e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b611825816139f0565b600a81815481106124a757600080fd5b9060005260206000200160009150905080546124c2906150a5565b80601f01602080910402602001604051908101604052809291908181526020018280546124ee906150a5565b801561253b5780601f106125105761010080835404028352916020019161253b565b820191906000526020600020905b81548152906001019060200180831161251e57829003601f168201915b505050505081565b8161254d81613514565b61255783836139fc565b505050565b818161256782611c44565b6125a65760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106125b9576125b961508f565b600091825260209091200154600160c01b900460ff161561261c5760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b6008828154811061262f5761262f61508f565b6000918252602090912001546008805467ffffffffffffffff909216918391908590811061265f5761265f61508f565b60009182526020909120015461268b919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff1611156126e35760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b3360009081526006602052604090205460ff1615156001148061271057506005546001600160a01b031633145b61275c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b612767858585613960565b5050505050565b6000600d6000600c8560405161278491906150df565b908152604080519182900360209081019092205460ff1683528282019390935290820160009081206001600160a01b03861682529091522054905092915050565b60006127d082611c44565b61280f5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106128225761282261508f565b9060005260206000200160000160109054906101000a900467ffffffffffffffff16600883815481106128575761285761508f565b600091825260209091200154610bbf919068010000000000000000900467ffffffffffffffff166151d4565b61288c336107e6565b6128fe5760405162461bcd60e51b815260206004820152602860248201527f45787465726e616c436f6e7472616374733a206e6f742065787465726e616c2060448201527f436f6e74726163740000000000000000000000000000000000000000000000006064820152608401610b93565b612557838383613755565b6010818154811061291957600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b606060005b600a54811015612ac1576129fe600a82815481106129665761296661508f565b90600052602060002001805461297b906150a5565b80601f01602080910402602001604051908101604052809291908181526020018280546129a7906150a5565b80156129f45780601f106129c9576101008083540402835291602001916129f4565b820191906000526020600020905b8154815290600101906020018083116129d757829003601f168201915b50505050506115b7565b15612aaf57600a8181548110612a1657612a1661508f565b906000526020600020018054612a2b906150a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612a57906150a5565b8015612aa45780601f10612a7957610100808354040283529160200191612aa4565b820191906000526020600020905b815481529060010190602001808311612a8757829003601f168201915b505050505091505090565b80612ab981615128565b915050612946565b505060408051808201909152600481527f4e4f4e4500000000000000000000000000000000000000000000000000000000602082015290565b8181612b0582611c44565b612b445760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b60088281548110612b5757612b5761508f565b600091825260209091200154600160c01b900460ff1615612bba5760405162461bcd60e51b815260206004820152600d60248201527f537570706c7920706175736564000000000000000000000000000000000000006044820152606401610b93565b60088281548110612bcd57612bcd61508f565b6000918252602090912001546008805467ffffffffffffffff9092169183919085908110612bfd57612bfd61508f565b600091825260209091200154612c29919068010000000000000000900467ffffffffffffffff16615183565b67ffffffffffffffff161115612c815760405162461bcd60e51b815260206004820152600960248201527f536f6c64206f75742100000000000000000000000000000000000000000000006044820152606401610b93565b6040518060400160405280600681526020017f5055424c494300000000000000000000000000000000000000000000000000008152508367ffffffffffffffff16612ccb826115b7565b612d175760405162461bcd60e51b815260206004820152600d60248201527f4d696e74206e6f74206f70656e000000000000000000000000000000000000006044820152606401610b93565b600b82604051612d2791906150df565b908152602001604051809103902060030154811115612d885760405162461bcd60e51b815260206004820152601060248201527f4d617820706572207478206c696d6974000000000000000000000000000000006044820152606401610b93565b612d928282610edd565b341015612de15760405162461bcd60e51b815260206004820152600b60248201527f56616c7565206c696d69740000000000000000000000000000000000000000006044820152606401610b93565b6000600b83604051612df391906150df565b9081526020016040518091039020600201541115612f2257600b82604051612e1b91906150df565b90815260200160405180910390206002015481600d6000600c86604051612e4291906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091522054612e7a91906151a4565b1115612ec85760405162461bcd60e51b815260206004820152601460248201527f4d6178207065722077616c6c6574206c696d69740000000000000000000000006044820152606401610b93565b80600d6000600c85604051612edd91906150df565b90815260408051602092819003830190205460ff1683528282019390935290820160009081203382529091529081208054909190612f1c9084906151a4565b90915550505b612f2a6138de565b6122ba338787613960565b3360009081526006602052604090205460ff16151560011480612f6257506005546001600160a01b031633145b612fae5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b8060c00151612fff5760405162461bcd60e51b815260206004820152601660248201527f5f6d696e742e76616c6964206973206d697373696e67000000000000000000006044820152606401610b93565b600b8260405161300f91906150df565b9081526040519081900360200190206005015460ff610100909104166130a457600a80546001810182556000919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80161306b838261523b565b50600a54604051600c906130809085906150df565b908152604051908190036020019020805460ff9290921660ff199092169190911790555b80600b836040516130b591906150df565b90815260408051918290036020908101832084518155908401516001820155908301516002820155606083015160038201556080830151600482015560a08301516005909101805460c0909401511515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff921515929092167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000090941693909317179091557f3c962146da3bd7dd94058de71955615106fe10306e81de47ffc1f51965b4264e9061318c90849084906152fb565b60405180910390a15050565b60006131a382611c44565b6131e25760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b600882815481106131f5576131f561508f565b6000918252602090912001546008805467ffffffffffffffff90921691849081106132225761322261508f565b60009182526020909120015468010000000000000000900467ffffffffffffffff16101592915050565b846001600160a01b03811633146132665761326633613514565b6115af8686868686613a07565b61327b613825565b6001600160a01b0381166132f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b93565b6118258161387f565b60108054600181018255600091825282517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6726002909202918201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117905560208301517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67390910181905560118054919290916133a39084906151a4565b909155505050565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610bbf5750610bbf82613aa2565b6127106bffffffffffffffffffffffff8216111561346f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b0382166134c55760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610b93565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff90911660209092018290527401000000000000000000000000000000000000000090910217600355565b6daaeb6d7670e522a718067333cd4e3b15611825576040517fc61711340000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561359a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135be9190615360565b611825576040517fede71dcc0000000000000000000000000000000000000000000000000000000081526001600160a01b0382166004820152602401610b93565b6001600160a01b03851633148061361b575061361b8533610a6b565b61368d5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b93565b6127678585858585613b3d565b6000610f0c8284615111565b6000610f0c8284615142565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146136ff576040519150601f19603f3d011682016040523d82523d6000602084013e613704565b606091505b50509050806125575760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b93565b61375e82611c44565b61379d5760405162461bcd60e51b815260206004820152601060248201526f14dd5c1c1b1e481b9bdd081d985b1a5960821b6044820152606401610b93565b80600883815481106137b1576137b161508f565b600091825260209091200180546010906137ea908490700100000000000000000000000000000000900467ffffffffffffffff16615183565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061255783838367ffffffffffffffff16613dd3565b6005546001600160a01b03163314611b9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b93565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600754036139305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b93565b6002600755565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b80600883815481106139745761397461508f565b600091825260209091200180546008906139a590849068010000000000000000900467ffffffffffffffff16615183565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061255783838367ffffffffffffffff1660405180602001604052806000815250613f80565b6002610d6c828261523b565b610d6c3383836140a6565b6001600160a01b038516331480613a235750613a238533610a6b565b613a955760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f76656400000000000000000000000000000000000000000000006064820152608401610b93565b612767858585858561419a565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480613b0557506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b80610bbf57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610bbf565b8151835114613bb45760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b038416613c305760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b93565b3360005b8451811015613d6d576000858281518110613c5157613c5161508f565b602002602001015190506000858381518110613c6f57613c6f61508f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015613d155760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610b93565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290613d529084906151a4565b9250508190555050505080613d6690615128565b9050613c34565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613dbd92919061537d565b60405180910390a46115af818787878787614363565b6001600160a01b038316613e4f5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b93565b33613e7f81856000613e608761454f565b613e698761454f565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b038816845290915290205482811015613f155760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610b93565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b038416613ffc5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b93565b336140168160008761400d8861454f565b6127678861454f565b6000848152602081815260408083206001600160a01b0389168452909152812080548592906140469084906151a4565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46127678160008787878761459a565b816001600160a01b0316836001600160a01b03160361412d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166142165760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b93565b3361422681878761400d8861454f565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156142bd5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608401610b93565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906142fa9084906151a4565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461435a82888888888861459a565b50505050505050565b6001600160a01b0384163b156115af576040517fbc197c810000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063bc197c81906143c090899089908890889088906004016153ab565b6020604051808303816000875af19250505080156143fb575060408051601f3d908101601f191682019092526143f891810190615409565b60015b6144b057614407615426565b806308c379a003614440575061441b615442565b806144265750614442565b8060405162461bcd60e51b8152600401610b9391906148b7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610b93565b6001600160e01b031981167fbc197c81000000000000000000000000000000000000000000000000000000001461435a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610b93565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106145895761458961508f565b602090810291909101015292915050565b6001600160a01b0384163b156115af576040517ff23a6e610000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063f23a6e61906145f790899089908890889088906004016154ea565b6020604051808303816000875af1925050508015614632575060408051601f3d908101601f1916820190925261462f91810190615409565b60015b61463e57614407615426565b6001600160e01b031981167ff23a6e61000000000000000000000000000000000000000000000000000000001461435a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a6563746560448201527f6420746f6b656e730000000000000000000000000000000000000000000000006064820152608401610b93565b6001600160a01b038116811461182557600080fd5b6000806040838503121561470557600080fd5b8235614710816146dd565b946020939093013593505050565b6001600160e01b03198116811461182557600080fd5b60006020828403121561474657600080fd5b8135610f0c8161471e565b801515811461182557600080fd5b6000806040838503121561477257600080fd5b82359150602083013561478481614751565b809150509250929050565b600080604083850312156147a257600080fd5b82356147ad816146dd565b915060208301356bffffffffffffffffffffffff8116811461478457600080fd5b60005b838110156147e95781810151838201526020016147d1565b50506000910152565b6000815180845261480a8160208601602086016147ce565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015614891577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261487f8583516147f2565b94509285019290850190600101614845565b5092979650505050505050565b6000602082840312156148b057600080fd5b5035919050565b602081526000610f0c60208301846147f2565b634e487b7160e01b600052604160045260246000fd5b60e0810181811067ffffffffffffffff82111715614900576149006148ca565b60405250565b601f19601f830116810181811067ffffffffffffffff8211171561492c5761492c6148ca565b6040525050565b600082601f83011261494457600080fd5b813567ffffffffffffffff81111561495e5761495e6148ca565b6040516149756020601f19601f8501160182614906565b81815284602083860101111561498a57600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156149ba57600080fd5b823567ffffffffffffffff8111156149d157600080fd5b6149dd85828601614933565b95602094909401359450505050565b803567ffffffffffffffff81168114614a0457600080fd5b919050565b60008082840360c0811215614a1d57600080fd5b8335925060a0601f1982011215614a3357600080fd5b5060405160a0810181811067ffffffffffffffff82111715614a5757614a576148ca565b604052614a66602085016149ec565b8152614a74604085016149ec565b6020820152614a85606085016149ec565b60408201526080840135614a9881614751565b606082015260a0840135614aab81614751565b6080820152919491935090915050565b600060208284031215614acd57600080fd5b8135610f0c816146dd565b60008060408385031215614aeb57600080fd5b50508035926020909101359150565b60008060408385031215614b0d57600080fd5b8235614b18816146dd565b9150602083013561478481614751565b600067ffffffffffffffff821115614b4257614b426148ca565b5060051b60200190565b600082601f830112614b5d57600080fd5b81356020614b6a82614b28565b604051614b778282614906565b83815260059390931b8501820192828101915086841115614b9757600080fd5b8286015b84811015614bb25780358352918301918301614b9b565b509695505050505050565b600080600080600060a08688031215614bd557600080fd5b8535614be0816146dd565b94506020860135614bf0816146dd565b9350604086013567ffffffffffffffff80821115614c0d57600080fd5b614c1989838a01614b4c565b94506060880135915080821115614c2f57600080fd5b614c3b89838a01614b4c565b93506080880135915080821115614c5157600080fd5b50614c5e88828901614933565b9150509295509295909350565b600060208284031215614c7d57600080fd5b813567ffffffffffffffff811115614c9457600080fd5b614ca084828501614933565b949350505050565b60008060408385031215614cbb57600080fd5b82359150614ccb602084016149ec565b90509250929050565b600081518084526020808501945080840160005b83811015614d0457815187529582019590820190600101614ce8565b509495945050505050565b602081526000610f0c6020830184614cd4565b60008060408385031215614d3557600080fd5b823567ffffffffffffffff80821115614d4d57600080fd5b818501915085601f830112614d6157600080fd5b81356020614d6e82614b28565b604051614d7b8282614906565b83815260059390931b8501820192828101915089841115614d9b57600080fd5b948201945b83861015614dc2578535614db3816146dd565b82529482019490820190614da0565b96505086013592505080821115614dd857600080fd5b50614de585828601614b4c565b9150509250929050565b60008060408385031215614e0257600080fd5b82359150602083013567ffffffffffffffff811115614e2057600080fd5b614de585828601614b4c565b60008060408385031215614e3f57600080fd5b823567ffffffffffffffff811115614e5657600080fd5b614e6285828601614933565b925050602083013561478481614751565b6020808252825182820181905260009190848201906040850190845b81811015614ead578351151583529284019291840191600101614e8f565b50909695505050505050565b600080600060608486031215614ece57600080fd5b8335614ed9816146dd565b925060208401359150614eee604085016149ec565b90509250925092565b60008060408385031215614f0a57600080fd5b823567ffffffffffffffff811115614f2157600080fd5b614f2d85828601614933565b9250506020830135614784816146dd565b600080828403610100811215614f5357600080fd5b833567ffffffffffffffff811115614f6a57600080fd5b614f7686828701614933565b93505060e0601f1982011215614f8b57600080fd5b50604051614f98816148e0565b6020840135815260408401356020820152606084013560408201526080840135606082015260a0840135608082015260c0840135614fd581614751565b60a082015260e0840135614fe881614751565b60c0820152919491935090915050565b6000806040838503121561500b57600080fd5b8235615016816146dd565b91506020830135614784816146dd565b600080600080600060a0868803121561503e57600080fd5b8535615049816146dd565b94506020860135615059816146dd565b93506040860135925060608601359150608086013567ffffffffffffffff81111561508357600080fd5b614c5e88828901614933565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806150b957607f821691505b6020821081036150d957634e487b7160e01b600052602260045260246000fd5b50919050565b600082516150f18184602087016147ce565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610bbf57610bbf6150fb565b6000600019820361513b5761513b6150fb565b5060010190565b60008261515f57634e487b7160e01b600052601260045260246000fd5b500490565b600060ff821660ff810361517a5761517a6150fb565b60010192915050565b67ffffffffffffffff81811683821601908082111561194a5761194a6150fb565b80820180821115610bbf57610bbf6150fb565b6000602082840312156151c957600080fd5b8151610f0c816146dd565b67ffffffffffffffff82811682821603908082111561194a5761194a6150fb565b601f82111561255757600081815260208120601f850160051c8101602086101561521c5750805b601f850160051c820191505b818110156115af57828155600101615228565b815167ffffffffffffffff811115615255576152556148ca565b6152698161526384546150a5565b846151f5565b602080601f83116001811461529e57600084156152865750858301515b600019600386901b1c1916600185901b1785556115af565b600085815260208120601f198616915b828110156152cd578886015182559484019460019091019084016152ae565b50858210156152eb5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600061010080835261530f818401866147f2565b91505082516020830152602083015160408301526040830151606083015260608301516080830152608083015160a083015260a0830151151560c083015260c0830151151560e08301529392505050565b60006020828403121561537257600080fd5b8151610f0c81614751565b6040815260006153906040830185614cd4565b82810360208401526153a28185614cd4565b95945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526153d760a0830186614cd4565b82810360608401526153e98186614cd4565b905082810360808401526153fd81856147f2565b98975050505050505050565b60006020828403121561541b57600080fd5b8151610f0c8161471e565b600060033d111561543f5760046000803e5060005160e01c5b90565b600060443d10156154505790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff816024840111818411171561549e57505050505090565b82850191508151818111156154b65750505050505090565b843d87010160208285010111156154d05750505050505090565b6154df60208286010187614906565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261552260a08301846147f2565b97965050505050505056fea2646970667358221220c4bc1648ea68532dd1526a8a6e8e52f7fe29cabf98e31bd5215ad0f66721cb8964736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000003457b953d1a37b2ebb584c11484ee9b74a70f00100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f6170692d746f6f6c2e6d69696e6465642e636f6d2f64726f702f746f6b656e2f37306333326338612d373138372d343034662d623939362d6431613862373761653366652f7b69647d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000070f4e4f7a1d6af7d800f16fe17b2a7883a46c7fe0000000000000000000000000000000000000000000000000000000000000064

-----Decoded View---------------
Arg [0] : baseURI (string): https://api-tool.miinded.com/drop/token/70c32c8a-7187-404f-b996-d1a8b77ae3fe/{id}
Arg [1] : _collectionAddress (address): 0x3457b953D1A37b2ebb584C11484ee9B74A70F001
Arg [2] : _parts (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000003457b953d1a37b2ebb584c11484ee9b74a70f001
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [4] : 68747470733a2f2f6170692d746f6f6c2e6d69696e6465642e636f6d2f64726f
Arg [5] : 702f746f6b656e2f37306333326338612d373138372d343034662d623939362d
Arg [6] : 6431613862373761653366652f7b69647d000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 00000000000000000000000070f4e4f7a1d6af7d800f16fe17b2a7883a46c7fe
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000064


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.