ETH Price: $3,313.39 (-3.94%)

Token

Inspired By Ledger (IXL)
 

Overview

Max Total Supply

18,745 IXL

Holders

3,274

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
itsmoma.eth
0xa86B1ab5bc759FB0B7fc8611e1705688b747f487
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Inspired by Ledger is a patronage program, commissioning digital artists from within web3 to create works exploring Ledger’s brand and mission. The commissioned works are dropped as timed open editions, claimable for free by the Ledger passholder community.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
InspiredByLedger

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.8.17;

import { ERC1155 } from "@rari-capital/solmate/src/tokens/ERC1155.sol";

import { Signable } from "../generic/Signable.sol";
import { AccessControl } from "@openzeppelin/contracts/access/AccessControl.sol";

import { Errors } from "../generic/Errors.sol";
import { Helpers } from "../Helpers.sol";
import { Types } from "../Types.sol";
import { IERC2981 } from "@openzeppelin/contracts/interfaces/IERC2981.sol";
import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

/**
 * @title InspiredByLedger
 */
contract InspiredByLedger is ERC1155, Signable, IERC2981, AccessControl {
    event FeaturesEnabled(Feature[] features);
    event FeatureStatusChanged(Feature features, bool status);
    event DefaultMaxSupplyChanged(uint256 defaultMaxSupply);
    event MaxSupplyPerTokenChanged(uint256[] tokenIds, uint256[] maxSupplies);
    event SeasonUpdated(uint16 seasonId);
    event ETHMintPricePerTokenChanged(uint256[] tokenIds, uint256[] prices);
    event TokenURIChanged(uint256 tokenId, string tokenURI);
    event TokenTypesChanged(address[] tokens, TokenType[] tokenTypes);
    event TokenDeadlinesChanged(uint256[] tokenIds, uint256[][] deadlines);
    event ContractURIChanged(string contractUri);
    event DefaultMaxMintChanged(uint256 defaultMaxMint);
    event MaxMintPerTokenChanged(uint256[] tokenIds, uint256[] maxMints);
    event DefaultRoyaltyReceiverChanged(address defaultRoyaltyReceiver);
    event RoyaltiesInfoUpdated(
        uint256 tokenId,
        address royaltyReceiver,
        uint256 percentage
    );
    event TipReceived(address indexed sender, uint256 amount);
    event TokenInitialized(
        uint256 tokenId,
        uint256 maxSupply,
        uint256 maxMintPerToken,
        uint256 mintPrice,
        address withdrawalAddress,
        address royaltyReceiver,
        uint256 royaltiesPercentage,
        string tokenURI,
        uint256[2] deadlines
    );
    event WithdrawalAddressesChanged(
        uint256 tokenId,
        address withdrawalAddress
    );

    event DefaultWithdrawalAddressChanged(address defaultWithdrawalAddress);

    enum Feature {
        MINTER_CAN_MINT,
        ETH_WITH_SIGN,
        ETH_PUBLIC
    }

    enum TokenType {
        NONE,
        INFINITY,
        GENESIS
    }

    /*//////////////////////////////-////////////////////////////////
                            Storage
    ////////////////////////////////-//////////////////////////////*/
    bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");

    string public name;
    string public symbol;

    // Addresses where money from the contract will go if the owner of the contract will call withdrawAll function
    address public defaultWithdrawalAddress;

    //Addresses where money for specific the contract will go if the owner of the token will call withdraw function
    mapping(uint256 => address) public withdrawalAddresses;

    // Bit mapping of active features
    uint256 private featureEnabledBitMap;

    // Base contract URI
    string private baseContractURI;

    // Token URIs
    mapping(uint256 => string) private tokenURIs;

    /// @notice Mint prices, can be configured
    /// @return supply per specified token
    mapping(uint256 => uint256) public mintPrices;

    /// @notice Default max supply for token if not specified.
    /// @return default max supply
    uint256 public defaultMaxSupply = 100000;

    /// @notice Max supply per token
    mapping(uint256 => uint256) private maxSupplyPerToken;

    /// @notice Current supply per token
    /// @return supply per specified token
    mapping(uint256 => uint256) public currentSupplyPerToken;

    /// @notice Number of already minted tokens per account
    /// @return mapping
    mapping(address => mapping(uint256 => uint256)) public minted;

    /// @notice SeasonId for which signature will be valid for private sales. If seasonId is changed all signatures will be invalid and new ones should be generated
    uint16 public seasonId;

    /// @notice Token type per token
    mapping(address => TokenType) public tokenTypes;

    /// @notice Token deadlines
    mapping(uint256 => uint256[]) public tokenDeadlines;

    /// @notice Default max mint for an account on the public sale if specific mint for token is not specified.
    /// @return default number of mints
    uint256 public defaultMaxMint = 1000;

    /// @notice Max mint amounts, can be configured
    /// @return list of tokens with their's max amounts
    mapping(uint256 => uint256) public maxMintPerToken;

    /// @notice Used TokenGated Ids
    mapping(address => mapping(uint256 => mapping(address => mapping(uint256 => bool))))
        public usedInfinityPasses;

    /// @notice Used TokenGated Ids within a season
    mapping(address => mapping(uint256 => mapping(uint256 => mapping(uint256 => bool))))
        public usedGenesisPasses;

    mapping(uint256 => address) public royaltiesReceivers;
    address public defaultRoyaltyReceiver;

    // Base is 10000, 1000 = 10%
    mapping(uint256 => uint256) private royaltiesPercentage;

    //keeps track how much funds needs to be send to token owner
    mapping(uint256 => uint256) public tokenEscrow;
    //keeps track for total allocation for token owners. This is used to calculate how much funds in excess the contract has and could to be send to contract owner
    uint256 public tips;

    /*//////////////////////////////-////////////////////////////////
                                Modifiers
    ////////////////////////////////-//////////////////////////////*/

    // Modifier is used to check if the feature rule is met
    modifier featureRequired(Feature feature_) {
        if (!isFeatureEnabled(feature_)) revert Errors.MintNotAvailable();
        _;
    }

    // Modifier is used to check if the signature is still valid
    modifier onlyWithinDeadline(uint256[] calldata deadlines) {
        for (uint256 i; i < deadlines.length; ) {
            if (block.timestamp > deadlines[i]) {
                revert Errors.MintDeadlinePassed();
            }
            unchecked {
                ++i;
            }
        }

        _;
    }

    /**
     * @notice Checks the validity of a given token based on its deadlines.
     * @param tokenId The ID of the token to check validity for.
     * @dev This function reverts with an error message if the deadlines have not been set for the token or if the current block timestamp falls outside the token's specified deadlines.
     */
    function checkTokenValidity(uint256 tokenId) internal view {
        uint256[] memory deadlines = tokenDeadlines[tokenId];
        if (deadlines.length == 0) {
            revert Errors.DeadlineNotSet();
        }

        if (
            block.timestamp < tokenDeadlines[tokenId][0] ||
            block.timestamp > tokenDeadlines[tokenId][1]
        ) {
            revert Errors.TokenSaleClosed(tokenId);
        }
    }

    function onlyMatchingLengths(uint256 a, uint256 b) internal pure {
        if (a != b) revert Errors.MismatchLengths();
    }

    /**
     * @notice Initialize the contract. Call once upon deploy.
     * @param _name The name of the token.
     * @param _symbol The symbol of the token.
     * @param _baseContractURI The base URI used for generating contract-level metadata URI.
     * @param _defaultRoyaltyReceiver This will be the default royalty receiver for all tokens if not set explicitly.
     * @param _defaultWithdrawalAddress Default withdrawal address for the contract.
     */
    constructor(
        string memory _name,
        string memory _symbol,
        string memory _baseContractURI,
        address _defaultRoyaltyReceiver,
        address _defaultWithdrawalAddress
    ) {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);

        name = _name;
        symbol = _symbol;
        baseContractURI = _baseContractURI;
        defaultRoyaltyReceiver = _defaultRoyaltyReceiver;
        defaultWithdrawalAddress = _defaultWithdrawalAddress;
    }

    /**
     * @dev The Ether received will be logged with {TipReceived} events.
     */
    receive() external payable virtual {
        tips += msg.value;
        emit TipReceived(msg.sender, msg.value);
    }

    fallback() external payable virtual {
        tips += msg.value;
        emit TipReceived(msg.sender, msg.value);
    }

    /*//////////////////////////////-////////////////////////////////
                            External functions
    ////////////////////////////////-//////////////////////////////*/

    /**
     * @notice Account with a MINTER_ROLE can call this function to mint `amounts` of specified tokens into account with the address `to`
     * @param to Address on which tokens will be minted
     * @param tokenId The ID of the token to mint
     * @param amount The amount of the token to mint
     * @param data Tokens
     */
    function minterMint(
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes calldata data
    ) external onlyRole(MINTER_ROLE) featureRequired(Feature.MINTER_CAN_MINT) {
        _mintLogic(to, tokenId, amount, data, false);
    }

    /**
     * @notice Mint function used with signature. Must be executed by an account with a MINTER_ROLE.
     * @dev This function mints the given tokens for the msg.sender, after verifying the signature for each mint request.
     * @param args An array of TokenGatedMintArgs struct, which represents the tokens to be minted and the pass required to mint them.
     * @param signatures An array of bytes, which represents the signature for each TokenGatedMintArgs struct.
     * @param deadlines An array of uint256, which represents the deadline timestamp for each signature.
     */
    function minterMintSign(
        Types.TokenGatedMintArgs[] calldata args,
        bytes[] calldata signatures,
        uint256[] calldata deadlines,
        bytes calldata data
    )
        external
        onlyRole(MINTER_ROLE)
        featureRequired(Feature.MINTER_CAN_MINT)
        featureRequired(Feature.ETH_WITH_SIGN)
        onlyWithinDeadline(deadlines)
    {
        _mintSignLogic(args, signatures, deadlines, data);
    }

    /**
     * @notice Function used to do minting (with signature). Contract feature `ETH_PUBLIC` must be enabled
     * @param tokenId The ID of the token to mint
     * @param amount The amount of the token to mint
     * @param data data
     */
    function mint(
        uint256 tokenId,
        uint256 amount,
        bytes calldata data
    ) external payable featureRequired(Feature.ETH_PUBLIC) {
        checkTokenValidity(tokenId);

        uint256 totalPrice = priceETH(tokenId, amount);

        if (msg.value < totalPrice) {
            revert Errors.InsufficientFunds();
        }

        tokenEscrow[tokenId] += totalPrice;

        if (msg.value > totalPrice) {
            tips += msg.value - totalPrice;
        }

        _mintLogic(msg.sender, tokenId, amount, data, false);
    }

    /**
     * @notice Mint function used with signature.
     * @dev This function mints the given tokens for the msg.sender, after verifying the signature for each mint request.
     * @param args An array of TokenGatedMintArgs struct, which represents the tokens to be minted and the pass required to mint them.
     * @param signatures An array of bytes, which represents the signature for each TokenGatedMintArgs struct.
     * @param deadlines An array of uint256, which represents the deadline timestamp for each signature.
     */
    function mintSign(
        Types.TokenGatedMintArgs[] calldata args,
        bytes[] calldata signatures,
        uint256[] calldata deadlines,
        bytes calldata data
    )
        external
        payable
        featureRequired(Feature.ETH_WITH_SIGN)
        onlyWithinDeadline(deadlines)
    {
        Types.TokenGatedMintArgs[] memory tmpArgs = args;
        uint256 totalCost = 0;

        for (uint256 i; i < tmpArgs.length; ) {
            uint256 currentPrice = priceETH(
                tmpArgs[i].tokenId,
                tmpArgs[i].amount
            );
            tokenEscrow[tmpArgs[i].tokenId] += currentPrice;
            totalCost += currentPrice;

            unchecked {
                ++i;
            }
        }

        if (msg.value < totalCost) revert Errors.InsufficientFunds();

        if (msg.value > totalCost) {
            tips += msg.value - totalCost;
        }

        _mintSignLogic(args, signatures, deadlines, data);
    }

    /**
     * @notice Burn specified amount of a given token ID from the specified token owner address
     * @param tokenId The ID of the token to burn
     * @param amount The amount of the token to burn
     * @param tokenOwner The address of the token owner whose tokens will be burned
     * @dev Only callable by an account with the BURNER_ROLE
     * @dev If the specified token owner does not have a sufficient balance of the given token to burn, this function will revert with an InsufficientBalance error
     * @dev Decreases the token owner's balance of the given token by the specified amount and decreases the current supply of the given token by the same amount
     */
    function burn(
        uint256 tokenId,
        uint256 amount,
        address tokenOwner
    ) external onlyRole(BURNER_ROLE) {
        if (balanceOf[tokenOwner][tokenId] < amount) {
            revert Errors.InsufficientBalance();
        }

        super._burn(tokenOwner, tokenId, amount);

        unchecked {
            minted[tokenOwner][tokenId] -= amount;
            currentSupplyPerToken[tokenId] -= amount;
        }
    }

    /**
     * @notice Contract owner can call this function to withdraw all ETH in excess (all per-token allocations remain intact) from the contract into a defined wallet
     */
    function withdrawAll() external onlyOwner {
        uint256 balance = tips;
        if (tips == 0) revert Errors.NothingToWithdraw();
        tips = 0;
        (defaultWithdrawalAddress.call{ value: balance }(""));
    }

    /**
     * @notice Owner of the token can call this function to withdraw all allocated ETH per this token
     * @param tokenId The ID of the token to burn
     */
    function withdrawPerToken(uint256 tokenId) external {
        if (msg.sender != withdrawalAddresses[tokenId])
            revert Errors.NotAuthorized();

        uint256 balance = tokenEscrow[tokenId];
        if (balance == 0) revert Errors.NothingToWithdraw();

        tokenEscrow[tokenId] = 0;

        (withdrawalAddresses[tokenId].call{ value: balance }(""));
    }

    /*//////////////////////////////-////////////////////////////////
                                Setters
    ////////////////////////////////-//////////////////////////////*/
    /**
     * @notice Init all necessary configuration per token
     * @param tokenId_ The ID of the token to initialize
     * @param maxSupply_ The maximum supply of the token
     * @param maxMintPerToken_ The maximum amount of tokens that can be minted per account
     * @param mintPrice_ The price of the token
     * @param withdrawalAddresses_ The address of the withdrawal wallet for the token
     * @param royaltyReceiver_ The address of the royalty receiver
     * @param royaltiesPercentage_ The percentage of royalties to be paid
     * @param tokenURI_ The URI of the token
     * @param deadlines_ An array of uint256, which represents the start and end timestamps for the token. Can be 0 based. Start cannot be greater than the end.
     */
    function initializeToken(
        uint256 tokenId_,
        uint256 maxSupply_,
        uint256 maxMintPerToken_,
        uint256 mintPrice_,
        address withdrawalAddresses_,
        address royaltyReceiver_,
        uint256 royaltiesPercentage_,
        string memory tokenURI_,
        uint256[2] memory deadlines_
    ) external onlyOwner {
        //in case we want to initialize with no certain dates yet, we should skip this check
        if (deadlines_[0] > deadlines_[1]) {
            revert Errors.InvalidDeadlines();
        }

        if (royaltiesPercentage_ > 10000) {
            revert Errors.RoyaltiesPercentageTooHigh();
        }

        maxSupplyPerToken[tokenId_] = maxSupply_;
        maxMintPerToken[tokenId_] = maxMintPerToken_;
        mintPrices[tokenId_] = mintPrice_;
        withdrawalAddresses[tokenId_] = withdrawalAddresses_;
        royaltiesReceivers[tokenId_] = royaltyReceiver_;
        royaltiesPercentage[tokenId_] = royaltiesPercentage_;
        tokenURIs[tokenId_] = tokenURI_;
        tokenDeadlines[tokenId_] = deadlines_;

        emit TokenInitialized(
            tokenId_,
            maxSupply_,
            maxMintPerToken_,
            mintPrice_,
            withdrawalAddresses_,
            royaltyReceiver_,
            royaltiesPercentage_,
            tokenURI_,
            deadlines_
        );
    }

    /**
     * @notice Set the enabled features for the contract
     * @param features An array of Feature enum values representing the features to be enabled
     * @dev Sets the featureEnabledBitMap variable to a bit map with the features that are enabled. Each bit position in the bit map corresponds to a Feature enum value, with a bit value of 1 indicating that the feature is enabled and 0 indicating that it is disabled.This function can only be called by the owner of the contract.
     */
    function setEnabledFeatures(Feature[] memory features) external onlyOwner {
        uint256 featuresBitMap = 0;
        for (uint256 i = 0; i < features.length; i++) {
            uint256 featureIndex = uint256(features[i]);
            featuresBitMap = featuresBitMap | (1 << featureIndex);
        }
        featureEnabledBitMap = featuresBitMap;
        emit FeaturesEnabled(features);
    }

    /**
     * @notice Sets the status of a particular feature
     * @param feature The feature to set the status for
     * @param status The desired status for the feature
     * If status is true, the feature will be enabled, otherwise it will be disabled.
     */
    function setFeatureStatus(Feature feature, bool status) external onlyOwner {
        uint256 featureIndex = uint256(feature);
        if (status == true) {
            featureEnabledBitMap = featureEnabledBitMap | (1 << featureIndex);
        } else {
            featureEnabledBitMap = featureEnabledBitMap & ~(1 << featureIndex);
        }

        emit FeatureStatusChanged(feature, status);
    }

    /**
     * @notice Set max supply specified token.
     * @param tokenIds_ Token Ids
     * @param maxSupplies_ Supplies of corresponding tokens by indexes
     */
    function setMaxSupplyPerToken(
        uint256[] calldata tokenIds_,
        uint256[] calldata maxSupplies_
    ) external onlyOwner {
        onlyMatchingLengths(tokenIds_.length, maxSupplies_.length);

        for (uint256 i; i < tokenIds_.length; ) {
            maxSupplyPerToken[tokenIds_[i]] = maxSupplies_[i];
            unchecked {
                i++;
            }
        }

        emit MaxSupplyPerTokenChanged(tokenIds_, maxSupplies_);
    }

    /**
     * @notice Increment season.
     * @dev When season is incremented, all issued signatures become invalid.
     */
    function updateSeason() external onlyOwner {
        ++seasonId;
        emit SeasonUpdated(seasonId);
    }

    /**
     * @notice Set mint prices for specified tokens. Override default mint price for specified tokens
     * @param tokenIds_ Token Ids
     * @param mintPrices_ Prices of corresponding tokens by indexes
     */
    function setETHMintPricePerToken(
        uint256[] calldata tokenIds_,
        uint256[] calldata mintPrices_
    ) external onlyOwner {
        onlyMatchingLengths(tokenIds_.length, mintPrices_.length);

        for (uint256 i; i < tokenIds_.length; ) {
            mintPrices[tokenIds_[i]] = mintPrices_[i];
            unchecked {
                i++;
            }
        }

        emit ETHMintPricePerTokenChanged(tokenIds_, mintPrices_);
    }

    /**
     * @notice Sets a new URI for all token types, by relying on the token type ID
     * @param tokenId_ tokenId for which uri to be set
     * @param uri_ Used as the URI for token type
     */
    function setTokenURI(
        uint256 tokenId_,
        string calldata uri_
    ) external onlyOwner {
        if (bytes(uri_).length == 0) {
            revert Errors.InvalidBaseURI();
        }
        tokenURIs[tokenId_] = uri_;

        emit TokenURIChanged(tokenId_, uri_);
    }

    /**
     * @notice Set token type
     * @param addresses_ array of token addresses
     * @param types_ types of token passes
     * @dev set infinity or genesis
     */
    function setTokenTypes(
        address[] calldata addresses_,
        TokenType[] calldata types_
    ) external onlyOwner {
        onlyMatchingLengths(addresses_.length, types_.length);
        for (uint256 i; i < addresses_.length; ) {
            tokenTypes[addresses_[i]] = types_[i];
            unchecked {
                i++;
            }
        }

        emit TokenTypesChanged(addresses_, types_);
    }

    /**
     * @notice Set token deadline
     * @param tokenIds_ token address
     * @param deadlines_ token address
     * @dev set infinity or genesis
     */
    function setTokenDeadlines(
        uint256[] calldata tokenIds_,
        uint256[][] calldata deadlines_
    ) external onlyOwner {
        onlyMatchingLengths(tokenIds_.length, deadlines_.length);

        for (uint256 i; i < tokenIds_.length; ) {
            if (deadlines_[i].length != 2) {
                revert Errors.InvalidDeadlineLength();
            }

            tokenDeadlines[tokenIds_[i]] = deadlines_[i];
            unchecked {
                i++;
            }
        }

        emit TokenDeadlinesChanged(tokenIds_, deadlines_);
    }

    /**
     * @notice Set contract URI
     * @param baseContractURI_ Base contract URI
     */
    function setContractURI(
        string calldata baseContractURI_
    ) external onlyOwner {
        if (bytes(baseContractURI_).length == 0)
            revert Errors.InvalidBaseContractURL();

        baseContractURI = baseContractURI_;
        emit ContractURIChanged(baseContractURI_);
    }

    /**
     * @notice Set default max mint amount for all tokens
     * @param defaultMaxMint_ default max mint amount
     */
    function setDefaultMaxMint(uint256 defaultMaxMint_) external onlyOwner {
        defaultMaxMint = defaultMaxMint_;
        emit DefaultMaxMintChanged(defaultMaxMint_);
    }

    /**
     * @notice Set max supply specified token.
     * @param tokenIds_ Token Ids
     * @param maxMints_ Max mints of corresponding tokens by indexes
     */
    function setMaxMintPerToken(
        uint256[] calldata tokenIds_,
        uint256[] calldata maxMints_
    ) external onlyOwner {
        onlyMatchingLengths(tokenIds_.length, maxMints_.length);

        for (uint256 i; i < tokenIds_.length; ) {
            maxMintPerToken[tokenIds_[i]] = maxMints_[i];
            unchecked {
                i++;
            }
        }

        emit MaxMintPerTokenChanged(tokenIds_, maxMints_);
    }

    /**
     * @notice Set default max supply
     * @param defaultMaxSupply_ default max supply amount
     */
    function setDefaultMaxSupply(uint256 defaultMaxSupply_) external onlyOwner {
        defaultMaxSupply = defaultMaxSupply_;
        emit DefaultMaxSupplyChanged(defaultMaxSupply_);
    }

    function setDefaultRoyaltyReceiver(
        address defaultRoyaltyReceiver_
    ) external onlyOwner {
        defaultRoyaltyReceiver = defaultRoyaltyReceiver_;
        emit DefaultRoyaltyReceiverChanged(defaultRoyaltyReceiver_);
    }

    /**
     * @notice Sets the royalties information for a given token.
     * @param tokenId The ID of the token to set royalties percentage for.
     * @param royaltyReceiver_ The address to which royalties will be sent.
     * @param royaltiesPercentage_ The new royalties percentage for the token.
     * @dev This function can only be called by the owner of the contract. If the provided royalties percentage is greater than 10000, this function will revert with an error message. Otherwise, it sets the new royalties percentage for the token and emits a `RoyaltiesPercentageChanged` event.
     */
    function setRoyaltiesInfo(
        uint256 tokenId,
        address royaltyReceiver_,
        uint256 royaltiesPercentage_
    ) external onlyOwner {
        if (royaltiesPercentage_ > 10000) {
            revert Errors.RoyaltiesPercentageTooHigh();
        }

        royaltiesPercentage[tokenId] = royaltiesPercentage_;
        royaltiesReceivers[tokenId] = royaltyReceiver_;

        emit RoyaltiesInfoUpdated(
            tokenId,
            royaltyReceiver_,
            royaltiesPercentage_
        );
    }

    /**
     * @notice Sets the default withdrawal address for the contract
     * @param defaultWithdrawalAddress_ The new default withdrawal address which can call `withdrawAll`
     * @dev Only the contract owner is authorized to call this function
     */
    function setDefaultWithdrawalAddress(
        address defaultWithdrawalAddress_
    ) external onlyOwner {
        defaultWithdrawalAddress = defaultWithdrawalAddress_;
        emit DefaultWithdrawalAddressChanged(defaultWithdrawalAddress_);
    }

    /**
     * @notice Sets the withdrawal address for a specific token
     * @param tokenId The ID of the token to set the withdrawal address for
     * @param withdrawalAddress_ The new withdrawal address to be set for the specified token
     * @dev Only the contract owner is authorized to call this function
     */
    function setWithdrawalAddressPerToken(
        uint256 tokenId,
        address withdrawalAddress_
    ) external onlyOwner {
        withdrawalAddresses[tokenId] = withdrawalAddress_;
        emit WithdrawalAddressesChanged(tokenId, withdrawalAddress_);
    }

    /*//////////////////////////////-////////////////////////////////
                                Getters
    ////////////////////////////////-//////////////////////////////*/

    /**
     * @notice Return contract URI
     * @return Contract URI
     */
    function contractURI() external view returns (string memory) {
        return baseContractURI;
    }

    /**
     * @notice Calculate total price of specified tokens depends on their's amounts
     * @param tokenIds List of tokens
     * @param amounts Amounts of corresponding tokens by indexes
     * @return totalPrice Total price
     */
    function totalPriceETH(
        uint256[] memory tokenIds,
        uint256[] memory amounts
    ) public view returns (uint totalPrice) {
        for (uint i; i < tokenIds.length; ) {
            totalPrice += priceETH(tokenIds[i], amounts[i]);
            unchecked {
                i++;
            }
        }
    }

    /**
     * @notice Get price of specified token depends on it's amount
     * @param tokenId Token
     * @param amount Amounts of token
     * @return Token Price
     */
    function priceETH(
        uint256 tokenId,
        uint256 amount
    ) public view returns (uint256) {
        return mintPrices[tokenId] * amount;
    }

    function isFeatureEnabled(Feature feature) public view returns (bool) {
        return (featureEnabledBitMap & (1 << uint256(feature))) != 0;
    }

    function uri(
        uint256 tokenId_
    ) public view override returns (string memory) {
        return tokenURIs[tokenId_];
    }

    function supportsInterface(
        bytes4 interfaceId
    )
        public
        view
        virtual
        override(ERC1155, AccessControl, IERC165)
        returns (bool)
    {
        return
            ERC1155.supportsInterface(interfaceId) ||
            AccessControl.supportsInterface(interfaceId) ||
            interfaceId == type(IERC2981).interfaceId;
    }

    /**
     * @dev See IERC2981
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view override returns (address receiver, uint256 royaltyAmount) {
        receiver = royaltiesReceivers[tokenId] != address(0)
            ? royaltiesReceivers[tokenId]
            : defaultRoyaltyReceiver;

        return (receiver, (salePrice * royaltiesPercentage[tokenId]) / 10000);
    }

    /**
     * @notice Maximum mint per token
     * @param tokenId, Token
     * @return Max mint amount per token
     */
    function getMaxMintPerToken(uint256 tokenId) public view returns (uint256) {
        return
            maxMintPerToken[tokenId] > 0
                ? maxMintPerToken[tokenId]
                : defaultMaxMint;
    }

    /**
     * @notice Maximum supply per token
     * @param tokenId, Token
     * @return Max supply per token
     */
    function getMaxSupplyPerToken(
        uint256 tokenId
    ) public view returns (uint256) {
        return
            maxSupplyPerToken[tokenId] > 0
                ? maxSupplyPerToken[tokenId]
                : defaultMaxSupply;
    }

    /*//////////////////////////////-////////////////////////////////
                            Private functions
    ////////////////////////////////-//////////////////////////////*/

    function _mintSignLogic(
        Types.TokenGatedMintArgs[] calldata args,
        bytes[] calldata signatures,
        uint256[] calldata deadlines,
        bytes calldata data
    ) private {
        Types.TokenGatedMintArgs[] memory tmpArgsArr = args;
        uint256[] memory tmpDeadlines = deadlines;
        bytes[] memory tmpSignatures = signatures;
        bytes memory tmpData = data;

        onlyMatchingLengths(tmpArgsArr.length, tmpSignatures.length);
        onlyMatchingLengths(tmpSignatures.length, tmpDeadlines.length);

        for (uint i = 0; i < tmpArgsArr.length; ) {
            if (
                tokenTypes[tmpArgsArr[i].pass] != TokenType.GENESIS &&
                tokenTypes[tmpArgsArr[i].pass] != TokenType.INFINITY
            ) {
                revert Errors.TokenNotSupported();
            }

            Types.TokenGatedMintArgs memory tmpArgs = tmpArgsArr[i];

            checkTokenValidity(tmpArgs.tokenId);

            if (
                !Helpers._verify(
                    signer(),
                    Helpers._hash(tmpArgs, tmpDeadlines[i], seasonId),
                    tmpSignatures[i]
                )
            ) revert Errors.InvalidSignature();

            if (tokenTypes[tmpArgs.pass] == TokenType.GENESIS) {
                _processGenesisPass(
                    tmpArgs.pass,
                    tmpArgs.tokenGatedId,
                    tmpArgs.tokenId
                );
            } else {
                _processInfinityPass(tmpArgs.pass, tmpArgs.tokenGatedId);
            }

            _mintLogic(
                msg.sender,
                tmpArgs.tokenId,
                tmpArgs.amount,
                tmpData,
                true
            );

            unchecked {
                ++i;
            }
        }
    }

    function _processGenesisPass(
        address pass,
        uint256 tokenGatedId,
        uint256 tokenId
    ) private {
        if (usedGenesisPasses[pass][tokenGatedId][seasonId][tokenId]) {
            revert Errors.TokenGatedIdAlreadyUsed(tokenGatedId);
        }

        usedGenesisPasses[pass][tokenGatedId][seasonId][tokenId] = true;
    }

    function _processInfinityPass(address pass, uint256 tokenGatedId) private {
        if (usedInfinityPasses[pass][tokenGatedId][msg.sender][seasonId]) {
            revert Errors.TokenGatedIdAlreadyUsedInSeason(
                tokenGatedId,
                seasonId
            );
        }
        usedInfinityPasses[pass][tokenGatedId][msg.sender][seasonId] = true;
    }

    function _mintLogic(
        address to,
        uint256 tokenId,
        uint256 amount,
        bytes memory data,
        bool isTokenGated
    ) private {
        if (
            currentSupplyPerToken[tokenId] + amount >
            getMaxSupplyPerToken(tokenId)
        ) {
            revert Errors.SupplyLimitReached();
        }

        if (
            !isTokenGated &&
            minted[to][tokenId] + amount > getMaxMintPerToken(tokenId)
        ) {
            revert Errors.AccountAlreadyMintedMax();
        }

        minted[to][tokenId] += amount;
        currentSupplyPerToken[tokenId] += amount;

        super._mint(to, tokenId, amount, data);
    }
}

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

