ETH Price: $3,257.10 (+4.56%)
Gas: 2 Gwei

Token

Lootmart (MART)
 

Overview

Max Total Supply

0 MART

Holders

105

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
thankyouuniverse.eth
0xd504b5000a42690edf0bc6cebd465fe239d571bb
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Lootmart

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion
File 1 of 18 : Lootmart.sol
//SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

// ============ Imports ============

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./LootTokensMetadata.sol";
import "./LootmartId.sol";

interface ILootAirdrop {
    function claimForLoot(uint256) external payable;
    function safeTransferFrom(address, address, uint256) external payable;
}

interface IAdventurer {
    function mint() external;
    function mintToAccount(address _account) external;
    function totalSupply() external returns (uint256);
    function equipBulk(uint256 tokenId, address[] memory itemAddresses, uint256[] memory itemIds) external;
    function equip(uint256 tokenId, address itemAddress, uint256 itemId) external;
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

library Errors {
    string constant DoesNotOwnLootbag = "you do not own the lootbag for this airdrop";
    string constant IsNotLoot = "msg.sender is not the loot contract";
}

/// @title Loot Tokens
/// @author Gary Thung, forked from Georgios Konstantopoulos
/// @notice Allows "opening" your ERC721 Loot bags and extracting the items inside it
/// The created tokens are ERC1155 compatible, and their on-chain SVG is their name
contract Lootmart is Ownable, ERC1155, LootTokensMetadata {
    // The OG Loot bags contract
    IERC721Enumerable immutable loot;

    IAdventurer immutable adventurer;

    // Track claimed Lootmart components
    mapping(uint256 => bool) public claimedByTokenId;

    // tokenIdStart of 1 is based on the following lines in the Loot contract:
    /**
    function claim(uint256 tokenId) public nonReentrant {
        require(tokenId > 0 && tokenId < 7778, "Token ID invalid");
        _safeMint(_msgSender(), tokenId);
    }
    */
    uint256 public tokenIdStart = 1;

    // tokenIdEnd of 8000 is based on the following lines in the Loot contract:
    /**
        function ownerClaim(uint256 tokenId) public nonReentrant onlyOwner {
        require(tokenId > 7777 && tokenId < 8001, "Token ID invalid");
        _safeMint(owner(), tokenId);
    }
    */
    uint256 public tokenIdEnd = 8000;

    constructor(address _loot, address _adventurer, string memory _baseURI) ERC1155("") LootTokensMetadata(_baseURI) {
        loot = IERC721Enumerable(_loot);
        adventurer = IAdventurer(_adventurer);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155) returns (bool) {
        return
            interfaceId == LootmartId.INTERFACE_ID ||
            super.supportsInterface(interfaceId);
    }

    /// @notice Claims the components for the given tokenId
    function claimForLoot(uint256 tokenId) external {
        _claim(tokenId, _msgSender());
    }

    /// @notice Claims all components for caller
    function claimAllForOwner() external {
        uint256 tokenBalanceOwner = loot.balanceOf(_msgSender());

        // Check that caller owns any Loots
        require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED");

        // i < tokenBalanceOwner because tokenBalanceOwner is 1-indexed
        for (uint256 i = 0; i < tokenBalanceOwner; i++) {
            _claim(loot.tokenOfOwnerByIndex(_msgSender(), i), _msgSender());
        }
    }

    /// @notice Claims all components for given IDs
    function claimForTokenIds(uint256[] memory tokenIds) external {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _claim(tokenIds[i], _msgSender());
        }
    }

    /// @notice Claims the components for the given tokenId and mints an adventurer
    function claimForLootWithAdventurer(uint256 tokenId) external {
        _claim(tokenId, _msgSender());
        adventurer.mintToAccount(_msgSender());
    }

    /// @notice Claims all components for caller and mints an adventurer
    function claimAllForOwnerWithAdventurer() external {
        uint256 tokenBalanceOwner = loot.balanceOf(_msgSender());

        // Check that caller owns any Loots
        require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED");

        // i < tokenBalanceOwner because tokenBalanceOwner is 1-indexed
        for (uint256 i = 0; i < tokenBalanceOwner; i++) {
            _claim(loot.tokenOfOwnerByIndex(_msgSender(), i), _msgSender());
        }

        adventurer.mintToAccount(_msgSender());
    }

    /// @notice Claims all components for given IDs and mints an adventurer
    function claimForTokenIdsWithAdventurer(uint256[] memory tokenIds) external {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _claim(tokenIds[i], _msgSender());
        }

        adventurer.mintToAccount(_msgSender());
    }

    /// @notice Claim all components for a loot bag. Performs safety checks
    function _claim(uint256 tokenId, address tokenOwner) internal {
        // Check that caller owns the loot bag
        require(tokenOwner == loot.ownerOf(tokenId), "MUST_OWN_TOKEN_ID");

        // Check that the token ID is in range
        // We use >= and <= to here because all of the token IDs are 0-indexed
        require(tokenId >= tokenIdStart && tokenId <= tokenIdEnd, "TOKEN_ID_OUT_OF_RANGE");

        // Check that components not claimed already
        require(!claimedByTokenId[tokenId], "ALREADY_CLAIMED");

        // Mark as claimed
        claimedByTokenId[tokenId] = true;

        // NB: We patched ERC1155 to expose `_balances` so
        // that we can manually mint to a user, and manually emit a `TransferBatch`
        // event. If that's unsafe, we can fallback to using _mint
        uint256[] memory ids = new uint256[](8);
        uint256[] memory amounts = new uint256[](8);
        ids[0] = itemId(tokenId, weaponComponents, WEAPON);
        ids[1] = itemId(tokenId, chestComponents, CHEST);
        ids[2] = itemId(tokenId, headComponents, HEAD);
        ids[3] = itemId(tokenId, waistComponents, WAIST);
        ids[4] = itemId(tokenId, footComponents, FOOT);
        ids[5] = itemId(tokenId, handComponents, HAND);
        ids[6] = itemId(tokenId, neckComponents, NECK);
        ids[7] = itemId(tokenId, ringComponents, RING);

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

            // +21k per call / unavoidable - requires patching OZ
            _balances[ids[i]][tokenOwner] += 1;
        }

        emit TransferBatch(_msgSender(), address(0), tokenOwner, ids, amounts);
    }

    function itemId(
        uint256 tokenId,
        function(uint256) view returns (uint256[5] memory) componentsFn,
        uint256 itemType
    ) private view returns (uint256) {
        uint256[5] memory components = componentsFn(tokenId);
        return TokenId.toId(components, itemType);
    }

    function uri(uint256 tokenId) public view override returns (string memory) {
        return tokenURI(tokenId);
    }

    /**
    * @dev Convert uint to bytes.
    */
    function toBytes(uint256 x) internal pure returns (bytes memory b) {
        b = new bytes(32);
        assembly { mstore(add(b, 32), x) }
    }
}

