ETH Price: $2,497.53 (-2.90%)
Gas: 4.15 Gwei

Token

BEANS HOLDERS LOOT - Dumb Ways to Die (DWTD_HOLDERS_LOOT)
 

Overview

Max Total Supply

8,248 DWTD_HOLDERS_LOOT

Holders

1,533

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
yigi.eth
0x8120b66249a7a6227ef0a4af9ef30acea021d2f0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

HOLDERS LOOT is a collection of 12 digital collectibles on the Ethereum blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HoldersLoot

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : HoldersLoot.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

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

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

// PlaySide Contracts
import "./SignatureVerify.sol";
import "./LootItems.sol";
import "./Roles.sol";
import "./Items.sol";
import "./Settings.sol";
import "./ErrorCodes.sol";

contract HoldersLoot is
    ERC1155,
    AccessControl,
    Pausable,
    ERC1155Supply,
	ERC1155Burnable,
    SignatureVerify,
    Settings,
    LootItems
{
    using Strings for uint256;
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    CONTRACT SETTINGS
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// @dev The name of this contract.
    ///     This will get pulled by clients and name this contract using this string.
    string public constant name = "BEANS HOLDERS LOOT - Dumb Ways to Die";

    /// @dev The symbol of this contract ( When referenced in short hand )
    ///     This will get pulled by clients and symbol this contract using this string.
    string public constant symbol = "DWTD_HOLDERS_LOOT";

	/// @dev Keeps track of all of the minting calls that a certain address has 
	/// 	minted
    /// address => (tokenID => balance)
	mapping(address => mapping(uint256 => uint256)) accountsMintedCount;

    constructor()
        ERC1155(
            "https://dwtd.playsidestudios-devel.com/loot/founders/metadata/{id}.json"
        )
    {}

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                        URI
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// @dev Sets a new base URI for all tokens.
    /// @param newuri: The new URI of all tokens.
    /// This should be a directory holding all the json data for each token
    //  This is unused currently as each token is using an array to map each tokens URI
    function setURI(string memory newuri) public onlyRole(Roles.ROLE_SAFE) {
        _setURI(newuri);
    }

    /// @dev Returns the URI for a specfic token ID. Returns from an array that was filled
    ///     in by the admin for each specifc item.
    /// @param tokenID: The token ID that should be returned.
    function uri(uint256 tokenID)
        public
        view
        virtual
        override
        returns (string memory) {
        return LootItems.lootItemList[tokenID].Uri;
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    PAUSE
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    function setPause() public onlyRole(Roles.ROLE_SAFE) {
        _pause();
    }

    function unpause() public onlyRole(Roles.ROLE_SAFE) {
        _unpause();
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                        MINT
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// @dev Mints target tokens and amounts from the daily store array.
    /// Will fail if 'Settings.dailyStoreActive' is set to false.
    /// @param tokenIndicies: An array of tokens that the user is requesting to mint.
    //      example: [1,2,3] will mint token IDs : 1,2,3.
    /// @param mintAmounts: The amount respectivly of each token that the user is requesting to mint.
    //      example: [1,2,1] will mint token IDs [(TokenID: 1 Amount: 1), (TokenID: 2 Amount: 2),(TokenID: 3 Amount: 1)]
    function mintDailyStore(
        // Token Params
        uint256[] calldata tokenIndices,
        uint256[] calldata mintAmounts
    ) public payable whenNotPaused {
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *            ENSURE THE PUBLIC SALE IS ACTIVE
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        if (!Settings.dailyStoreActive) revert ErrorCodes.DailyStoreInactive();

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *          CHECK ITEM EXISTS IN DAILY STORE
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // Loop Through All The Requested Token Indicies
        for (
            uint256 index_TokenIndicies = 0;
            index_TokenIndicies < tokenIndices.length;
            index_TokenIndicies++
        ) {
            bool indexExists = false;
            // Check that each of them are in the daily store, if not, error out
            for (
                uint256 index_DailyStore = 0;
                index_DailyStore < dailyStore.length;
                index_DailyStore++
            ) {
                // Check if this index matches one in the daily store
                if (
                    tokenIndices[index_TokenIndicies] ==
                    LootItems.dailyStore[index_DailyStore]
                ) {
                    indexExists = true;
                    break;
                }
            }

            // If not, revert this transaction
            if (indexExists == false) revert ErrorCodes.NotInDailyStore();
        }

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *              CHECK ALL REQUIRES
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        CheckRequires(tokenIndices, mintAmounts, true);

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                 FINALLY MINT
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        _mintBatch(msg.sender, tokenIndices, mintAmounts, "");
    }

    /// @dev This is a nonpayable function that will allow a user to claim a token that they are whitelisted to claim.
    /// Will fail if the signature wasnt signed with the correct data and by a signer address on server side.
    /// @param tokenIndicies: An array of tokens that the user is requesting to mint.
    //      example: [1,2,3] will mint token IDs : 1,2,3.
    /// @param mintAmounts: The amount respectivly of each token that the user is requesting to mint.
    //      example: [1,2,1] will mint token IDs [(TokenID: 1 Amount: 1), (TokenID: 2 Amount: 2),(TokenID: 3 Amount: 1)].
    /// @param networkName: The network name that this contract is on. Removes the ability for users to create a dummy contract on a test network
    ///     and sign using that contract.
    /// @param contractAddress: Similar to the network name this ensures that this data was signed using this contract address removing the ability
    ///     for users to sign using a different contract.
    /// @param nonce: This removes the ability to repeat attack this contract in order to control the amount of tokens a user can get.
    /// @param signature: All of the data that is sent through this function is also signed by a signer address and the user and hashed
    ///     out to this param. This signature will be reveresed engineered to ensure that the data is the same as what was signed by the server.
    function mintClaim(
        // Token Params
        uint256[] calldata tokenIndices,
        uint256[] calldata mintAmounts,
        // Signature Params
        uint256 networkName,
        address contractAddress,
        uint256 nonce,
        bytes memory signature
    ) public whenNotPaused {

		// Check not paused
		if(Settings.claimActive == false) revert ErrorCodes.ClaimMintDisabled();

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *              CHECK IF MESSAGE WAS SIGNED
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        bool isOwner = (msg.sender == Settings.signerAddress);
        if ((isOwner == false)) {
            // Verify Signature
            if (
                !verify(
                    Settings.signerAddress,
                    msg.sender,
                    tokenIndices,
                    mintAmounts,
                    networkName,
                    contractAddress,
                    nonce,
                    signature
                )
            ) revert ErrorCodes.SignatureVerify();
        }

		// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *              CHECK CORRECT NETWORK ID
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		// Check that the network passed into the contract was the correct network
		// 	Doing this after the verify as that ensures that the network passed in matches
		// 	the signed data from the server
		if(networkName != Settings.blockchain) revert ErrorCodes.NetworkMissmatch();

		// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *              CHECK CORRECT CONTRACT ADDRESS
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		if(contractAddress != address(this)) revert ErrorCodes.IncorrectContractSignature(); 

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *              CHECK ALL REQUIRES
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        CheckRequires(tokenIndices, mintAmounts, false);

		// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                 ADD TO MAPPING
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		CacheMintRequests(tokenIndices, mintAmounts);

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                 FINALLY MINT
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        _mintBatch(msg.sender, tokenIndices, mintAmounts, "");
    }

    /// @dev Checks all of the requires in order to allow a user to mint a token.
    /// @param tokenIndicies: An array of tokens that the user is requesting to mint.
    //      example: [1,2,3] will mint token IDs : 1,2,3.
    /// @param mintAmounts: The amount respectivly of each token that the user is requesting to mint.
    //      example: [1,2,1] will mint token IDs [(TokenID: 1 Amount: 1), (TokenID: 2 Amount: 2),(TokenID: 3 Amount: 1)]
    /// @param shouldCheckCost: A bool that controls if this function should check the cost of the message matches the cost
    ///     of all of of the tokens that a user is requesting.
    function CheckRequires(
        uint256[] calldata tokenIndices,
        uint256[] calldata mintAmounts,
        bool shouldCheckCost
    ) internal view {
        // Check the length of each array
        if (tokenIndices.length <= 0 || tokenIndices.length != mintAmounts.length)
            revert ErrorCodes.ArrayMissmatch();

        uint256 _totalCost = 0;
        for (uint256 index = 0; index < tokenIndices.length; index++) {
            // Get Source Data
            uint256 tokenID = tokenIndices[index];
            LootItems.LootItem memory _sourceData = LootItems.getLootItem(
                tokenID
            );

            // Get the total supply of the token index above the current index
            uint256 supplyCount = totalSupply(tokenID);

            // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            // *                    CACHE VARIABLES
            // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            // Cache the desired mint amount
            uint256 mintAmount = mintAmounts[index];

            // Get the cost of this item that is being minted and add it to the total cost
            if (shouldCheckCost) {
                _totalCost =
                    _totalCost +
                    (
                        _sourceData.IsOnSale
                            ? (_sourceData.WeiSaleCost 	* mintAmount)
                            : (_sourceData.WeiCost 		* mintAmount)
                    );
            }

            // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            // *              FINALLY VALIDATE SETTINGS
            // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            // Has to mint at least 1 item
            if (mintAmount <= 0) revert ErrorCodes.RequestedIncorrectAmount();

            // Check has enough supply to mint
            if (supplyCount + mintAmount > _sourceData.TotalSupply)
                revert ErrorCodes.SoldOut();

            // Check for the entire cost of this transaction
            if (shouldCheckCost && msg.value < _totalCost)
                revert ErrorCodes.InsufficientFunds(_totalCost, msg.value);
        }
    }

	function CacheMintRequests(uint256[] calldata tokenIndices, uint256[] calldata mintAmounts) internal
	{
		uint256 tokenIndicesLength 	= tokenIndices.length;

		// Loop through all token indicies and mint amounts and add them into the mapping
		for(uint256 tokenIndex = 0; tokenIndex < tokenIndicesLength; tokenIndex++)
		{
			// Get the current token index
			uint256 tokenID = tokenIndices[tokenIndex];

			// Get the current mint amount for this token index
			uint256 mintAmount = mintAmounts[tokenIndex];

			// Calculate the new mint amount from what they have already minted + requested mint amount
			uint256 newMintAmount = accountsMintedCount[msg.sender][tokenID] + mintAmount;

			// Check that this item exists in our database
			LootItems.LootItem memory sourceData = LootItems.getLootItem(tokenID);

			// If the item doesnt exist, revert transaction
			if(sourceData.exists == false) revert ErrorCodes.LootItem_ItemDoesntExist();

			// Check the new mint amount against the settings for this item
			if(newMintAmount > sourceData.MaxMintPerUser) {
				revert ErrorCodes.LootItem_MaxMintError();
			}

			// Add to mapping of this address and this token index
			accountsMintedCount[msg.sender][tokenID] = newMintAmount;
		}
	}

	/// @dev Withdraws all the funds 
	function withdraw() public onlyRole(Roles.ROLE_SAFE) {
    	(bool os, ) = payable(0x1e9C6144c06Bb4B21586E11bb9d0D526Dc590C9d).call{value: address(this).balance}("");
    	require(os);
	}

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *      ERC1155 OVERRIDE ( Used for supply tracking )
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal override(ERC1155, ERC1155Supply) whenNotPaused {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }

    // The following function override is required by Solidity.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC1155, AccessControl)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

File 3 of 22 : ERC1155Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address account,
        uint256 id,
        uint256 value
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(account, id, value);
    }

    function burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory values
    ) public virtual {
        require(
            account == _msgSender() || isApprovedForAll(account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(account, ids, values);
    }
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

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

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

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

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

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

File 5 of 22 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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, _msgSender());
        _;
    }

    /**
     * @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 `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(uint160(account), 20),
                        " 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.
     */
    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.
     */
    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`.
     */
    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.
     *
     * [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.
     */
    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.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 6 of 22 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 8 of 22 : SignatureVerify.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

contract SignatureVerify
{
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                  SIGNATURE VERIFYING
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    function getMessageHash(
        address to,
        uint256[] calldata tokenIndices,
        uint256[] calldata mintAmounts,
        uint256 networkName,
        address contractAddress,
        uint256 nonce) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(
            to, 
            tokenIndices, 
            mintAmounts,
            networkName,
            contractAddress,
            nonce));
    }

    function getEthSignedMessageHash(bytes32 _messageHash) public pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", _messageHash));
    }

    function verify(
    // Address
        address signer,
        address to,

    // Token Request
        uint256[] calldata tokenIndices,
        uint256[] calldata mintAmounts,
        uint256 networkName,
        address contractAddress,
        uint256 nonce,

    // // Epoch Time
    //     uint256 epochTime,

    // Signature to compare to
        bytes memory signature) public pure returns (bool) {
        bytes32 messageHash = getMessageHash(to, 
        tokenIndices, 
        mintAmounts, 
        networkName, 
        contractAddress, 
        nonce);//, epochTime);
        bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);
        return recoverSigner(ethSignedMessageHash, signature) == signer;
    }

    function recoverSigner(
        bytes32 ethSignedMessageHash, 
        bytes memory signature) public pure returns (address) {
        (bytes32 r, bytes32 s, uint8 v) = splitSignature(signature);
        return ecrecover(ethSignedMessageHash, v, r, s);
    }

    function splitSignature(bytes memory sig) public pure returns (
        bytes32 r,
        bytes32 s,
        uint8 v) {
        require(sig.length == 65, "invalid signature length");
        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))
            v := byte(0, mload(add(sig, 96)))
        }
    }
}

File 9 of 22 : LootItems.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.0;

// Openzeppelin Contracts
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

// PlaySide Contracts
import "./Roles.sol";
import "./Items.sol";
import "./Settings.sol";
import "./ErrorCodes.sol";

contract LootItems is AccessControl, Roles, Settings
{
    using Strings for uint256;

    // Data Structure To Hold Each Tokens Information
    struct LootItem
    {
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                    SETTINGS
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // The cost of this token in wei
        // This can be updated later by calling updateLootItem
        uint256 WeiCost;

        // The total amount of this token possible
        uint256 TotalSupply;

        // The max mint per user
		// This could change per item if we store this data here instead of as a collection
        uint256 MaxMintPerUser;

        // The Uri of where the meta data is located
		// Each item is stored / can be stored 
        string Uri;

        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                       SALE
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
		// Its like this for simplicity, its possible to have this off 
		// 	chain but for now its stored data here

        // The cost of this token in wei
        uint256 WeiSaleCost;

        // If this item is on sale or not
        bool IsOnSale;

        // Purely exists to track if an item has been added to the mapping or not. 
        //  solidity doesnt have exists functionality for mappings
        bool exists;
    }

    // Keeps track of the token id count, starts at 1 to start the collection at 1
    uint256 private currentTokenId;

    // Data Structure To Hold All Loot Items
    mapping(uint256 => LootItem) lootItemList;

    // Holds the indicies for 
    uint256[] internal dailyStore;

    constructor()
    {
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                 ADD INITIAL ITEMS
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // Adding Initial Items Into The Mapping To Keep Track Of Costs And Total Supply
        //            Cost |  Supply Max                     URI   
        addLootItem(0.0 ether, 3183, 1, getTokenURI(Items.FOUNDERS_BASEBALL_BAT)       ,0.0 ether, false);
        addLootItem(0.0 ether, 1025, 1, getTokenURI(Items.FOUNDERS_BASEBALL_BAT_GOLD)  ,0.0 ether, false);
        addLootItem(0.0 ether, 394, 1, getTokenURI(Items.FOUNDERS_BASEBALL_CAP_GOLD)  ,0.0 ether, false);
        addLootItem(0.0 ether, 1222, 1, getTokenURI(Items.DIAMOND_CROWN_GOLD)          ,0.0 ether, false);
        addLootItem(0.0 ether, 3814, 1, getTokenURI(Items.CYBORG_JACKET)               ,0.0 ether, false);
        addLootItem(0.0 ether, 1367, 1, getTokenURI(Items.CYBORG_LED_CAPE)             ,0.0 ether, false);
        addLootItem(0.0 ether, 486, 1, getTokenURI(Items.CYBORG_GLOWING_SWORD)        ,0.0 ether, false);
        addLootItem(0.0 ether, 53, 1, getTokenURI(Items.CYBORG_HELMET)               ,0.0 ether, false);
        addLootItem(0.0 ether, 4516, 1, getTokenURI(Items.TROPICAL_BACKPACK_BLING)     ,0.0 ether, false);
        addLootItem(0.0 ether, 1812, 1, getTokenURI(Items.PINEAPPLE_SUNGLASSES)        ,0.0 ether, false);
        addLootItem(0.0 ether, 664, 1, getTokenURI(Items.BLOW_UP_DONUT_RING)          ,0.0 ether, false);
        addLootItem(0.0 ether, 102, 1, getTokenURI(Items.SUPER_SOAKER_3000)           ,0.0 ether, false);
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                 SERVER FUNCTIONALITY
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /**
        @dev Add a loot item into the mapping to track data for later. 
        For example: Costs in ether and total supply of this item
        WARNING: This will increment the current token ID so only add valid items 
        @param cost: The cost in ether for this item when purchasing through a store 
            ( Cannot be lower than 0 ) !!!! COST IS IN WEI !!!!
        @param totalSupply: The max number of items that can ever be obtained ( Cannot be lower than 0 )
        @param maxMintPerUser: The max one wallet address can mint ( Cannot be less than 0 ) 
        @param newURI: The address that is associated with the meta data for this token
        @param saleCost: The cost of this item when it goes on sale
        @param isOnSale: If this item is currently on sale or not
    */
    function addLootItem(
        uint256 cost, 
        uint256 totalSupply, 
        uint256 maxMintPerUser, 
        string memory newURI,
        uint256 saleCost,
        bool isOnSale ) public onlyRole(Roles.ROLE_SAFE) {
        // Cannot be lower than 0
        if(cost < 0) revert ErrorCodes.LootItem_CostError();
        // Check that the total supply is larger than 0
        if(totalSupply <= 0) revert ErrorCodes.LootItem_SupplyError();
        // Check _MaxMintPerUser was set
        if(maxMintPerUser <= 0) revert ErrorCodes.LootItem_MaxMintError();
        
        // Increment the token ID to track the current token that is being added
        currentTokenId++;

        // Finally return the item at that unique identifier
        lootItemList[currentTokenId] = 
            LootItem(cost, totalSupply, maxMintPerUser, newURI, saleCost, isOnSale, true);
    }

    /**
        @dev Updates an item in the existing array. 
            Will fail if the item doesnt exist in the array already
        For example: Costs in ether and total supply of this item 
        @param newCostinWei: The cost in wei for this item when purchasing through a store 
            ( Cannot be lower than 0 ) !!!! COST IS IN WEI !!!!
        @param newTotalSupply: The max number of items that can ever be obtained ( Cannot be lower than 0 )
        @param newMaxMintPerUser: The max one wallet address can mint ( Cannot be less than 0 ) 
        @param newURI: The address that is associated with the meta data for this token
        @param newSaleCostinWei: The cost of this item when it goes on sale
        @param isOnSale: If this item is currently on sale or not
    */
    function updateLootItem(uint256 tokenIndex, 
    uint256 newCostinWei,
    uint256 newTotalSupply,
    uint256 newMaxMintPerUser,
    string memory newURI, 
    uint256 newSaleCostinWei,
    bool isOnSale) public onlyRole(Roles.ROLE_SAFE) {
        lootItemList[tokenIndex] = LootItem(
            newCostinWei, 
            newTotalSupply, 
            newMaxMintPerUser, 
            newURI, 
            newSaleCostinWei, 
            isOnSale, 
            true);
    }

    /**
        @dev Removes a loot item from the mapping. 
        @param deleteIndex: The unique ID for the loot item that you want to delete. ( has to be in the array )
     */
    function removeLootItem(uint256 deleteIndex) public onlyRole(Roles.ROLE_SAFE) {
        delete lootItemList[deleteIndex];
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    PUBLIC GETTERS
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /**
        @dev Returns a loot item from the array
        @param id: A unique identifier of the item in this mapping, Should start at 1 -> 
        new items IDs should pick up off where the end of the array is. 
        ( Must be in the array to return a valid data set ) 
    */
    function getLootItem(uint256 id) public view returns (LootItem memory) {
        return lootItemList[id];
    }

    function getTokenURI(uint256 tokenIndex) internal view returns (string memory) {
        return string(abi.encodePacked(Settings.baseURI, tokenIndex.toString(), ".json"));
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    DAILY STORE
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    function setDailyStore(uint256[] calldata newDailyStore) public onlyRole(Roles.ROLE_SERVER) {
        dailyStore = newDailyStore;
    }

	/// @dev 
    function getDailyStore() public view returns (uint256[] memory) {
        return dailyStore;
    }
}

File 10 of 22 : Roles.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// Openzeppelin Contracts
import "@openzeppelin/contracts/access/AccessControl.sol";

contract Roles is AccessControl {
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                                ROLES
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// Description: This role is for the Gnosis safe to ensure actions taken are approved by more than 1 person
    /// Permissions:
    /// - setURI
    /// - setPause
    /// - unpause
    /// - addLootItem
    /// - updateLootItem
    /// - removeLootItem
    /// - setSignerAddress
    /// - setDailyStoreActive
    bytes32 internal constant ROLE_SAFE = keccak256("ROLE_SAFE");

    /// Description: The role of the server to update daily store and setting the daily store active or not
    /// Permissions:
    /// - setDailyStore
    /// - setDailyStoreActive
    bytes32 internal constant ROLE_SERVER = keccak256("ROLE_SERVER");
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    constructor() {
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // *                    SET ROLES
        // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        // Give every role to the owner of the contract
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);

        _setRoleAdmin(ROLE_SAFE, DEFAULT_ADMIN_ROLE);
        _setRoleAdmin(ROLE_SERVER, DEFAULT_ADMIN_ROLE);

        _grantRole(Roles.ROLE_SAFE, msg.sender);
        _grantRole(Roles.ROLE_SERVER, msg.sender);

        // Aditional Roles also set in Settings.sol constructor
    }
}

File 11 of 22 : Items.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

library Items 
{
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    INITIAL ITEMS
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    uint256 constant public FOUNDERS_BASEBALL_BAT       = 1;
    uint256 constant public FOUNDERS_BASEBALL_BAT_GOLD  = 2;
    uint256 constant public FOUNDERS_BASEBALL_CAP_GOLD  = 3;
    uint256 constant public DIAMOND_CROWN_GOLD          = 4;
    uint256 constant public CYBORG_JACKET               = 5;
    uint256 constant public CYBORG_LED_CAPE             = 6;
    uint256 constant public CYBORG_GLOWING_SWORD        = 7;
    uint256 constant public CYBORG_HELMET               = 8;
    uint256 constant public TROPICAL_BACKPACK_BLING     = 9;
    uint256 constant public PINEAPPLE_SUNGLASSES        = 10;
    uint256 constant public BLOW_UP_DONUT_RING          = 11;
    uint256 constant public SUPER_SOAKER_3000           = 12;
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}

File 12 of 22 : Settings.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// Openzeppelin Contracts
import "@openzeppelin/contracts/access/AccessControl.sol";

// PlaySide Contracts
import "./Roles.sol";

contract Settings is AccessControl, Roles
{
    // The base URI for each token
    string public baseURI       	= "https://dwtd.playsidestudios-devel.com/loot/founders/metadata/";

    // The signing address on server side. This address signs the data on the server when users are trying to mintClaim
    address public signerAddress    = 0x6aE227412369c26Ab99cD457c393234f1b5a1a13;

    // If the daily store is active
    bool public dailyStoreActive    = false;

	// This is a hard coded reference to the current network that this contract is being deployed to
	// 	!!! ENSURE YOU CHANGE THIS WHEN DEPLOYING A NEW CONTRACT !!!
	uint256 public blockchain = 1;

	// If the claim function is active or not, this is a safeguard to pause this functionality
	// 	Prefer pausing the contract instead though
	bool public claimActive = true;

    constructor()
    {
        // Set Signer / Server Permissions
        _grantRole(Roles.ROLE_SERVER, signerAddress);
    }

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                        SERVER
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// @dev Sets the daily store active, this will allow the mintDailyStore function to be called.
    /// @param active: The next status of the dailyStoreActive bool. 
    /// True: The mintDailyStore will become active and users can mint whatever they want from the daily store array.
    /// False: This will lock the daily store function stopping users from using the mint function.
    function setDailyStoreActive(bool active) public onlyRole(Roles.ROLE_SERVER) {
        dailyStoreActive = active;
    }

	/// @dev Sets the claim mint function active or not
	/// @param active: The next status of the claim active mint function
	// 		Used to pause or unpause the mint claim function
	function setClaimActive(bool active) public onlyRole(Roles.ROLE_SERVER) {
		claimActive = active;
	}

    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                        SAFE
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /// @dev Sets the current signer address, this is the address that signs on the server side to validate signatures
    /// @param newSignerAddress: The address that signs the data that is passed from the dapp to the contract.
    function setSignerAddress(address newSignerAddress) public onlyRole(Roles.ROLE_SAFE) {
        signerAddress = newSignerAddress;
    }

}

File 13 of 22 : ErrorCodes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

library ErrorCodes {
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // *                    ERROR MESSAGES
    // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    // Mint Errors
    error SoldOut();
    error SignatureVerify();
    error ContractPaused();
    error WhitelistActive();
    error RequestedIncorrectAmount();
    error PublicSaleInactive();
    error NotInDailyStore();
    error InsufficientFunds(uint256 Expected, uint256 Actual);
    error MaxAmountMinted(uint256 Expected, uint256 Actual);
    error NetworkMissmatch();
    error ClaimMintDisabled();
    error IncorrectContractSignature();
    error DailyStoreInactive();

    // General Errors
    error ArrayMissmatch();

    // Adding Loot Item Errors
    error LootItem_CostError();
    error LootItem_SupplyError();
    error LootItem_MaxMintError();
    error LootItem_ItemDoesntExist();
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 22 : 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 19 of 22 : 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 20 of 22 : 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 21 of 22 : 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 22 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayMissmatch","type":"error"},{"inputs":[],"name":"ClaimMintDisabled","type":"error"},{"inputs":[],"name":"DailyStoreInactive","type":"error"},{"inputs":[],"name":"IncorrectContractSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"Expected","type":"uint256"},{"internalType":"uint256","name":"Actual","type":"uint256"}],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"LootItem_CostError","type":"error"},{"inputs":[],"name":"LootItem_ItemDoesntExist","type":"error"},{"inputs":[],"name":"LootItem_MaxMintError","type":"error"},{"inputs":[],"name":"LootItem_SupplyError","type":"error"},{"inputs":[],"name":"NetworkMissmatch","type":"error"},{"inputs":[],"name":"NotInDailyStore","type":"error"},{"inputs":[],"name":"RequestedIncorrectAmount","type":"error"},{"inputs":[],"name":"SignatureVerify","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"maxMintPerUser","type":"uint256"},{"internalType":"string","name":"newURI","type":"string"},{"internalType":"uint256","name":"saleCost","type":"uint256"},{"internalType":"bool","name":"isOnSale","type":"bool"}],"name":"addLootItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockchain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dailyStoreActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDailyStore","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getLootItem","outputs":[{"components":[{"internalType":"uint256","name":"WeiCost","type":"uint256"},{"internalType":"uint256","name":"TotalSupply","type":"uint256"},{"internalType":"uint256","name":"MaxMintPerUser","type":"uint256"},{"internalType":"string","name":"Uri","type":"string"},{"internalType":"uint256","name":"WeiSaleCost","type":"uint256"},{"internalType":"bool","name":"IsOnSale","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"}],"internalType":"struct LootItems.LootItem","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIndices","type":"uint256[]"},{"internalType":"uint256[]","name":"mintAmounts","type":"uint256[]"},{"internalType":"uint256","name":"networkName","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","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":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIndices","type":"uint256[]"},{"internalType":"uint256[]","name":"mintAmounts","type":"uint256[]"},{"internalType":"uint256","name":"networkName","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIndices","type":"uint256[]"},{"internalType":"uint256[]","name":"mintAmounts","type":"uint256[]"}],"name":"mintDailyStore","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"deleteIndex","type":"uint256"}],"name":"removeLootItem","outputs":[],"stateMutability":"nonpayable","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"newDailyStore","type":"uint256[]"}],"name":"setDailyStore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setDailyStoreActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSignerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"},{"internalType":"uint256","name":"newCostinWei","type":"uint256"},{"internalType":"uint256","name":"newTotalSupply","type":"uint256"},{"internalType":"uint256","name":"newMaxMintPerUser","type":"uint256"},{"internalType":"string","name":"newURI","type":"string"},{"internalType":"uint256","name":"newSaleCostinWei","type":"uint256"},{"internalType":"bool","name":"isOnSale","type":"bool"}],"name":"updateLootItem","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":"signer","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIndices","type":"uint256[]"},{"internalType":"uint256[]","name":"mintAmounts","type":"uint256[]"},{"internalType":"uint256","name":"networkName","type":"uint256"},{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052603e60808181529062004afa60a0398051620000299160069160209091019062000865565b50600780546001600160a81b031916736ae227412369c26ab99cd457c393234f1b5a1a13179055600160088190556009805460ff191690911790553480156200007157600080fd5b5060405180608001604052806047815260200162004ab360479139620000978162000265565b506004805460ff19169055620000af6000336200027e565b620000cb60008051602062004b38833981519152600062000322565b620000e760008051602062004b58833981519152600062000322565b6200010260008051602062004b38833981519152336200027e565b6200011d60008051602062004b58833981519152336200027e565b600754620001459060008051602062004b58833981519152906001600160a01b03166200027e565b620001646000610c6f60016200015b816200036d565b600080620003b0565b6200017b600061040160016200015b60026200036d565b62000192600061018a60016200015b60036200036d565b620001a960006104c660016200015b60046200036d565b620001c06000610ee660016200015b60056200036d565b620001d7600061055760016200015b60066200036d565b620001ee60006101e660016200015b60076200036d565b620002046000603560016200015b60086200036d565b6200021b60006111a460016200015b60096200036d565b62000232600061071460016200015b600a6200036d565b62000249600061029860016200015b600b6200036d565b6200025f6000606660016200015b600c6200036d565b62000c22565b80516200027a90600290602084019062000865565b5050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff166200027a5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002de3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260036020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b606060066200038783620004e260201b620018fe1760201c565b6040516020016200039a92919062000929565b6040516020818303038152906040529050919050565b60008051602062004b38833981519152620003cc8133620005ff565b60008611620003ee5760405163995a889f60e01b815260040160405180910390fd5b60008511620004105760405163128ef3dd60e11b815260040160405180910390fd5b600a8054906000620004228362000b95565b90915550506040805160e0810182528881526020808201898152828401898152606084018981526080850189905287151560a0860152600160c08601819052600a546000908152600b86529690962085518155925195830195909555516002820155925180519293926200049d926003850192019062000865565b506080820151600482015560a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff199093169290921717905550505050505050565b606081620005075750506040805180820190915260018152600360fc1b602082015290565b8160005b81156200053757806200051e8162000b95565b91506200052f9050600a8362000ab8565b91506200050b565b6000816001600160401b0381111562000554576200055462000c0c565b6040519080825280601f01601f1916602001820160405280156200057f576020820181803683370190505b5090505b8415620005f7576200059760018362000af1565b9150620005a6600a8662000bb3565b620005b390603062000a9d565b60f81b818381518110620005cb57620005cb62000bf6565b60200101906001600160f81b031916908160001a905350620005ef600a8662000ab8565b945062000583565b949350505050565b60008281526003602090815260408083206001600160a01b038516845290915290205460ff166200027a576200064b816001600160a01b03166014620006a560201b62001a031760201c565b6200066183602062001a03620006a5821b17811c565b60405160200162000674929190620009ef565b60408051601f198184030181529082905262461bcd60e51b82526200069c9160040162000a68565b60405180910390fd5b60606000620006b683600262000acf565b620006c390600262000a9d565b6001600160401b03811115620006dd57620006dd62000c0c565b6040519080825280601f01601f19166020018201604052801562000708576020820181803683370190505b509050600360fc1b8160008151811062000726576200072662000bf6565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000758576200075862000bf6565b60200101906001600160f81b031916908160001a90535060006200077e84600262000acf565b6200078b90600162000a9d565b90505b60018111156200080d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110620007c357620007c362000bf6565b1a60f81b828281518110620007dc57620007dc62000bf6565b60200101906001600160f81b031916908160001a90535060049490941c93620008058162000b3e565b90506200078e565b5083156200085e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016200069c565b9392505050565b828054620008739062000b58565b90600052602060002090601f016020900481019282620008975760008555620008e2565b82601f10620008b257805160ff1916838001178555620008e2565b82800160010185558215620008e2579182015b82811115620008e2578251825591602001919060010190620008c5565b50620008f0929150620008f4565b5090565b5b80821115620008f05760008155600101620008f5565b600081516200091f81856020860162000b0b565b9290920192915050565b600080845481600182811c9150808316806200094657607f831692505b60208084108214156200096757634e487b7160e01b86526022600452602486fd5b8180156200097e57600181146200099057620009bf565b60ff19861689528489019650620009bf565b60008b81526020902060005b86811015620009b75781548b8201529085019083016200099c565b505084890196505b505050505050620009e6620009d582866200090b565b64173539b7b760d91b815260050190565b95945050505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835162000a2981601785016020880162000b0b565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835162000a5c81602884016020880162000b0b565b01602801949350505050565b602081526000825180602084015262000a8981604085016020870162000b0b565b601f01601f19169190910160400192915050565b6000821982111562000ab35762000ab362000bca565b500190565b60008262000aca5762000aca62000be0565b500490565b600081600019048311821515161562000aec5762000aec62000bca565b500290565b60008282101562000b065762000b0662000bca565b500390565b60005b8381101562000b2857818101518382015260200162000b0e565b8381111562000b38576000848401525b50505050565b60008162000b505762000b5062000bca565b506000190190565b600181811c9082168062000b6d57607f821691505b6020821081141562000b8f57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141562000bac5762000bac62000bca565b5060010190565b60008262000bc55762000bc562000be0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b613e818062000c326000396000f3fe60806040526004361061027c5760003560e01c80636b20c4541161014f578063a7bb5803116100c1578063e958cee81161007a578063e958cee8146107e8578063e985e9c5146107fb578063f242432a14610844578063f401f43314610864578063f5298aca14610884578063fa540801146108a457600080fd5b8063a7bb58031461070e578063b30eee541461074c578063bd85b0391461076c578063d431b1ac14610799578063d4a6a2fd146107ae578063d547741f146107c857600080fd5b806391d148541161011357806391d148541461063b57806395d89b411461065b57806397aba7f914610698578063a217fddf146106b8578063a22cb465146106cd578063a76db106146106ed57600080fd5b80636b20c454146105a65780636c0360eb146105c657806371102d6a146105db57806373417b09146105fb5780637d94507b1461061b57600080fd5b80632eb2c2d6116101f3578063451c7c18116101ac578063451c7c18146104d15780634e1273f4146104f15780634f558e79146105115780635b7633d0146105405780635c975abb1461057857806364a0b1261461059057600080fd5b80632eb2c2d6146104275780632f2ff15d1461044757806336568abe146104675780633bbab129146104875780633ccfd60b146104a75780633f4ba83a146104bc57600080fd5b80630e89341c116102455780630e89341c146103485780631569983c14610368578063248a9ca314610395578063281c9fca146103c55780632be85a3c146103e55780632dad0e121461040757600080fd5b8062fdd58e1461028157806301ffc9a7146102b457806302fe5305146102e4578063046dc1661461030657806306fdde0314610326575b600080fd5b34801561028d57600080fd5b506102a161029c36600461323d565b6108c4565b6040519081526020015b60405180910390f35b3480156102c057600080fd5b506102d46102cf366004613562565b61095b565b60405190151581526020016102ab565b3480156102f057600080fd5b506103046102ff36600461359c565b61096c565b005b34801561031257600080fd5b50610304610321366004612ec8565b610992565b34801561033257600080fd5b5061033b6109ce565b6040516102ab9190613900565b34801561035457600080fd5b5061033b6103633660046134ea565b6109ea565b34801561037457600080fd5b506103886103833660046134ea565b610a8f565b6040516102ab9190613b2c565b3480156103a157600080fd5b506102a16103b03660046134ea565b60009081526003602052604090206001015490565b3480156103d157600080fd5b506103046103e03660046134cf565b610bd1565b3480156103f157600080fd5b506103fa610c1b565b6040516102ab91906138bf565b34801561041357600080fd5b5061030461042236600461336a565b610c73565b34801561043357600080fd5b50610304610442366004612ff1565b610cb0565b34801561045357600080fd5b50610304610462366004613503565b610d47565b34801561047357600080fd5b50610304610482366004613503565b610d72565b34801561049357600080fd5b506103046104a23660046134ea565b610dec565b3480156104b357600080fd5b50610304610e4a565b3480156104c857600080fd5b50610304610ecc565b3480156104dd57600080fd5b506102d46104ec366004612f16565b610ef0565b3480156104fd57600080fd5b506103fa61050c36600461329a565b610f41565b34801561051d57600080fd5b506102d461052c3660046134ea565b600090815260056020526040902054151590565b34801561054c57600080fd5b50600754610560906001600160a01b031681565b6040516001600160a01b0390911681526020016102ab565b34801561058457600080fd5b5060045460ff166102d4565b34801561059c57600080fd5b506102a160085481565b3480156105b257600080fd5b506103046105c13660046131a0565b61106a565b3480156105d257600080fd5b5061033b6110ad565b3480156105e757600080fd5b506103046105f63660046135d0565b61113b565b34801561060757600080fd5b506103046106163660046134cf565b611264565b34801561062757600080fd5b50610304610636366004613642565b6112a3565b34801561064757600080fd5b506102d4610656366004613503565b611373565b34801561066757600080fd5b5061033b604051806040016040528060118152602001701115d51117d213d311115494d7d313d3d5607a1b81525081565b3480156106a457600080fd5b506105606106b3366004613526565b61139e565b3480156106c457600080fd5b506102a1600081565b3480156106d957600080fd5b506103046106e8366004613213565b61141d565b3480156106f957600080fd5b506007546102d490600160a01b900460ff1681565b34801561071a57600080fd5b5061072e61072936600461359c565b611428565b60408051938452602084019290925260ff16908201526060016102ab565b34801561075857600080fd5b50610304610767366004613416565b61149c565b34801561077857600080fd5b506102a16107873660046134ea565b60009081526005602052604090205490565b3480156107a557600080fd5b5061030461161c565b3480156107ba57600080fd5b506009546102d49060ff1681565b3480156107d457600080fd5b506103046107e3366004613503565b61163d565b6103046107f63660046133ab565b611663565b34801561080757600080fd5b506102d4610816366004612ee3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561085057600080fd5b5061030461085f36600461309a565b6117de565b34801561087057600080fd5b506102a161087f3660046130fe565b611823565b34801561089057600080fd5b5061030461089f366004613267565b611868565b3480156108b057600080fd5b506102a16108bf3660046134ea565b6118ab565b60006001600160a01b0383166109355760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061096682611ba5565b92915050565b600080516020613e2c8339815191526109858133611bca565b61098e82611c2e565b5050565b600080516020613e2c8339815191526109ab8133611bca565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b604051806060016040528060258152602001613e076025913981565b6000818152600b60205260409020600301805460609190610a0a90613c5d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690613c5d565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b50505050509050919050565b610ad36040518060e0016040528060008152602001600081526020016000815260200160608152602001600081526020016000151581526020016000151581525090565b600b60008381526020019081526020016000206040518060e0016040529081600082015481526020016001820154815260200160028201548152602001600382018054610b1f90613c5d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4b90613c5d565b8015610b985780601f10610b6d57610100808354040283529160200191610b98565b820191906000526020600020905b815481529060010190602001808311610b7b57829003601f168201915b50505091835250506004820154602082015260059091015460ff8082161515604084015261010090910416151560609091015292915050565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc24610bfc8133611bca565b5060078054911515600160a01b0260ff60a01b19909216919091179055565b6060600c805480602002602001604051908101604052809291908181526020018280548015610c6957602002820191906000526020600020905b815481526020019060010190808311610c55575b5050505050905090565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc24610c9e8133611bca565b610caa600c8484612c59565b50505050565b6001600160a01b038516331480610ccc5750610ccc8533610816565b610d335760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161092c565b610d408585858585611c41565b5050505050565b600082815260036020526040902060010154610d638133611bca565b610d6d8383611deb565b505050565b6001600160a01b0381163314610de25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161092c565b61098e8282611e71565b600080516020613e2c833981519152610e058133611bca565b6000828152600b60205260408120818155600181018290556002810182905590610e326003830182612ca4565b5060006004820155600501805461ffff191690555050565b600080516020613e2c833981519152610e638133611bca565b604051600090731e9c6144c06bb4b21586e11bb9d0d526dc590c9d9047908381818185875af1925050503d8060008114610eb9576040519150601f19603f3d011682016040523d82523d6000602084013e610ebe565b606091505b505090508061098e57600080fd5b600080516020613e2c833981519152610ee58133611bca565b610eed611ed8565b50565b600080610f038b8b8b8b8b8b8b8b611823565b90506000610f10826118ab565b90508c6001600160a01b0316610f26828661139e565b6001600160a01b0316149d9c50505050505050505050505050565b60608151835114610fa65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161092c565b600083516001600160401b03811115610fc157610fc1613d35565b604051908082528060200260200182016040528015610fea578160200160208202803683370190505b50905060005b84518110156110625761103585828151811061100e5761100e613d1f565b602002602001015185838151811061102857611028613d1f565b60200260200101516108c4565b82828151811061104757611047613d1f565b602090810291909101015261105b81613cc4565b9050610ff0565b509392505050565b6001600160a01b03831633148061108657506110868333610816565b6110a25760405162461bcd60e51b815260040161092c9061399f565b610d6d838383611f6b565b600680546110ba90613c5d565b80601f01602080910402602001604051908101604052809291908181526020018280546110e690613c5d565b80156111335780601f1061110857610100808354040283529160200191611133565b820191906000526020600020905b81548152906001019060200180831161111657829003601f168201915b505050505081565b600080516020613e2c8339815191526111548133611bca565b600086116111755760405163995a889f60e01b815260040160405180910390fd5b600085116111965760405163128ef3dd60e11b815260040160405180910390fd5b600a80549060006111a683613cc4565b90915550506040805160e0810182528881526020808201898152828401898152606084018981526080850189905287151560a0860152600160c08601819052600a546000908152600b865296909620855181559251958301959095555160028201559251805192939261121f9260038501920190612cde565b506080820151600482015560a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff199093169290921717905550505050505050565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc2461128f8133611bca565b506009805460ff1916911515919091179055565b600080516020613e2c8339815191526112bc8133611bca565b6040805160e0810182528881526020808201898152828401898152606084018981526080850189905287151560a0860152600160c0860181905260008f8152600b865296909620855181559251958301959095555160028201559251805192939261132d9260038501920190612cde565b506080820151600482015560a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff19909316929092171790555050505050505050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806000806113ad85611428565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611408573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61098e3383836120f9565b6000806000835160411461147e5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e6774680000000000000000604482015260640161092c565b50505060208101516040820151606090920151909260009190911a90565b60045460ff16156114bf5760405162461bcd60e51b815260040161092c906139e8565b60095460ff166114e257604051630178be1b60e51b815260040160405180910390fd5b6007546001600160a01b031633148061153057600754611513906001600160a01b0316338b8b8b8b8b8b8b8b610ef0565b61153057604051637d95a3a960e11b815260040160405180910390fd5b600854851461155257604051634750a15960e01b815260040160405180910390fd5b6001600160a01b038416301461157b57604051630fa3cce960e21b815260040160405180910390fd5b6115898989898960006121da565b61159589898989612345565b611611338a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201829052506040805160208101909152908152925061243c915050565b505050505050505050565b600080516020613e2c8339815191526116358133611bca565b610eed6125d0565b6000828152600360205260409020600101546116598133611bca565b610d6d8383611e71565b60045460ff16156116865760405162461bcd60e51b815260040161092c906139e8565b600754600160a01b900460ff166116b0576040516367f86d9f60e01b815260040160405180910390fd5b60005b83811015611753576000805b600c5481101561172157600c81815481106116dc576116dc613d1f565b90600052602060002001548787858181106116f9576116f9613d1f565b90506020020135141561170f5760019150611721565b8061171981613cc4565b9150506116bf565b508061174057604051630e00a0e960e41b815260040160405180910390fd5b508061174b81613cc4565b9150506116b3565b506117628484848460016121da565b610caa338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201829052506040805160208101909152908152925061243c915050565b6001600160a01b0385163314806117fa57506117fa8533610816565b6118165760405162461bcd60e51b815260040161092c9061399f565b610d408585858585612628565b60008888888888888888604051602001611844989796959493929190613753565b60405160208183030381529060405280519060200120905098975050505050505050565b6001600160a01b03831633148061188457506118848333610816565b6118a05760405162461bcd60e51b815260040161092c9061399f565b610d6d83838361274b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6060816119225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561194c578061193681613cc4565b91506119459050600a83613bd0565b9150611926565b6000816001600160401b0381111561196657611966613d35565b6040519080825280601f01601f191660200182016040528015611990576020820181803683370190505b5090505b84156119fb576119a5600183613c03565b91506119b2600a86613cdf565b6119bd906030613bb8565b60f81b8183815181106119d2576119d2613d1f565b60200101906001600160f81b031916908160001a9053506119f4600a86613bd0565b9450611994565b949350505050565b60606000611a12836002613be4565b611a1d906002613bb8565b6001600160401b03811115611a3457611a34613d35565b6040519080825280601f01601f191660200182016040528015611a5e576020820181803683370190505b509050600360fc1b81600081518110611a7957611a79613d1f565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aa857611aa8613d1f565b60200101906001600160f81b031916908160001a9053506000611acc846002613be4565b611ad7906001613bb8565b90505b6001811115611b4f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b0b57611b0b613d1f565b1a60f81b828281518110611b2157611b21613d1f565b60200101906001600160f81b031916908160001a90535060049490941c93611b4881613c46565b9050611ada565b508315611b9e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161092c565b9392505050565b60006001600160e01b03198216637965db0b60e01b148061096657506109668261284c565b611bd48282611373565b61098e57611bec816001600160a01b03166014611a03565b611bf7836020611a03565b604051602001611c089291906137a7565b60408051601f198184030181529082905262461bcd60e51b825261092c91600401613900565b805161098e906002906020840190612cde565b8151835114611c625760405162461bcd60e51b815260040161092c90613ae4565b6001600160a01b038416611c885760405162461bcd60e51b815260040161092c90613a12565b33611c9781878787878761289c565b60005b8451811015611d7d576000858281518110611cb757611cb7613d1f565b602002602001015190506000858381518110611cd557611cd5613d1f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d255760405162461bcd60e51b815260040161092c90613a9a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d62908490613bb8565b9250508190555050505080611d7690613cc4565b9050611c9a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dcd9291906138d2565b60405180910390a4611de38187878787876128cd565b505050505050565b611df58282611373565b61098e5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e2d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e7b8282611373565b1561098e5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60045460ff16611f215760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161092c565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611f915760405162461bcd60e51b815260040161092c90613a57565b8051825114611fb25760405162461bcd60e51b815260040161092c90613ae4565b6000339050611fd58185600086866040518060200160405280600081525061289c565b60005b835181101561209a576000848281518110611ff557611ff5613d1f565b60200260200101519050600084838151811061201357612013613d1f565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120635760405162461bcd60e51b815260040161092c9061395b565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061209281613cc4565b915050611fd8565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120eb9291906138d2565b60405180910390a450505050565b816001600160a01b0316836001600160a01b0316141561216d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161092c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8315806121e75750838214155b15612205576040516302443e3960e41b815260040160405180910390fd5b6000805b8581101561233c57600087878381811061222557612225613d1f565b905060200201359050600061223982610a8f565b60008381526005602052604081205491925088888681811061225d5761225d613d1f565b90506020020135905086156122a4578260a00151612287578251612282908290613be4565b612297565b8083608001516122979190613be4565b6122a19087613bb8565b95505b600081116122c5576040516306e9485160e01b815260040160405180910390fd5b60208301516122d48284613bb8565b11156122f3576040516352df9fe560e01b815260040160405180910390fd5b8680156122ff57508534105b156123255760405162fae2d560e21b81526004810187905234602482015260440161092c565b50505050808061233490613cc4565b915050612209565b50505050505050565b8260005b81811015611de357600086868381811061236557612365613d1f565b905060200201359050600085858481811061238257612382613d1f565b336000908152600d6020908152604080832088845282528220549202939093013593506123b191508390613bb8565b905060006123be84610a8f565b60c08101519091506123e35760405163d19c6cc760e01b815260040160405180910390fd5b80604001518211156124085760405163128ef3dd60e11b815260040160405180910390fd5b50336000908152600d602090815260408083209583529490529290922091909155508061243481613cc4565b915050612349565b6001600160a01b03841661249c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161092c565b81518351146124bd5760405162461bcd60e51b815260040161092c90613ae4565b336124cd8160008787878761289c565b60005b8451811015612568578381815181106124eb576124eb613d1f565b602002602001015160008087848151811061250857612508613d1f565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546125509190613bb8565b9091555081905061256081613cc4565b9150506124d0565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125b99291906138d2565b60405180910390a4610d40816000878787876128cd565b60045460ff16156125f35760405162461bcd60e51b815260040161092c906139e8565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f4e3390565b6001600160a01b03841661264e5760405162461bcd60e51b815260040161092c90613a12565b3361266d81878761265e88612a38565b61266788612a38565b8761289c565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126ae5760405162461bcd60e51b815260040161092c90613a9a565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126eb908490613bb8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461233c828888888888612a83565b6001600160a01b0383166127715760405162461bcd60e51b815260040161092c90613a57565b336127a08185600061278287612a38565b61278b87612a38565b6040518060200160405280600081525061289c565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156127e15760405162461bcd60e51b815260040161092c9061395b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b03198216636cdb3d1360e11b148061287d57506001600160e01b031982166303a24d0760e21b145b8061096657506301ffc9a760e01b6001600160e01b0319831614610966565b60045460ff16156128bf5760405162461bcd60e51b815260040161092c906139e8565b611de3868686868686612b4d565b6001600160a01b0384163b15611de35760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612911908990899088908890889060040161381c565b602060405180830381600087803b15801561292b57600080fd5b505af192505050801561295b575060408051601f3d908101601f191682019092526129589181019061357f565b60015b612a0857612967613d4b565b806308c379a014156129a1575061297c613d67565b8061298757506129a3565b8060405162461bcd60e51b815260040161092c9190613900565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161092c565b6001600160e01b0319811663bc197c8160e01b1461233c5760405162461bcd60e51b815260040161092c90613913565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a7257612a72613d1f565b602090810291909101015292915050565b6001600160a01b0384163b15611de35760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ac7908990899088908890889060040161387a565b602060405180830381600087803b158015612ae157600080fd5b505af1925050508015612b11575060408051601f3d908101601f19168201909252612b0e9181019061357f565b60015b612b1d57612967613d4b565b6001600160e01b0319811663f23a6e6160e01b1461233c5760405162461bcd60e51b815260040161092c90613913565b6001600160a01b038516612bd45760005b8351811015612bd257828181518110612b7957612b79613d1f565b602002602001015160056000868481518110612b9757612b97613d1f565b602002602001015181526020019081526020016000206000828254612bbc9190613bb8565b90915550612bcb905081613cc4565b9050612b5e565b505b6001600160a01b038416611de35760005b835181101561233c57828181518110612c0057612c00613d1f565b602002602001015160056000868481518110612c1e57612c1e613d1f565b602002602001015181526020019081526020016000206000828254612c439190613c03565b90915550612c52905081613cc4565b9050612be5565b828054828255906000526020600020908101928215612c94579160200282015b82811115612c94578235825591602001919060010190612c79565b50612ca0929150612d52565b5090565b508054612cb090613c5d565b6000825580601f10612cc0575050565b601f016020900490600052602060002090810190610eed9190612d52565b828054612cea90613c5d565b90600052602060002090601f016020900481019282612d0c5760008555612c94565b82601f10612d2557805160ff1916838001178555612c94565b82800160010185558215612c94579182015b82811115612c94578251825591602001919060010190612d37565b5b80821115612ca05760008155600101612d53565b80356001600160a01b0381168114612d7e57600080fd5b919050565b60008083601f840112612d9557600080fd5b5081356001600160401b03811115612dac57600080fd5b6020830191508360208260051b8501011115612dc757600080fd5b9250929050565b600082601f830112612ddf57600080fd5b81356020612dec82613b95565b604051612df98282613c98565b8381528281019150858301600585901b87018401881015612e1957600080fd5b60005b85811015612e3857813584529284019290840190600101612e1c565b5090979650505050505050565b80358015158114612d7e57600080fd5b600082601f830112612e6657600080fd5b81356001600160401b03811115612e7f57612e7f613d35565b604051612e96601f8301601f191660200182613c98565b818152846020838601011115612eab57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612eda57600080fd5b611b9e82612d67565b60008060408385031215612ef657600080fd5b612eff83612d67565b9150612f0d60208401612d67565b90509250929050565b6000806000806000806000806000806101008b8d031215612f3657600080fd5b612f3f8b612d67565b9950612f4d60208c01612d67565b985060408b01356001600160401b0380821115612f6957600080fd5b612f758e838f01612d83565b909a50985060608d0135915080821115612f8e57600080fd5b612f9a8e838f01612d83565b909850965060808d01359550869150612fb560a08e01612d67565b945060c08d0135935060e08d0135915080821115612fd257600080fd5b50612fdf8d828e01612e55565b9150509295989b9194979a5092959850565b600080600080600060a0868803121561300957600080fd5b61301286612d67565b945061302060208701612d67565b935060408601356001600160401b038082111561303c57600080fd5b61304889838a01612dce565b9450606088013591508082111561305e57600080fd5b61306a89838a01612dce565b9350608088013591508082111561308057600080fd5b5061308d88828901612e55565b9150509295509295909350565b600080600080600060a086880312156130b257600080fd5b6130bb86612d67565b94506130c960208701612d67565b9350604086013592506060860135915060808601356001600160401b038111156130f257600080fd5b61308d88828901612e55565b60008060008060008060008060c0898b03121561311a57600080fd5b61312389612d67565b975060208901356001600160401b038082111561313f57600080fd5b61314b8c838d01612d83565b909950975060408b013591508082111561316457600080fd5b506131718b828c01612d83565b9096509450506060890135925061318a60808a01612d67565b915060a089013590509295985092959890939650565b6000806000606084860312156131b557600080fd5b6131be84612d67565b925060208401356001600160401b03808211156131da57600080fd5b6131e687838801612dce565b935060408601359150808211156131fc57600080fd5b5061320986828701612dce565b9150509250925092565b6000806040838503121561322657600080fd5b61322f83612d67565b9150612f0d60208401612e45565b6000806040838503121561325057600080fd5b61325983612d67565b946020939093013593505050565b60008060006060848603121561327c57600080fd5b61328584612d67565b95602085013595506040909401359392505050565b600080604083850312156132ad57600080fd5b82356001600160401b03808211156132c457600080fd5b818501915085601f8301126132d857600080fd5b813560206132e582613b95565b6040516132f28282613c98565b8381528281019150858301600585901b870184018b101561331257600080fd5b600096505b8487101561333c5761332881612d67565b835260019690960195918301918301613317565b509650508601359250508082111561335357600080fd5b5061336085828601612dce565b9150509250929050565b6000806020838503121561337d57600080fd5b82356001600160401b0381111561339357600080fd5b61339f85828601612d83565b90969095509350505050565b600080600080604085870312156133c157600080fd5b84356001600160401b03808211156133d857600080fd5b6133e488838901612d83565b909650945060208701359150808211156133fd57600080fd5b5061340a87828801612d83565b95989497509550505050565b60008060008060008060008060c0898b03121561343257600080fd5b88356001600160401b038082111561344957600080fd5b6134558c838d01612d83565b909a50985060208b013591508082111561346e57600080fd5b61347a8c838d01612d83565b909850965060408b0135955086915061349560608c01612d67565b945060808b0135935060a08b01359150808211156134b257600080fd5b506134bf8b828c01612e55565b9150509295985092959890939650565b6000602082840312156134e157600080fd5b611b9e82612e45565b6000602082840312156134fc57600080fd5b5035919050565b6000806040838503121561351657600080fd5b82359150612f0d60208401612d67565b6000806040838503121561353957600080fd5b8235915060208301356001600160401b0381111561355657600080fd5b61336085828601612e55565b60006020828403121561357457600080fd5b8135611b9e81613df0565b60006020828403121561359157600080fd5b8151611b9e81613df0565b6000602082840312156135ae57600080fd5b81356001600160401b038111156135c457600080fd5b6119fb84828501612e55565b60008060008060008060c087890312156135e957600080fd5b86359550602087013594506040870135935060608701356001600160401b0381111561361457600080fd5b61362089828a01612e55565b9350506080870135915061363660a08801612e45565b90509295509295509295565b600080600080600080600060e0888a03121561365d57600080fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b0381111561368f57600080fd5b61369b8a828b01612e55565b93505060a088013591506136b160c08901612e45565b905092959891949750929550565b60006001600160fb1b038311156136d557600080fd5b8260051b8083863760009401938452509192915050565b600081518084526020808501945080840160005b8381101561371c57815187529582019590820190600101613700565b509495945050505050565b6000815180845261373f816020860160208601613c1a565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808b60601b16835261378361377c601485018b8d6136bf565b888a6136bf565b95865260609490941b90931660208501525060348301525060540195945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516137df816017850160208801613c1a565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613810816028840160208801613c1a565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613848908301866136ec565b828103606084015261385a81866136ec565b9050828103608084015261386e8185613727565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138b490830184613727565b979650505050505050565b602081526000611b9e60208301846136ec565b6040815260006138e560408301856136ec565b82810360208401526138f781856136ec565b95945050505050565b602081526000611b9e6020830184613727565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b602081528151602082015260208201516040820152604082015160608201526000606083015160e06080840152613b67610100840182613727565b9050608084015160a084015260a0840151151560c084015260c0840151151560e08401528091505092915050565b60006001600160401b03821115613bae57613bae613d35565b5060051b60200190565b60008219821115613bcb57613bcb613cf3565b500190565b600082613bdf57613bdf613d09565b500490565b6000816000190483118215151615613bfe57613bfe613cf3565b500290565b600082821015613c1557613c15613cf3565b500390565b60005b83811015613c35578181015183820152602001613c1d565b83811115610caa5750506000910152565b600081613c5557613c55613cf3565b506000190190565b600181811c90821680613c7157607f821691505b60208210811415613c9257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613cbd57613cbd613d35565b6040525050565b6000600019821415613cd857613cd8613cf3565b5060010190565b600082613cee57613cee613d09565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d645760046000803e5060005160e01c5b90565b600060443d1015613d755790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613da457505050505090565b8285019150815181811115613dbc5750505050505090565b843d8701016020828501011115613dd65750505050505090565b613de560208286010187613c98565b509095945050505050565b6001600160e01b031981168114610eed57600080fdfe4245414e5320484f4c44455253204c4f4f54202d2044756d62205761797320746f20446965390afdf79bc4e4af6aa57c245872b3a0d17015d6c1bd8fc7d14114249fa2b324a26469706673582212207be439aa5b0bb62fce3092663412fa5dcf271b6df0d8fdfb15b88fdcc77b7b8264736f6c6343000807003368747470733a2f2f647774642e706c61797369646573747564696f732d646576656c2e636f6d2f6c6f6f742f666f756e646572732f6d657461646174612f7b69647d2e6a736f6e68747470733a2f2f647774642e706c61797369646573747564696f732d646576656c2e636f6d2f6c6f6f742f666f756e646572732f6d657461646174612f390afdf79bc4e4af6aa57c245872b3a0d17015d6c1bd8fc7d14114249fa2b3247215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc24

Deployed Bytecode

0x60806040526004361061027c5760003560e01c80636b20c4541161014f578063a7bb5803116100c1578063e958cee81161007a578063e958cee8146107e8578063e985e9c5146107fb578063f242432a14610844578063f401f43314610864578063f5298aca14610884578063fa540801146108a457600080fd5b8063a7bb58031461070e578063b30eee541461074c578063bd85b0391461076c578063d431b1ac14610799578063d4a6a2fd146107ae578063d547741f146107c857600080fd5b806391d148541161011357806391d148541461063b57806395d89b411461065b57806397aba7f914610698578063a217fddf146106b8578063a22cb465146106cd578063a76db106146106ed57600080fd5b80636b20c454146105a65780636c0360eb146105c657806371102d6a146105db57806373417b09146105fb5780637d94507b1461061b57600080fd5b80632eb2c2d6116101f3578063451c7c18116101ac578063451c7c18146104d15780634e1273f4146104f15780634f558e79146105115780635b7633d0146105405780635c975abb1461057857806364a0b1261461059057600080fd5b80632eb2c2d6146104275780632f2ff15d1461044757806336568abe146104675780633bbab129146104875780633ccfd60b146104a75780633f4ba83a146104bc57600080fd5b80630e89341c116102455780630e89341c146103485780631569983c14610368578063248a9ca314610395578063281c9fca146103c55780632be85a3c146103e55780632dad0e121461040757600080fd5b8062fdd58e1461028157806301ffc9a7146102b457806302fe5305146102e4578063046dc1661461030657806306fdde0314610326575b600080fd5b34801561028d57600080fd5b506102a161029c36600461323d565b6108c4565b6040519081526020015b60405180910390f35b3480156102c057600080fd5b506102d46102cf366004613562565b61095b565b60405190151581526020016102ab565b3480156102f057600080fd5b506103046102ff36600461359c565b61096c565b005b34801561031257600080fd5b50610304610321366004612ec8565b610992565b34801561033257600080fd5b5061033b6109ce565b6040516102ab9190613900565b34801561035457600080fd5b5061033b6103633660046134ea565b6109ea565b34801561037457600080fd5b506103886103833660046134ea565b610a8f565b6040516102ab9190613b2c565b3480156103a157600080fd5b506102a16103b03660046134ea565b60009081526003602052604090206001015490565b3480156103d157600080fd5b506103046103e03660046134cf565b610bd1565b3480156103f157600080fd5b506103fa610c1b565b6040516102ab91906138bf565b34801561041357600080fd5b5061030461042236600461336a565b610c73565b34801561043357600080fd5b50610304610442366004612ff1565b610cb0565b34801561045357600080fd5b50610304610462366004613503565b610d47565b34801561047357600080fd5b50610304610482366004613503565b610d72565b34801561049357600080fd5b506103046104a23660046134ea565b610dec565b3480156104b357600080fd5b50610304610e4a565b3480156104c857600080fd5b50610304610ecc565b3480156104dd57600080fd5b506102d46104ec366004612f16565b610ef0565b3480156104fd57600080fd5b506103fa61050c36600461329a565b610f41565b34801561051d57600080fd5b506102d461052c3660046134ea565b600090815260056020526040902054151590565b34801561054c57600080fd5b50600754610560906001600160a01b031681565b6040516001600160a01b0390911681526020016102ab565b34801561058457600080fd5b5060045460ff166102d4565b34801561059c57600080fd5b506102a160085481565b3480156105b257600080fd5b506103046105c13660046131a0565b61106a565b3480156105d257600080fd5b5061033b6110ad565b3480156105e757600080fd5b506103046105f63660046135d0565b61113b565b34801561060757600080fd5b506103046106163660046134cf565b611264565b34801561062757600080fd5b50610304610636366004613642565b6112a3565b34801561064757600080fd5b506102d4610656366004613503565b611373565b34801561066757600080fd5b5061033b604051806040016040528060118152602001701115d51117d213d311115494d7d313d3d5607a1b81525081565b3480156106a457600080fd5b506105606106b3366004613526565b61139e565b3480156106c457600080fd5b506102a1600081565b3480156106d957600080fd5b506103046106e8366004613213565b61141d565b3480156106f957600080fd5b506007546102d490600160a01b900460ff1681565b34801561071a57600080fd5b5061072e61072936600461359c565b611428565b60408051938452602084019290925260ff16908201526060016102ab565b34801561075857600080fd5b50610304610767366004613416565b61149c565b34801561077857600080fd5b506102a16107873660046134ea565b60009081526005602052604090205490565b3480156107a557600080fd5b5061030461161c565b3480156107ba57600080fd5b506009546102d49060ff1681565b3480156107d457600080fd5b506103046107e3366004613503565b61163d565b6103046107f63660046133ab565b611663565b34801561080757600080fd5b506102d4610816366004612ee3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561085057600080fd5b5061030461085f36600461309a565b6117de565b34801561087057600080fd5b506102a161087f3660046130fe565b611823565b34801561089057600080fd5b5061030461089f366004613267565b611868565b3480156108b057600080fd5b506102a16108bf3660046134ea565b6118ab565b60006001600160a01b0383166109355760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b600061096682611ba5565b92915050565b600080516020613e2c8339815191526109858133611bca565b61098e82611c2e565b5050565b600080516020613e2c8339815191526109ab8133611bca565b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b604051806060016040528060258152602001613e076025913981565b6000818152600b60205260409020600301805460609190610a0a90613c5d565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690613c5d565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b50505050509050919050565b610ad36040518060e0016040528060008152602001600081526020016000815260200160608152602001600081526020016000151581526020016000151581525090565b600b60008381526020019081526020016000206040518060e0016040529081600082015481526020016001820154815260200160028201548152602001600382018054610b1f90613c5d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4b90613c5d565b8015610b985780601f10610b6d57610100808354040283529160200191610b98565b820191906000526020600020905b815481529060010190602001808311610b7b57829003601f168201915b50505091835250506004820154602082015260059091015460ff8082161515604084015261010090910416151560609091015292915050565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc24610bfc8133611bca565b5060078054911515600160a01b0260ff60a01b19909216919091179055565b6060600c805480602002602001604051908101604052809291908181526020018280548015610c6957602002820191906000526020600020905b815481526020019060010190808311610c55575b5050505050905090565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc24610c9e8133611bca565b610caa600c8484612c59565b50505050565b6001600160a01b038516331480610ccc5750610ccc8533610816565b610d335760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161092c565b610d408585858585611c41565b5050505050565b600082815260036020526040902060010154610d638133611bca565b610d6d8383611deb565b505050565b6001600160a01b0381163314610de25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161092c565b61098e8282611e71565b600080516020613e2c833981519152610e058133611bca565b6000828152600b60205260408120818155600181018290556002810182905590610e326003830182612ca4565b5060006004820155600501805461ffff191690555050565b600080516020613e2c833981519152610e638133611bca565b604051600090731e9c6144c06bb4b21586e11bb9d0d526dc590c9d9047908381818185875af1925050503d8060008114610eb9576040519150601f19603f3d011682016040523d82523d6000602084013e610ebe565b606091505b505090508061098e57600080fd5b600080516020613e2c833981519152610ee58133611bca565b610eed611ed8565b50565b600080610f038b8b8b8b8b8b8b8b611823565b90506000610f10826118ab565b90508c6001600160a01b0316610f26828661139e565b6001600160a01b0316149d9c50505050505050505050505050565b60608151835114610fa65760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161092c565b600083516001600160401b03811115610fc157610fc1613d35565b604051908082528060200260200182016040528015610fea578160200160208202803683370190505b50905060005b84518110156110625761103585828151811061100e5761100e613d1f565b602002602001015185838151811061102857611028613d1f565b60200260200101516108c4565b82828151811061104757611047613d1f565b602090810291909101015261105b81613cc4565b9050610ff0565b509392505050565b6001600160a01b03831633148061108657506110868333610816565b6110a25760405162461bcd60e51b815260040161092c9061399f565b610d6d838383611f6b565b600680546110ba90613c5d565b80601f01602080910402602001604051908101604052809291908181526020018280546110e690613c5d565b80156111335780601f1061110857610100808354040283529160200191611133565b820191906000526020600020905b81548152906001019060200180831161111657829003601f168201915b505050505081565b600080516020613e2c8339815191526111548133611bca565b600086116111755760405163995a889f60e01b815260040160405180910390fd5b600085116111965760405163128ef3dd60e11b815260040160405180910390fd5b600a80549060006111a683613cc4565b90915550506040805160e0810182528881526020808201898152828401898152606084018981526080850189905287151560a0860152600160c08601819052600a546000908152600b865296909620855181559251958301959095555160028201559251805192939261121f9260038501920190612cde565b506080820151600482015560a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff199093169290921717905550505050505050565b7f7215bf9368cc1afa4fa09d71b05b7c1d06e3e0b52d945ec91167a15a32dfcc2461128f8133611bca565b506009805460ff1916911515919091179055565b600080516020613e2c8339815191526112bc8133611bca565b6040805160e0810182528881526020808201898152828401898152606084018981526080850189905287151560a0860152600160c0860181905260008f8152600b865296909620855181559251958301959095555160028201559251805192939261132d9260038501920190612cde565b506080820151600482015560a08201516005909101805460c09093015115156101000261ff00199215159290921661ffff19909316929092171790555050505050505050565b60009182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000806000806113ad85611428565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa158015611408573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b61098e3383836120f9565b6000806000835160411461147e5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e6774680000000000000000604482015260640161092c565b50505060208101516040820151606090920151909260009190911a90565b60045460ff16156114bf5760405162461bcd60e51b815260040161092c906139e8565b60095460ff166114e257604051630178be1b60e51b815260040160405180910390fd5b6007546001600160a01b031633148061153057600754611513906001600160a01b0316338b8b8b8b8b8b8b8b610ef0565b61153057604051637d95a3a960e11b815260040160405180910390fd5b600854851461155257604051634750a15960e01b815260040160405180910390fd5b6001600160a01b038416301461157b57604051630fa3cce960e21b815260040160405180910390fd5b6115898989898960006121da565b61159589898989612345565b611611338a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201829052506040805160208101909152908152925061243c915050565b505050505050505050565b600080516020613e2c8339815191526116358133611bca565b610eed6125d0565b6000828152600360205260409020600101546116598133611bca565b610d6d8383611e71565b60045460ff16156116865760405162461bcd60e51b815260040161092c906139e8565b600754600160a01b900460ff166116b0576040516367f86d9f60e01b815260040160405180910390fd5b60005b83811015611753576000805b600c5481101561172157600c81815481106116dc576116dc613d1f565b90600052602060002001548787858181106116f9576116f9613d1f565b90506020020135141561170f5760019150611721565b8061171981613cc4565b9150506116bf565b508061174057604051630e00a0e960e41b815260040160405180910390fd5b508061174b81613cc4565b9150506116b3565b506117628484848460016121da565b610caa338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201829052506040805160208101909152908152925061243c915050565b6001600160a01b0385163314806117fa57506117fa8533610816565b6118165760405162461bcd60e51b815260040161092c9061399f565b610d408585858585612628565b60008888888888888888604051602001611844989796959493929190613753565b60405160208183030381529060405280519060200120905098975050505050505050565b6001600160a01b03831633148061188457506118848333610816565b6118a05760405162461bcd60e51b815260040161092c9061399f565b610d6d83838361274b565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b6060816119225750506040805180820190915260018152600360fc1b602082015290565b8160005b811561194c578061193681613cc4565b91506119459050600a83613bd0565b9150611926565b6000816001600160401b0381111561196657611966613d35565b6040519080825280601f01601f191660200182016040528015611990576020820181803683370190505b5090505b84156119fb576119a5600183613c03565b91506119b2600a86613cdf565b6119bd906030613bb8565b60f81b8183815181106119d2576119d2613d1f565b60200101906001600160f81b031916908160001a9053506119f4600a86613bd0565b9450611994565b949350505050565b60606000611a12836002613be4565b611a1d906002613bb8565b6001600160401b03811115611a3457611a34613d35565b6040519080825280601f01601f191660200182016040528015611a5e576020820181803683370190505b509050600360fc1b81600081518110611a7957611a79613d1f565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611aa857611aa8613d1f565b60200101906001600160f81b031916908160001a9053506000611acc846002613be4565b611ad7906001613bb8565b90505b6001811115611b4f576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611b0b57611b0b613d1f565b1a60f81b828281518110611b2157611b21613d1f565b60200101906001600160f81b031916908160001a90535060049490941c93611b4881613c46565b9050611ada565b508315611b9e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161092c565b9392505050565b60006001600160e01b03198216637965db0b60e01b148061096657506109668261284c565b611bd48282611373565b61098e57611bec816001600160a01b03166014611a03565b611bf7836020611a03565b604051602001611c089291906137a7565b60408051601f198184030181529082905262461bcd60e51b825261092c91600401613900565b805161098e906002906020840190612cde565b8151835114611c625760405162461bcd60e51b815260040161092c90613ae4565b6001600160a01b038416611c885760405162461bcd60e51b815260040161092c90613a12565b33611c9781878787878761289c565b60005b8451811015611d7d576000858281518110611cb757611cb7613d1f565b602002602001015190506000858381518110611cd557611cd5613d1f565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611d255760405162461bcd60e51b815260040161092c90613a9a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d62908490613bb8565b9250508190555050505080611d7690613cc4565b9050611c9a565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611dcd9291906138d2565b60405180910390a4611de38187878787876128cd565b505050505050565b611df58282611373565b61098e5760008281526003602090815260408083206001600160a01b03851684529091529020805460ff19166001179055611e2d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611e7b8282611373565b1561098e5760008281526003602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60045460ff16611f215760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161092c565b6004805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611f915760405162461bcd60e51b815260040161092c90613a57565b8051825114611fb25760405162461bcd60e51b815260040161092c90613ae4565b6000339050611fd58185600086866040518060200160405280600081525061289c565b60005b835181101561209a576000848281518110611ff557611ff5613d1f565b60200260200101519050600084838151811061201357612013613d1f565b602090810291909101810151600084815280835260408082206001600160a01b038c1683529093529190912054909150818110156120635760405162461bcd60e51b815260040161092c9061395b565b6000928352602083815260408085206001600160a01b038b168652909152909220910390558061209281613cc4565b915050611fd8565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb86866040516120eb9291906138d2565b60405180910390a450505050565b816001600160a01b0316836001600160a01b0316141561216d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161092c565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b8315806121e75750838214155b15612205576040516302443e3960e41b815260040160405180910390fd5b6000805b8581101561233c57600087878381811061222557612225613d1f565b905060200201359050600061223982610a8f565b60008381526005602052604081205491925088888681811061225d5761225d613d1f565b90506020020135905086156122a4578260a00151612287578251612282908290613be4565b612297565b8083608001516122979190613be4565b6122a19087613bb8565b95505b600081116122c5576040516306e9485160e01b815260040160405180910390fd5b60208301516122d48284613bb8565b11156122f3576040516352df9fe560e01b815260040160405180910390fd5b8680156122ff57508534105b156123255760405162fae2d560e21b81526004810187905234602482015260440161092c565b50505050808061233490613cc4565b915050612209565b50505050505050565b8260005b81811015611de357600086868381811061236557612365613d1f565b905060200201359050600085858481811061238257612382613d1f565b336000908152600d6020908152604080832088845282528220549202939093013593506123b191508390613bb8565b905060006123be84610a8f565b60c08101519091506123e35760405163d19c6cc760e01b815260040160405180910390fd5b80604001518211156124085760405163128ef3dd60e11b815260040160405180910390fd5b50336000908152600d602090815260408083209583529490529290922091909155508061243481613cc4565b915050612349565b6001600160a01b03841661249c5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161092c565b81518351146124bd5760405162461bcd60e51b815260040161092c90613ae4565b336124cd8160008787878761289c565b60005b8451811015612568578381815181106124eb576124eb613d1f565b602002602001015160008087848151811061250857612508613d1f565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546125509190613bb8565b9091555081905061256081613cc4565b9150506124d0565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516125b99291906138d2565b60405180910390a4610d40816000878787876128cd565b60045460ff16156125f35760405162461bcd60e51b815260040161092c906139e8565b6004805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611f4e3390565b6001600160a01b03841661264e5760405162461bcd60e51b815260040161092c90613a12565b3361266d81878761265e88612a38565b61266788612a38565b8761289c565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156126ae5760405162461bcd60e51b815260040161092c90613a9a565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906126eb908490613bb8565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461233c828888888888612a83565b6001600160a01b0383166127715760405162461bcd60e51b815260040161092c90613a57565b336127a08185600061278287612a38565b61278b87612a38565b6040518060200160405280600081525061289c565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156127e15760405162461bcd60e51b815260040161092c9061395b565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60006001600160e01b03198216636cdb3d1360e11b148061287d57506001600160e01b031982166303a24d0760e21b145b8061096657506301ffc9a760e01b6001600160e01b0319831614610966565b60045460ff16156128bf5760405162461bcd60e51b815260040161092c906139e8565b611de3868686868686612b4d565b6001600160a01b0384163b15611de35760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612911908990899088908890889060040161381c565b602060405180830381600087803b15801561292b57600080fd5b505af192505050801561295b575060408051601f3d908101601f191682019092526129589181019061357f565b60015b612a0857612967613d4b565b806308c379a014156129a1575061297c613d67565b8061298757506129a3565b8060405162461bcd60e51b815260040161092c9190613900565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161092c565b6001600160e01b0319811663bc197c8160e01b1461233c5760405162461bcd60e51b815260040161092c90613913565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612a7257612a72613d1f565b602090810291909101015292915050565b6001600160a01b0384163b15611de35760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612ac7908990899088908890889060040161387a565b602060405180830381600087803b158015612ae157600080fd5b505af1925050508015612b11575060408051601f3d908101601f19168201909252612b0e9181019061357f565b60015b612b1d57612967613d4b565b6001600160e01b0319811663f23a6e6160e01b1461233c5760405162461bcd60e51b815260040161092c90613913565b6001600160a01b038516612bd45760005b8351811015612bd257828181518110612b7957612b79613d1f565b602002602001015160056000868481518110612b9757612b97613d1f565b602002602001015181526020019081526020016000206000828254612bbc9190613bb8565b90915550612bcb905081613cc4565b9050612b5e565b505b6001600160a01b038416611de35760005b835181101561233c57828181518110612c0057612c00613d1f565b602002602001015160056000868481518110612c1e57612c1e613d1f565b602002602001015181526020019081526020016000206000828254612c439190613c03565b90915550612c52905081613cc4565b9050612be5565b828054828255906000526020600020908101928215612c94579160200282015b82811115612c94578235825591602001919060010190612c79565b50612ca0929150612d52565b5090565b508054612cb090613c5d565b6000825580601f10612cc0575050565b601f016020900490600052602060002090810190610eed9190612d52565b828054612cea90613c5d565b90600052602060002090601f016020900481019282612d0c5760008555612c94565b82601f10612d2557805160ff1916838001178555612c94565b82800160010185558215612c94579182015b82811115612c94578251825591602001919060010190612d37565b5b80821115612ca05760008155600101612d53565b80356001600160a01b0381168114612d7e57600080fd5b919050565b60008083601f840112612d9557600080fd5b5081356001600160401b03811115612dac57600080fd5b6020830191508360208260051b8501011115612dc757600080fd5b9250929050565b600082601f830112612ddf57600080fd5b81356020612dec82613b95565b604051612df98282613c98565b8381528281019150858301600585901b87018401881015612e1957600080fd5b60005b85811015612e3857813584529284019290840190600101612e1c565b5090979650505050505050565b80358015158114612d7e57600080fd5b600082601f830112612e6657600080fd5b81356001600160401b03811115612e7f57612e7f613d35565b604051612e96601f8301601f191660200182613c98565b818152846020838601011115612eab57600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215612eda57600080fd5b611b9e82612d67565b60008060408385031215612ef657600080fd5b612eff83612d67565b9150612f0d60208401612d67565b90509250929050565b6000806000806000806000806000806101008b8d031215612f3657600080fd5b612f3f8b612d67565b9950612f4d60208c01612d67565b985060408b01356001600160401b0380821115612f6957600080fd5b612f758e838f01612d83565b909a50985060608d0135915080821115612f8e57600080fd5b612f9a8e838f01612d83565b909850965060808d01359550869150612fb560a08e01612d67565b945060c08d0135935060e08d0135915080821115612fd257600080fd5b50612fdf8d828e01612e55565b9150509295989b9194979a5092959850565b600080600080600060a0868803121561300957600080fd5b61301286612d67565b945061302060208701612d67565b935060408601356001600160401b038082111561303c57600080fd5b61304889838a01612dce565b9450606088013591508082111561305e57600080fd5b61306a89838a01612dce565b9350608088013591508082111561308057600080fd5b5061308d88828901612e55565b9150509295509295909350565b600080600080600060a086880312156130b257600080fd5b6130bb86612d67565b94506130c960208701612d67565b9350604086013592506060860135915060808601356001600160401b038111156130f257600080fd5b61308d88828901612e55565b60008060008060008060008060c0898b03121561311a57600080fd5b61312389612d67565b975060208901356001600160401b038082111561313f57600080fd5b61314b8c838d01612d83565b909950975060408b013591508082111561316457600080fd5b506131718b828c01612d83565b9096509450506060890135925061318a60808a01612d67565b915060a089013590509295985092959890939650565b6000806000606084860312156131b557600080fd5b6131be84612d67565b925060208401356001600160401b03808211156131da57600080fd5b6131e687838801612dce565b935060408601359150808211156131fc57600080fd5b5061320986828701612dce565b9150509250925092565b6000806040838503121561322657600080fd5b61322f83612d67565b9150612f0d60208401612e45565b6000806040838503121561325057600080fd5b61325983612d67565b946020939093013593505050565b60008060006060848603121561327c57600080fd5b61328584612d67565b95602085013595506040909401359392505050565b600080604083850312156132ad57600080fd5b82356001600160401b03808211156132c457600080fd5b818501915085601f8301126132d857600080fd5b813560206132e582613b95565b6040516132f28282613c98565b8381528281019150858301600585901b870184018b101561331257600080fd5b600096505b8487101561333c5761332881612d67565b835260019690960195918301918301613317565b509650508601359250508082111561335357600080fd5b5061336085828601612dce565b9150509250929050565b6000806020838503121561337d57600080fd5b82356001600160401b0381111561339357600080fd5b61339f85828601612d83565b90969095509350505050565b600080600080604085870312156133c157600080fd5b84356001600160401b03808211156133d857600080fd5b6133e488838901612d83565b909650945060208701359150808211156133fd57600080fd5b5061340a87828801612d83565b95989497509550505050565b60008060008060008060008060c0898b03121561343257600080fd5b88356001600160401b038082111561344957600080fd5b6134558c838d01612d83565b909a50985060208b013591508082111561346e57600080fd5b61347a8c838d01612d83565b909850965060408b0135955086915061349560608c01612d67565b945060808b0135935060a08b01359150808211156134b257600080fd5b506134bf8b828c01612e55565b9150509295985092959890939650565b6000602082840312156134e157600080fd5b611b9e82612e45565b6000602082840312156134fc57600080fd5b5035919050565b6000806040838503121561351657600080fd5b82359150612f0d60208401612d67565b6000806040838503121561353957600080fd5b8235915060208301356001600160401b0381111561355657600080fd5b61336085828601612e55565b60006020828403121561357457600080fd5b8135611b9e81613df0565b60006020828403121561359157600080fd5b8151611b9e81613df0565b6000602082840312156135ae57600080fd5b81356001600160401b038111156135c457600080fd5b6119fb84828501612e55565b60008060008060008060c087890312156135e957600080fd5b86359550602087013594506040870135935060608701356001600160401b0381111561361457600080fd5b61362089828a01612e55565b9350506080870135915061363660a08801612e45565b90509295509295509295565b600080600080600080600060e0888a03121561365d57600080fd5b8735965060208801359550604088013594506060880135935060808801356001600160401b0381111561368f57600080fd5b61369b8a828b01612e55565b93505060a088013591506136b160c08901612e45565b905092959891949750929550565b60006001600160fb1b038311156136d557600080fd5b8260051b8083863760009401938452509192915050565b600081518084526020808501945080840160005b8381101561371c57815187529582019590820190600101613700565b509495945050505050565b6000815180845261373f816020860160208601613c1a565b601f01601f19169290920160200192915050565b60006bffffffffffffffffffffffff19808b60601b16835261378361377c601485018b8d6136bf565b888a6136bf565b95865260609490941b90931660208501525060348301525060540195945050505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516137df816017850160208801613c1a565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613810816028840160208801613c1a565b01602801949350505050565b6001600160a01b0386811682528516602082015260a060408201819052600090613848908301866136ec565b828103606084015261385a81866136ec565b9050828103608084015261386e8185613727565b98975050505050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138b490830184613727565b979650505050505050565b602081526000611b9e60208301846136ec565b6040815260006138e560408301856136ec565b82810360208401526138f781856136ec565b95945050505050565b602081526000611b9e6020830184613727565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b602081528151602082015260208201516040820152604082015160608201526000606083015160e06080840152613b67610100840182613727565b9050608084015160a084015260a0840151151560c084015260c0840151151560e08401528091505092915050565b60006001600160401b03821115613bae57613bae613d35565b5060051b60200190565b60008219821115613bcb57613bcb613cf3565b500190565b600082613bdf57613bdf613d09565b500490565b6000816000190483118215151615613bfe57613bfe613cf3565b500290565b600082821015613c1557613c15613cf3565b500390565b60005b83811015613c35578181015183820152602001613c1d565b83811115610caa5750506000910152565b600081613c5557613c55613cf3565b506000190190565b600181811c90821680613c7157607f821691505b60208210811415613c9257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b0381118282101715613cbd57613cbd613d35565b6040525050565b6000600019821415613cd857613cd8613cf3565b5060010190565b600082613cee57613cee613d09565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115613d645760046000803e5060005160e01c5b90565b600060443d1015613d755790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613da457505050505090565b8285019150815181811115613dbc5750505050505090565b843d8701016020828501011115613dd65750505050505090565b613de560208286010187613c98565b509095945050505050565b6001600160e01b031981168114610eed57600080fdfe4245414e5320484f4c44455253204c4f4f54202d2044756d62205761797320746f20446965390afdf79bc4e4af6aa57c245872b3a0d17015d6c1bd8fc7d14114249fa2b324a26469706673582212207be439aa5b0bb62fce3092663412fa5dcf271b6df0d8fdfb15b88fdcc77b7b8264736f6c63430008070033

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.