pragma solidity ^0.8.0;

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

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

pragma solidity 0.8.17;

library Types {
    struct TokenGatedMintArgs {
        uint256 tokenId;
        uint256 amount;
        uint256 tokenGatedId;
        address pass;
    }

    struct MintArgs {
        uint256[] tokenIds;
        uint256[] amounts;
    }
}

File 5 of 16 : Helpers.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import { Types } from "./Types.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

library Helpers {
    function uint2string(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

    function _verify(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal pure returns (bool) {
        return signer == ECDSA.recover(hash, signature);
    }

    function _hash(
        Types.TokenGatedMintArgs memory args,
        uint256 deadline,
        uint16 seasonId
    ) internal view returns (bytes32) {
        return
            ECDSA.toEthSignedMessageHash(
                keccak256(
                    abi.encodePacked(
                        msg.sender,
                        args.tokenId,
                        args.amount,
                        args.tokenGatedId,
                        seasonId,
                        deadline,
                        args.pass,
                        address(this)
                    )
                )
            );
    }

    function readableStablePrice(
        uint256 stableMintPrice
    ) internal pure returns (string memory) {
        uint256 dollars = stableMintPrice / 1000000;
        uint256 cents = (stableMintPrice / 10000) % 100;
        return
            string(
                abi.encodePacked(
                    Helpers.uint2string(dollars),
                    ".",
                    Helpers.uint2string(cents)
                )
            );
    }
}

File 6 of 16 : Errors.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

library Errors {
    error WithdrawalPercentageWrongSize();
    error WithdrawalPercentageNot100();
    error WithdrawalPercentageZero();
    error MintNotAvailable();
    error InsufficientFunds();
    error SupplyLimitReached();
    error ContractCantMint();
    error InvalidSignature();
    error AccountAlreadyMintedMax();
    error TokenDoesNotExist();
    error NotOwner();
    error NotAuthorized();
    error MaxSupplyTooSmall();
    error CanNotIncreaseMaxSupply();
    error InvalidOwner();
    error TokenNotTransferable();

    error RoyaltiesPercentageTooHigh();
    error NothingToWithdraw();
    error WithdrawFailed();

    /* ReentrancyGuard.sol */
    error ContractLocked();

    /* Signable.sol */
    error NewSignerCantBeZero();

    /* StableMultiMintERC721.sol */
    error PaymentTypeNotEnabled();

    /* AgoriaXLedger.sol */
    error WrongInputSize();
    error IdBeyondSupplyLimit();
    error InvalidBaseContractURL();
    error InvalidBaseURI();

    /* MultiMint1155.sol */
    error MismatchLengths();
    error AccountMaxMintAmountExceeded();
    error InvalidMintMaxAmount();
    error InvalidMintPrice();
    error InsufficientBalance();
    error TokenSaleClosed(uint256 tokenId);
    error TokenGatedIdAlreadyUsed(uint256 tokenGatedId);
    error TokenAlreadyMinted();
    error MintDeadlinePassed();
    error TokenGatedIdAlreadyUsedInSeason(
        uint256 tokenGatedId,
        uint256 seasonId
    );
    error TokenNotSupported();
    error InvalidDeadlineLength();
    error OneTokenPerPass();
    error SignatureLengthMismatch();
    error TokenPriceNotSet();
    error DeadlineNotSet();
    error InvalidDeadlines();
}

File 7 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 8 of 16 : Signable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

import "@rari-capital/solmate/src/auth/Owned.sol";

/// @title Contract that manages the signer/owner roles
abstract contract Signable is Owned {
    error NewSignerCantBeZero();

    address private _signer;

    constructor() Owned(msg.sender) {
        _signer = msg.sender;
    }

    function signer() public view returns (address) {
        return _signer;
    }

    /// @notice This method allow the owner change the signer role
    /// @dev At first, the signer role and the owner role is associated to the same address
    /// @param newSigner The address of the new signer
    function transferSigner(address newSigner) external onlyOwner {
        if (newSigner == address(0)) revert NewSignerCantBeZero();

        _signer = newSigner;
    }
}

File 9 of 16 : ERC1155.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Minimalist and gas efficient standard ERC1155 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event TransferSingle(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256 id,
        uint256 amount
    );

    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] amounts
    );

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    event URI(string value, uint256 indexed id);

    /*//////////////////////////////////////////////////////////////
                             ERC1155 STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => mapping(uint256 => uint256)) public balanceOf;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*//////////////////////////////////////////////////////////////
                             METADATA LOGIC
    //////////////////////////////////////////////////////////////*/

    function uri(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                              ERC1155 LOGIC
    //////////////////////////////////////////////////////////////*/

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) public virtual {
        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        balanceOf[from][id] -= amount;
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, from, to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, from, id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) public virtual {
        require(ids.length == amounts.length, "LENGTH_MISMATCH");

        require(msg.sender == from || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED");

        // Storing these outside the loop saves ~15 gas per iteration.
        uint256 id;
        uint256 amount;

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

            balanceOf[from][id] -= amount;
            balanceOf[to][id] += amount;

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, from, ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function balanceOfBatch(address[] calldata owners, uint256[] calldata ids)
        public
        view
        virtual
        returns (uint256[] memory balances)
    {
        require(owners.length == ids.length, "LENGTH_MISMATCH");

        balances = new uint256[](owners.length);

        // Unchecked because the only math done is incrementing
        // the array index counter which cannot possibly overflow.
        unchecked {
            for (uint256 i = 0; i < owners.length; ++i) {
                balances[i] = balanceOf[owners[i]][ids[i]];
            }
        }
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0xd9b67a26 || // ERC165 Interface ID for ERC1155
            interfaceId == 0x0e89341c; // ERC165 Interface ID for ERC1155MetadataURI
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        balanceOf[to][id] += amount;

        emit TransferSingle(msg.sender, address(0), to, id, amount);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155Received(msg.sender, address(0), id, amount, data) ==
                    ERC1155TokenReceiver.onERC1155Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchMint(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[to][ids[i]] += amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, address(0), to, ids, amounts);

        require(
            to.code.length == 0
                ? to != address(0)
                : ERC1155TokenReceiver(to).onERC1155BatchReceived(msg.sender, address(0), ids, amounts, data) ==
                    ERC1155TokenReceiver.onERC1155BatchReceived.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _batchBurn(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        uint256 idsLength = ids.length; // Saves MLOADs.

        require(idsLength == amounts.length, "LENGTH_MISMATCH");

        for (uint256 i = 0; i < idsLength; ) {
            balanceOf[from][ids[i]] -= amounts[i];

            // An array can't have a total length
            // larger than the max uint256 value.
            unchecked {
                ++i;
            }
        }

        emit TransferBatch(msg.sender, from, address(0), ids, amounts);
    }

    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        balanceOf[from][id] -= amount;

        emit TransferSingle(msg.sender, from, address(0), id, amount);
    }
}

/// @notice A generic interface for a contract which properly accepts ERC1155 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC1155.sol)
abstract contract ERC1155TokenReceiver {
    function onERC1155Received(
        address,
        address,
        uint256,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155Received.selector;
    }

    function onERC1155BatchReceived(
        address,
        address,
        uint256[] calldata,
        uint256[] calldata,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC1155TokenReceiver.onERC1155BatchReceived.selector;
    }
}

File 10 of 16 : Owned.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnerUpdated(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function setOwner(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }
}

File 11 of 16 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseContractURI","type":"string"},{"internalType":"address","name":"_defaultRoyaltyReceiver","type":"address"},{"internalType":"address","name":"_defaultWithdrawalAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccountAlreadyMintedMax","type":"error"},{"inputs":[],"name":"DeadlineNotSet","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidBaseContractURL","type":"error"},{"inputs":[],"name":"InvalidBaseURI","type":"error"},{"inputs":[],"name":"InvalidDeadlineLength","type":"error"},{"inputs":[],"name":"InvalidDeadlines","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintDeadlinePassed","type":"error"},{"inputs":[],"name":"MintNotAvailable","type":"error"},{"inputs":[],"name":"MismatchLengths","type":"error"},{"inputs":[],"name":"NewSignerCantBeZero","type":"error"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"inputs":[],"name":"NothingToWithdraw","type":"error"},{"inputs":[],"name":"RoyaltiesPercentageTooHigh","type":"error"},{"inputs":[],"name":"SupplyLimitReached","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenGatedId","type":"uint256"}],"name":"TokenGatedIdAlreadyUsed","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenGatedId","type":"uint256"},{"internalType":"uint256","name":"seasonId","type":"uint256"}],"name":"TokenGatedIdAlreadyUsedInSeason","type":"error"},{"inputs":[],"name":"TokenNotSupported","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenSaleClosed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractUri","type":"string"}],"name":"ContractURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"defaultMaxMint","type":"uint256"}],"name":"DefaultMaxMintChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"defaultMaxSupply","type":"uint256"}],"name":"DefaultMaxSupplyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"defaultRoyaltyReceiver","type":"address"}],"name":"DefaultRoyaltyReceiverChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"defaultWithdrawalAddress","type":"address"}],"name":"DefaultWithdrawalAddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"ETHMintPricePerTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum InspiredByLedger.Feature","name":"features","type":"uint8"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"FeatureStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum InspiredByLedger.Feature[]","name":"features","type":"uint8[]"}],"name":"FeaturesEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"maxMints","type":"uint256[]"}],"name":"MaxMintPerTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"maxSupplies","type":"uint256[]"}],"name":"MaxSupplyPerTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"royaltyReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"percentage","type":"uint256"}],"name":"RoyaltiesInfoUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"seasonId","type":"uint16"}],"name":"SeasonUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TipReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[][]","name":"deadlines","type":"uint256[][]"}],"name":"TokenDeadlinesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxMintPerToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintPrice","type":"uint256"},{"indexed":false,"internalType":"address","name":"withdrawalAddress","type":"address"},{"indexed":false,"internalType":"address","name":"royaltyReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"royaltiesPercentage","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"uint256[2]","name":"deadlines","type":"uint256[2]"}],"name":"TokenInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"enum InspiredByLedger.TokenType[]","name":"tokenTypes","type":"uint8[]"}],"name":"TokenTypesChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"TokenURIChanged","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":"amounts","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":"amount","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"withdrawalAddress","type":"address"}],"name":"WithdrawalAddressesChanged","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"BURNER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"balances","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenOwner","type":"address"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentSupplyPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultMaxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultWithdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMaxMintPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMaxSupplyPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"maxMintPerToken_","type":"uint256"},{"internalType":"uint256","name":"mintPrice_","type":"uint256"},{"internalType":"address","name":"withdrawalAddresses_","type":"address"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint256","name":"royaltiesPercentage_","type":"uint256"},{"internalType":"string","name":"tokenURI_","type":"string"},{"internalType":"uint256[2]","name":"deadlines_","type":"uint256[2]"}],"name":"initializeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum InspiredByLedger.Feature","name":"feature","type":"uint8"}],"name":"isFeatureEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxMintPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPrices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenGatedId","type":"uint256"},{"internalType":"address","name":"pass","type":"address"}],"internalType":"struct Types.TokenGatedMintArgs[]","name":"args","type":"tuple[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"uint256[]","name":"deadlines","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintSign","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"minterMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"tokenGatedId","type":"uint256"},{"internalType":"address","name":"pass","type":"address"}],"internalType":"struct Types.TokenGatedMintArgs[]","name":"args","type":"tuple[]"},{"internalType":"bytes[]","name":"signatures","type":"bytes[]"},{"internalType":"uint256[]","name":"deadlines","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"minterMintSign","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"priceETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltiesReceivers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"seasonId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseContractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"defaultMaxMint_","type":"uint256"}],"name":"setDefaultMaxMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"defaultMaxSupply_","type":"uint256"}],"name":"setDefaultMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"defaultRoyaltyReceiver_","type":"address"}],"name":"setDefaultRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"defaultWithdrawalAddress_","type":"address"}],"name":"setDefaultWithdrawalAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"mintPrices_","type":"uint256[]"}],"name":"setETHMintPricePerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InspiredByLedger.Feature[]","name":"features","type":"uint8[]"}],"name":"setEnabledFeatures","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum InspiredByLedger.Feature","name":"feature","type":"uint8"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setFeatureStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"maxMints_","type":"uint256[]"}],"name":"setMaxMintPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[]","name":"maxSupplies_","type":"uint256[]"}],"name":"setMaxSupplyPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint256","name":"royaltiesPercentage_","type":"uint256"}],"name":"setRoyaltiesInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"uint256[][]","name":"deadlines_","type":"uint256[][]"}],"name":"setTokenDeadlines","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses_","type":"address[]"},{"internalType":"enum InspiredByLedger.TokenType[]","name":"types_","type":"uint8[]"}],"name":"setTokenTypes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"withdrawalAddress_","type":"address"}],"name":"setWithdrawalAddressPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tips","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenDeadlines","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenEscrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenTypes","outputs":[{"internalType":"enum InspiredByLedger.TokenType","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"totalPriceETH","outputs":[{"internalType":"uint256","name":"totalPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"transferSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updateSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedGenesisPasses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedInfinityPasses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdrawPerToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawalAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052620186a0600d556103e86014553480156200001e57600080fd5b5060405162005576380380620055768339810160408190526200004191620002a0565b600280546001600160a01b0319163390811790915560405181906000907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a350600380546001600160a01b03191633908117909155620000a7906000906200010a565b6005620000b58682620003e6565b506006620000c48582620003e6565b50600a620000d38482620003e6565b50601980546001600160a01b039384166001600160a01b0319918216179091556007805492909316911617905550620004b2915050565b6200011682826200011a565b5050565b60008281526004602090815260408083206001600160a01b038516845290915290205460ff16620001165760008281526004602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200017a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001e657600080fd5b81516001600160401b0380821115620002035762000203620001be565b604051601f8301601f19908116603f011681019082821181831017156200022e576200022e620001be565b816040528381526020925086838588010111156200024b57600080fd5b600091505b838210156200026f578582018301518183018401529082019062000250565b600093810190920192909252949350505050565b80516001600160a01b03811681146200029b57600080fd5b919050565b600080600080600060a08688031215620002b957600080fd5b85516001600160401b0380821115620002d157600080fd5b620002df89838a01620001d4565b96506020880151915080821115620002f657600080fd5b6200030489838a01620001d4565b955060408801519150808211156200031b57600080fd5b506200032a88828901620001d4565b9350506200033b6060870162000283565b91506200034b6080870162000283565b90509295509295909350565b600181811c908216806200036c57607f821691505b6020821081036200038d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003e157600081815260208120601f850160051c81016020861015620003bc5750805b601f850160051c820191505b81811015620003dd57828155600101620003c8565b5050505b505050565b81516001600160401b03811115620004025762000402620001be565b6200041a8162000413845462000357565b8462000393565b602080601f831160018114620004525760008415620004395750858301515b600019600386901b1c1916600185901b178555620003dd565b600085815260208120601f198616915b82811015620004835788860151825594840194600190910190840162000462565b5085821015620004a25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6150b480620004c26000396000f3fe6080604052600436106104085760003560e01c8063657bb11311610213578063bd36b6b811610123578063e785bb8d116100ab578063f242432a1161007a578063f242432a14610d95578063f79536bb14610db5578063f926ebaf14610dd5578063fa80d82314610e02578063ff8d5e8914610e4c5761045b565b8063e785bb8d14610cf8578063e8a3d48514610d25578063e985e9c514610d3a578063ea6ccdd414610d755761045b565b8063d5391393116100f2578063d539139314610c44578063d547741f14610c78578063d61bd89a14610c98578063d928b8b914610cb8578063e461aa2314610cd85761045b565b8063bd36b6b814610bc2578063bdae3cdb14610be2578063d1a8cea414610c02578063d2272f8914610c2f5761045b565b806391d14854116101a65780639872f948116101755780639872f94814610af8578063a217fddf14610b18578063a22cb46514610b2d578063b39f252d14610b4d578063b765680814610b8a5761045b565b806391d1485414610a83578063938e3d7b14610aa357806393ac79f314610ac357806395d89b4114610ae35761045b565b80638119e32e116101e25780638119e32e14610a0e57806383d398c314610a2e578063853828b614610a4e5780638da5cb5b14610a635761045b565b8063657bb113146109a5578063749388c4146109b8578063770010f5146109d85780637b3ad6ea146109f85761045b565b80632eb2c2d6116103195780634b7fe131116102a15780635384c1ef116102705780635384c1ef146108f85780636187b33e14610918578063623af0681461094557806365198d0a14610965578063656191f1146109855761045b565b80634b7fe1311461086b5780634e1273f41461088b5780634ee146fc146108b8578063511dcc8a146108d85761045b565b806339bf2740116102e857806339bf2740146107955780633caaa09f146107df5780633e0ce900146108155780633ebc82c514610835578063471b8c46146108555761045b565b80632eb2c2d6146107155780632f2ff15d1461073557806336568abe146107555780633660a084146107755761045b565b8063162094c41161039c5780631f3d951e1161036b5780631f3d951e14610620578063238ac93314610640578063248a9ca314610672578063282c51f3146106a25780632a55205a146106d65761045b565b8063162094c4146105aa5780631900a836146105ca57806319b47fa3146105ea5780631a4e1e781461060a5761045b565b806308dc9f42116103d857806308dc9f421461053557806309812b681461054a5780630e89341c1461056a57806313af40351461058a5761045b565b8062fdd58e1461046d57806301ffc9a7146104b557806304922960146104e557806306fdde03146105135761045b565b3661045b5734601c600082825461041f9190613ce3565b909155505060405134815233907fd870bae925cfee4bcba43c4af9dd73d2355dfaf3bb76145be3857b4ec634ab9f9060200160405180910390a2005b34601c600082825461041f9190613ce3565b34801561047957600080fd5b506104a2610488366004613d12565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b3480156104c157600080fd5b506104d56104d0366004613d52565b610e82565b60405190151581526020016104ac565b3480156104f157600080fd5b506011546105009061ffff1681565b60405161ffff90911681526020016104ac565b34801561051f57600080fd5b50610528610ebd565b6040516104ac9190613dbf565b610548610543366004613e13565b610f4b565b005b34801561055657600080fd5b50610548610565366004613ea9565b611041565b34801561057657600080fd5b50610528610585366004613f08565b611178565b34801561059657600080fd5b506105486105a5366004613f21565b61121a565b3480156105b657600080fd5b506105486105c5366004613f3c565b611290565b3480156105d657600080fd5b506105486105e5366004614093565b611336565b3480156105f657600080fd5b506104a2610605366004614147565b611494565b34801561061657600080fd5b506104a2601c5481565b34801561062c57600080fd5b5061054861063b366004613f08565b6114c5565b34801561064c57600080fd5b506003546001600160a01b03165b6040516001600160a01b0390911681526020016104ac565b34801561067e57600080fd5b506104a261068d366004613f08565b60009081526004602052604090206001015490565b3480156106ae57600080fd5b506104a27f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b3480156106e257600080fd5b506106f66106f1366004614147565b61152b565b604080516001600160a01b0390931683526020830191909152016104ac565b34801561072157600080fd5b50610548610730366004614169565b6115ab565b34801561074157600080fd5b50610548610750366004614223565b61184e565b34801561076157600080fd5b50610548610770366004614223565b611878565b34801561078157600080fd5b50610548610790366004613f21565b6118f6565b3480156107a157600080fd5b506104d56107b036600461424f565b601760209081526000948552604080862082529385528385208152918452828420909152825290205460ff1681565b3480156107eb57600080fd5b5061065a6107fa366004613f08565b6008602052600090815260409020546001600160a01b031681565b34801561082157600080fd5b50610548610830366004614288565b611969565b34801561084157600080fd5b50610548610850366004613f21565b611a06565b34801561086157600080fd5b506104a260145481565b34801561087757600080fd5b506104a261088636600461437d565b611a7e565b34801561089757600080fd5b506108ab6108a6366004613ea9565b611ae2565b6040516104ac91906143e0565b3480156108c457600080fd5b506104a26108d3366004614147565b611c16565b3480156108e457600080fd5b506105486108f3366004613ea9565b611c37565b34801561090457600080fd5b50610548610913366004614424565b611cfd565b34801561092457600080fd5b506104a2610933366004613f08565b600c6020526000908152604090205481565b34801561095157600080fd5b506104d5610960366004614501565b611de5565b34801561097157600080fd5b50610548610980366004613f08565b611e0a565b34801561099157600080fd5b506105486109a0366004613ea9565b611e69565b6105486109b3366004614424565b611f2f565b3480156109c457600080fd5b506105486109d336600461451e565b612108565b3480156109e457600080fd5b5060075461065a906001600160a01b031681565b348015610a0457600080fd5b506104a2600d5481565b348015610a1a57600080fd5b50610548610a29366004614223565b6121bc565b348015610a3a57600080fd5b50610548610a49366004614553565b61224d565b348015610a5a57600080fd5b5061054861230b565b348015610a6f57600080fd5b5060025461065a906001600160a01b031681565b348015610a8f57600080fd5b506104d5610a9e366004614223565b6123b8565b348015610aaf57600080fd5b50610548610abe366004614588565b6123e3565b348015610acf57600080fd5b506104a2610ade366004613f08565b61246d565b348015610aef57600080fd5b5061052861249b565b348015610b0457600080fd5b50610548610b133660046145d9565b6124a8565b348015610b2457600080fd5b506104a2600081565b348015610b3957600080fd5b50610548610b48366004614605565b612540565b348015610b5957600080fd5b50610b7d610b68366004613f21565b60126020526000908152604090205460ff1681565b6040516104ac9190614655565b348015610b9657600080fd5b506104a2610ba5366004613d12565b601060209081526000928352604080842090915290825290205481565b348015610bce57600080fd5b50610548610bdd366004613ea9565b6125ac565b348015610bee57600080fd5b506104a2610bfd366004613f08565b612672565b348015610c0e57600080fd5b506104a2610c1d366004613f08565b600f6020526000908152604090205481565b348015610c3b57600080fd5b506105486126a0565b348015610c5057600080fd5b506104a27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610c8457600080fd5b50610548610c93366004614223565b612732565b348015610ca457600080fd5b50610548610cb3366004613ea9565b612757565b348015610cc457600080fd5b50610548610cd3366004613f21565b61285e565b348015610ce457600080fd5b5060195461065a906001600160a01b031681565b348015610d0457600080fd5b506104a2610d13366004613f08565b60156020526000908152604090205481565b348015610d3157600080fd5b506105286128d6565b348015610d4657600080fd5b506104d5610d55366004614668565b600160209081526000928352604080842090915290825290205460ff1681565b348015610d8157600080fd5b50610548610d90366004613f08565b612968565b348015610da157600080fd5b50610548610db0366004614692565b612a40565b348015610dc157600080fd5b50610548610dd0366004614709565b612c32565b348015610de157600080fd5b506104a2610df0366004613f08565b601b6020526000908152604090205481565b348015610e0e57600080fd5b506104d5610e1d3660046147a2565b601660209081526000948552604080862082529385528385208152918452828420909152825290205460ff1681565b348015610e5857600080fd5b5061065a610e67366004613f08565b6018602052600090815260409020546001600160a01b031681565b6000610e8d82612ce8565b80610e9c5750610e9c82612d36565b80610eb757506001600160e01b0319821663152a902d60e11b145b92915050565b60058054610eca906147e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef6906147e6565b8015610f435780601f10610f1857610100808354040283529160200191610f43565b820191906000526020600020905b815481529060010190602001808311610f2657829003601f168201915b505050505081565b6002610f5681611de5565b610f73576040516365a2ea6560e11b815260040160405180910390fd5b610f7c85612d6b565b6000610f888686611c16565b905080341015610fab5760405163356680b760e01b815260040160405180910390fd5b6000868152601b602052604081208054839290610fc9908490613ce3565b909155505034811015610ff757610fe08134614820565b601c6000828254610ff19190613ce3565b90915550505b61103933878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250612e6c915050565b505050505050565b6002546001600160a01b031633146110745760405162461bcd60e51b815260040161106b90614833565b60405180910390fd5b61107e8382612f77565b60005b838110156111345782828281811061109b5761109b614859565b90506020028101906110ad919061486f565b90506002146110cf5760405163cf208efd60e01b815260040160405180910390fd5b8282828181106110e1576110e1614859565b90506020028101906110f3919061486f565b6013600088888681811061110957611109614859565b905060200201358152602001908152602001600020919061112b929190613c32565b50600101611081565b507fc6405827ec801d4f031df3452af63aa62a9756614d7a2cb8dd811967cced38fe8484848460405161116a94939291906148ea565b60405180910390a150505050565b6000818152600b60205260409020805460609190611195906147e6565b80601f01602080910402602001604051908101604052809291908181526020018280546111c1906147e6565b801561120e5780601f106111e35761010080835404028352916020019161120e565b820191906000526020600020905b8154815290600101906020018083116111f157829003601f168201915b50505050509050919050565b6002546001600160a01b031633146112445760405162461bcd60e51b815260040161106b90614833565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6002546001600160a01b031633146112ba5760405162461bcd60e51b815260040161106b90614833565b60008190036112dc5760405163cc52148360e01b815260040160405180910390fd5b6000838152600b602052604090206112f58284836149e5565b507f483621391b5e72d74eb03c7b5715531c486e326fb115ab3bcf34b133041854ce83838360405161132993929190614acd565b60405180910390a1505050565b6002546001600160a01b031633146113605760405162461bcd60e51b815260040161106b90614833565b60208101518151111561138657604051630a716d6d60e41b815260040160405180910390fd5b6127108311156113a957604051632d4f384760e01b815260040160405180910390fd5b6000898152600e602090815260408083208b9055601582528083208a9055600c82528083208990556008825280832080546001600160a01b03808b166001600160a01b031992831617909255601884528285208054928a1692909116919091179055601a8252808320869055600b90915290206114268382614af0565b50600089815260136020526040902061144190826002613c7d565b507f1a7d21507154608eb7aa1c8f3df70a4f6dca6acc302e3b676a580de138248cc289898989898989898960405161148199989796959493929190614baf565b60405180910390a1505050505050505050565b601360205281600052604060002081815481106114b057600080fd5b90600052602060002001600091509150505481565b6002546001600160a01b031633146114ef5760405162461bcd60e51b815260040161106b90614833565b60148190556040518181527fc5cfc757aad35604932f08525f338d2d7a4e827841e2888a891dc1a1f4d65a34906020015b60405180910390a150565b60008281526018602052604081205481906001600160a01b031661155a576019546001600160a01b0316611573565b6000848152601860205260409020546001600160a01b03165b6000858152601a60205260409020549092508290612710906115959086614c36565b61159f9190614c4d565b915091505b9250929050565b8483146115ec5760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b604482015260640161106b565b336001600160a01b038916148061162657506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6116635760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161106b565b60008060005b8781101561171e5788888281811061168357611683614859565b90506020020135925086868281811061169e5761169e614859565b6001600160a01b038e16600090815260208181526040808320898452825282208054939091029490940135955085939250906116db908490614820565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290611711908490613ce3565b9091555050600101611669565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b6040516117729493929190614c6f565b60405180910390a46001600160a01b0389163b156118195760405163bc197c8160e01b808252906001600160a01b038b169063bc197c81906117c69033908f908e908e908e908e908e908e90600401614c96565b6020604051808303816000875af11580156117e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118099190614cfa565b6001600160e01b03191614611826565b6001600160a01b03891615155b6118425760405162461bcd60e51b815260040161106b90614d17565b50505050505050505050565b60008281526004602052604090206001015461186981612f97565b6118738383612fa4565b505050565b6001600160a01b03811633146118e85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161106b565b6118f2828261302a565b5050565b6002546001600160a01b031633146119205760405162461bcd60e51b815260040161106b90614833565b6001600160a01b038116611947576040516326120ecd60e11b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661199381612f97565b600061199e81611de5565b6119bb576040516365a2ea6560e11b815260040160405180910390fd5b6119fd87878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250612e6c915050565b50505050505050565b6002546001600160a01b03163314611a305760405162461bcd60e51b815260040161106b90614833565b601980546001600160a01b0319166001600160a01b0383169081179091556040519081527f07b3a60cb7a17fed8195a5f973dced6f8a947cfca7ac866abb19fc766d4d73ef90602001611520565b6000805b8351811015611adb57611ac7848281518110611aa057611aa0614859565b6020026020010151848381518110611aba57611aba614859565b6020026020010151611c16565b611ad19083613ce3565b9150600101611a82565b5092915050565b6060838214611b255760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b604482015260640161106b565b836001600160401b03811115611b3d57611b3d613f87565b604051908082528060200260200182016040528015611b66578160200160208202803683370190505b50905060005b84811015611c0d57600080878784818110611b8957611b89614859565b9050602002016020810190611b9e9190613f21565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110611bd257611bd2614859565b90506020020135815260200190815260200160002054828281518110611bfa57611bfa614859565b6020908102919091010152600101611b6c565b50949350505050565b6000828152600c6020526040812054611c30908390614c36565b9392505050565b6002546001600160a01b03163314611c615760405162461bcd60e51b815260040161106b90614833565b611c6b8382612f77565b60005b83811015611cc757828282818110611c8857611c88614859565b90506020020135600e6000878785818110611ca557611ca5614859565b6020908102929092013583525081019190915260400160002055600101611c6e565b507f4417b0150837111a152da4b3318a58fbd15f2af689409328aa7e6d964217916a8484848460405161116a9493929190614c6f565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611d2781612f97565b6000611d3281611de5565b611d4f576040516365a2ea6560e11b815260040160405180910390fd5b6001611d5a81611de5565b611d77576040516365a2ea6560e11b815260040160405180910390fd5b868660005b81811015611dc557828282818110611d9657611d96614859565b90506020020135421115611dbd5760405163be3b58d360e01b815260040160405180910390fd5b600101611d7c565b50611dd68d8d8d8d8d8d8d8d613091565b50505050505050505050505050565b6000816002811115611df957611df9614621565b600954600190911b16151592915050565b6002546001600160a01b03163314611e345760405162461bcd60e51b815260040161106b90614833565b600d8190556040518181527fddb81e813acdba5230e1ec2535a9e2d815b941deee96bdcf12fc8e85dc47f3fa90602001611520565b6002546001600160a01b03163314611e935760405162461bcd60e51b815260040161106b90614833565b611e9d8382612f77565b60005b83811015611ef957828282818110611eba57611eba614859565b9050602002013560156000878785818110611ed757611ed7614859565b6020908102929092013583525081019190915260400160002055600101611ea0565b507fa798a75637919f0e11a3cc489d2837b40433e4dcaf6c6968838cb19c5613e8c68484848460405161116a9493929190614c6f565b6001611f3a81611de5565b611f57576040516365a2ea6560e11b815260040160405180910390fd5b848460005b81811015611fa557828282818110611f7657611f76614859565b90506020020135421115611f9d5760405163be3b58d360e01b815260040160405180910390fd5b600101611f5c565b5060008b8b808060200260200160405190810160405280939291908181526020016000905b82821015611ff657611fe760808302860136819003810190614d41565b81526020019060010190611fca565b505050505090506000805b82518110156120ad57600061205084838151811061202157612021614859565b60200260200101516000015185848151811061203f5761203f614859565b602002602001015160200151611c16565b905080601b600086858151811061206957612069614859565b602002602001015160000151815260200190815260200160002060008282546120929190613ce3565b909155506120a290508184613ce3565b925050600101612001565b50803410156120cf5760405163356680b760e01b815260040160405180910390fd5b803411156120f8576120e18134614820565b601c60008282546120f29190613ce3565b90915550505b611dd68d8d8d8d8d8d8d8d613091565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861213281612f97565b6001600160a01b03821660009081526020818152604080832087845290915290205483111561217457604051631e9acf1760e31b815260040160405180910390fd5b61217f828585613391565b506001600160a01b0316600090815260106020908152604080832094835293815283822080548490039055600f9052919091208054919091039055565b6002546001600160a01b031633146121e65760405162461bcd60e51b815260040161106b90614833565b60008281526008602090815260409182902080546001600160a01b0319166001600160a01b0385169081179091558251858152918201527fd96089a47585076b979ae865f2983bcf4bc42a4af8bf77450c9c7cc436dcd0ad91015b60405180910390a15050565b6002546001600160a01b031633146122775760405162461bcd60e51b815260040161106b90614833565b61271081111561229a57604051632d4f384760e01b815260040160405180910390fd5b6000838152601a60209081526040808320849055601882529182902080546001600160a01b0319166001600160a01b0386169081179091558251868152918201529081018290527fbb63bc176642036338dcef2255721b8e323a9f1c0d129cd906355dcdfbd616df90606001611329565b6002546001600160a01b031633146123355760405162461bcd60e51b815260040161106b90614833565b601c54600081900361235a57604051630686827b60e51b815260040160405180910390fd5b6000601c8190556007546040516001600160a01b039091169183919081818185875af1925050503d80600081146123ad576040519150601f19603f3d011682016040523d82523d6000602084013e6123b2565b606091505b50505050565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6002546001600160a01b0316331461240d5760405162461bcd60e51b815260040161106b90614833565b600081900361242e5760405162ea21bf60e21b815260040160405180910390fd5b600a61243b8284836149e5565b507fd5ee5eaf65263bab5d569890714d123ad48a9e54409d35e71d374f3dd300bba08282604051612241929190614daa565b60008181526015602052604081205461248857601454610eb7565b5060009081526015602052604090205490565b60068054610eca906147e6565b6002546001600160a01b031633146124d25760405162461bcd60e51b815260040161106b90614833565b60008260028111156124e6576124e6614621565b905081151560010361250257600980546001831b17905561250f565b600980546001831b191690555b7f3c2ea495cfb24b045720e4a2ebef824e2ce789a807bf03fde601a744fb41882e8383604051611329929190614dbe565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002546001600160a01b031633146125d65760405162461bcd60e51b815260040161106b90614833565b6125e08382612f77565b60005b8381101561263c578282828181106125fd576125fd614859565b90506020020135600c600087878581811061261a5761261a614859565b60209081029290920135835250810191909152604001600020556001016125e3565b507fd78100b8737cb8d733fe0dd4d51c12c470cc896648ae4edb4cc18af4f23de97e8484848460405161116a9493929190614c6f565b6000818152600e602052604081205461268d57600d54610eb7565b506000908152600e602052604090205490565b6002546001600160a01b031633146126ca5760405162461bcd60e51b815260040161106b90614833565b601180546000906126de9061ffff16614dda565b82546101009290920a61ffff818102199093169183160217909155601154604051911681527fb65b49c749df181f9fa5f339cfb901d5438dc63ab84df6e3b8b759919aa48a7c9060200160405180910390a1565b60008281526004602052604090206001015461274d81612f97565b611873838361302a565b6002546001600160a01b031633146127815760405162461bcd60e51b815260040161106b90614833565b61278b8382612f77565b60005b83811015612828578282828181106127a8576127a8614859565b90506020020160208101906127bd9190614501565b601260008787858181106127d3576127d3614859565b90506020020160208101906127e89190613f21565b6001600160a01b031681526020810191909152604001600020805460ff1916600183600281111561281b5761281b614621565b021790555060010161278e565b507f4a760ebcda274a7e799ce35bdbe7b3a4085a3ad62cc72f378cf6e767353b0e098484848460405161116a9493929190614dfb565b6002546001600160a01b031633146128885760405162461bcd60e51b815260040161106b90614833565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f32d890a898c8408eb6a28629b8414274afe8986b2941683e642bf53e6b8e5990602001611520565b6060600a80546128e5906147e6565b80601f0160208091040260200160405190810160405280929190818152602001828054612911906147e6565b801561295e5780601f106129335761010080835404028352916020019161295e565b820191906000526020600020905b81548152906001019060200180831161294157829003601f168201915b5050505050905090565b6000818152600860205260409020546001600160a01b0316331461299f5760405163ea8e4eb560e01b815260040160405180910390fd5b6000818152601b6020526040812054908190036129cf57604051630686827b60e51b815260040160405180910390fd5b6000828152601b6020908152604080832083905560089091528082205490516001600160a01b039091169183919081818185875af1925050503d8060008114612a34576040519150601f19603f3d011682016040523d82523d6000602084013e612a39565b606091505b5050505050565b336001600160a01b0387161480612a7a57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b612ab75760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161106b565b6001600160a01b03861660009081526020818152604080832087845290915281208054859290612ae8908490614820565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290612b1e908490613ce3565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b15612c095760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e6190612bb69033908b908a908a908a908a90600401614e90565b6020604051808303816000875af1158015612bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bf99190614cfa565b6001600160e01b03191614612c16565b6001600160a01b03851615155b6110395760405162461bcd60e51b815260040161106b90614d17565b6002546001600160a01b03163314612c5c5760405162461bcd60e51b815260040161106b90614833565b6000805b8251811015612cb2576000838281518110612c7d57612c7d614859565b60200260200101516002811115612c9657612c96614621565b6001901b92909217915080612caa81614ed7565b915050612c60565b5060098190556040517f67343902e99de291550458fcae466d8ba1479dc928596931bc3e83b89f8f9d4490612241908490614ef0565b60006301ffc9a760e01b6001600160e01b031983161480612d195750636cdb3d1360e11b6001600160e01b03198316145b80610eb75750506001600160e01b0319166303a24d0760e21b1490565b60006001600160e01b03198216637965db0b60e01b1480610eb757506301ffc9a760e01b6001600160e01b0319831614610eb7565b600081815260136020908152604080832080548251818502810185019093528083529192909190830182828015612dc157602002820191906000526020600020905b815481526020019060010190808311612dad575b505050505090508051600003612dea5760405163f3ed6cef60e01b815260040160405180910390fd5b60008281526013602052604081208054909190612e0957612e09614859565b9060005260206000200154421080612e4b5750600082815260136020526040902080546001908110612e3d57612e3d614859565b906000526020600020015442115b156118f25760405163564686e360e01b81526004810183905260240161106b565b612e7584612672565b6000858152600f6020526040902054612e8f908590613ce3565b1115612eae5760405163704d6bf960e11b815260040160405180910390fd5b80158015612ef15750612ec08461246d565b6001600160a01b0386166000908152601060209081526040808320888452909152902054612eef908590613ce3565b115b15612f0f5760405163020805f560e61b815260040160405180910390fd5b6001600160a01b038516600090815260106020908152604080832087845290915281208054859290612f42908490613ce3565b90915550506000848152600f602052604081208054859290612f65908490613ce3565b90915550612a39905085858585613415565b8082146118f2576040516311ed8de960e31b815260040160405180910390fd5b612fa18133613557565b50565b612fae82826123b8565b6118f25760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612fe63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61303482826123b8565b156118f25760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008888808060200260200160405190810160405280939291908181526020016000905b828210156130e1576130d260808302860136819003810190614d41565b815260200190600101906130b5565b505050505090506000858580806020026020016040519081016040528093929190818152602001838360200280828437600092018290525093945061312c92508a91508b9050614f31565b9050600085858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505086518551939450613179939092509050612f77565b61318582518451612f77565b60005b8451811015611dd6576002601260008784815181106131a9576131a9614859565b602090810291909101810151606001516001600160a01b031682528101919091526040016000205460ff1660028111156131e5576131e5614621565b14158015613245575060016012600087848151811061320657613206614859565b602090810291909101810151606001516001600160a01b031682528101919091526040016000205460ff16600281111561324257613242614621565b14155b1561326357604051633dd1b30560e01b815260040160405180910390fd5b600085828151811061327757613277614859565b6020026020010151905061328e8160000151612d6b565b6132ef6132a36003546001600160a01b031690565b6132d0838886815181106132b9576132b9614859565b602090810291909101015160115461ffff166135b0565b8685815181106132e2576132e2614859565b602002602001015161368f565b61330c57604051638baa579f60e01b815260040160405180910390fd5b600260608201516001600160a01b031660009081526012602052604090205460ff16600281111561333f5761333f614621565b036133605761335b8160600151826040015183600001516136b8565b613372565b6133728160600151826040015161375f565b6133883382600001518360200151866001612e6c565b50600101613188565b6001600160a01b038316600090815260208181526040808320858452909152812080548392906133c2908490614820565b909155505060408051838152602081018390526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050565b6001600160a01b03841660009081526020818152604080832086845290915281208054849290613446908490613ce3565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b1561352e5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906134db903390600090899089908990600401614fb8565b6020604051808303816000875af11580156134fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351e9190614cfa565b6001600160e01b0319161461353b565b6001600160a01b03841615155b6123b25760405162461bcd60e51b815260040161106b90614d17565b61356182826123b8565b6118f25761356e81613811565b613579836020613823565b60405160200161358a929190614ff2565b60408051601f198184030181529082905262461bcd60e51b825261106b91600401613dbf565b825160208085015160408087015160608089015183516bffffffffffffffffffffffff1933841b8116828901526034820198909852605481019590955260748501929092526001600160f01b031960f088901b1660948501526096840188905290811b851660b684015230901b90931660ca820152825180820360be01815260de820184528051908301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060fe83015261011a808301919091528351808303909101815261013a90910190925281519101206000905b949350505050565b600061369b83836139be565b6001600160a01b0316846001600160a01b03161490509392505050565b6001600160a01b0383166000908152601760209081526040808320858452825280832060115461ffff168452825280832084845290915290205460ff1615613716576040516379910f8d60e11b81526004810183905260240161106b565b6001600160a01b03909216600090815260176020908152604080832093835292815282822060115461ffff1683528152828220938252929092529020805460ff19166001179055565b6001600160a01b03821660009081526016602090815260408083208484528252808320338452825280832060115461ffff16845290915290205460ff16156137cb576011546040516380dac1d760e01b81526004810183905261ffff909116602482015260440161106b565b6001600160a01b039091166000908152601660209081526040808320938352928152828220338352815282822060115461ffff168352905220805460ff19166001179055565b6060610eb76001600160a01b03831660145b60606000613832836002614c36565b61383d906002613ce3565b6001600160401b0381111561385457613854613f87565b6040519080825280601f01601f19166020018201604052801561387e576020820181803683370190505b509050600360fc1b8160008151811061389957613899614859565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106138c8576138c8614859565b60200101906001600160f81b031916908160001a90535060006138ec846002614c36565b6138f7906001613ce3565b90505b600181111561396f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061392b5761392b614859565b1a60f81b82828151811061394157613941614859565b60200101906001600160f81b031916908160001a90535060049490941c9361396881615067565b90506138fa565b508315611c305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161106b565b60008060006139cd85856139e2565b915091506139da81613a24565b509392505050565b6000808251604103613a185760208301516040840151606085015160001a613a0c87828585613b6e565b945094505050506115a4565b506000905060026115a4565b6000816004811115613a3857613a38614621565b03613a405750565b6001816004811115613a5457613a54614621565b03613aa15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161106b565b6002816004811115613ab557613ab5614621565b03613b025760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161106b565b6003816004811115613b1657613b16614621565b03612fa15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161106b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613ba55750600090506003613c29565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613bf9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613c2257600060019250925050613c29565b9150600090505b94509492505050565b828054828255906000526020600020908101928215613c6d579160200282015b82811115613c6d578235825591602001919060010190613c52565b50613c79929150613cb8565b5090565b828054828255906000526020600020908101928215613c6d579160200282015b82811115613c6d578251825591602001919060010190613c9d565b5b80821115613c795760008155600101613cb9565b634e487b7160e01b600052601160045260246000fd5b80820180821115610eb757610eb7613ccd565b80356001600160a01b0381168114613d0d57600080fd5b919050565b60008060408385031215613d2557600080fd5b613d2e83613cf6565b946020939093013593505050565b6001600160e01b031981168114612fa157600080fd5b600060208284031215613d6457600080fd5b8135611c3081613d3c565b60005b83811015613d8a578181015183820152602001613d72565b50506000910152565b60008151808452613dab816020860160208601613d6f565b601f01601f19169290920160200192915050565b602081526000611c306020830184613d93565b60008083601f840112613de457600080fd5b5081356001600160401b03811115613dfb57600080fd5b6020830191508360208285010111156115a457600080fd5b60008060008060608587031215613e2957600080fd5b843593506020850135925060408501356001600160401b03811115613e4d57600080fd5b613e5987828801613dd2565b95989497509550505050565b60008083601f840112613e7757600080fd5b5081356001600160401b03811115613e8e57600080fd5b6020830191508360208260051b85010111156115a457600080fd5b60008060008060408587031215613ebf57600080fd5b84356001600160401b0380821115613ed657600080fd5b613ee288838901613e65565b90965094506020870135915080821115613efb57600080fd5b50613e5987828801613e65565b600060208284031215613f1a57600080fd5b5035919050565b600060208284031215613f3357600080fd5b611c3082613cf6565b600080600060408486031215613f5157600080fd5b8335925060208401356001600160401b03811115613f6e57600080fd5b613f7a86828701613dd2565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613fc557613fc5613f87565b604052919050565b60006001600160401b03831115613fe657613fe6613f87565b613ff9601f8401601f1916602001613f9d565b905082815283838301111561400d57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261403557600080fd5b604051604081018181106001600160401b038211171561405757614057613f87565b806040525080604084018581111561406e57600080fd5b845b81811015614088578035835260209283019201614070565b509195945050505050565b60008060008060008060008060006101408a8c0312156140b257600080fd5b8935985060208a0135975060408a0135965060608a013595506140d760808b01613cf6565b94506140e560a08b01613cf6565b935060c08a0135925060e08a01356001600160401b0381111561410757600080fd5b8a01601f81018c1361411857600080fd5b6141278c823560208401613fcd565b9250506141388b6101008c01614024565b90509295985092959850929598565b6000806040838503121561415a57600080fd5b50508035926020909101359150565b60008060008060008060008060a0898b03121561418557600080fd5b61418e89613cf6565b975061419c60208a01613cf6565b965060408901356001600160401b03808211156141b857600080fd5b6141c48c838d01613e65565b909850965060608b01359150808211156141dd57600080fd5b6141e98c838d01613e65565b909650945060808b013591508082111561420257600080fd5b5061420f8b828c01613dd2565b999c989b5096995094979396929594505050565b6000806040838503121561423657600080fd5b8235915061424660208401613cf6565b90509250929050565b6000806000806080858703121561426557600080fd5b61426e85613cf6565b966020860135965060408601359560600135945092505050565b6000806000806000608086880312156142a057600080fd5b6142a986613cf6565b9450602086013593506040860135925060608601356001600160401b038111156142d257600080fd5b6142de88828901613dd2565b969995985093965092949392505050565b60006001600160401b0382111561430857614308613f87565b5060051b60200190565b600082601f83011261432357600080fd5b81356020614338614333836142ef565b613f9d565b82815260059290921b8401810191818101908684111561435757600080fd5b8286015b84811015614372578035835291830191830161435b565b509695505050505050565b6000806040838503121561439057600080fd5b82356001600160401b03808211156143a757600080fd5b6143b386838701614312565b935060208501359150808211156143c957600080fd5b506143d685828601614312565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015614418578351835292840192918401916001016143fc565b50909695505050505050565b6000806000806000806000806080898b03121561444057600080fd5b88356001600160401b038082111561445757600080fd5b818b0191508b601f83011261446b57600080fd5b81358181111561447a57600080fd5b8c60208260071b850101111561448f57600080fd5b60209283019a509850908a013590808211156144aa57600080fd5b6144b68c838d01613e65565b909850965060408b01359150808211156144cf57600080fd5b6144db8c838d01613e65565b909650945060608b013591508082111561420257600080fd5b60038110612fa157600080fd5b60006020828403121561451357600080fd5b8135611c30816144f4565b60008060006060848603121561453357600080fd5b833592506020840135915061454a60408501613cf6565b90509250925092565b60008060006060848603121561456857600080fd5b8335925061457860208501613cf6565b9150604084013590509250925092565b6000806020838503121561459b57600080fd5b82356001600160401b038111156145b157600080fd5b6145bd85828601613dd2565b90969095509350505050565b80358015158114613d0d57600080fd5b600080604083850312156145ec57600080fd5b82356145f7816144f4565b9150614246602084016145c9565b6000806040838503121561461857600080fd5b6145f783613cf6565b634e487b7160e01b600052602160045260246000fd5b60038110612fa157634e487b7160e01b600052602160045260246000fd5b6020810161466283614637565b91905290565b6000806040838503121561467b57600080fd5b61468483613cf6565b915061424660208401613cf6565b60008060008060008060a087890312156146ab57600080fd5b6146b487613cf6565b95506146c260208801613cf6565b9450604087013593506060870135925060808701356001600160401b038111156146eb57600080fd5b6146f789828a01613dd2565b979a9699509497509295939492505050565b6000602080838503121561471c57600080fd5b82356001600160401b0381111561473257600080fd5b8301601f8101851361474357600080fd5b8035614751614333826142ef565b81815260059190911b8201830190838101908783111561477057600080fd5b928401925b82841015614797578335614788816144f4565b82529284019290840190614775565b979650505050505050565b600080600080608085870312156147b857600080fd5b6147c185613cf6565b9350602085013592506147d660408601613cf6565b9396929550929360600135925050565b600181811c908216806147fa57607f821691505b60208210810361481a57634e487b7160e01b600052602260045260246000fd5b50919050565b81810381811115610eb757610eb7613ccd565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261488657600080fd5b8301803591506001600160401b038211156148a057600080fd5b6020019150600581901b36038213156115a457600080fd5b81835260006001600160fb1b038311156148d157600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006148fe6040830186886148b8565b60208382038185015281858352818301905060058287821b8501018860005b8981101561498e57868303601f190185528135368c9003601e1901811261494357600080fd5b8b0186810190356001600160401b0381111561495e57600080fd5b80861b360382131561496f57600080fd5b61497a8582846148b8565b96880196945050509085019060010161491d565b50909b9a5050505050505050505050565b601f82111561187357600081815260208120601f850160051c810160208610156149c65750805b601f850160051c820191505b81811015611039578281556001016149d2565b6001600160401b038311156149fc576149fc613f87565b614a1083614a0a83546147e6565b8361499f565b6000601f841160018114614a445760008515614a2c5750838201355b600019600387901b1c1916600186901b178355612a39565b600083815260209020601f19861690835b82811015614a755786850135825560209485019460019092019101614a55565b5086821015614a925760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152604060208201526000614ae7604083018486614aa4565b95945050505050565b81516001600160401b03811115614b0957614b09613f87565b614b1d81614b1784546147e6565b8461499f565b602080601f831160018114614b525760008415614b3a5750858301515b600019600386901b1c1916600185901b178555611039565b600085815260208120601f198616915b82811015614b8157888601518255948401946001909101908401614b62565b5085821015614b9f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006101408b835260208b818501528a604085015289606085015260018060a01b03808a16608086015280891660a0860152508660c08501528160e0850152614bfa82850187613d93565b9250610100840191508460005b6002811015614c2457815184529282019290820190600101614c07565b505050509a9950505050505050505050565b8082028115828204841417610eb757610eb7613ccd565b600082614c6a57634e487b7160e01b600052601260045260246000fd5b500490565b604081526000614c836040830186886148b8565b82810360208401526147978185876148b8565b6001600160a01b0389811682528816602082015260a060408201819052600090614cc3908301888a6148b8565b8281036060840152614cd68187896148b8565b90508281036080840152614ceb818587614aa4565b9b9a5050505050505050505050565b600060208284031215614d0c57600080fd5b8151611c3081613d3c565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b600060808284031215614d5357600080fd5b604051608081018181106001600160401b0382111715614d7557614d75613f87565b8060405250823581526020830135602082015260408301356040820152614d9e60608401613cf6565b60608201529392505050565b602081526000613687602083018486614aa4565b60408101614dcb84614637565b92815290151560209091015290565b600061ffff808316818103614df157614df1613ccd565b6001019392505050565b6040808252810184905260008560608301825b87811015614e3c576001600160a01b03614e2784613cf6565b16825260209283019290910190600101614e0e565b5083810360208581019190915285825291508590820160005b86811015614e83578235614e68816144f4565b614e7181614637565b82529183019190830190600101614e55565b5098975050505050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090614ecb9083018486614aa4565b98975050505050505050565b600060018201614ee957614ee9613ccd565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015614418578351614f1f81614637565b83529284019291840191600101614f0c565b6000614f3f614333846142ef565b80848252602080830192508560051b850136811115614f5d57600080fd5b855b81811015614fac5780356001600160401b03811115614f7e5760008081fd5b870136601f820112614f905760008081fd5b614f9e368235868401613fcd565b865250938201938201614f5f565b50919695505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061479790830184613d93565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161502a816017850160208801613d6f565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161505b816028840160208801613d6f565b01602801949350505050565b60008161507657615076613ccd565b50600019019056fea2646970667358221220be746f82ecf3a2aae84c1b7491f966bd561d20fff0b91e23fb7ff5fef300498264736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f9000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f90000000000000000000000000000000000000000000000000000000000000012496e737069726564204279204c65646765720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000349584c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6d657461646174612e6c65646765722e636f6d2f696e7370697265642d62792d6c65646765722f636f6e74726163742d6d65746164617461

Deployed Bytecode

0x6080604052600436106104085760003560e01c8063657bb11311610213578063bd36b6b811610123578063e785bb8d116100ab578063f242432a1161007a578063f242432a14610d95578063f79536bb14610db5578063f926ebaf14610dd5578063fa80d82314610e02578063ff8d5e8914610e4c5761045b565b8063e785bb8d14610cf8578063e8a3d48514610d25578063e985e9c514610d3a578063ea6ccdd414610d755761045b565b8063d5391393116100f2578063d539139314610c44578063d547741f14610c78578063d61bd89a14610c98578063d928b8b914610cb8578063e461aa2314610cd85761045b565b8063bd36b6b814610bc2578063bdae3cdb14610be2578063d1a8cea414610c02578063d2272f8914610c2f5761045b565b806391d14854116101a65780639872f948116101755780639872f94814610af8578063a217fddf14610b18578063a22cb46514610b2d578063b39f252d14610b4d578063b765680814610b8a5761045b565b806391d1485414610a83578063938e3d7b14610aa357806393ac79f314610ac357806395d89b4114610ae35761045b565b80638119e32e116101e25780638119e32e14610a0e57806383d398c314610a2e578063853828b614610a4e5780638da5cb5b14610a635761045b565b8063657bb113146109a5578063749388c4146109b8578063770010f5146109d85780637b3ad6ea146109f85761045b565b80632eb2c2d6116103195780634b7fe131116102a15780635384c1ef116102705780635384c1ef146108f85780636187b33e14610918578063623af0681461094557806365198d0a14610965578063656191f1146109855761045b565b80634b7fe1311461086b5780634e1273f41461088b5780634ee146fc146108b8578063511dcc8a146108d85761045b565b806339bf2740116102e857806339bf2740146107955780633caaa09f146107df5780633e0ce900146108155780633ebc82c514610835578063471b8c46146108555761045b565b80632eb2c2d6146107155780632f2ff15d1461073557806336568abe146107555780633660a084146107755761045b565b8063162094c41161039c5780631f3d951e1161036b5780631f3d951e14610620578063238ac93314610640578063248a9ca314610672578063282c51f3146106a25780632a55205a146106d65761045b565b8063162094c4146105aa5780631900a836146105ca57806319b47fa3146105ea5780631a4e1e781461060a5761045b565b806308dc9f42116103d857806308dc9f421461053557806309812b681461054a5780630e89341c1461056a57806313af40351461058a5761045b565b8062fdd58e1461046d57806301ffc9a7146104b557806304922960146104e557806306fdde03146105135761045b565b3661045b5734601c600082825461041f9190613ce3565b909155505060405134815233907fd870bae925cfee4bcba43c4af9dd73d2355dfaf3bb76145be3857b4ec634ab9f9060200160405180910390a2005b34601c600082825461041f9190613ce3565b34801561047957600080fd5b506104a2610488366004613d12565b600060208181529281526040808220909352908152205481565b6040519081526020015b60405180910390f35b3480156104c157600080fd5b506104d56104d0366004613d52565b610e82565b60405190151581526020016104ac565b3480156104f157600080fd5b506011546105009061ffff1681565b60405161ffff90911681526020016104ac565b34801561051f57600080fd5b50610528610ebd565b6040516104ac9190613dbf565b610548610543366004613e13565b610f4b565b005b34801561055657600080fd5b50610548610565366004613ea9565b611041565b34801561057657600080fd5b50610528610585366004613f08565b611178565b34801561059657600080fd5b506105486105a5366004613f21565b61121a565b3480156105b657600080fd5b506105486105c5366004613f3c565b611290565b3480156105d657600080fd5b506105486105e5366004614093565b611336565b3480156105f657600080fd5b506104a2610605366004614147565b611494565b34801561061657600080fd5b506104a2601c5481565b34801561062c57600080fd5b5061054861063b366004613f08565b6114c5565b34801561064c57600080fd5b506003546001600160a01b03165b6040516001600160a01b0390911681526020016104ac565b34801561067e57600080fd5b506104a261068d366004613f08565b60009081526004602052604090206001015490565b3480156106ae57600080fd5b506104a27f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b3480156106e257600080fd5b506106f66106f1366004614147565b61152b565b604080516001600160a01b0390931683526020830191909152016104ac565b34801561072157600080fd5b50610548610730366004614169565b6115ab565b34801561074157600080fd5b50610548610750366004614223565b61184e565b34801561076157600080fd5b50610548610770366004614223565b611878565b34801561078157600080fd5b50610548610790366004613f21565b6118f6565b3480156107a157600080fd5b506104d56107b036600461424f565b601760209081526000948552604080862082529385528385208152918452828420909152825290205460ff1681565b3480156107eb57600080fd5b5061065a6107fa366004613f08565b6008602052600090815260409020546001600160a01b031681565b34801561082157600080fd5b50610548610830366004614288565b611969565b34801561084157600080fd5b50610548610850366004613f21565b611a06565b34801561086157600080fd5b506104a260145481565b34801561087757600080fd5b506104a261088636600461437d565b611a7e565b34801561089757600080fd5b506108ab6108a6366004613ea9565b611ae2565b6040516104ac91906143e0565b3480156108c457600080fd5b506104a26108d3366004614147565b611c16565b3480156108e457600080fd5b506105486108f3366004613ea9565b611c37565b34801561090457600080fd5b50610548610913366004614424565b611cfd565b34801561092457600080fd5b506104a2610933366004613f08565b600c6020526000908152604090205481565b34801561095157600080fd5b506104d5610960366004614501565b611de5565b34801561097157600080fd5b50610548610980366004613f08565b611e0a565b34801561099157600080fd5b506105486109a0366004613ea9565b611e69565b6105486109b3366004614424565b611f2f565b3480156109c457600080fd5b506105486109d336600461451e565b612108565b3480156109e457600080fd5b5060075461065a906001600160a01b031681565b348015610a0457600080fd5b506104a2600d5481565b348015610a1a57600080fd5b50610548610a29366004614223565b6121bc565b348015610a3a57600080fd5b50610548610a49366004614553565b61224d565b348015610a5a57600080fd5b5061054861230b565b348015610a6f57600080fd5b5060025461065a906001600160a01b031681565b348015610a8f57600080fd5b506104d5610a9e366004614223565b6123b8565b348015610aaf57600080fd5b50610548610abe366004614588565b6123e3565b348015610acf57600080fd5b506104a2610ade366004613f08565b61246d565b348015610aef57600080fd5b5061052861249b565b348015610b0457600080fd5b50610548610b133660046145d9565b6124a8565b348015610b2457600080fd5b506104a2600081565b348015610b3957600080fd5b50610548610b48366004614605565b612540565b348015610b5957600080fd5b50610b7d610b68366004613f21565b60126020526000908152604090205460ff1681565b6040516104ac9190614655565b348015610b9657600080fd5b506104a2610ba5366004613d12565b601060209081526000928352604080842090915290825290205481565b348015610bce57600080fd5b50610548610bdd366004613ea9565b6125ac565b348015610bee57600080fd5b506104a2610bfd366004613f08565b612672565b348015610c0e57600080fd5b506104a2610c1d366004613f08565b600f6020526000908152604090205481565b348015610c3b57600080fd5b506105486126a0565b348015610c5057600080fd5b506104a27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b348015610c8457600080fd5b50610548610c93366004614223565b612732565b348015610ca457600080fd5b50610548610cb3366004613ea9565b612757565b348015610cc457600080fd5b50610548610cd3366004613f21565b61285e565b348015610ce457600080fd5b5060195461065a906001600160a01b031681565b348015610d0457600080fd5b506104a2610d13366004613f08565b60156020526000908152604090205481565b348015610d3157600080fd5b506105286128d6565b348015610d4657600080fd5b506104d5610d55366004614668565b600160209081526000928352604080842090915290825290205460ff1681565b348015610d8157600080fd5b50610548610d90366004613f08565b612968565b348015610da157600080fd5b50610548610db0366004614692565b612a40565b348015610dc157600080fd5b50610548610dd0366004614709565b612c32565b348015610de157600080fd5b506104a2610df0366004613f08565b601b6020526000908152604090205481565b348015610e0e57600080fd5b506104d5610e1d3660046147a2565b601660209081526000948552604080862082529385528385208152918452828420909152825290205460ff1681565b348015610e5857600080fd5b5061065a610e67366004613f08565b6018602052600090815260409020546001600160a01b031681565b6000610e8d82612ce8565b80610e9c5750610e9c82612d36565b80610eb757506001600160e01b0319821663152a902d60e11b145b92915050565b60058054610eca906147e6565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef6906147e6565b8015610f435780601f10610f1857610100808354040283529160200191610f43565b820191906000526020600020905b815481529060010190602001808311610f2657829003601f168201915b505050505081565b6002610f5681611de5565b610f73576040516365a2ea6560e11b815260040160405180910390fd5b610f7c85612d6b565b6000610f888686611c16565b905080341015610fab5760405163356680b760e01b815260040160405180910390fd5b6000868152601b602052604081208054839290610fc9908490613ce3565b909155505034811015610ff757610fe08134614820565b601c6000828254610ff19190613ce3565b90915550505b61103933878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250612e6c915050565b505050505050565b6002546001600160a01b031633146110745760405162461bcd60e51b815260040161106b90614833565b60405180910390fd5b61107e8382612f77565b60005b838110156111345782828281811061109b5761109b614859565b90506020028101906110ad919061486f565b90506002146110cf5760405163cf208efd60e01b815260040160405180910390fd5b8282828181106110e1576110e1614859565b90506020028101906110f3919061486f565b6013600088888681811061110957611109614859565b905060200201358152602001908152602001600020919061112b929190613c32565b50600101611081565b507fc6405827ec801d4f031df3452af63aa62a9756614d7a2cb8dd811967cced38fe8484848460405161116a94939291906148ea565b60405180910390a150505050565b6000818152600b60205260409020805460609190611195906147e6565b80601f01602080910402602001604051908101604052809291908181526020018280546111c1906147e6565b801561120e5780601f106111e35761010080835404028352916020019161120e565b820191906000526020600020905b8154815290600101906020018083116111f157829003601f168201915b50505050509050919050565b6002546001600160a01b031633146112445760405162461bcd60e51b815260040161106b90614833565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b6002546001600160a01b031633146112ba5760405162461bcd60e51b815260040161106b90614833565b60008190036112dc5760405163cc52148360e01b815260040160405180910390fd5b6000838152600b602052604090206112f58284836149e5565b507f483621391b5e72d74eb03c7b5715531c486e326fb115ab3bcf34b133041854ce83838360405161132993929190614acd565b60405180910390a1505050565b6002546001600160a01b031633146113605760405162461bcd60e51b815260040161106b90614833565b60208101518151111561138657604051630a716d6d60e41b815260040160405180910390fd5b6127108311156113a957604051632d4f384760e01b815260040160405180910390fd5b6000898152600e602090815260408083208b9055601582528083208a9055600c82528083208990556008825280832080546001600160a01b03808b166001600160a01b031992831617909255601884528285208054928a1692909116919091179055601a8252808320869055600b90915290206114268382614af0565b50600089815260136020526040902061144190826002613c7d565b507f1a7d21507154608eb7aa1c8f3df70a4f6dca6acc302e3b676a580de138248cc289898989898989898960405161148199989796959493929190614baf565b60405180910390a1505050505050505050565b601360205281600052604060002081815481106114b057600080fd5b90600052602060002001600091509150505481565b6002546001600160a01b031633146114ef5760405162461bcd60e51b815260040161106b90614833565b60148190556040518181527fc5cfc757aad35604932f08525f338d2d7a4e827841e2888a891dc1a1f4d65a34906020015b60405180910390a150565b60008281526018602052604081205481906001600160a01b031661155a576019546001600160a01b0316611573565b6000848152601860205260409020546001600160a01b03165b6000858152601a60205260409020549092508290612710906115959086614c36565b61159f9190614c4d565b915091505b9250929050565b8483146115ec5760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b604482015260640161106b565b336001600160a01b038916148061162657506001600160a01b038816600090815260016020908152604080832033845290915290205460ff165b6116635760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161106b565b60008060005b8781101561171e5788888281811061168357611683614859565b90506020020135925086868281811061169e5761169e614859565b6001600160a01b038e16600090815260208181526040808320898452825282208054939091029490940135955085939250906116db908490614820565b90915550506001600160a01b038a1660009081526020818152604080832086845290915281208054849290611711908490613ce3565b9091555050600101611669565b50886001600160a01b03168a6001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8b8b8b8b6040516117729493929190614c6f565b60405180910390a46001600160a01b0389163b156118195760405163bc197c8160e01b808252906001600160a01b038b169063bc197c81906117c69033908f908e908e908e908e908e908e90600401614c96565b6020604051808303816000875af11580156117e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118099190614cfa565b6001600160e01b03191614611826565b6001600160a01b03891615155b6118425760405162461bcd60e51b815260040161106b90614d17565b50505050505050505050565b60008281526004602052604090206001015461186981612f97565b6118738383612fa4565b505050565b6001600160a01b03811633146118e85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161106b565b6118f2828261302a565b5050565b6002546001600160a01b031633146119205760405162461bcd60e51b815260040161106b90614833565b6001600160a01b038116611947576040516326120ecd60e11b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661199381612f97565b600061199e81611de5565b6119bb576040516365a2ea6560e11b815260040160405180910390fd5b6119fd87878787878080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052509250612e6c915050565b50505050505050565b6002546001600160a01b03163314611a305760405162461bcd60e51b815260040161106b90614833565b601980546001600160a01b0319166001600160a01b0383169081179091556040519081527f07b3a60cb7a17fed8195a5f973dced6f8a947cfca7ac866abb19fc766d4d73ef90602001611520565b6000805b8351811015611adb57611ac7848281518110611aa057611aa0614859565b6020026020010151848381518110611aba57611aba614859565b6020026020010151611c16565b611ad19083613ce3565b9150600101611a82565b5092915050565b6060838214611b255760405162461bcd60e51b815260206004820152600f60248201526e0988a9c8ea890be9a92a69a82a8869608b1b604482015260640161106b565b836001600160401b03811115611b3d57611b3d613f87565b604051908082528060200260200182016040528015611b66578160200160208202803683370190505b50905060005b84811015611c0d57600080878784818110611b8957611b89614859565b9050602002016020810190611b9e9190613f21565b6001600160a01b03166001600160a01b031681526020019081526020016000206000858584818110611bd257611bd2614859565b90506020020135815260200190815260200160002054828281518110611bfa57611bfa614859565b6020908102919091010152600101611b6c565b50949350505050565b6000828152600c6020526040812054611c30908390614c36565b9392505050565b6002546001600160a01b03163314611c615760405162461bcd60e51b815260040161106b90614833565b611c6b8382612f77565b60005b83811015611cc757828282818110611c8857611c88614859565b90506020020135600e6000878785818110611ca557611ca5614859565b6020908102929092013583525081019190915260400160002055600101611c6e565b507f4417b0150837111a152da4b3318a58fbd15f2af689409328aa7e6d964217916a8484848460405161116a9493929190614c6f565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6611d2781612f97565b6000611d3281611de5565b611d4f576040516365a2ea6560e11b815260040160405180910390fd5b6001611d5a81611de5565b611d77576040516365a2ea6560e11b815260040160405180910390fd5b868660005b81811015611dc557828282818110611d9657611d96614859565b90506020020135421115611dbd5760405163be3b58d360e01b815260040160405180910390fd5b600101611d7c565b50611dd68d8d8d8d8d8d8d8d613091565b50505050505050505050505050565b6000816002811115611df957611df9614621565b600954600190911b16151592915050565b6002546001600160a01b03163314611e345760405162461bcd60e51b815260040161106b90614833565b600d8190556040518181527fddb81e813acdba5230e1ec2535a9e2d815b941deee96bdcf12fc8e85dc47f3fa90602001611520565b6002546001600160a01b03163314611e935760405162461bcd60e51b815260040161106b90614833565b611e9d8382612f77565b60005b83811015611ef957828282818110611eba57611eba614859565b9050602002013560156000878785818110611ed757611ed7614859565b6020908102929092013583525081019190915260400160002055600101611ea0565b507fa798a75637919f0e11a3cc489d2837b40433e4dcaf6c6968838cb19c5613e8c68484848460405161116a9493929190614c6f565b6001611f3a81611de5565b611f57576040516365a2ea6560e11b815260040160405180910390fd5b848460005b81811015611fa557828282818110611f7657611f76614859565b90506020020135421115611f9d5760405163be3b58d360e01b815260040160405180910390fd5b600101611f5c565b5060008b8b808060200260200160405190810160405280939291908181526020016000905b82821015611ff657611fe760808302860136819003810190614d41565b81526020019060010190611fca565b505050505090506000805b82518110156120ad57600061205084838151811061202157612021614859565b60200260200101516000015185848151811061203f5761203f614859565b602002602001015160200151611c16565b905080601b600086858151811061206957612069614859565b602002602001015160000151815260200190815260200160002060008282546120929190613ce3565b909155506120a290508184613ce3565b925050600101612001565b50803410156120cf5760405163356680b760e01b815260040160405180910390fd5b803411156120f8576120e18134614820565b601c60008282546120f29190613ce3565b90915550505b611dd68d8d8d8d8d8d8d8d613091565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84861213281612f97565b6001600160a01b03821660009081526020818152604080832087845290915290205483111561217457604051631e9acf1760e31b815260040160405180910390fd5b61217f828585613391565b506001600160a01b0316600090815260106020908152604080832094835293815283822080548490039055600f9052919091208054919091039055565b6002546001600160a01b031633146121e65760405162461bcd60e51b815260040161106b90614833565b60008281526008602090815260409182902080546001600160a01b0319166001600160a01b0385169081179091558251858152918201527fd96089a47585076b979ae865f2983bcf4bc42a4af8bf77450c9c7cc436dcd0ad91015b60405180910390a15050565b6002546001600160a01b031633146122775760405162461bcd60e51b815260040161106b90614833565b61271081111561229a57604051632d4f384760e01b815260040160405180910390fd5b6000838152601a60209081526040808320849055601882529182902080546001600160a01b0319166001600160a01b0386169081179091558251868152918201529081018290527fbb63bc176642036338dcef2255721b8e323a9f1c0d129cd906355dcdfbd616df90606001611329565b6002546001600160a01b031633146123355760405162461bcd60e51b815260040161106b90614833565b601c54600081900361235a57604051630686827b60e51b815260040160405180910390fd5b6000601c8190556007546040516001600160a01b039091169183919081818185875af1925050503d80600081146123ad576040519150601f19603f3d011682016040523d82523d6000602084013e6123b2565b606091505b50505050565b60009182526004602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6002546001600160a01b0316331461240d5760405162461bcd60e51b815260040161106b90614833565b600081900361242e5760405162ea21bf60e21b815260040160405180910390fd5b600a61243b8284836149e5565b507fd5ee5eaf65263bab5d569890714d123ad48a9e54409d35e71d374f3dd300bba08282604051612241929190614daa565b60008181526015602052604081205461248857601454610eb7565b5060009081526015602052604090205490565b60068054610eca906147e6565b6002546001600160a01b031633146124d25760405162461bcd60e51b815260040161106b90614833565b60008260028111156124e6576124e6614621565b905081151560010361250257600980546001831b17905561250f565b600980546001831b191690555b7f3c2ea495cfb24b045720e4a2ebef824e2ce789a807bf03fde601a744fb41882e8383604051611329929190614dbe565b3360008181526001602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002546001600160a01b031633146125d65760405162461bcd60e51b815260040161106b90614833565b6125e08382612f77565b60005b8381101561263c578282828181106125fd576125fd614859565b90506020020135600c600087878581811061261a5761261a614859565b60209081029290920135835250810191909152604001600020556001016125e3565b507fd78100b8737cb8d733fe0dd4d51c12c470cc896648ae4edb4cc18af4f23de97e8484848460405161116a9493929190614c6f565b6000818152600e602052604081205461268d57600d54610eb7565b506000908152600e602052604090205490565b6002546001600160a01b031633146126ca5760405162461bcd60e51b815260040161106b90614833565b601180546000906126de9061ffff16614dda565b82546101009290920a61ffff818102199093169183160217909155601154604051911681527fb65b49c749df181f9fa5f339cfb901d5438dc63ab84df6e3b8b759919aa48a7c9060200160405180910390a1565b60008281526004602052604090206001015461274d81612f97565b611873838361302a565b6002546001600160a01b031633146127815760405162461bcd60e51b815260040161106b90614833565b61278b8382612f77565b60005b83811015612828578282828181106127a8576127a8614859565b90506020020160208101906127bd9190614501565b601260008787858181106127d3576127d3614859565b90506020020160208101906127e89190613f21565b6001600160a01b031681526020810191909152604001600020805460ff1916600183600281111561281b5761281b614621565b021790555060010161278e565b507f4a760ebcda274a7e799ce35bdbe7b3a4085a3ad62cc72f378cf6e767353b0e098484848460405161116a9493929190614dfb565b6002546001600160a01b031633146128885760405162461bcd60e51b815260040161106b90614833565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527f2f32d890a898c8408eb6a28629b8414274afe8986b2941683e642bf53e6b8e5990602001611520565b6060600a80546128e5906147e6565b80601f0160208091040260200160405190810160405280929190818152602001828054612911906147e6565b801561295e5780601f106129335761010080835404028352916020019161295e565b820191906000526020600020905b81548152906001019060200180831161294157829003601f168201915b5050505050905090565b6000818152600860205260409020546001600160a01b0316331461299f5760405163ea8e4eb560e01b815260040160405180910390fd5b6000818152601b6020526040812054908190036129cf57604051630686827b60e51b815260040160405180910390fd5b6000828152601b6020908152604080832083905560089091528082205490516001600160a01b039091169183919081818185875af1925050503d8060008114612a34576040519150601f19603f3d011682016040523d82523d6000602084013e612a39565b606091505b5050505050565b336001600160a01b0387161480612a7a57506001600160a01b038616600090815260016020908152604080832033845290915290205460ff165b612ab75760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161106b565b6001600160a01b03861660009081526020818152604080832087845290915281208054859290612ae8908490614820565b90915550506001600160a01b03851660009081526020818152604080832087845290915281208054859290612b1e908490613ce3565b909155505060408051858152602081018590526001600160a01b03808816929089169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0385163b15612c095760405163f23a6e6160e01b808252906001600160a01b0387169063f23a6e6190612bb69033908b908a908a908a908a90600401614e90565b6020604051808303816000875af1158015612bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bf99190614cfa565b6001600160e01b03191614612c16565b6001600160a01b03851615155b6110395760405162461bcd60e51b815260040161106b90614d17565b6002546001600160a01b03163314612c5c5760405162461bcd60e51b815260040161106b90614833565b6000805b8251811015612cb2576000838281518110612c7d57612c7d614859565b60200260200101516002811115612c9657612c96614621565b6001901b92909217915080612caa81614ed7565b915050612c60565b5060098190556040517f67343902e99de291550458fcae466d8ba1479dc928596931bc3e83b89f8f9d4490612241908490614ef0565b60006301ffc9a760e01b6001600160e01b031983161480612d195750636cdb3d1360e11b6001600160e01b03198316145b80610eb75750506001600160e01b0319166303a24d0760e21b1490565b60006001600160e01b03198216637965db0b60e01b1480610eb757506301ffc9a760e01b6001600160e01b0319831614610eb7565b600081815260136020908152604080832080548251818502810185019093528083529192909190830182828015612dc157602002820191906000526020600020905b815481526020019060010190808311612dad575b505050505090508051600003612dea5760405163f3ed6cef60e01b815260040160405180910390fd5b60008281526013602052604081208054909190612e0957612e09614859565b9060005260206000200154421080612e4b5750600082815260136020526040902080546001908110612e3d57612e3d614859565b906000526020600020015442115b156118f25760405163564686e360e01b81526004810183905260240161106b565b612e7584612672565b6000858152600f6020526040902054612e8f908590613ce3565b1115612eae5760405163704d6bf960e11b815260040160405180910390fd5b80158015612ef15750612ec08461246d565b6001600160a01b0386166000908152601060209081526040808320888452909152902054612eef908590613ce3565b115b15612f0f5760405163020805f560e61b815260040160405180910390fd5b6001600160a01b038516600090815260106020908152604080832087845290915281208054859290612f42908490613ce3565b90915550506000848152600f602052604081208054859290612f65908490613ce3565b90915550612a39905085858585613415565b8082146118f2576040516311ed8de960e31b815260040160405180910390fd5b612fa18133613557565b50565b612fae82826123b8565b6118f25760008281526004602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612fe63390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61303482826123b8565b156118f25760008281526004602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60008888808060200260200160405190810160405280939291908181526020016000905b828210156130e1576130d260808302860136819003810190614d41565b815260200190600101906130b5565b505050505090506000858580806020026020016040519081016040528093929190818152602001838360200280828437600092018290525093945061312c92508a91508b9050614f31565b9050600085858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505086518551939450613179939092509050612f77565b61318582518451612f77565b60005b8451811015611dd6576002601260008784815181106131a9576131a9614859565b602090810291909101810151606001516001600160a01b031682528101919091526040016000205460ff1660028111156131e5576131e5614621565b14158015613245575060016012600087848151811061320657613206614859565b602090810291909101810151606001516001600160a01b031682528101919091526040016000205460ff16600281111561324257613242614621565b14155b1561326357604051633dd1b30560e01b815260040160405180910390fd5b600085828151811061327757613277614859565b6020026020010151905061328e8160000151612d6b565b6132ef6132a36003546001600160a01b031690565b6132d0838886815181106132b9576132b9614859565b602090810291909101015160115461ffff166135b0565b8685815181106132e2576132e2614859565b602002602001015161368f565b61330c57604051638baa579f60e01b815260040160405180910390fd5b600260608201516001600160a01b031660009081526012602052604090205460ff16600281111561333f5761333f614621565b036133605761335b8160600151826040015183600001516136b8565b613372565b6133728160600151826040015161375f565b6133883382600001518360200151866001612e6c565b50600101613188565b6001600160a01b038316600090815260208181526040808320858452909152812080548392906133c2908490614820565b909155505060408051838152602081018390526000916001600160a01b0386169133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4505050565b6001600160a01b03841660009081526020818152604080832086845290915281208054849290613446908490613ce3565b909155505060408051848152602081018490526001600160a01b0386169160009133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46001600160a01b0384163b1561352e5760405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906134db903390600090899089908990600401614fb8565b6020604051808303816000875af11580156134fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061351e9190614cfa565b6001600160e01b0319161461353b565b6001600160a01b03841615155b6123b25760405162461bcd60e51b815260040161106b90614d17565b61356182826123b8565b6118f25761356e81613811565b613579836020613823565b60405160200161358a929190614ff2565b60408051601f198184030181529082905262461bcd60e51b825261106b91600401613dbf565b825160208085015160408087015160608089015183516bffffffffffffffffffffffff1933841b8116828901526034820198909852605481019590955260748501929092526001600160f01b031960f088901b1660948501526096840188905290811b851660b684015230901b90931660ca820152825180820360be01815260de820184528051908301207f19457468657265756d205369676e6564204d6573736167653a0a33320000000060fe83015261011a808301919091528351808303909101815261013a90910190925281519101206000905b949350505050565b600061369b83836139be565b6001600160a01b0316846001600160a01b03161490509392505050565b6001600160a01b0383166000908152601760209081526040808320858452825280832060115461ffff168452825280832084845290915290205460ff1615613716576040516379910f8d60e11b81526004810183905260240161106b565b6001600160a01b03909216600090815260176020908152604080832093835292815282822060115461ffff1683528152828220938252929092529020805460ff19166001179055565b6001600160a01b03821660009081526016602090815260408083208484528252808320338452825280832060115461ffff16845290915290205460ff16156137cb576011546040516380dac1d760e01b81526004810183905261ffff909116602482015260440161106b565b6001600160a01b039091166000908152601660209081526040808320938352928152828220338352815282822060115461ffff168352905220805460ff19166001179055565b6060610eb76001600160a01b03831660145b60606000613832836002614c36565b61383d906002613ce3565b6001600160401b0381111561385457613854613f87565b6040519080825280601f01601f19166020018201604052801561387e576020820181803683370190505b509050600360fc1b8160008151811061389957613899614859565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106138c8576138c8614859565b60200101906001600160f81b031916908160001a90535060006138ec846002614c36565b6138f7906001613ce3565b90505b600181111561396f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061392b5761392b614859565b1a60f81b82828151811061394157613941614859565b60200101906001600160f81b031916908160001a90535060049490941c9361396881615067565b90506138fa565b508315611c305760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161106b565b60008060006139cd85856139e2565b915091506139da81613a24565b509392505050565b6000808251604103613a185760208301516040840151606085015160001a613a0c87828585613b6e565b945094505050506115a4565b506000905060026115a4565b6000816004811115613a3857613a38614621565b03613a405750565b6001816004811115613a5457613a54614621565b03613aa15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161106b565b6002816004811115613ab557613ab5614621565b03613b025760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161106b565b6003816004811115613b1657613b16614621565b03612fa15760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161106b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613ba55750600090506003613c29565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613bf9573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613c2257600060019250925050613c29565b9150600090505b94509492505050565b828054828255906000526020600020908101928215613c6d579160200282015b82811115613c6d578235825591602001919060010190613c52565b50613c79929150613cb8565b5090565b828054828255906000526020600020908101928215613c6d579160200282015b82811115613c6d578251825591602001919060010190613c9d565b5b80821115613c795760008155600101613cb9565b634e487b7160e01b600052601160045260246000fd5b80820180821115610eb757610eb7613ccd565b80356001600160a01b0381168114613d0d57600080fd5b919050565b60008060408385031215613d2557600080fd5b613d2e83613cf6565b946020939093013593505050565b6001600160e01b031981168114612fa157600080fd5b600060208284031215613d6457600080fd5b8135611c3081613d3c565b60005b83811015613d8a578181015183820152602001613d72565b50506000910152565b60008151808452613dab816020860160208601613d6f565b601f01601f19169290920160200192915050565b602081526000611c306020830184613d93565b60008083601f840112613de457600080fd5b5081356001600160401b03811115613dfb57600080fd5b6020830191508360208285010111156115a457600080fd5b60008060008060608587031215613e2957600080fd5b843593506020850135925060408501356001600160401b03811115613e4d57600080fd5b613e5987828801613dd2565b95989497509550505050565b60008083601f840112613e7757600080fd5b5081356001600160401b03811115613e8e57600080fd5b6020830191508360208260051b85010111156115a457600080fd5b60008060008060408587031215613ebf57600080fd5b84356001600160401b0380821115613ed657600080fd5b613ee288838901613e65565b90965094506020870135915080821115613efb57600080fd5b50613e5987828801613e65565b600060208284031215613f1a57600080fd5b5035919050565b600060208284031215613f3357600080fd5b611c3082613cf6565b600080600060408486031215613f5157600080fd5b8335925060208401356001600160401b03811115613f6e57600080fd5b613f7a86828701613dd2565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613fc557613fc5613f87565b604052919050565b60006001600160401b03831115613fe657613fe6613f87565b613ff9601f8401601f1916602001613f9d565b905082815283838301111561400d57600080fd5b828260208301376000602084830101529392505050565b600082601f83011261403557600080fd5b604051604081018181106001600160401b038211171561405757614057613f87565b806040525080604084018581111561406e57600080fd5b845b81811015614088578035835260209283019201614070565b509195945050505050565b60008060008060008060008060006101408a8c0312156140b257600080fd5b8935985060208a0135975060408a0135965060608a013595506140d760808b01613cf6565b94506140e560a08b01613cf6565b935060c08a0135925060e08a01356001600160401b0381111561410757600080fd5b8a01601f81018c1361411857600080fd5b6141278c823560208401613fcd565b9250506141388b6101008c01614024565b90509295985092959850929598565b6000806040838503121561415a57600080fd5b50508035926020909101359150565b60008060008060008060008060a0898b03121561418557600080fd5b61418e89613cf6565b975061419c60208a01613cf6565b965060408901356001600160401b03808211156141b857600080fd5b6141c48c838d01613e65565b909850965060608b01359150808211156141dd57600080fd5b6141e98c838d01613e65565b909650945060808b013591508082111561420257600080fd5b5061420f8b828c01613dd2565b999c989b5096995094979396929594505050565b6000806040838503121561423657600080fd5b8235915061424660208401613cf6565b90509250929050565b6000806000806080858703121561426557600080fd5b61426e85613cf6565b966020860135965060408601359560600135945092505050565b6000806000806000608086880312156142a057600080fd5b6142a986613cf6565b9450602086013593506040860135925060608601356001600160401b038111156142d257600080fd5b6142de88828901613dd2565b969995985093965092949392505050565b60006001600160401b0382111561430857614308613f87565b5060051b60200190565b600082601f83011261432357600080fd5b81356020614338614333836142ef565b613f9d565b82815260059290921b8401810191818101908684111561435757600080fd5b8286015b84811015614372578035835291830191830161435b565b509695505050505050565b6000806040838503121561439057600080fd5b82356001600160401b03808211156143a757600080fd5b6143b386838701614312565b935060208501359150808211156143c957600080fd5b506143d685828601614312565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015614418578351835292840192918401916001016143fc565b50909695505050505050565b6000806000806000806000806080898b03121561444057600080fd5b88356001600160401b038082111561445757600080fd5b818b0191508b601f83011261446b57600080fd5b81358181111561447a57600080fd5b8c60208260071b850101111561448f57600080fd5b60209283019a509850908a013590808211156144aa57600080fd5b6144b68c838d01613e65565b909850965060408b01359150808211156144cf57600080fd5b6144db8c838d01613e65565b909650945060608b013591508082111561420257600080fd5b60038110612fa157600080fd5b60006020828403121561451357600080fd5b8135611c30816144f4565b60008060006060848603121561453357600080fd5b833592506020840135915061454a60408501613cf6565b90509250925092565b60008060006060848603121561456857600080fd5b8335925061457860208501613cf6565b9150604084013590509250925092565b6000806020838503121561459b57600080fd5b82356001600160401b038111156145b157600080fd5b6145bd85828601613dd2565b90969095509350505050565b80358015158114613d0d57600080fd5b600080604083850312156145ec57600080fd5b82356145f7816144f4565b9150614246602084016145c9565b6000806040838503121561461857600080fd5b6145f783613cf6565b634e487b7160e01b600052602160045260246000fd5b60038110612fa157634e487b7160e01b600052602160045260246000fd5b6020810161466283614637565b91905290565b6000806040838503121561467b57600080fd5b61468483613cf6565b915061424660208401613cf6565b60008060008060008060a087890312156146ab57600080fd5b6146b487613cf6565b95506146c260208801613cf6565b9450604087013593506060870135925060808701356001600160401b038111156146eb57600080fd5b6146f789828a01613dd2565b979a9699509497509295939492505050565b6000602080838503121561471c57600080fd5b82356001600160401b0381111561473257600080fd5b8301601f8101851361474357600080fd5b8035614751614333826142ef565b81815260059190911b8201830190838101908783111561477057600080fd5b928401925b82841015614797578335614788816144f4565b82529284019290840190614775565b979650505050505050565b600080600080608085870312156147b857600080fd5b6147c185613cf6565b9350602085013592506147d660408601613cf6565b9396929550929360600135925050565b600181811c908216806147fa57607f821691505b60208210810361481a57634e487b7160e01b600052602260045260246000fd5b50919050565b81810381811115610eb757610eb7613ccd565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e1984360301811261488657600080fd5b8301803591506001600160401b038211156148a057600080fd5b6020019150600581901b36038213156115a457600080fd5b81835260006001600160fb1b038311156148d157600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006148fe6040830186886148b8565b60208382038185015281858352818301905060058287821b8501018860005b8981101561498e57868303601f190185528135368c9003601e1901811261494357600080fd5b8b0186810190356001600160401b0381111561495e57600080fd5b80861b360382131561496f57600080fd5b61497a8582846148b8565b96880196945050509085019060010161491d565b50909b9a5050505050505050505050565b601f82111561187357600081815260208120601f850160051c810160208610156149c65750805b601f850160051c820191505b81811015611039578281556001016149d2565b6001600160401b038311156149fc576149fc613f87565b614a1083614a0a83546147e6565b8361499f565b6000601f841160018114614a445760008515614a2c5750838201355b600019600387901b1c1916600186901b178355612a39565b600083815260209020601f19861690835b82811015614a755786850135825560209485019460019092019101614a55565b5086821015614a925760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152604060208201526000614ae7604083018486614aa4565b95945050505050565b81516001600160401b03811115614b0957614b09613f87565b614b1d81614b1784546147e6565b8461499f565b602080601f831160018114614b525760008415614b3a5750858301515b600019600386901b1c1916600185901b178555611039565b600085815260208120601f198616915b82811015614b8157888601518255948401946001909101908401614b62565b5085821015614b9f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006101408b835260208b818501528a604085015289606085015260018060a01b03808a16608086015280891660a0860152508660c08501528160e0850152614bfa82850187613d93565b9250610100840191508460005b6002811015614c2457815184529282019290820190600101614c07565b505050509a9950505050505050505050565b8082028115828204841417610eb757610eb7613ccd565b600082614c6a57634e487b7160e01b600052601260045260246000fd5b500490565b604081526000614c836040830186886148b8565b82810360208401526147978185876148b8565b6001600160a01b0389811682528816602082015260a060408201819052600090614cc3908301888a6148b8565b8281036060840152614cd68187896148b8565b90508281036080840152614ceb818587614aa4565b9b9a5050505050505050505050565b600060208284031215614d0c57600080fd5b8151611c3081613d3c565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b600060808284031215614d5357600080fd5b604051608081018181106001600160401b0382111715614d7557614d75613f87565b8060405250823581526020830135602082015260408301356040820152614d9e60608401613cf6565b60608201529392505050565b602081526000613687602083018486614aa4565b60408101614dcb84614637565b92815290151560209091015290565b600061ffff808316818103614df157614df1613ccd565b6001019392505050565b6040808252810184905260008560608301825b87811015614e3c576001600160a01b03614e2784613cf6565b16825260209283019290910190600101614e0e565b5083810360208581019190915285825291508590820160005b86811015614e83578235614e68816144f4565b614e7181614637565b82529183019190830190600101614e55565b5098975050505050505050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a060808201819052600090614ecb9083018486614aa4565b98975050505050505050565b600060018201614ee957614ee9613ccd565b5060010190565b6020808252825182820181905260009190848201906040850190845b81811015614418578351614f1f81614637565b83529284019291840191600101614f0c565b6000614f3f614333846142ef565b80848252602080830192508560051b850136811115614f5d57600080fd5b855b81811015614fac5780356001600160401b03811115614f7e5760008081fd5b870136601f820112614f905760008081fd5b614f9e368235868401613fcd565b865250938201938201614f5f565b50919695505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061479790830184613d93565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161502a816017850160208801613d6f565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161505b816028840160208801613d6f565b01602801949350505050565b60008161507657615076613ccd565b50600019019056fea2646970667358221220be746f82ecf3a2aae84c1b7491f966bd561d20fff0b91e23fb7ff5fef300498264736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f9000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f90000000000000000000000000000000000000000000000000000000000000012496e737069726564204279204c65646765720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000349584c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004068747470733a2f2f6d657461646174612e6c65646765722e636f6d2f696e7370697265642d62792d6c65646765722f636f6e74726163742d6d65746164617461

-----Decoded View---------------
Arg [0] : _name (string): Inspired By Ledger
Arg [1] : _symbol (string): IXL
Arg [2] : _baseContractURI (string): https://metadata.ledger.com/inspired-by-ledger/contract-metadata
Arg [3] : _defaultRoyaltyReceiver (address): 0xe500121D6761B6FF7AAc2A3154Df3AC24A8Cf9f9
Arg [4] : _defaultWithdrawalAddress (address): 0xe500121D6761B6FF7AAc2A3154Df3AC24A8Cf9f9

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f9
Arg [4] : 000000000000000000000000e500121d6761b6ff7aac2a3154df3ac24a8cf9f9
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [6] : 496e737069726564204279204c65646765720000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 49584c0000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [10] : 68747470733a2f2f6d657461646174612e6c65646765722e636f6d2f696e7370
Arg [11] : 697265642d62792d6c65646765722f636f6e74726163742d6d65746164617461


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.