File 2 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 3 of 18 : ERC1155.sol
// SPDX-License-Identifier: MIT

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)) internal _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 {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

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

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

        _doSafeTransferAcceptanceCheck(operator, address(0), account, 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 `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

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

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

        emit TransferSingle(operator, account, 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 account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

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

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

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

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

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

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

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

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

        return array;
    }
}

File 4 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 18 : LootTokensMetadata.sol
//SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import "./LootComponents.sol";
import "./TokenId.sol";
import "./ILootmart.sol";
import {Base64, toString} from "./MetadataUtils.sol";

struct ItemIds {
    uint256 weapon;
    uint256 chest;
    uint256 head;
    uint256 waist;
    uint256 foot;
    uint256 hand;
    uint256 neck;
    uint256 ring;
}

struct ItemNames {
    string weapon;
    string chest;
    string head;
    string waist;
    string foot;
    string hand;
    string neck;
    string ring;
}


/// @title Helper contract for generating ERC-1155 token ids and descriptions for
/// the individual items inside a Loot bag.
/// @author Gary Thung, forked from Georgios Konstantopoulos
/// @dev Inherit from this contract and use it to generate metadata for your tokens
contract LootTokensMetadata is ILootmart, LootComponents {
    uint256 internal constant WEAPON = 0x0;
    uint256 internal constant CHEST = 0x1;
    uint256 internal constant HEAD = 0x2;
    uint256 internal constant WAIST = 0x3;
    uint256 internal constant FOOT = 0x4;
    uint256 internal constant HAND = 0x5;
    uint256 internal constant NECK = 0x6;
    uint256 internal constant RING = 0x7;

    string[] internal itemTypes = [
        "weapon",
        "chest",
        "head",
        "waist",
        "foot",
        "hand",
        "neck",
        "ring"
    ];

    string public baseURI;

    constructor(string memory _baseURI) {
        baseURI = _baseURI;
    }

    function name() external pure returns (string memory) {
        return "Lootmart";
    }

    function symbol() external pure returns (string memory) {
        return "MART";
    }

    function setBaseURI(string memory _newBaseURI) external {
        baseURI = _newBaseURI;
    }

    /// @notice Returns an SVG for the provided token id
    function tokenURI(uint256 tokenId) public view returns (string memory) {
        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{',
                        '"name": "', nameFor(tokenId),'", ',
                        '"description": "', nameFor(tokenId), '\\n\\n', 'Lootmart items are individual Loot items that you can trade and use to upgrade your Adventurer. Different combinations of Loot items unlock special abilities and powers.", ',
                        '"image": ', '"', baseURI, '/', toString(tokenId), '.png", ',
                        '"attributes": ', attributes(tokenId),
                        '}'
                    )
                )
            )
        );

        return string(
            abi.encodePacked("data:application/json;base64,", json)
        );
    }

    /// @notice Returns the attributes associated with this item.
    /// @dev Opensea Standards: https://docs.opensea.io/docs/metadata-standards
    function attributes(uint256 id) public view returns (string memory) {
        (uint256[5] memory components, uint256 itemType) = TokenId.fromId(id);
        // should we also use components[0] which contains the item name?
        string memory slot = itemTypes[itemType];
        string memory res = string(abi.encodePacked('[', trait("Item Type", slot)));

        string memory item = itemName(itemType, components[0]);
        res = string(abi.encodePacked(res, ", ", trait("Name", item)));

        if (components[1] > 0) {
            string memory data = suffixes[components[1] - 1];
            res = string(abi.encodePacked(res, ", ", trait("Suffix", data)));
        }

        if (components[2] > 0) {
            string memory data = namePrefixes[components[2] - 1];
            res = string(abi.encodePacked(res, ", ", trait("Name Prefix", data)));
        }

        if (components[3] > 0) {
            string memory data = nameSuffixes[components[3] - 1];
            res = string(abi.encodePacked(res, ", ", trait("Name Suffix", data)));
        }

        if (components[4] > 0) {
            res = string(abi.encodePacked(res, ", ", trait("Augmentation", "Yes")));
        }

        res = string(abi.encodePacked(res, ']'));

        return res;
    }

    /// @notice Returns the item type of this component.
    function itemTypeFor(uint256 id) external pure override returns (string memory) {
        (, uint256 _itemType) = TokenId.fromId(id);
        return [
            "weapon",
            "chest",
            "head",
            "waist",
            "foot",
            "hand",
            "neck",
            "ring"
        ][_itemType];
    }

    // Helper for encoding as json w/ trait_type / value from opensea
    function trait(string memory _traitType, string memory _value) internal pure returns (string memory) {
        return string(abi.encodePacked('{',
            '"trait_type": "', _traitType, '", ',
            '"value": "', _value, '"',
        '}'));
    }

    /// @notice Given an ERC1155 token id, it returns its name by decoding and parsing
    /// the id
    function nameFor(uint256 id) public override view returns (string memory) {
        (uint256[5] memory components, uint256 itemType) = TokenId.fromId(id);
        return componentsToString(components, itemType);
    }

    // Returns the "vanilla" item name w/o any prefix/suffixes or augmentations
    function itemName(uint256 itemType, uint256 idx) public view returns (string memory) {
        string[] storage arr;
        if (itemType == WEAPON) {
            arr = weapons;
        } else if (itemType == CHEST) {
            arr = chestArmor;
        } else if (itemType == HEAD) {
            arr = headArmor;
        } else if (itemType == WAIST) {
            arr = waistArmor;
        } else if (itemType == FOOT) {
            arr = footArmor;
        } else if (itemType == HAND) {
            arr = handArmor;
        } else if (itemType == NECK) {
            arr = necklaces;
        } else if (itemType == RING) {
            arr = rings;
        } else {
            revert("Unexpected armor piece");
        }

        return arr[idx];
    }

    // Creates the token description given its components and what type it is
    function componentsToString(uint256[5] memory components, uint256 itemType)
        public
        view
        returns (string memory)
    {
        // item type: what slot to get
        // components[0] the index in the array
        string memory item = itemName(itemType, components[0]);

        // We need to do -1 because the 'no description' is not part of loot copmonents

        // add the suffix
        if (components[1] > 0) {
            item = string(
                abi.encodePacked(item, " ", suffixes[components[1] - 1])
            );
        }

        // add the name prefix / suffix
        if (components[2] > 0) {
            // prefix
            string memory namePrefixSuffix = string(
                abi.encodePacked("'", namePrefixes[components[2] - 1])
            );
            if (components[3] > 0) {
                namePrefixSuffix = string(
                    abi.encodePacked(namePrefixSuffix, " ", nameSuffixes[components[3] - 1])
                );
            }

            namePrefixSuffix = string(abi.encodePacked(namePrefixSuffix, "' "));

            item = string(abi.encodePacked(namePrefixSuffix, item));
        }

        // add the augmentation
        if (components[4] > 0) {
            item = string(abi.encodePacked(item, " +1"));
        }

        return item;
    }

    // View helpers for getting the item ID that corresponds to a bag's items
    function weaponId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(weaponComponents(tokenId), WEAPON);
    }

    function chestId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(chestComponents(tokenId), CHEST);
    }

    function headId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(headComponents(tokenId), HEAD);
    }

    function waistId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(waistComponents(tokenId), WAIST);
    }

    function footId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(footComponents(tokenId), FOOT);
    }

    function handId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(handComponents(tokenId), HAND);
    }

    function neckId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(neckComponents(tokenId), NECK);
    }

    function ringId(uint256 tokenId) public pure returns (uint256) {
        return TokenId.toId(ringComponents(tokenId), RING);
    }

    // Given an erc721 bag, returns the erc1155 token ids of the items in the bag
    function ids(uint256 tokenId) public pure returns (ItemIds memory) {
        return
            ItemIds({
                weapon: weaponId(tokenId),
                chest: chestId(tokenId),
                head: headId(tokenId),
                waist: waistId(tokenId),
                foot: footId(tokenId),
                hand: handId(tokenId),
                neck: neckId(tokenId),
                ring: ringId(tokenId)
            });
    }

    function idsMany(uint256[] memory tokenIds) public pure returns (ItemIds[] memory) {
        ItemIds[] memory itemids = new ItemIds[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            itemids[i] = ids(tokenIds[i]);
        }

        return itemids;
    }

    // Given an ERC721 bag, returns the names of the items in the bag
    function names(uint256 tokenId) public view returns (ItemNames memory) {
        ItemIds memory items = ids(tokenId);
        return
            ItemNames({
                weapon: nameFor(items.weapon),
                chest: nameFor(items.chest),
                head: nameFor(items.head),
                waist: nameFor(items.waist),
                foot: nameFor(items.foot),
                hand: nameFor(items.hand),
                neck: nameFor(items.neck),
                ring: nameFor(items.ring)
            });
    }

    function namesMany(uint256[] memory tokenNames) public view returns (ItemNames[] memory) {
        ItemNames[] memory itemNames = new ItemNames[](tokenNames.length);
        for (uint256 i = 0; i < tokenNames.length; i++) {
            itemNames[i] = names(tokenNames[i]);
        }

        return itemNames;
    }
}

File 6 of 18 : LootmartId.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

library LootmartId {
  bytes4 internal constant INTERFACE_ID = 0xf35e2fbc;
}

File 7 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

File 8 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 18 : IERC1155.sol
// SPDX-License-Identifier: MIT

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 10 of 18 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

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.
        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. 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 11 of 18 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

File 12 of 18 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 13 of 18 : Context.sol
// SPDX-License-Identifier: MIT

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 14 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT

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 15 of 18 : LootComponents.sol
/**
 *Submitted for verification at Etherscan.io on 2021-08-30
 */

// SPDX-License-Identifier: Unlicense

/*

    LootComponents.sol

    This is a utility contract to make it easier for other
    contracts to work with Loot properties.

    Call weaponComponents(), chestComponents(), etc. to get
    an array of attributes that correspond to the item.

    The return format is:

    uint256[5] =>
        [0] = Item ID
        [1] = Suffix ID (0 for none)
        [2] = Name Prefix ID (0 for none)
        [3] = Name Suffix ID (0 for none)
        [4] = Augmentation (0 = false, 1 = true)

    See the item and attribute tables below for corresponding IDs.

*/

pragma solidity ^0.8.0;

contract LootComponents {
    string[] internal weapons = [
        "Warhammer", // 0
        "Quarterstaff", // 1
        "Maul", // 2
        "Mace", // 3
        "Club", // 4
        "Katana", // 5
        "Falchion", // 6
        "Scimitar", // 7
        "Long Sword", // 8
        "Short Sword", // 9
        "Ghost Wand", // 10
        "Grave Wand", // 11
        "Bone Wand", // 12
        "Wand", // 13
        "Grimoire", // 14
        "Chronicle", // 15
        "Tome", // 16
        "Book" // 17
    ];
    uint256 constant weaponsLength = 18;

    string[] internal chestArmor = [
        "Divine Robe", // 0
        "Silk Robe", // 1
        "Linen Robe", // 2
        "Robe", // 3
        "Shirt", // 4
        "Demon Husk", // 5
        "Dragonskin Armor", // 6
        "Studded Leather Armor", // 7
        "Hard Leather Armor", // 8
        "Leather Armor", // 9
        "Holy Chestplate", // 10
        "Ornate Chestplate", // 11
        "Plate Mail", // 12
        "Chain Mail", // 13
        "Ring Mail" // 14
    ];
    uint256 constant chestLength = 15;

    string[] internal headArmor = [
        "Ancient Helm", // 0
        "Ornate Helm", // 1
        "Great Helm", // 2
        "Full Helm", // 3
        "Helm", // 4
        "Demon Crown", // 5
        "Dragon's Crown", // 6
        "War Cap", // 7
        "Leather Cap", // 8
        "Cap", // 9
        "Crown", // 10
        "Divine Hood", // 11
        "Silk Hood", // 12
        "Linen Hood", // 13
        "Hood" // 14
    ];
    uint256 constant headLength = 15;

    string[] internal waistArmor = [
        "Ornate Belt", // 0
        "War Belt", // 1
        "Plated Belt", // 2
        "Mesh Belt", // 3
        "Heavy Belt", // 4
        "Demonhide Belt", // 5
        "Dragonskin Belt", // 6
        "Studded Leather Belt", // 7
        "Hard Leather Belt", // 8
        "Leather Belt", // 9
        "Brightsilk Sash", // 10
        "Silk Sash", // 11
        "Wool Sash", // 12
        "Linen Sash", // 13
        "Sash" // 14
    ];
    uint256 constant waistLength = 15;

    string[] internal footArmor = [
        "Holy Greaves", // 0
        "Ornate Greaves", // 1
        "Greaves", // 2
        "Chain Boots", // 3
        "Heavy Boots", // 4
        "Demonhide Boots", // 5
        "Dragonskin Boots", // 6
        "Studded Leather Boots", // 7
        "Hard Leather Boots", // 8
        "Leather Boots", // 9
        "Divine Slippers", // 10
        "Silk Slippers", // 11
        "Wool Shoes", // 12
        "Linen Shoes", // 13
        "Shoes" // 14
    ];
    uint256 constant footLength = 15;

    string[] internal handArmor = [
        "Holy Gauntlets", // 0
        "Ornate Gauntlets", // 1
        "Gauntlets", // 2
        "Chain Gloves", // 3
        "Heavy Gloves", // 4
        "Demon's Hands", // 5
        "Dragonskin Gloves", // 6
        "Studded Leather Gloves", // 7
        "Hard Leather Gloves", // 8
        "Leather Gloves", // 9
        "Divine Gloves", // 10
        "Silk Gloves", // 11
        "Wool Gloves", // 12
        "Linen Gloves", // 13
        "Gloves" // 14
    ];
    uint256 constant handLength = 15;

    string[] internal necklaces = [
        "Necklace", // 0
        "Amulet", // 1
        "Pendant" // 2
    ];
    uint256 constant necklacesLength = 3;

    string[] internal rings = [
        "Gold Ring", // 0
        "Silver Ring", // 1
        "Bronze Ring", // 2
        "Platinum Ring", // 3
        "Titanium Ring" // 4
    ];
    uint256 constant ringsLength = 5;

    string[] internal suffixes = [
        // <no suffix>          // 0
        "of Power", // 1
        "of Giants", // 2
        "of Titans", // 3
        "of Skill", // 4
        "of Perfection", // 5
        "of Brilliance", // 6
        "of Enlightenment", // 7
        "of Protection", // 8
        "of Anger", // 9
        "of Rage", // 10
        "of Fury", // 11
        "of Vitriol", // 12
        "of the Fox", // 13
        "of Detection", // 14
        "of Reflection", // 15
        "of the Twins" // 16
    ];
    uint256 constant suffixesLength = 16;

    string[] internal namePrefixes = [
        // <no name>            // 0
        "Agony", // 1
        "Apocalypse", // 2
        "Armageddon", // 3
        "Beast", // 4
        "Behemoth", // 5
        "Blight", // 6
        "Blood", // 7
        "Bramble", // 8
        "Brimstone", // 9
        "Brood", // 10
        "Carrion", // 11
        "Cataclysm", // 12
        "Chimeric", // 13
        "Corpse", // 14
        "Corruption", // 15
        "Damnation", // 16
        "Death", // 17
        "Demon", // 18
        "Dire", // 19
        "Dragon", // 20
        "Dread", // 21
        "Doom", // 22
        "Dusk", // 23
        "Eagle", // 24
        "Empyrean", // 25
        "Fate", // 26
        "Foe", // 27
        "Gale", // 28
        "Ghoul", // 29
        "Gloom", // 30
        "Glyph", // 31
        "Golem", // 32
        "Grim", // 33
        "Hate", // 34
        "Havoc", // 35
        "Honour", // 36
        "Horror", // 37
        "Hypnotic", // 38
        "Kraken", // 39
        "Loath", // 40
        "Maelstrom", // 41
        "Mind", // 42
        "Miracle", // 43
        "Morbid", // 44
        "Oblivion", // 45
        "Onslaught", // 46
        "Pain", // 47
        "Pandemonium", // 48
        "Phoenix", // 49
        "Plague", // 50
        "Rage", // 51
        "Rapture", // 52
        "Rune", // 53
        "Skull", // 54
        "Sol", // 55
        "Soul", // 56
        "Sorrow", // 57
        "Spirit", // 58
        "Storm", // 59
        "Tempest", // 60
        "Torment", // 61
        "Vengeance", // 62
        "Victory", // 63
        "Viper", // 64
        "Vortex", // 65
        "Woe", // 66
        "Wrath", // 67
        "Light's", // 68
        "Shimmering" // 69
    ];
    uint256 constant namePrefixesLength = 69;

    string[] internal nameSuffixes = [
        // <no name>            // 0
        "Bane", // 1
        "Root", // 2
        "Bite", // 3
        "Song", // 4
        "Roar", // 5
        "Grasp", // 6
        "Instrument", // 7
        "Glow", // 8
        "Bender", // 9
        "Shadow", // 10
        "Whisper", // 11
        "Shout", // 12
        "Growl", // 13
        "Tear", // 14
        "Peak", // 15
        "Form", // 16
        "Sun", // 17
        "Moon" // 18
    ];
    uint256 constant nameSuffixesLength = 18;

    function random(string memory input) internal pure returns (uint256) {
        return uint256(keccak256(abi.encodePacked(input)));
    }

    function weaponComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "WEAPON", weaponsLength);
    }

    function chestComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "CHEST", chestLength);
    }

    function headComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "HEAD", headLength);
    }

    function waistComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "WAIST", waistLength);
    }

    function footComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "FOOT", footLength);
    }

    function handComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "HAND", handLength);
    }

    function neckComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "NECK", necklacesLength);
    }

    function ringComponents(uint256 tokenId)
        internal
        pure
        returns (uint256[5] memory)
    {
        return pluck(tokenId, "RING", ringsLength);
    }

    function pluck(
        uint256 tokenId,
        string memory keyPrefix,
        uint256 sourceArrayLength
    ) internal pure returns (uint256[5] memory) {
        uint256[5] memory components;

        uint256 rand = random(
            string(abi.encodePacked(keyPrefix, toString(tokenId)))
        );

        components[0] = rand % sourceArrayLength;
        components[1] = 0;
        components[2] = 0;

        uint256 greatness = rand % 21;
        if (greatness > 14) {
            components[1] = (rand % suffixesLength) + 1;
        }
        if (greatness >= 19) {
            components[2] = (rand % namePrefixesLength) + 1;
            components[3] = (rand % nameSuffixesLength) + 1;
            if (greatness == 19) {
                // ...
            } else {
                components[4] = 1;
            }
        }

        return components;
    }

    // TODO: This costs 2.5k gas per invocation. We call it a lot when minting.
    // How can this be improved?
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

File 16 of 18 : TokenId.sol
//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

/// @title Encoding / decoding utilities for token ids
/// @author Georgios Konstantopoulos
/// @dev Token ids are generated from the components via a bijective encoding
/// using the token type and its attributes. We shift left by 16 bits, i.e. 2 bytes
/// each time so that the IDs do not overlap, assuming that components are smaller than 256
library TokenId {
    // 2 bytes
    uint256 constant SHIFT = 16;

    /// Encodes an array of Loot components and an item type (weapon, chest etc.)
    /// to a token id
    function toId(uint256[5] memory components, uint256 itemType)
        internal
        pure
        returns (uint256)
    {
        uint256 id = itemType;
        id += encode(components[0], 1);
        id += encode(components[1], 2);
        id += encode(components[2], 3);
        id += encode(components[3], 4);
        id += encode(components[4], 5);

        return id;
    }

    /// Decodes a token id to an array of Loot components and its item type (weapon, chest etc.)
    function fromId(uint256 id)
        internal
        pure
        returns (uint256[5] memory components, uint256 itemType)
    {
        itemType = decode(id, 0);
        components[0] = decode(id, 1);
        components[1] = decode(id, 2);
        components[2] = decode(id, 3);
        components[3] = decode(id, 4);
        components[4] = decode(id, 5);
    }

    /// Masks the component with 0xff and left shifts it by `idx * 2 bytes
    function encode(uint256 component, uint256 idx)
        private
        pure
        returns (uint256)
    {
        return (component & 0xff) << (SHIFT * idx);
    }

    /// Right shifts the provided token id by `idx * 2 bytes` and then masks the
    /// returned value with 0xff.
    function decode(uint256 id, uint256 idx) private pure returns (uint256) {
        return (id >> (SHIFT * idx)) & 0xff;
    }
}

File 17 of 18 : ILootmart.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

// Any component stores need to have this function so that Adventurer can determine what
// type of item it is
interface ILootmart {
  function itemTypeFor(uint256 tokenId) external view returns (string memory);
  function nameFor(uint256 tokenId) external view returns (string memory);
}

File 18 of 18 : MetadataUtils.sol
//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;

function toString(uint256 value) pure returns (string memory) {
    // Inspired by OraclizeAPI's implementation - MIT license
    // 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);
}

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((len + 2) / 3);

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)
                )
                out := shl(8, out)
                out := add(
                    out,
                    and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)
                )
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_loot","type":"address"},{"internalType":"address","name":"_adventurer","type":"address"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"attributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"chestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"claimAllForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllForOwnerWithAdventurer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimForLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimForLootWithAdventurer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimForTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimForTokenIdsWithAdventurer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedByTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[5]","name":"components","type":"uint256[5]"},{"internalType":"uint256","name":"itemType","type":"uint256"}],"name":"componentsToString","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"footId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"handId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"headId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ids","outputs":[{"components":[{"internalType":"uint256","name":"weapon","type":"uint256"},{"internalType":"uint256","name":"chest","type":"uint256"},{"internalType":"uint256","name":"head","type":"uint256"},{"internalType":"uint256","name":"waist","type":"uint256"},{"internalType":"uint256","name":"foot","type":"uint256"},{"internalType":"uint256","name":"hand","type":"uint256"},{"internalType":"uint256","name":"neck","type":"uint256"},{"internalType":"uint256","name":"ring","type":"uint256"}],"internalType":"struct ItemIds","name":"","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"idsMany","outputs":[{"components":[{"internalType":"uint256","name":"weapon","type":"uint256"},{"internalType":"uint256","name":"chest","type":"uint256"},{"internalType":"uint256","name":"head","type":"uint256"},{"internalType":"uint256","name":"waist","type":"uint256"},{"internalType":"uint256","name":"foot","type":"uint256"},{"internalType":"uint256","name":"hand","type":"uint256"},{"internalType":"uint256","name":"neck","type":"uint256"},{"internalType":"uint256","name":"ring","type":"uint256"}],"internalType":"struct ItemIds[]","name":"","type":"tuple[]"}],"stateMutability":"pure","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":"itemType","type":"uint256"},{"internalType":"uint256","name":"idx","type":"uint256"}],"name":"itemName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"itemTypeFor","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"nameFor","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"names","outputs":[{"components":[{"internalType":"string","name":"weapon","type":"string"},{"internalType":"string","name":"chest","type":"string"},{"internalType":"string","name":"head","type":"string"},{"internalType":"string","name":"waist","type":"string"},{"internalType":"string","name":"foot","type":"string"},{"internalType":"string","name":"hand","type":"string"},{"internalType":"string","name":"neck","type":"string"},{"internalType":"string","name":"ring","type":"string"}],"internalType":"struct ItemNames","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenNames","type":"uint256[]"}],"name":"namesMany","outputs":[{"components":[{"internalType":"string","name":"weapon","type":"string"},{"internalType":"string","name":"chest","type":"string"},{"internalType":"string","name":"head","type":"string"},{"internalType":"string","name":"waist","type":"string"},{"internalType":"string","name":"foot","type":"string"},{"internalType":"string","name":"hand","type":"string"},{"internalType":"string","name":"neck","type":"string"},{"internalType":"string","name":"ring","type":"string"}],"internalType":"struct ItemNames[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"neckId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ringId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"tokenIdEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","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":"uint256","name":"tokenId","type":"uint256"}],"name":"waistId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"weaponId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}]

6009610300818152682bb0b93430b6b6b2b960b91b6103205260c0908152600c6103409081526b28bab0b93a32b939ba30b33360a11b6103605260e05260046103808181526313585d5b60e21b6103a052610100526103c0818152634d61636560e01b6103e052610120526104008181526321b63ab160e11b61042052610140526006610440908152654b6174616e6160d01b61046052610160526008610480818152672330b631b434b7b760c11b6104a052610180526104c08181526729b1b4b6b4ba30b960c11b6104e0526101a052600a61050081815269131bdb99c814dddbdc9960b21b610520526101c052600b6105409081526a14da1bdc9d0814dddbdc9960aa1b610560526101e0526105808181526911da1bdcdd0815d85b9960b21b6105a052610200526105c09081526911dc985d994815d85b9960b21b6105e0526102205261060084815268109bdb994815d85b9960ba1b61062052610240526106408281526315d85b9960e21b6106605261026052610680908152674772696d6f69726560c01b6106a052610280526106c0928352684368726f6e69636c6560b81b6106e0526102a09290925261070082815263546f6d6560e01b610720526102c05261078060405261074082815263426f6f6b60e01b610760526102e052620001ee9190601262001e6a565b506040805161022081018252600b6101e082019081526a446976696e6520526f626560a81b61020083015281528151808301835260098082526853696c6b20526f626560b81b6020838101919091528084019290925283518085018552600a808252694c696e656e20526f626560b01b8285015284860191909152845180860186526004815263526f626560e01b8185015260608501528451808601865260058082526414da1a5c9d60da1b828601526080860191909152855180870187528281526944656d6f6e204875736b60b01b8186015260a086015285518087018752601081526f223930b3b7b739b5b4b71020b936b7b960811b8186015260c086015285518087018752601581527f53747564646564204c6561746865722041726d6f7200000000000000000000008186015260e08601528551808701875260128152712430b932102632b0ba3432b91020b936b7b960711b8186015261010086015285518087018752600d81526c2632b0ba3432b91020b936b7b960991b8186015261012086015285518087018752600f8082526e486f6c79204368657374706c61746560881b828701526101408701919091528651808801885260118152704f726e617465204368657374706c61746560781b818701526101608701528651808801885283815269141b185d194813585a5b60b21b81870152610180870152865180880188529283526910da185a5b8813585a5b60b21b838601526101a0860192909252855180870190965291855268149a5b99c813585a5b60ba1b928501929092526101c08301939093526200044792919062001ece565b506040805161022081018252600c6101e082019081526b416e6369656e742048656c6d60a01b610200830152815281518083018352600b8082526a4f726e6174652048656c6d60a81b6020838101919091528084019290925283518085018552600a8082526947726561742048656c6d60b01b82850152848601919091528451808601865260098082526846756c6c2048656c6d60b81b8286015260608601919091528551808701875260048082526348656c6d60e01b828701526080870191909152865180880188528481526a2232b6b7b71021b937bbb760a91b8187015260a087015286518088018852600e81526d223930b3b7b713b99021b937bbb760911b8187015260c08701528651808801885260078152660576172204361760cc1b8187015260e0870152865180880188528481526a04c656174686572204361760ac1b8187015261010087015286518088018852600381526204361760ec1b8187015261012087015286518088018852600581526421b937bbb760d91b81870152610140870152865180880188529384526a111a5d9a5b9948121bdbd960aa1b84860152610160860193909352855180870187529081526814da5b1ac8121bdbd960ba1b818501526101808501528451808601865290815269131a5b995b88121bdbd960b21b818401526101a08401528351808501909452835263121bdbd960e21b908301526101c08101919091526200066690600690600f62001ece565b506040805161022081018252600b6101e082018181526a13dc9b985d194810995b1d60aa1b610200840152825282518084018452600881526715d85c8810995b1d60c21b60208281019190915280840191909152835180850185529182526a141b185d19590810995b1d60aa1b82820152828401919091528251808401845260098082526813595cda0810995b1d60ba1b82840152606084019190915283518085018552600a808252691219585d9e4810995b1d60b21b82850152608085019190915284518086018652600e81526d11195b5bdb9a1a59194810995b1d60921b8185015260a085015284518086018652600f8082526e111c9859dbdb9cdada5b8810995b1d608a1b8286015260c086019190915285518087018752601481527f53747564646564204c6561746865722042656c740000000000000000000000008186015260e086015285518087018752601181527012185c99081319585d1a195c8810995b1d607a1b8186015261010086015285518087018752600c81526b1319585d1a195c8810995b1d60a21b81860152610120860152855180870187528181526e084e4d2ced0e8e6d2d8d640a6c2e6d608b1b8186015261014086015285518087018752838152680a6d2d8d640a6c2e6d60bb1b8186015261016086015285518087018752928352680aededed840a6c2e6d60bb1b838501526101808501929092528451808601865290815269098d2dccadc40a6c2e6d60b31b818401526101a0840152835180850190945260048452630a6c2e6d60e31b918401919091526101c0820192909252620008bf916007919062001ece565b506040805161022081018252600c6101e082019081526b486f6c79204772656176657360a01b610200830152815281518083018352600e81526d4f726e617465204772656176657360901b602082810191909152808301919091528251808401845260078152664772656176657360c81b818301528284015282518084018452600b8082526a436861696e20426f6f747360a81b828401526060840191909152835180850185528181526a486561767920426f6f747360a81b81840152608084015283518085018552600f8082526e44656d6f6e6869646520426f6f747360881b8285015260a085019190915284518086018652601081526f447261676f6e736b696e20426f6f747360801b8185015260c085015284518086018652601581527f53747564646564204c65617468657220426f6f747300000000000000000000008185015260e085015284518086018652601281527148617264204c65617468657220426f6f747360701b8185015261010085015284518086018652600d8082526c4c65617468657220426f6f747360981b82860152610120860191909152855180870187528281526e446976696e6520536c69707065727360881b81860152610140860152855180870187529081526c53696c6b20536c69707065727360981b8185015261016085015284518086018652600a815269576f6f6c2053686f657360b01b81850152610180850152845180860186529182526a4c696e656e2053686f657360a81b828401526101a08401919091528351808501909452600584526453686f657360d81b918401919091526101c082019290925262000b27916008919062001ece565b506040805161022081018252600e6101e082018181526d486f6c79204761756e746c65747360901b610200840152825282518084018452601081526f4f726e617465204761756e746c65747360801b60208281019190915280840191909152835180850185526009808252684761756e746c65747360b81b828401528486019190915284518086018652600c8082526b436861696e20476c6f76657360a01b828501526060860191909152855180870187528181526b486561767920476c6f76657360a01b81850152608086015285518087018752600d8082526c44656d6f6e27732048616e647360981b8286015260a0870191909152865180880188526011815270447261676f6e736b696e20476c6f76657360781b8186015260c087015286518088018852601681527f53747564646564204c65617468657220476c6f766573000000000000000000008186015260e087015286518088018852601381527f48617264204c65617468657220476c6f7665730000000000000000000000000081860152610100870152865180880188529485526d4c65617468657220476c6f76657360901b85850152610120860194909452855180870187529384526c446976696e6520476c6f76657360981b8484015261014085019390935284518086018652600b8082526a53696c6b20476c6f76657360a81b82850152610160860191909152855180870187529081526a576f6f6c20476c6f76657360a81b81840152610180850152845180860186529283526b4c696e656e20476c6f76657360a01b838301526101a084019290925283518085019094526006845265476c6f76657360d01b908401526101c082019290925262000da69190600f62001ece565b506040518060600160405280604051806040016040528060088152602001674e65636b6c61636560c01b815250815260200160405180604001604052806006815260200165105b5d5b195d60d21b81525081526020016040518060400160405280600781526020016614195b99185b9d60ca1b815250815250600a90600362000e3192919062001f20565b506040518060a0016040528060405180604001604052806009815260200168476f6c642052696e6760b81b81525081526020016040518060400160405280600b81526020016a53696c7665722052696e6760a81b81525081526020016040518060400160405280600b81526020016a42726f6e7a652052696e6760a81b81525081526020016040518060400160405280600d81526020016c506c6174696e756d2052696e6760981b81525081526020016040518060400160405280600d81526020016c546974616e69756d2052696e6760981b815250815250600b90600562000f1c92919062001f72565b506040518061020001604052806040518060400160405280600881526020016737b3102837bbb2b960c11b8152508152602001604051806040016040528060098152602001686f66204769616e747360b81b8152508152602001604051806040016040528060098152602001686f6620546974616e7360b81b8152508152602001604051806040016040528060088152602001671bd98814dada5b1b60c21b81525081526020016040518060400160405280600d81526020016c37b3102832b93332b1ba34b7b760991b81525081526020016040518060400160405280600d81526020016c6f66204272696c6c69616e636560981b81525081526020016040518060400160405280601081526020016f1bd988115b9b1a59da1d195b9b595b9d60821b81525081526020016040518060400160405280600d81526020016c37b310283937ba32b1ba34b7b760991b81525081526020016040518060400160405280600881526020016737b31020b733b2b960c11b8152508152602001604051806040016040528060078152602001666f66205261676560c81b8152508152602001604051806040016040528060078152602001666f66204675727960c81b81525081526020016040518060400160405280600a8152602001691bd988159a5d1c9a5bdb60b21b81525081526020016040518060400160405280600a8152602001690decc40e8d0ca408cdef60b31b81525081526020016040518060400160405280600c81526020016b37b3102232ba32b1ba34b7b760a11b81525081526020016040518060400160405280600d81526020016c37b3102932b33632b1ba34b7b760991b81525081526020016040518060400160405280600c81526020016b6f6620746865205477696e7360a01b815250815250600c906010620011c192919062001fc4565b50604080516108e08101825260056108a082018181526441676f6e7960d81b6108c0840152825282518084018452600a8082526941706f63616c7970736560b01b60208381019190915280850192909252845180860186528181526920b936b0b3b2b23237b760b11b818401528486015284518086018652838152641099585cdd60da1b81840152606085015284518086018652600880825267084cad0cadadee8d60c31b82850152608086019190915285518087018752600680825265109b1a59da1d60d21b8286015260a08701919091528651808801885285815264109b1bdbd960da1b8186015260c0870152865180880188526007808252664272616d626c6560c81b8287015260e0880191909152875180890189526009808252684272696d73746f6e6560b81b828801526101008901919091528851808a018a5287815264109c9bdbd960da1b818801526101208901528851808a018a528281526621b0b93934b7b760c91b818801526101408901528851808a018a528181526843617461636c79736d60b81b818801526101608901528851808a018a52848152674368696d6572696360c01b818801526101808901528851808a018a5283815265436f7270736560d01b818801526101a08901528851808a018a528581526921b7b9393ab83a34b7b760b11b818801526101c08901528851808a018a52818152682230b6b730ba34b7b760b91b818801526101e08901528851808a018a5287815264088cac2e8d60db1b818801526102008901528851808a018a52878152642232b6b7b760d91b818801526102208901528851808a018a526004808252634469726560e01b828901526102408a01919091528951808b018b5284815265223930b3b7b760d11b818901526102608a01528951808b018b5288815264111c99585960da1b818901526102808a01528951808b018b5281815263446f6f6d60e01b818901526102a08a01528951808b018b52818152634475736b60e01b818901526102c08a01528951808b018b52888152644561676c6560d81b818901526102e08a01528951808b018b528581526722b6b83cb932b0b760c11b818901526103008a01528951808b018b52818152634661746560e01b818901526103208a01528951808b018b52600380825262466f6560e81b828a01526103408b01919091528a51808c018c528281526347616c6560e01b818a01526103608b01528a51808c018c528981526411da1bdd5b60da1b818a01526103808b01528a51808c018c5289815264476c6f6f6d60d81b818a01526103a08b01528a51808c018c528981526408ed8f2e0d60db1b818a01526103c08b01528a51808c018c5289815264476f6c656d60d81b818a01526103e08b01528a51808c018c52828152634772696d60e01b818a01526104008b01528a51808c018c52828152634861746560e01b818a01526104208b01528a51808c018c52898152644861766f6360d81b818a01526104408b01528a51808c018c52858152652437b737bab960d11b818a01526104608b01528a51808c018c52858152652437b93937b960d11b818a01526104808b01528a51808c018c52868152674879706e6f74696360c01b818a01526104a08b01528a51808c018c528581526525b930b5b2b760d11b818a01526104c08b01528a51808c018c5289815264098dec2e8d60db1b818a01526104e08b01528a51808c018c52838152684d61656c7374726f6d60b81b818a01526105008b01528a51808c018c5282815263135a5b9960e21b818a01526105208b01528a51808c018c52848152664d697261636c6560c81b818a01526105408b01528a51808c018c5285815265135bdc989a5960d21b818a01526105608b01528a51808c018c529586526727b13634bb34b7b760c11b868901526105808a01959095528951808b018b528281526813db9cdb185d59da1d60ba1b818901526105a08a01528951808b018b52818152632830b4b760e11b818901526105c08a01528951808b018b52600b81526a50616e64656d6f6e69756d60a81b818901526105e08a01528951808b018b52838152660a0d0decadcd2f60cb1b818901526106008a01528951808b018b5284815265506c6167756560d01b818901526106208a01528951808b018b52818152635261676560e01b818901526106408a01528951808b018b52838152665261707475726560c81b818901526106608a01528951808b018b528181526352756e6560e01b818901526106808a01528951808b018b528881526414dadd5b1b60da1b818901526106a08a01528951808b018b528581526214dbdb60ea1b818901526106c08a01528951808b018b529081526314dbdd5b60e21b818801526106e08901528851808a018a5283815265536f72726f7760d01b818801526107008901528851808a018a528381526514dc1a5c9a5d60d21b818801526107208901528851808a018a528781526453746f726d60d81b818801526107408901528851808a018a528281526615195b5c195cdd60ca1b818801526107608901528851808a018a5282815266151bdc9b595b9d60ca1b818801526107808901528851808a018a529081526856656e6765616e636560b81b818701526107a08801528751808901895281815266566963746f727960c81b818701526107c088015287518089018952868152642b34b832b960d91b818701526107e088015287518089018952918252650acdee4e8caf60d31b828601526108008701919091528651808801885291825262576f6560e81b8285015261082086019190915285518087018752938452640aee4c2e8d60db1b8484015261084085019390935284518086018652928352664c69676874277360c81b838301526108608401929092528351808501909452908352695368696d6d6572696e6760b01b9083015261088081019190915262001a2b90600d90604562002016565b506040805161028081018252600461024082018181526342616e6560e01b61026084015282528251808401845281815263149bdbdd60e21b6020828101919091528084019190915283518085018552828152634269746560e01b81830152838501528351808501855282815263536f6e6760e01b81830152606084015283518085018552828152632937b0b960e11b81830152608084015283518085018552600580825264047726173760dc1b8284015260a085019190915284518086018652600a815269125b9cdd1c9d5b595b9d60b21b8184015260c08501528451808601865283815263476c6f7760e01b8184015260e0850152845180860186526006808252652132b73232b960d11b828501526101008601919091528551808701875290815265536861646f7760d01b818401526101208501528451808601865260078152662bb434b9b832b960c91b81840152610140850152845180860186528181526414da1bdd5d60da1b81840152610160850152845180860186529081526411dc9bdddb60da1b8183015261018084015283518085018552828152632a32b0b960e11b818301526101a084015283518085018552828152635065616b60e01b818301526101c08401528351808501855282815263466f726d60e01b818301526101e084015283518085018552600381526229bab760e91b8183015261020084015283518085019094529083526326b7b7b760e11b9083015261022081019190915262001c5c90600e90601262001e6a565b50604080516101408101825260066101008201908152653bb2b0b837b760d11b61012083015281528151808301835260058082526418da195cdd60da1b60208381019190915280840192909252835180850185526004808252631a19585960e21b828501528486019190915284518086018652918252641dd85a5cdd60da1b8284015260608401919091528351808501855281815263199bdbdd60e21b81840152608084015283518085018552818152631a185b9960e21b8184015260a084015283518085018552818152636e65636b60e01b8184015260c0840152835180850190945283526372696e6760e01b9083015260e081019190915262001d6690600f90600862002068565b506001601255611f4060135534801562001d7f57600080fd5b50604051620065df380380620065df83398101604081905262001da291620021df565b604080516020810190915260008152819062001dbe3362001e01565b62001dc98162001e51565b50805162001ddf906010906020840190620020ba565b5050506001600160601b0319606092831b8116608052911b1660a05262002330565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b805162001e66906003906020840190620020ba565b5050565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162001eab918491602090910190620020ba565b509160200191906001019062001e8b565b5062001eca92915062002145565b5090565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162001f0f918491602090910190620020ba565b509160200191906001019062001eef565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162001f61918491602090910190620020ba565b509160200191906001019062001f41565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162001fb3918491602090910190620020ba565b509160200191906001019062001f93565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162002005918491602090910190620020ba565b509160200191906001019062001fe5565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc578251805162002057918491602090910190620020ba565b509160200191906001019062002037565b82805482825590600052602060002090810192821562001ebc579160200282015b8281111562001ebc5782518051620020a9918491602090910190620020ba565b509160200191906001019062002089565b828054620020c890620022dd565b90600052602060002090601f016020900481019282620020ec576000855562002137565b82601f106200210757805160ff191683800117855562002137565b8280016001018555821562002137579182015b82811115620021375782518255916020019190600101906200211a565b5062001eca92915062002166565b8082111562001eca5760006200215c82826200217d565b5060010162002145565b5b8082111562001eca576000815560010162002167565b5080546200218b90620022dd565b6000825580601f106200219f5750620021bf565b601f016020900490600052602060002090810190620021bf919062002166565b50565b80516001600160a01b0381168114620021da57600080fd5b919050565b600080600060608486031215620021f4578283fd5b620021ff84620021c2565b9250602062002210818601620021c2565b60408601519093506001600160401b03808211156200222d578384fd5b818701915087601f83011262002241578384fd5b8151818111156200225657620022566200231a565b604051601f8201601f19908116603f011681019083821181831017156200228157620022816200231a565b816040528281528a8684870101111562002299578687fd5b8693505b82841015620022bc57848401860151818501870152928501926200229d565b82841115620022cd57868684830101525b8096505050505050509250925092565b600181811c90821680620022f257607f821691505b602082108114156200231457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c6142606200237f600039600081816106ec015261082c015260008181610a8c01528181610b530152818161146e015281816115350152611f2501526142606000f3fe608060405234801561001057600080fd5b50600436106101ed5760003560e01c8062fdd58e146101f257806301ffc9a71461021857806306fdde031461023b57806308dd465b146102505780630e89341c146102635780631afea27d146102765780631df914a61461028b5780632a3890621461029e5780632eb2c2d6146102a757806342a216f2146102ba57806343f42802146102cd5780634622ab03146102d657806347d8636a146102f65780634e1273f41461030957806355003d301461032957806355f804b314610331578063675a2858146103445780636815f125146103575780636c0360eb1461036a578063702e272c14610372578063715018a614610392578063732fc1791461039a57806381a84147146103ad578063896265b3146103c05780638da5cb5b146103e357806390aefe29146103f857806395d89b4114610418578063a22cb46514610438578063a9dfcd211461044b578063adb031021461045e578063b4bfafa914610471578063b5129ea814610484578063bb65cdf814610497578063c6220ef9146104aa578063c87b56dd146104bd578063cbf0b276146104d0578063d05dcc6a146104d8578063e985e9c5146104eb578063eea73b1a14610527578063f242432a1461053a578063f2fde38b1461054d578063fac333ac14610560575b600080fd5b6102056102003660046133aa565b610580565b6040519081526020015b60405180910390f35b61022b610226366004613544565b61061c565b604051901515815260200161020f565b610243610649565b60405161020f9190613e00565b61020561025e3660046135c1565b61066c565b6102436102713660046135c1565b610681565b610289610284366004613512565b61068c565b005b6102436102993660046135c1565b610764565b61020560125481565b6102896102b536600461326a565b610788565b6102896102c83660046135c1565b610818565b61020560135481565b6102e96102e43660046135c1565b610857565b60405161020f9190613f57565b6102896103043660046135c1565b61090c565b61031c6103173660046133d5565b610919565b60405161020f9190613dc8565b610289610a7a565b61028961033f36600461357c565b610c10565b6102056103523660046135c1565b610c27565b6102056103653660046135c1565b610c3c565b610243610c51565b610385610380366004613512565b610cdf565b60405161020f9190613d67565b610289610dc7565b6102056103a83660046135c1565b610e02565b6102436103bb3660046134a1565b610e17565b61022b6103ce3660046135c1565b60116020526000908152604090205460ff1681565b6103eb610fef565b60405161020f9190613c6d565b61040b610406366004613512565b610ffe565b60405161020f9190613d18565b6040805180820190915260048152631350549560e21b6020820152610243565b610289610446366004613379565b6110df565b6102056104593660046135c1565b6111c3565b61024361046c3660046135f1565b6111d8565b61020561047f3660046135c1565b61135d565b6102056104923660046135c1565b611372565b6102056104a53660046135c1565b611387565b6102896104b8366004613512565b61139c565b6102436104cb3660046135c1565b6113dd565b61028961145c565b6102436104e63660046135c1565b611572565b61022b6104f9366004613232565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102436105353660046135c1565b611af7565b610289610548366004613313565b611c50565b61028961055b3660046131fa565b611cd7565b61057361056e3660046135c1565b611d74565b60405161020f9190613f48565b60006001600160a01b0383166105f15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216633cd78bef60e21b1480610641575061064182611dfb565b90505b919050565b604080518082019091526008815267131bdbdd1b585c9d60c21b60208201525b90565b600061064161067a83611e4b565b6002611e7b565b6060610641826113dd565b60005b81518110156106e1576106cf8282815181106106bb57634e487b7160e01b600052603260045260246000fd5b60200260200101516106ca3390565b611f0f565b806106d981614086565b91505061068f565b506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632d9b6f57335b6040518263ffffffff1660e01b815260040161072f9190613c6d565b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b5050505050565b6060600080610772846123e0565b915091506107808282610e17565b949350505050565b6001600160a01b0385163314806107a457506107a485336104f9565b61080b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105e8565b61075d858585858561244b565b61082281336106ca565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632d9b6f5733610713565b61085f612fc9565b600061086a83611d74565b90506040518061010001604052806108858360000151610764565b81526020016108978360200151610764565b81526020016108a98360400151610764565b81526020016108bb8360600151610764565b81526020016108cd8360800151610764565b81526020016108df8360a00151610764565b81526020016108f18360c00151610764565b81526020016109038360e00151610764565b90529392505050565b61091681336106ca565b50565b6060815183511461097e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105e8565b600083516001600160401b038111156109a757634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109d0578160200160208202803683370190505b50905060005b8451811015610a7257610a37858281518110610a0257634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610a2a57634e487b7160e01b600052603260045260246000fd5b6020026020010151610580565b828281518110610a5757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a6b81614086565b90506109d6565b509392505050565b6040516370a0823160e01b81526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190610ac9903390600401613c6d565b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1991906135d9565b905060008111610b3b5760405162461bcd60e51b81526004016105e890613f1f565b60005b818110156106e157610bfe6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632f745c59335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b158015610bc057600080fd5b505afa158015610bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf891906135d9565b336106ca565b80610c0881614086565b915050610b3e565b8051610c2390601090602084019061300e565b5050565b6000610641610c3583612635565b6006611e7b565b6000610641610c4a83612665565b6001611e7b565b60108054610c5e9061401f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a9061401f565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b505050505081565b6060600082516001600160401b03811115610d0a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d4357816020015b610d30612fc9565b815260200190600190039081610d285790505b50905060005b8351811015610dc057610d82848281518110610d7557634e487b7160e01b600052603260045260246000fd5b6020026020010151610857565b828281518110610da257634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610db890614086565b915050610d49565b5092915050565b33610dd0610fef565b6001600160a01b031614610df65760405162461bcd60e51b81526004016105e890613eea565b610e006000612696565b565b6000610641610e10836126e6565b6007611e7b565b60606000610e2c8385835b60200201516111d8565b602085015190915015610e9a5780600c600186816020020151610e4f9190613fd8565b81548110610e6d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610e88929190613891565b60405160208183030381529060405290505b604084015115610fbb576000600d60018660026020020151610ebc9190613fd8565b81548110610eda57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610ef49190613993565b60408051808303601f19018152919052606086015190915015610f735780600e60018760036020020151610f289190613fd8565b81548110610f4657634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610f61929190613891565b60405160208183030381529060405290505b80604051602001610f849190613944565b60405160208183030381529060405290508082604051602001610fa8929190613862565b6040516020818303038152906040529150505b608084015115610fe85780604051602001610fd6919061391d565b60405160208183030381529060405290505b9392505050565b6000546001600160a01b031690565b6060600082516001600160401b0381111561102957634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106257816020015b61104f613092565b8152602001906001900390816110475790505b50905060005b8351811015610dc0576110a184828151811061109457634e487b7160e01b600052603260045260246000fd5b6020026020010151611d74565b8282815181106110c157634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806110d790614086565b915050611068565b336001600160a01b038316141561114a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105e8565b3360008181526002602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111b7911515815260200190565b60405180910390a35050565b60006106416111d183612716565b6000611e7b565b60606000836111e9575060046112a1565b60018414156111fa575060056112a1565b600284141561120b575060066112a1565b600384141561121c575060076112a1565b600484141561122d575060086112a1565b600584141561123e575060096112a1565b600684141561124f5750600a6112a1565b60078414156112605750600b6112a1565b60405162461bcd60e51b8152602060048201526016602482015275556e65787065637465642061726d6f7220706965636560501b60448201526064016105e8565b8083815481106112c157634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546112d69061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546113029061401f565b801561134f5780601f106113245761010080835404028352916020019161134f565b820191906000526020600020905b81548152906001019060200180831161133257829003601f168201915b505050505091505092915050565b600061064161136b83612748565b6003611e7b565b600061064161138083612779565b6005611e7b565b6000610641611395836127a9565b6004611e7b565b60005b8151811015610c23576113cb8282815181106106bb57634e487b7160e01b600052603260045260246000fd5b806113d581614086565b91505061139f565b606060006114326113ed84610764565b6113f685610764565b6010611401876127d9565b61140a88611572565b60405160200161141e959493929190613a38565b6040516020818303038152906040526128f3565b9050806040516020016114459190613c28565b604051602081830303815290604052915050919050565b6040516370a0823160e01b81526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a08231906114ab903390600401613c6d565b60206040518083038186803b1580156114c357600080fd5b505afa1580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb91906135d9565b90506000811161151d5760405162461bcd60e51b81526004016105e890613f1f565b60005b81811015610c23576115606001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632f745c5933610b7a565b8061156a81614086565b915050611520565b6060600080611580846123e0565b915091506000600f82815481106115a757634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546115bc9061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546115e89061401f565b80156116355780601f1061160a57610100808354040283529160200191611635565b820191906000526020600020905b81548152906001019060200180831161161857829003601f168201915b505050505090506000611669604051806040016040528060098152602001684974656d205479706560b81b81525083612a66565b604051602001611679919061396a565b60408051601f1981840301815291905290506000611698848683610e22565b9050816116c1604051806040016040528060048152602001634e616d6560e01b81525083612a66565b6040516020016116d29291906138e0565b60408051808303601f19018152919052602086015190925015611806576000600c6001878160200201516117069190613fd8565b8154811061172457634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546117399061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546117659061401f565b80156117b25780601f10611787576101008083540402835291602001916117b2565b820191906000526020600020905b81548152906001019060200180831161179557829003601f168201915b50505050509050826117e2604051806040016040528060068152602001650a6eaccccd2f60d31b81525083612a66565b6040516020016117f39291906138e0565b6040516020818303038152906040529250505b60408501511561192d576000600d600187600260200201516118289190613fd8565b8154811061184657634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461185b9061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546118879061401f565b80156118d45780601f106118a9576101008083540402835291602001916118d4565b820191906000526020600020905b8154815290600101906020018083116118b757829003601f168201915b50505050509050826119096040518060400160405280600b81526020016a09cc2daca40a0e4caccd2f60ab1b81525083612a66565b60405160200161191a9291906138e0565b6040516020818303038152906040529250505b606085015115611a54576000600e6001876003602002015161194f9190613fd8565b8154811061196d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119829061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546119ae9061401f565b80156119fb5780601f106119d0576101008083540402835291602001916119fb565b820191906000526020600020905b8154815290600101906020018083116119de57829003601f168201915b5050505050905082611a306040518060400160405280600b81526020016a09cc2daca40a6eaccccd2f60ab1b81525083612a66565b604051602001611a419291906138e0565b6040516020818303038152906040529250505b608085015115611acb5781611aa86040518060400160405280600c81526020016b20bab3b6b2b73a30ba34b7b760a11b8152506040518060400160405280600381526020016259657360e81b815250612a66565b604051602001611ab99291906138e0565b60405160208183030381529060405291505b81604051602001611adc91906138bb565b60408051808303601f19018152919052979650505050505050565b60606000611b04836123e0565b915050604051806101000160405280604051806040016040528060068152602001653bb2b0b837b760d11b81525081526020016040518060400160405280600581526020016418da195cdd60da1b8152508152602001604051806040016040528060048152602001631a19585960e21b8152508152602001604051806040016040528060058152602001641dd85a5cdd60da1b815250815260200160405180604001604052806004815260200163199bdbdd60e21b8152508152602001604051806040016040528060048152602001631a185b9960e21b8152508152602001604051806040016040528060048152602001636e65636b60e01b81525081526020016040518060400160405280600481526020016372696e6760e01b8152508152508160088110611c4457634e487b7160e01b600052603260045260246000fd5b60200201519392505050565b6001600160a01b038516331480611c6c5750611c6c85336104f9565b611cca5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105e8565b61075d8585858585612a92565b33611ce0610fef565b6001600160a01b031614611d065760405162461bcd60e51b81526004016105e890613eea565b6001600160a01b038116611d6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e8565b61091681612696565b611d7c613092565b604051806101000160405280611d91846111c3565b8152602001611d9f84610c3c565b8152602001611dad8461066c565b8152602001611dbb8461135d565b8152602001611dc984611387565b8152602001611dd784611372565b8152602001611de584610c27565b8152602001611df384610e02565b905292915050565b60006001600160e01b03198216636cdb3d1360e11b1480611e2c57506001600160e01b031982166303a24d0760e21b145b8061064157506301ffc9a760e01b6001600160e01b0319831614610641565b611e536130d7565b61064182604051806040016040528060048152602001631211505160e21b815250600f612bbc565b81516000908290611e8d906001612caf565b611e979082613f8d565b9050611eab84600160200201516002612caf565b611eb59082613f8d565b9050611ec984600260200201516003612caf565b611ed39082613f8d565b9050611ee784600360200201516004612caf565b611ef19082613f8d565b9050611f0584600460200201516005612caf565b6107809082613f8d565b6040516331a9108f60e11b8152600481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636352211e9060240160206040518083038186803b158015611f6f57600080fd5b505afa158015611f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa79190613216565b6001600160a01b0316816001600160a01b031614611ffb5760405162461bcd60e51b8152602060048201526011602482015270135554d517d3d5d397d513d2d15397d251607a1b60448201526064016105e8565b601254821015801561200f57506013548211155b6120535760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b60448201526064016105e8565b60008281526011602052604090205460ff16156120a45760405162461bcd60e51b815260206004820152600f60248201526e1053149150511657d0d31052535151608a1b60448201526064016105e8565b6000828152601160209081526040808320805460ff19166001179055805160088082526101208201909252918201610100803683375050604080516008808252610120820190925292935060009291506020820161010080368337019050509050612113846127166000612cca565b8260008151811061213457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061214e846126656001612cca565b8260018151811061216f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061218984611e4b6002612cca565b826002815181106121aa57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121c4846127486003612cca565b826003815181106121e557634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121ff846127a96004612cca565b8260048151811061222057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061223a846127796005612cca565b8260058151811061225b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050612275846126356006612cca565b8260068151811061229657634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506122b0846126e66007612cca565b826007815181106122d157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b825181101561239c57600182828151811061230b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600180600085848151811061233c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000866001600160a01b03166001600160a01b0316815260200190815260200160002060008282546123849190613f8d565b9091555081905061239481614086565b9150506122e0565b506001600160a01b0383166000336001600160a01b03166000805160206141cb83398151915285856040516123d2929190613ddb565b60405180910390a450505050565b6123e86130d7565b60006123f5836000612cef565b9050612402836001612cef565b825261240f836002612cef565b602083015261241f836003612cef565b604083015261242f836004612cef565b606083015261243f836005612cef565b60808301529092909150565b81518351146124ad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105e8565b6001600160a01b0384166124d35760405162461bcd60e51b81526004016105e890613e5b565b3360005b84518110156125d957600085828151811061250257634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061252e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561257f5760405162461bcd60e51b81526004016105e890613ea0565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906125be908490613f8d565b92505081905550505050806125d290614086565b90506124d7565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206141cb8339815191528787604051612617929190613ddb565b60405180910390a461262d818787878787612d0a565b505050505050565b61263d6130d7565b61064182604051806040016040528060048152602001634e45434b60e01b8152506003612bbc565b61266d6130d7565b610641826040518060400160405280600581526020016410d21154d560da1b815250600f612bbc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6126ee6130d7565b610641826040518060400160405280600481526020016352494e4760e01b8152506005612bbc565b61271e6130d7565b61064182604051806040016040528060068152602001652ba2a0a827a760d11b8152506012612bbc565b6127506130d7565b610641826040518060400160405280600581526020016415d05254d560da1b815250600f612bbc565b6127816130d7565b61064182604051806040016040528060048152602001631210539160e21b815250600f612bbc565b6127b16130d7565b61064182604051806040016040528060048152602001631193d3d560e21b815250600f612bbc565b6060816127fe57506040805180820190915260018152600360fc1b6020820152610644565b8160005b8115612828578061281281614086565b91506128219050600a83613fa5565b9150612802565b6000816001600160401b0381111561285057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561287a576020820181803683370190505b5090505b84156107805761288f600183613fd8565b915061289c600a866140a1565b6128a7906030613f8d565b60f81b8183815181106128ca57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128ec600a86613fa5565b945061287e565b805160609080612913575050604080516020810190915260008152610644565b60006003612922836002613f8d565b61292c9190613fa5565b612937906004613fb9565b90506000612946826020613f8d565b6001600160401b0381111561296b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612995576020820181803683370190505b50905060006040518060600160405280604081526020016141eb604091399050600181016020830160005b86811015612a21576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016129c0565b506003860660018114612a3b5760028114612a4c57612a58565b613d3d60f01b600119830152612a58565b603d60f81b6000198301525b505050918152949350505050565b60608282604051602001612a7b9291906139a9565b604051602081830303815290604052905092915050565b6001600160a01b038416612ab85760405162461bcd60e51b81526004016105e890613e5b565b33612ad1818787612ac888612e75565b61075d88612e75565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612b145760405162461bcd60e51b81526004016105e890613ea0565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612b53908490613f8d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612bb3828888888888612ece565b50505050505050565b612bc46130d7565b612bcc6130d7565b6000612c0085612bdb886127d9565b604051602001612bec929190613862565b604051602081830303815290604052612f98565b9050612c0c84826140a1565b825260006020830181905260408301819052612c296015836140a1565b9050600e811115612c5057612c3f6010836140a1565b612c4a906001613f8d565b60208401525b60138110612ca457612c636045836140a1565b612c6e906001613f8d565b6040840152612c7e6012836140a1565b612c89906001613f8d565b60608401526013811415612c9c57612ca4565b600160808401525b509095945050505050565b6000612cbc826010613fb9565b8360ff16901b905092915050565b600080612cda858563ffffffff16565b9050612ce68184611e7b565b95945050505050565b6000612cfc826010613fb9565b83901c60ff16905092915050565b6001600160a01b0384163b1561262d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d4e9089908990889088908890600401613c81565b602060405180830381600087803b158015612d6857600080fd5b505af1925050508015612d98575060408051601f3d908101601f19168201909252612d9591810190613560565b60015b612e4557612da46140f7565b806308c379a01415612dde5750612db961410e565b80612dc45750612de0565b8060405162461bcd60e51b81526004016105e89190613e00565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105e8565b6001600160e01b0319811663bc197c8160e01b14612bb35760405162461bcd60e51b81526004016105e890613e13565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ebd57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561262d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f129089908990889088908890600401613cd3565b602060405180830381600087803b158015612f2c57600080fd5b505af1925050508015612f5c575060408051601f3d908101601f19168201909252612f5991810190613560565b60015b612f6857612da46140f7565b6001600160e01b0319811663f23a6e6160e01b14612bb35760405162461bcd60e51b81526004016105e890613e13565b600081604051602001612fab9190613846565b60408051601f19818403018152919052805160209091012092915050565b60405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b82805461301a9061401f565b90600052602060002090601f01602090048101928261303c5760008555613082565b82601f1061305557805160ff1916838001178555613082565b82800160010185558215613082579182015b82811115613082578251825591602001919060010190613067565b5061308e9291506130f5565b5090565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a001604052806005906020820280368337509192915050565b5b8082111561308e57600081556001016130f6565b60006001600160401b03831115613123576131236140e1565b60405161313a601f8501601f19166020018261405a565b80915083815284848401111561314f57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613177578081fd5b8135602061318482613f6a565b604051613191828261405a565b8381528281019150858301600585901b870184018810156131b0578586fd5b855b858110156131ce578135845292840192908401906001016131b2565b5090979650505050505050565b600082601f8301126131eb578081fd5b610fe88383356020850161310a565b60006020828403121561320b578081fd5b8135610fe88161419f565b600060208284031215613227578081fd5b8151610fe88161419f565b60008060408385031215613244578081fd5b823561324f8161419f565b9150602083013561325f8161419f565b809150509250929050565b600080600080600060a08688031215613281578081fd5b853561328c8161419f565b9450602086013561329c8161419f565b935060408601356001600160401b03808211156132b7578283fd5b6132c389838a01613167565b945060608801359150808211156132d8578283fd5b6132e489838a01613167565b935060808801359150808211156132f9578283fd5b50613306888289016131db565b9150509295509295909350565b600080600080600060a0868803121561332a578081fd5b85356133358161419f565b945060208601356133458161419f565b9350604086013592506060860135915060808601356001600160401b0381111561336d578182fd5b613306888289016131db565b6000806040838503121561338b578182fd5b82356133968161419f565b91506020830135801515811461325f578182fd5b600080604083850312156133bc578182fd5b82356133c78161419f565b946020939093013593505050565b600080604083850312156133e7578182fd5b82356001600160401b03808211156133fd578384fd5b818501915085601f830112613410578384fd5b8135602061341d82613f6a565b60405161342a828261405a565b8381528281019150858301600585901b870184018b1015613449578889fd5b8896505b848710156134745780356134608161419f565b83526001969096019591830191830161344d565b509650508601359250508082111561348a578283fd5b5061349785828601613167565b9150509250929050565b60008060c083850312156134b3578182fd5b83601f8401126134c1578182fd5b6040516134cf60a08261405a565b808460a08601878111156134e1578586fd5b855b60058110156135025782358452602093840193909201916001016134e3565b5092979235965091945050505050565b600060208284031215613523578081fd5b81356001600160401b03811115613538578182fd5b61078084828501613167565b600060208284031215613555578081fd5b8135610fe8816141b4565b600060208284031215613571578081fd5b8151610fe8816141b4565b60006020828403121561358d578081fd5b81356001600160401b038111156135a2578182fd5b8201601f810184136135b2578182fd5b6107808482356020840161310a565b6000602082840312156135d2578081fd5b5035919050565b6000602082840312156135ea578081fd5b5051919050565b60008060408385031215613603578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561364157815187529582019590820190600101613625565b509495945050505050565b60008151808452613664816020860160208601613fef565b601f01601f19169290920160200192915050565b6000815161368a818560208601613fef565b9290920192915050565b8054600090600181811c90808316806136ae57607f831692505b60208084108214156136ce57634e487b7160e01b86526022600452602486fd5b8180156136e257600181146136f357613720565b60ff19861689528489019650613720565b60008881526020902060005b868110156137185781548b8201529085019083016136ff565b505084890196505b50505050505092915050565b805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301525050565b600061010082518185526137908286018261364c565b915050602083015184820360208601526137aa828261364c565b915050604083015184820360408601526137c4828261364c565b915050606083015184820360608601526137de828261364c565b915050608083015184820360808601526137f8828261364c565b91505060a083015184820360a0860152613812828261364c565b91505060c083015184820360c086015261382c828261364c565b91505060e083015184820360e0860152612ce6828261364c565b60008251613858818460208701613fef565b9190910192915050565b60008351613874818460208801613fef565b835190830190613888818360208801613fef565b01949350505050565b600083516138a3818460208801613fef565b600160fd1b908301908152612ce66001820185613694565b600082516138cd818460208701613fef565b605d60f81b920191825250600101919050565b600083516138f2818460208801613fef565b61016160f51b9083019081528351613911816002840160208801613fef565b01600201949350505050565b6000825161392f818460208701613fef565b62202b3160e81b920191825250600301919050565b60008251613956818460208701613fef565b61013960f51b920191825250600201919050565b6000605b60f81b82528251613986816001850160208701613fef565b9190910160010192915050565b6000602760f81b8252610fe86001830184613694565b607b60f81b81526e113a3930b4ba2fba3cb832911d101160891b600182015282516000906139de816010850160208801613fef565b6201116160ed1b60109184019182015269113b30b63ab2911d101160b11b60138201528351613a1481601d840160208801613fef565b601160f91b601d9290910191820152607d60f81b601e820152601f01949350505050565b607b60f81b815268113730b6b2911d101160b91b60018201528551600090613a6781600a850160208b01613fef565b6201116160ed1b600a918401918201526f113232b9b1b934b83a34b7b7111d101160811b600d8201528651613aa381601d840160208b01613fef565b632e372e3760e11b9101601d8101919091527f4c6f6f746d617274206974656d732061726520696e646976696475616c204c6f60218201527f6f74206974656d73207468617420796f752063616e20747261646520616e642060418201527f75736520746f207570677261646520796f757220416476656e74757265722e2060618201527f446966666572656e7420636f6d62696e6174696f6e73206f66204c6f6f74206960818201527f74656d7320756e6c6f636b207370656369616c206162696c697469657320616e60a18201526b032103837bbb2b939971116160a51b60c18201526801134b6b0b3b2911d160bd1b60cd820152613c1c613c0f613c09613bef613bdc613bd6613bc9613bc360d68901601160f91b815260010190565b8d613694565b602f60f81b815260010190565b8a613678565b660173837339116160cd1b815260070190565b6d01130ba3a3934b13aba32b9911d160951b8152600e0190565b86613678565b607d60f81b815260010190565b98975050505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613c6081601d850160208701613fef565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a060408201819052600090613cad90830186613612565b8281036060840152613cbf8186613612565b90508281036080840152613c1c818561364c565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613d0d9083018461364c565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613d5b57613d4783855161372c565b928401926101009290920191600101613d34565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015613dbb57603f19888603018452613da985835161377a565b94509285019290850190600101613d8d565b5092979650505050505050565b600060208252610fe86020830184613612565b600060408252613dee6040830185613612565b8281036020840152612ce68185613612565b600060208252610fe8602083018461364c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201526e1393d7d513d2d15394d7d3d5d39151608a1b604082015260600190565b6101008101610616828461372c565b600060208252610fe8602083018461377a565b60006001600160401b03821115613f8357613f836140e1565b5060051b60200190565b60008219821115613fa057613fa06140b5565b500190565b600082613fb457613fb46140cb565b500490565b6000816000190483118215151615613fd357613fd36140b5565b500290565b600082821015613fea57613fea6140b5565b500390565b60005b8381101561400a578181015183820152602001613ff2565b83811115614019576000848401525b50505050565b600181811c9082168061403357607f821691505b6020821081141561405457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561407f5761407f6140e1565b6040525050565b600060001982141561409a5761409a6140b5565b5060010190565b6000826140b0576140b06140cb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561066957600481823e5160e01c90565b600060443d101561411e57610669565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171561414f575050505050610669565b828501915081518181111561416957505050505050610669565b843d870101602082850101111561418557505050505050610669565b6141946020828601018761405a565b509094505050505090565b6001600160a01b038116811461091657600080fd5b6001600160e01b03198116811461091657600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ec532b13ac5f5d86ce20c4b14b52f268b74c1efdb510544adc672d0557b66bc364736f6c63430008030033000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d700000000000000000000000071355f4a94f46ee32eb443ad2bde2dec0470f94900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d537179697436716f4b35783458574e336d7636596a72537031735070737161365437674d54635751473332680000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ed5760003560e01c8062fdd58e146101f257806301ffc9a71461021857806306fdde031461023b57806308dd465b146102505780630e89341c146102635780631afea27d146102765780631df914a61461028b5780632a3890621461029e5780632eb2c2d6146102a757806342a216f2146102ba57806343f42802146102cd5780634622ab03146102d657806347d8636a146102f65780634e1273f41461030957806355003d301461032957806355f804b314610331578063675a2858146103445780636815f125146103575780636c0360eb1461036a578063702e272c14610372578063715018a614610392578063732fc1791461039a57806381a84147146103ad578063896265b3146103c05780638da5cb5b146103e357806390aefe29146103f857806395d89b4114610418578063a22cb46514610438578063a9dfcd211461044b578063adb031021461045e578063b4bfafa914610471578063b5129ea814610484578063bb65cdf814610497578063c6220ef9146104aa578063c87b56dd146104bd578063cbf0b276146104d0578063d05dcc6a146104d8578063e985e9c5146104eb578063eea73b1a14610527578063f242432a1461053a578063f2fde38b1461054d578063fac333ac14610560575b600080fd5b6102056102003660046133aa565b610580565b6040519081526020015b60405180910390f35b61022b610226366004613544565b61061c565b604051901515815260200161020f565b610243610649565b60405161020f9190613e00565b61020561025e3660046135c1565b61066c565b6102436102713660046135c1565b610681565b610289610284366004613512565b61068c565b005b6102436102993660046135c1565b610764565b61020560125481565b6102896102b536600461326a565b610788565b6102896102c83660046135c1565b610818565b61020560135481565b6102e96102e43660046135c1565b610857565b60405161020f9190613f57565b6102896103043660046135c1565b61090c565b61031c6103173660046133d5565b610919565b60405161020f9190613dc8565b610289610a7a565b61028961033f36600461357c565b610c10565b6102056103523660046135c1565b610c27565b6102056103653660046135c1565b610c3c565b610243610c51565b610385610380366004613512565b610cdf565b60405161020f9190613d67565b610289610dc7565b6102056103a83660046135c1565b610e02565b6102436103bb3660046134a1565b610e17565b61022b6103ce3660046135c1565b60116020526000908152604090205460ff1681565b6103eb610fef565b60405161020f9190613c6d565b61040b610406366004613512565b610ffe565b60405161020f9190613d18565b6040805180820190915260048152631350549560e21b6020820152610243565b610289610446366004613379565b6110df565b6102056104593660046135c1565b6111c3565b61024361046c3660046135f1565b6111d8565b61020561047f3660046135c1565b61135d565b6102056104923660046135c1565b611372565b6102056104a53660046135c1565b611387565b6102896104b8366004613512565b61139c565b6102436104cb3660046135c1565b6113dd565b61028961145c565b6102436104e63660046135c1565b611572565b61022b6104f9366004613232565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102436105353660046135c1565b611af7565b610289610548366004613313565b611c50565b61028961055b3660046131fa565b611cd7565b61057361056e3660046135c1565b611d74565b60405161020f9190613f48565b60006001600160a01b0383166105f15760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060008181526001602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216633cd78bef60e21b1480610641575061064182611dfb565b90505b919050565b604080518082019091526008815267131bdbdd1b585c9d60c21b60208201525b90565b600061064161067a83611e4b565b6002611e7b565b6060610641826113dd565b60005b81518110156106e1576106cf8282815181106106bb57634e487b7160e01b600052603260045260246000fd5b60200260200101516106ca3390565b611f0f565b806106d981614086565b91505061068f565b506001600160a01b037f00000000000000000000000071355f4a94f46ee32eb443ad2bde2dec0470f94916632d9b6f57335b6040518263ffffffff1660e01b815260040161072f9190613c6d565b600060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b5050505050565b6060600080610772846123e0565b915091506107808282610e17565b949350505050565b6001600160a01b0385163314806107a457506107a485336104f9565b61080b5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105e8565b61075d858585858561244b565b61082281336106ca565b6001600160a01b037f00000000000000000000000071355f4a94f46ee32eb443ad2bde2dec0470f94916632d9b6f5733610713565b61085f612fc9565b600061086a83611d74565b90506040518061010001604052806108858360000151610764565b81526020016108978360200151610764565b81526020016108a98360400151610764565b81526020016108bb8360600151610764565b81526020016108cd8360800151610764565b81526020016108df8360a00151610764565b81526020016108f18360c00151610764565b81526020016109038360e00151610764565b90529392505050565b61091681336106ca565b50565b6060815183511461097e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105e8565b600083516001600160401b038111156109a757634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109d0578160200160208202803683370190505b50905060005b8451811015610a7257610a37858281518110610a0257634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610a2a57634e487b7160e01b600052603260045260246000fd5b6020026020010151610580565b828281518110610a5757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610a6b81614086565b90506109d6565b509392505050565b6040516370a0823160e01b81526000907f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d76001600160a01b0316906370a0823190610ac9903390600401613c6d565b60206040518083038186803b158015610ae157600080fd5b505afa158015610af5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1991906135d9565b905060008111610b3b5760405162461bcd60e51b81526004016105e890613f1f565b60005b818110156106e157610bfe6001600160a01b037f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d716632f745c59335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b158015610bc057600080fd5b505afa158015610bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf891906135d9565b336106ca565b80610c0881614086565b915050610b3e565b8051610c2390601090602084019061300e565b5050565b6000610641610c3583612635565b6006611e7b565b6000610641610c4a83612665565b6001611e7b565b60108054610c5e9061401f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a9061401f565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b505050505081565b6060600082516001600160401b03811115610d0a57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610d4357816020015b610d30612fc9565b815260200190600190039081610d285790505b50905060005b8351811015610dc057610d82848281518110610d7557634e487b7160e01b600052603260045260246000fd5b6020026020010151610857565b828281518110610da257634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610db890614086565b915050610d49565b5092915050565b33610dd0610fef565b6001600160a01b031614610df65760405162461bcd60e51b81526004016105e890613eea565b610e006000612696565b565b6000610641610e10836126e6565b6007611e7b565b60606000610e2c8385835b60200201516111d8565b602085015190915015610e9a5780600c600186816020020151610e4f9190613fd8565b81548110610e6d57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610e88929190613891565b60405160208183030381529060405290505b604084015115610fbb576000600d60018660026020020151610ebc9190613fd8565b81548110610eda57634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610ef49190613993565b60408051808303601f19018152919052606086015190915015610f735780600e60018760036020020151610f289190613fd8565b81548110610f4657634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001610f61929190613891565b60405160208183030381529060405290505b80604051602001610f849190613944565b60405160208183030381529060405290508082604051602001610fa8929190613862565b6040516020818303038152906040529150505b608084015115610fe85780604051602001610fd6919061391d565b60405160208183030381529060405290505b9392505050565b6000546001600160a01b031690565b6060600082516001600160401b0381111561102957634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561106257816020015b61104f613092565b8152602001906001900390816110475790505b50905060005b8351811015610dc0576110a184828151811061109457634e487b7160e01b600052603260045260246000fd5b6020026020010151611d74565b8282815181106110c157634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806110d790614086565b915050611068565b336001600160a01b038316141561114a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105e8565b3360008181526002602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111b7911515815260200190565b60405180910390a35050565b60006106416111d183612716565b6000611e7b565b60606000836111e9575060046112a1565b60018414156111fa575060056112a1565b600284141561120b575060066112a1565b600384141561121c575060076112a1565b600484141561122d575060086112a1565b600584141561123e575060096112a1565b600684141561124f5750600a6112a1565b60078414156112605750600b6112a1565b60405162461bcd60e51b8152602060048201526016602482015275556e65787065637465642061726d6f7220706965636560501b60448201526064016105e8565b8083815481106112c157634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546112d69061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546113029061401f565b801561134f5780601f106113245761010080835404028352916020019161134f565b820191906000526020600020905b81548152906001019060200180831161133257829003601f168201915b505050505091505092915050565b600061064161136b83612748565b6003611e7b565b600061064161138083612779565b6005611e7b565b6000610641611395836127a9565b6004611e7b565b60005b8151811015610c23576113cb8282815181106106bb57634e487b7160e01b600052603260045260246000fd5b806113d581614086565b91505061139f565b606060006114326113ed84610764565b6113f685610764565b6010611401876127d9565b61140a88611572565b60405160200161141e959493929190613a38565b6040516020818303038152906040526128f3565b9050806040516020016114459190613c28565b604051602081830303815290604052915050919050565b6040516370a0823160e01b81526000907f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d76001600160a01b0316906370a08231906114ab903390600401613c6d565b60206040518083038186803b1580156114c357600080fd5b505afa1580156114d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114fb91906135d9565b90506000811161151d5760405162461bcd60e51b81526004016105e890613f1f565b60005b81811015610c23576115606001600160a01b037f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d716632f745c5933610b7a565b8061156a81614086565b915050611520565b6060600080611580846123e0565b915091506000600f82815481106115a757634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546115bc9061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546115e89061401f565b80156116355780601f1061160a57610100808354040283529160200191611635565b820191906000526020600020905b81548152906001019060200180831161161857829003601f168201915b505050505090506000611669604051806040016040528060098152602001684974656d205479706560b81b81525083612a66565b604051602001611679919061396a565b60408051601f1981840301815291905290506000611698848683610e22565b9050816116c1604051806040016040528060048152602001634e616d6560e01b81525083612a66565b6040516020016116d29291906138e0565b60408051808303601f19018152919052602086015190925015611806576000600c6001878160200201516117069190613fd8565b8154811061172457634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546117399061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546117659061401f565b80156117b25780601f10611787576101008083540402835291602001916117b2565b820191906000526020600020905b81548152906001019060200180831161179557829003601f168201915b50505050509050826117e2604051806040016040528060068152602001650a6eaccccd2f60d31b81525083612a66565b6040516020016117f39291906138e0565b6040516020818303038152906040529250505b60408501511561192d576000600d600187600260200201516118289190613fd8565b8154811061184657634e487b7160e01b600052603260045260246000fd5b90600052602060002001805461185b9061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546118879061401f565b80156118d45780601f106118a9576101008083540402835291602001916118d4565b820191906000526020600020905b8154815290600101906020018083116118b757829003601f168201915b50505050509050826119096040518060400160405280600b81526020016a09cc2daca40a0e4caccd2f60ab1b81525083612a66565b60405160200161191a9291906138e0565b6040516020818303038152906040529250505b606085015115611a54576000600e6001876003602002015161194f9190613fd8565b8154811061196d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546119829061401f565b80601f01602080910402602001604051908101604052809291908181526020018280546119ae9061401f565b80156119fb5780601f106119d0576101008083540402835291602001916119fb565b820191906000526020600020905b8154815290600101906020018083116119de57829003601f168201915b5050505050905082611a306040518060400160405280600b81526020016a09cc2daca40a6eaccccd2f60ab1b81525083612a66565b604051602001611a419291906138e0565b6040516020818303038152906040529250505b608085015115611acb5781611aa86040518060400160405280600c81526020016b20bab3b6b2b73a30ba34b7b760a11b8152506040518060400160405280600381526020016259657360e81b815250612a66565b604051602001611ab99291906138e0565b60405160208183030381529060405291505b81604051602001611adc91906138bb565b60408051808303601f19018152919052979650505050505050565b60606000611b04836123e0565b915050604051806101000160405280604051806040016040528060068152602001653bb2b0b837b760d11b81525081526020016040518060400160405280600581526020016418da195cdd60da1b8152508152602001604051806040016040528060048152602001631a19585960e21b8152508152602001604051806040016040528060058152602001641dd85a5cdd60da1b815250815260200160405180604001604052806004815260200163199bdbdd60e21b8152508152602001604051806040016040528060048152602001631a185b9960e21b8152508152602001604051806040016040528060048152602001636e65636b60e01b81525081526020016040518060400160405280600481526020016372696e6760e01b8152508152508160088110611c4457634e487b7160e01b600052603260045260246000fd5b60200201519392505050565b6001600160a01b038516331480611c6c5750611c6c85336104f9565b611cca5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105e8565b61075d8585858585612a92565b33611ce0610fef565b6001600160a01b031614611d065760405162461bcd60e51b81526004016105e890613eea565b6001600160a01b038116611d6b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e8565b61091681612696565b611d7c613092565b604051806101000160405280611d91846111c3565b8152602001611d9f84610c3c565b8152602001611dad8461066c565b8152602001611dbb8461135d565b8152602001611dc984611387565b8152602001611dd784611372565b8152602001611de584610c27565b8152602001611df384610e02565b905292915050565b60006001600160e01b03198216636cdb3d1360e11b1480611e2c57506001600160e01b031982166303a24d0760e21b145b8061064157506301ffc9a760e01b6001600160e01b0319831614610641565b611e536130d7565b61064182604051806040016040528060048152602001631211505160e21b815250600f612bbc565b81516000908290611e8d906001612caf565b611e979082613f8d565b9050611eab84600160200201516002612caf565b611eb59082613f8d565b9050611ec984600260200201516003612caf565b611ed39082613f8d565b9050611ee784600360200201516004612caf565b611ef19082613f8d565b9050611f0584600460200201516005612caf565b6107809082613f8d565b6040516331a9108f60e11b8152600481018390527f000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d76001600160a01b031690636352211e9060240160206040518083038186803b158015611f6f57600080fd5b505afa158015611f83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fa79190613216565b6001600160a01b0316816001600160a01b031614611ffb5760405162461bcd60e51b8152602060048201526011602482015270135554d517d3d5d397d513d2d15397d251607a1b60448201526064016105e8565b601254821015801561200f57506013548211155b6120535760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b60448201526064016105e8565b60008281526011602052604090205460ff16156120a45760405162461bcd60e51b815260206004820152600f60248201526e1053149150511657d0d31052535151608a1b60448201526064016105e8565b6000828152601160209081526040808320805460ff19166001179055805160088082526101208201909252918201610100803683375050604080516008808252610120820190925292935060009291506020820161010080368337019050509050612113846127166000612cca565b8260008151811061213457634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061214e846126656001612cca565b8260018151811061216f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061218984611e4b6002612cca565b826002815181106121aa57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121c4846127486003612cca565b826003815181106121e557634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506121ff846127a96004612cca565b8260048151811061222057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505061223a846127796005612cca565b8260058151811061225b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050612275846126356006612cca565b8260068151811061229657634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506122b0846126e66007612cca565b826007815181106122d157634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060005b825181101561239c57600182828151811061230b57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600180600085848151811061233c57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000866001600160a01b03166001600160a01b0316815260200190815260200160002060008282546123849190613f8d565b9091555081905061239481614086565b9150506122e0565b506001600160a01b0383166000336001600160a01b03166000805160206141cb83398151915285856040516123d2929190613ddb565b60405180910390a450505050565b6123e86130d7565b60006123f5836000612cef565b9050612402836001612cef565b825261240f836002612cef565b602083015261241f836003612cef565b604083015261242f836004612cef565b606083015261243f836005612cef565b60808301529092909150565b81518351146124ad5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105e8565b6001600160a01b0384166124d35760405162461bcd60e51b81526004016105e890613e5b565b3360005b84518110156125d957600085828151811061250257634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061252e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015160008481526001835260408082206001600160a01b038e16835290935291909120549091508181101561257f5760405162461bcd60e51b81526004016105e890613ea0565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906125be908490613f8d565b92505081905550505050806125d290614086565b90506124d7565b50846001600160a01b0316866001600160a01b0316826001600160a01b03166000805160206141cb8339815191528787604051612617929190613ddb565b60405180910390a461262d818787878787612d0a565b505050505050565b61263d6130d7565b61064182604051806040016040528060048152602001634e45434b60e01b8152506003612bbc565b61266d6130d7565b610641826040518060400160405280600581526020016410d21154d560da1b815250600f612bbc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6126ee6130d7565b610641826040518060400160405280600481526020016352494e4760e01b8152506005612bbc565b61271e6130d7565b61064182604051806040016040528060068152602001652ba2a0a827a760d11b8152506012612bbc565b6127506130d7565b610641826040518060400160405280600581526020016415d05254d560da1b815250600f612bbc565b6127816130d7565b61064182604051806040016040528060048152602001631210539160e21b815250600f612bbc565b6127b16130d7565b61064182604051806040016040528060048152602001631193d3d560e21b815250600f612bbc565b6060816127fe57506040805180820190915260018152600360fc1b6020820152610644565b8160005b8115612828578061281281614086565b91506128219050600a83613fa5565b9150612802565b6000816001600160401b0381111561285057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561287a576020820181803683370190505b5090505b84156107805761288f600183613fd8565b915061289c600a866140a1565b6128a7906030613f8d565b60f81b8183815181106128ca57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506128ec600a86613fa5565b945061287e565b805160609080612913575050604080516020810190915260008152610644565b60006003612922836002613f8d565b61292c9190613fa5565b612937906004613fb9565b90506000612946826020613f8d565b6001600160401b0381111561296b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612995576020820181803683370190505b50905060006040518060600160405280604081526020016141eb604091399050600181016020830160005b86811015612a21576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b8352600490920191016129c0565b506003860660018114612a3b5760028114612a4c57612a58565b613d3d60f01b600119830152612a58565b603d60f81b6000198301525b505050918152949350505050565b60608282604051602001612a7b9291906139a9565b604051602081830303815290604052905092915050565b6001600160a01b038416612ab85760405162461bcd60e51b81526004016105e890613e5b565b33612ad1818787612ac888612e75565b61075d88612e75565b60008481526001602090815260408083206001600160a01b038a16845290915290205483811015612b145760405162461bcd60e51b81526004016105e890613ea0565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612b53908490613f8d565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612bb3828888888888612ece565b50505050505050565b612bc46130d7565b612bcc6130d7565b6000612c0085612bdb886127d9565b604051602001612bec929190613862565b604051602081830303815290604052612f98565b9050612c0c84826140a1565b825260006020830181905260408301819052612c296015836140a1565b9050600e811115612c5057612c3f6010836140a1565b612c4a906001613f8d565b60208401525b60138110612ca457612c636045836140a1565b612c6e906001613f8d565b6040840152612c7e6012836140a1565b612c89906001613f8d565b60608401526013811415612c9c57612ca4565b600160808401525b509095945050505050565b6000612cbc826010613fb9565b8360ff16901b905092915050565b600080612cda858563ffffffff16565b9050612ce68184611e7b565b95945050505050565b6000612cfc826010613fb9565b83901c60ff16905092915050565b6001600160a01b0384163b1561262d5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d4e9089908990889088908890600401613c81565b602060405180830381600087803b158015612d6857600080fd5b505af1925050508015612d98575060408051601f3d908101601f19168201909252612d9591810190613560565b60015b612e4557612da46140f7565b806308c379a01415612dde5750612db961410e565b80612dc45750612de0565b8060405162461bcd60e51b81526004016105e89190613e00565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105e8565b6001600160e01b0319811663bc197c8160e01b14612bb35760405162461bcd60e51b81526004016105e890613e13565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612ebd57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b1561262d5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612f129089908990889088908890600401613cd3565b602060405180830381600087803b158015612f2c57600080fd5b505af1925050508015612f5c575060408051601f3d908101601f19168201909252612f5991810190613560565b60015b612f6857612da46140f7565b6001600160e01b0319811663f23a6e6160e01b14612bb35760405162461bcd60e51b81526004016105e890613e13565b600081604051602001612fab9190613846565b60408051601f19818403018152919052805160209091012092915050565b60405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b82805461301a9061401f565b90600052602060002090601f01602090048101928261303c5760008555613082565b82601f1061305557805160ff1916838001178555613082565b82800160010185558215613082579182015b82811115613082578251825591602001919060010190613067565b5061308e9291506130f5565b5090565b60405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a001604052806005906020820280368337509192915050565b5b8082111561308e57600081556001016130f6565b60006001600160401b03831115613123576131236140e1565b60405161313a601f8501601f19166020018261405a565b80915083815284848401111561314f57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112613177578081fd5b8135602061318482613f6a565b604051613191828261405a565b8381528281019150858301600585901b870184018810156131b0578586fd5b855b858110156131ce578135845292840192908401906001016131b2565b5090979650505050505050565b600082601f8301126131eb578081fd5b610fe88383356020850161310a565b60006020828403121561320b578081fd5b8135610fe88161419f565b600060208284031215613227578081fd5b8151610fe88161419f565b60008060408385031215613244578081fd5b823561324f8161419f565b9150602083013561325f8161419f565b809150509250929050565b600080600080600060a08688031215613281578081fd5b853561328c8161419f565b9450602086013561329c8161419f565b935060408601356001600160401b03808211156132b7578283fd5b6132c389838a01613167565b945060608801359150808211156132d8578283fd5b6132e489838a01613167565b935060808801359150808211156132f9578283fd5b50613306888289016131db565b9150509295509295909350565b600080600080600060a0868803121561332a578081fd5b85356133358161419f565b945060208601356133458161419f565b9350604086013592506060860135915060808601356001600160401b0381111561336d578182fd5b613306888289016131db565b6000806040838503121561338b578182fd5b82356133968161419f565b91506020830135801515811461325f578182fd5b600080604083850312156133bc578182fd5b82356133c78161419f565b946020939093013593505050565b600080604083850312156133e7578182fd5b82356001600160401b03808211156133fd578384fd5b818501915085601f830112613410578384fd5b8135602061341d82613f6a565b60405161342a828261405a565b8381528281019150858301600585901b870184018b1015613449578889fd5b8896505b848710156134745780356134608161419f565b83526001969096019591830191830161344d565b509650508601359250508082111561348a578283fd5b5061349785828601613167565b9150509250929050565b60008060c083850312156134b3578182fd5b83601f8401126134c1578182fd5b6040516134cf60a08261405a565b808460a08601878111156134e1578586fd5b855b60058110156135025782358452602093840193909201916001016134e3565b5092979235965091945050505050565b600060208284031215613523578081fd5b81356001600160401b03811115613538578182fd5b61078084828501613167565b600060208284031215613555578081fd5b8135610fe8816141b4565b600060208284031215613571578081fd5b8151610fe8816141b4565b60006020828403121561358d578081fd5b81356001600160401b038111156135a2578182fd5b8201601f810184136135b2578182fd5b6107808482356020840161310a565b6000602082840312156135d2578081fd5b5035919050565b6000602082840312156135ea578081fd5b5051919050565b60008060408385031215613603578182fd5b50508035926020909101359150565b6000815180845260208085019450808401835b8381101561364157815187529582019590820190600101613625565b509495945050505050565b60008151808452613664816020860160208601613fef565b601f01601f19169290920160200192915050565b6000815161368a818560208601613fef565b9290920192915050565b8054600090600181811c90808316806136ae57607f831692505b60208084108214156136ce57634e487b7160e01b86526022600452602486fd5b8180156136e257600181146136f357613720565b60ff19861689528489019650613720565b60008881526020902060005b868110156137185781548b8201529085019083016136ff565b505084890196505b50505050505092915050565b805182526020810151602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c083015260e081015160e08301525050565b600061010082518185526137908286018261364c565b915050602083015184820360208601526137aa828261364c565b915050604083015184820360408601526137c4828261364c565b915050606083015184820360608601526137de828261364c565b915050608083015184820360808601526137f8828261364c565b91505060a083015184820360a0860152613812828261364c565b91505060c083015184820360c086015261382c828261364c565b91505060e083015184820360e0860152612ce6828261364c565b60008251613858818460208701613fef565b9190910192915050565b60008351613874818460208801613fef565b835190830190613888818360208801613fef565b01949350505050565b600083516138a3818460208801613fef565b600160fd1b908301908152612ce66001820185613694565b600082516138cd818460208701613fef565b605d60f81b920191825250600101919050565b600083516138f2818460208801613fef565b61016160f51b9083019081528351613911816002840160208801613fef565b01600201949350505050565b6000825161392f818460208701613fef565b62202b3160e81b920191825250600301919050565b60008251613956818460208701613fef565b61013960f51b920191825250600201919050565b6000605b60f81b82528251613986816001850160208701613fef565b9190910160010192915050565b6000602760f81b8252610fe86001830184613694565b607b60f81b81526e113a3930b4ba2fba3cb832911d101160891b600182015282516000906139de816010850160208801613fef565b6201116160ed1b60109184019182015269113b30b63ab2911d101160b11b60138201528351613a1481601d840160208801613fef565b601160f91b601d9290910191820152607d60f81b601e820152601f01949350505050565b607b60f81b815268113730b6b2911d101160b91b60018201528551600090613a6781600a850160208b01613fef565b6201116160ed1b600a918401918201526f113232b9b1b934b83a34b7b7111d101160811b600d8201528651613aa381601d840160208b01613fef565b632e372e3760e11b9101601d8101919091527f4c6f6f746d617274206974656d732061726520696e646976696475616c204c6f60218201527f6f74206974656d73207468617420796f752063616e20747261646520616e642060418201527f75736520746f207570677261646520796f757220416476656e74757265722e2060618201527f446966666572656e7420636f6d62696e6174696f6e73206f66204c6f6f74206960818201527f74656d7320756e6c6f636b207370656369616c206162696c697469657320616e60a18201526b032103837bbb2b939971116160a51b60c18201526801134b6b0b3b2911d160bd1b60cd820152613c1c613c0f613c09613bef613bdc613bd6613bc9613bc360d68901601160f91b815260010190565b8d613694565b602f60f81b815260010190565b8a613678565b660173837339116160cd1b815260070190565b6d01130ba3a3934b13aba32b9911d160951b8152600e0190565b86613678565b607d60f81b815260010190565b98975050505050505050565b60007f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000082528251613c6081601d850160208701613fef565b91909101601d0192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0386811682528516602082015260a060408201819052600090613cad90830186613612565b8281036060840152613cbf8186613612565b90508281036080840152613c1c818561364c565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090613d0d9083018461364c565b979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015613d5b57613d4783855161372c565b928401926101009290920191600101613d34565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b82811015613dbb57603f19888603018452613da985835161377a565b94509285019290850190600101613d8d565b5092979650505050505050565b600060208252610fe86020830184613612565b600060408252613dee6040830185613612565b8281036020840152612ce68185613612565b600060208252610fe8602083018461364c565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600f908201526e1393d7d513d2d15394d7d3d5d39151608a1b604082015260600190565b6101008101610616828461372c565b600060208252610fe8602083018461377a565b60006001600160401b03821115613f8357613f836140e1565b5060051b60200190565b60008219821115613fa057613fa06140b5565b500190565b600082613fb457613fb46140cb565b500490565b6000816000190483118215151615613fd357613fd36140b5565b500290565b600082821015613fea57613fea6140b5565b500390565b60005b8381101561400a578181015183820152602001613ff2565b83811115614019576000848401525b50505050565b600181811c9082168061403357607f821691505b6020821081141561405457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f191681016001600160401b038111828210171561407f5761407f6140e1565b6040525050565b600060001982141561409a5761409a6140b5565b5060010190565b6000826140b0576140b06140cb565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561066957600481823e5160e01c90565b600060443d101561411e57610669565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171561414f575050505050610669565b828501915081518181111561416957505050505050610669565b843d870101602082850101111561418557505050505050610669565b6141946020828601018761405a565b509094505050505090565b6001600160a01b038116811461091657600080fd5b6001600160e01b03198116811461091657600080fdfe4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220ec532b13ac5f5d86ce20c4b14b52f268b74c1efdb510544adc672d0557b66bc364736f6c63430008030033

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

000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d700000000000000000000000071355f4a94f46ee32eb443ad2bde2dec0470f94900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d537179697436716f4b35783458574e336d7636596a72537031735070737161365437674d54635751473332680000000000000000000000

-----Decoded View---------------
Arg [0] : _loot (address): 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7
Arg [1] : _adventurer (address): 0x71355f4a94f46eE32EB443aD2BDE2DeC0470f949
Arg [2] : _baseURI (string): ipfs://QmSqyit6qoK5x4XWN3mv6YjrSp1sPpsqa6T7gMTcWQG32h

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7
Arg [1] : 00000000000000000000000071355f4a94f46ee32eb443ad2bde2dec0470f949
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [4] : 697066733a2f2f516d537179697436716f4b35783458574e336d7636596a7253
Arg [5] : 7031735070737161365437674d54635751473332680000000000000000000000


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.