ETH Price: $3,139.24 (+3.36%)
Gas: 4 Gwei

Token

 

Overview

Max Total Supply

2,504

Holders

1,747

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
jlieberman.eth
0xe757970b801e5b99ab24c5cd9b5152234cff3001
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:
SlimHoodsSpecials

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : SlimHoodsSpecials.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

/**

  .d88888b  dP oo            dP     dP                          dP
  88.    "' 88               88     88                          88
  `Y88888b. 88 dP 88d8b.d8b. 88aaaaa88a .d8888b. .d8888b. .d888b88 .d8888b.
        `8b 88 88 88'`88'`88 88     88  88'  `88 88'  `88 88'  `88 Y8ooooo.
  d8'   .8P 88 88 88  88  88 88     88  88.  .88 88.  .88 88.  .88       88
   Y88888P  dP dP dP  dP  dP dP     dP  `88888P' `88888P' `88888P8 `88888P'

  Hi Special fren!

*/

interface ISlimHoods is IERC721, IERC721Enumerable {

}

contract SlimHoodsSpecials is ERC1155, Ownable {
  string private _contractURI = "https://slimhoods.com/api/contracts/SlimHoodsSpecials";

  enum SaleState {
    Closed,
    Open
  }

  mapping(uint256 => SaleState) private _saleStates;

  using EnumerableSet for EnumerableSet.UintSet;

  mapping(uint256 => bool) public availableSpecialNumbers;
  mapping(uint256 => EnumerableSet.UintSet) private _minted;

  address public slimhoodsAddress;
  ISlimHoods private _slimhoodsContract;

  constructor(address _slimhoodsAddress) ERC1155("https://slimhoods.com/api/specials/{id}") {
    slimhoodsAddress = _slimhoodsAddress;
    _slimhoodsContract = ISlimHoods(slimhoodsAddress);
  }

  // ** METADATA **

  function contractURI() public view returns (string memory) {
    return _contractURI;
  }

  function setContractURI(string memory newuri) public onlyOwner {
    _contractURI = newuri;
  }

  function setURI(string memory newuri) public onlyOwner {
    _setURI(newuri);
  }

  // ** SALE STATE **

  function setSaleState(uint256 specialNumber, SaleState _saleState) public onlyOwner {
    require(availableSpecialNumbers[specialNumber], "No such special");
    _saleStates[specialNumber] = _saleState;
  }

  function saleState(uint256 specialNumber) public view returns (SaleState) {
    return _saleStates[specialNumber];
  }

  // ** RELEASES **

  function addSpecialNumber(uint256 specialNumber) public onlyOwner {
    availableSpecialNumbers[specialNumber] = true;
  }

  function removeSpecialNumber(uint256 specialNumber) public onlyOwner {
    delete availableSpecialNumbers[specialNumber];
    delete _saleStates[specialNumber];
  }

  // ** MINTING **

  function unmintedSlimHoodIds(uint256 specialNumber, address addr) public view returns (uint256[] memory) {
    uint256 balance = _slimhoodsContract.balanceOf(addr);
    uint256[] memory result = new uint256[](balance);
    uint256 tokenId;
    uint256 counter = 0;

    for (uint256 i = 0; i < balance; i++) {
      tokenId = _slimhoodsContract.tokenOfOwnerByIndex(addr, i);
      if (!specialHasBeenMinted(specialNumber, tokenId)) {
        result[counter] = tokenId;
        counter++;
      }
    }

    return result;
  }

  function specialHasBeenMinted(uint256 specialNumber, uint256 slimHoodId) public view returns (bool) {
    return _minted[specialNumber].contains(slimHoodId);
  }

  function mintSpecialForSlimHoods(uint256 specialNumber, uint256[] memory hoodIds) public virtual {
    require(availableSpecialNumbers[specialNumber], "No special for given number");
    require(_saleStates[specialNumber] == SaleState.Open, "Sale is closed");

    uint256 hoodId;
    for (uint256 i = 0; i < hoodIds.length; i++) {
      hoodId = hoodIds[i];

      require(_slimhoodsContract.ownerOf(hoodId) == msg.sender, "Wallet doesn't hold given SlimHood");
      require(!specialHasBeenMinted(specialNumber, hoodId), "Special already minted for this SlimHood");

      _minted[specialNumber].add(hoodId);
      _mint(msg.sender, specialNumber, 1, "");
    }
  }
}

File 2 of 13 : 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 3 of 13 : 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 4 of 13 : 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)) private _balances;

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        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 5 of 13 : 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 6 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

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

        assembly {
            result := store
        }

        return result;
    }
}

File 7 of 13 : 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 8 of 13 : 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 9 of 13 : 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 10 of 13 : 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 11 of 13 : 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 12 of 13 : 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 13 of 13 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_slimhoodsAddress","type":"address"}],"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":"specialNumber","type":"uint256"}],"name":"addSpecialNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"availableSpecialNumbers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"},{"internalType":"uint256[]","name":"hoodIds","type":"uint256[]"}],"name":"mintSpecialForSlimHoods","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"}],"name":"removeSpecialNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"}],"name":"saleState","outputs":[{"internalType":"enum SlimHoodsSpecials.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"},{"internalType":"enum SlimHoodsSpecials.SaleState","name":"_saleState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slimhoodsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"},{"internalType":"uint256","name":"slimHoodId","type":"uint256"}],"name":"specialHasBeenMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"specialNumber","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"unmintedSlimHoodIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60e060405260356080818152906200278f60a0398051620000299160049160209091019062000129565b503480156200003757600080fd5b50604051620027eb380380620027eb8339810160408190526200005a91620001e2565b604051806060016040528060278152602001620027c4602791396200007f81620000be565b506200008b33620000d7565b600880546001600160a01b03199081166001600160a01b039384161791829055600980549290931691161790556200027e565b8051620000d390600290602084019062000129565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000137906200021d565b90600052602060002090601f0160209004810192826200015b5760008555620001a6565b82601f106200017657805160ff1916838001178555620001a6565b82800160010185558215620001a6579182015b82811115620001a657825182559160200191906001019062000189565b50620001b4929150620001b8565b5090565b5b80821115620001b45760008155600101620001b9565b8051620001dc8162000264565b92915050565b600060208284031215620001f557600080fd5b6000620002038484620001cf565b949350505050565b60006001600160a01b038216620001dc565b6002810460018216806200023257607f821691505b602082108114156200024857620002486200024e565b50919050565b634e487b7160e01b600052602260045260246000fd5b6200026f816200020b565b81146200027b57600080fd5b50565b612501806200028e6000396000f3fe608060405234801561001057600080fd5b506004361061014c5760003560e01c80637560a127116100c3578063c1ee3cb91161007c578063c1ee3cb9146102e7578063e8a3d4851461030a578063e90d6bf714610312578063e985e9c514610325578063f242432a14610361578063f2fde38b146103745761014c565b80637560a127146102635780638da5cb5b14610276578063938e3d7b1461027e57806398b6662a14610291578063a22cb465146102a4578063a74f2606146102b75761014c565b8063182658161161011557806318265816146101e25780632eb2c2d6146102025780633abde94d146102155780633d7d4b0a146102285780634e1273f41461023b578063715018a61461025b5761014c565b8062fdd58e1461015157806301ffc9a71461017a57806302fe53051461019a5780630e89341c146101af57806315c717fa146101cf575b600080fd5b61016461015f3660046118bb565b610387565b6040516101719190612212565b60405180910390f35b61018d610188366004611948565b6103e1565b60405161017191906120c5565b6101ad6101a8366004611984565b610435565b005b6101c26101bd3660046119b8565b610470565b60405161017191906120e1565b6101ad6101dd3660046119b8565b610504565b6008546101f5906001600160a01b031681565b6040516101719190611fbf565b6101ad61021036600461177a565b61054e565b6101ad610223366004611a13565b61059a565b61018d610236366004611a62565b61076f565b61024e6102493660046118eb565b61078e565b604051610171919061208f565b6101ad6108ad565b61024e6102713660046119f4565b6108e8565b6101f5610abb565b6101ad61028c366004611984565b610acb565b6101ad61029f3660046119b8565b610b11565b6101ad6102b236600461188b565b610b6d565b6102da6102c53660046119b8565b60009081526005602052604090205460ff1690565b60405161017191906120d3565b61018d6102f53660046119b8565b60066020526000908152604090205460ff1681565b6101c2610c0b565b6101ad610320366004611a32565b610c9d565b61018d610333366004611740565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101ad61036f366004611834565b610d3b565b6101ad610382366004611704565b610d80565b60006001600160a01b0383166103b85760405162461bcd60e51b81526004016103af90612122565b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061041257506001600160e01b031982166303a24d0760e21b145b8061042d57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b3361043e610abb565b6001600160a01b0316146104645760405162461bcd60e51b81526004016103af906121b2565b61046d81610dde565b50565b60606002805461047f90612308565b80601f01602080910402602001604051908101604052809291908181526020018280546104ab90612308565b80156104f85780601f106104cd576101008083540402835291602001916104f8565b820191906000526020600020905b8154815290600101906020018083116104db57829003601f168201915b50505050509050919050565b3361050d610abb565b6001600160a01b0316146105335760405162461bcd60e51b81526004016103af906121b2565b6000908152600660205260409020805460ff19166001179055565b6001600160a01b03851633148061056a575061056a8533610333565b6105865760405162461bcd60e51b81526004016103af90612172565b6105938585858585610df1565b5050505050565b60008281526006602052604090205460ff166105c85760405162461bcd60e51b81526004016103af90612132565b600160008381526005602052604090205460ff1660018111156105fb57634e487b7160e01b600052602160045260246000fd5b146106185760405162461bcd60e51b81526004016103af90612112565b6000805b82518110156107695782818151811061064557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516009546040516331a9108f60e11b815291935033916001600160a01b0390911690636352211e90610685908690600401612212565b60206040518083038186803b15801561069d57600080fd5b505afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190611722565b6001600160a01b0316146106fb5760405162461bcd60e51b81526004016103af90612182565b610705848361076f565b156107225760405162461bcd60e51b81526004016103af90612192565b600084815260076020526040902061073a9083610fa9565b506107573385600160405180602001604052806000815250610fb5565b8061076181612361565b91505061061c565b50505050565b60008281526007602052604081206107879083611093565b9392505050565b606081518351146107b15760405162461bcd60e51b81526004016103af906121e2565b600083516001600160401b038111156107da57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610803578160200160208202803683370190505b50905060005b84518110156108a55761086a85828151811061083557634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061085d57634e487b7160e01b600052603260045260246000fd5b6020026020010151610387565b82828151811061088a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015261089e81612361565b9050610809565b509392505050565b336108b6610abb565b6001600160a01b0316146108dc5760405162461bcd60e51b81526004016103af906121b2565b6108e660006110ab565b565b6009546040516370a0823160e01b81526060916000916001600160a01b03909116906370a082319061091e908690600401611fbf565b60206040518083038186803b15801561093657600080fd5b505afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e91906119d6565b90506000816001600160401b0381111561099857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109c1578160200160208202803683370190505b509050600080805b84811015610aaf57600954604051632f745c5960e01b81526001600160a01b0390911690632f745c5990610a03908a908590600401612074565b60206040518083038186803b158015610a1b57600080fd5b505afa158015610a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5391906119d6565b9250610a5f888461076f565b610a9d5782848381518110610a8457634e487b7160e01b600052603260045260246000fd5b602090810291909101015281610a9981612361565b9250505b80610aa781612361565b9150506109c9565b50919695505050505050565b6003546001600160a01b03165b90565b33610ad4610abb565b6001600160a01b031614610afa5760405162461bcd60e51b81526004016103af906121b2565b8051610b0d9060049060208401906114b6565b5050565b33610b1a610abb565b6001600160a01b031614610b405760405162461bcd60e51b81526004016103af906121b2565b6000908152600660209081526040808320805460ff19908116909155600590925290912080549091169055565b336001600160a01b0383161415610b965760405162461bcd60e51b81526004016103af906121d2565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bff91906120c5565b60405180910390a35050565b606060048054610c1a90612308565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4690612308565b8015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b5050505050905090565b33610ca6610abb565b6001600160a01b031614610ccc5760405162461bcd60e51b81526004016103af906121b2565b60008281526006602052604090205460ff16610cfa5760405162461bcd60e51b81526004016103af906121c2565b6000828152600560205260409020805482919060ff191660018381811115610d3257634e487b7160e01b600052602160045260246000fd5b02179055505050565b6001600160a01b038516331480610d575750610d578533610333565b610d735760405162461bcd60e51b81526004016103af90612152565b61059385858585856110fd565b33610d89610abb565b6001600160a01b031614610daf5760405162461bcd60e51b81526004016103af906121b2565b6001600160a01b038116610dd55760405162461bcd60e51b81526004016103af90612142565b61046d816110ab565b8051610b0d9060029060208401906114b6565b8151835114610e125760405162461bcd60e51b81526004016103af906121f2565b6001600160a01b038416610e385760405162461bcd60e51b81526004016103af90612162565b3360005b8451811015610f3b576000858281518110610e6757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610e9357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610ee35760405162461bcd60e51b81526004016103af906121a2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610f20908490612292565b9250508190555050505080610f3490612361565b9050610e3c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f8b9291906120a0565b60405180910390a4610fa1818787878787611226565b505050505050565b60006107878383611344565b6001600160a01b038416610fdb5760405162461bcd60e51b81526004016103af90612202565b33610ff581600087610fec88611393565b61059388611393565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611025908490612292565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161107c929190612220565b60405180910390a4610593816000878787876113ec565b60008181526001830160205260408120541515610787565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166111235760405162461bcd60e51b81526004016103af90612162565b33611133818787610fec88611393565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156111745760405162461bcd60e51b81526004016103af906121a2565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906111b1908490612292565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611207929190612220565b60405180910390a461121d8288888888886113ec565b50505050505050565b6001600160a01b0384163b15610fa15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061126a9089908990889088908890600401611fcd565b602060405180830381600087803b15801561128457600080fd5b505af19250505080156112b4575060408051601f3d908101601f191682019092526112b191810190611966565b60015b611314576112c06123d4565b806308c379a014156112fa57506112d56123ef565b806112e057506112fc565b8060405162461bcd60e51b81526004016103af91906120e1565b505b60405162461bcd60e51b81526004016103af906120f2565b6001600160e01b0319811663bc197c8160e01b1461121d5760405162461bcd60e51b81526004016103af90612102565b600081815260018301602052604081205461138b575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556103db565b5060006103db565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106113db57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610fa15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611430908990899088908890889060040161202d565b602060405180830381600087803b15801561144a57600080fd5b505af192505050801561147a575060408051601f3d908101601f1916820190925261147791810190611966565b60015b611486576112c06123d4565b6001600160e01b0319811663f23a6e6160e01b1461121d5760405162461bcd60e51b81526004016103af90612102565b8280546114c290612308565b90600052602060002090601f0160209004810192826114e4576000855561152a565b82601f106114fd57805160ff191683800117855561152a565b8280016001018555821561152a579182015b8281111561152a57825182559160200191906001019061150f565b5061153692915061153a565b5090565b5b80821115611536576000815560010161153b565b600061156261155d84612245565b61222e565b9050808382526020820190508285602086028201111561158157600080fd5b60005b858110156115ad57816115978882611641565b8452506020928301929190910190600101611584565b5050509392505050565b60006115c561155d84612245565b905080838252602082019050828560208602820111156115e457600080fd5b60005b858110156115ad57816115fa88826116ee565b84525060209283019291909101906001016115e7565b600061161e61155d84612268565b90508281526020810184848401111561163657600080fd5b6108a58482856122d0565b80356103db8161248c565b80516103db8161248c565b600082601f83011261166857600080fd5b813561167884826020860161154f565b949350505050565b600082601f83011261169157600080fd5b81356116788482602086016115b7565b80356103db816124a0565b80356103db816124a8565b80516103db816124a8565b600082601f8301126116d357600080fd5b8135611678848260208601611610565b80356103db816124b8565b80356103db816124c5565b80516103db816124c5565b60006020828403121561171657600080fd5b60006116788484611641565b60006020828403121561173457600080fd5b6000611678848461164c565b6000806040838503121561175357600080fd5b600061175f8585611641565b925050602061177085828601611641565b9150509250929050565b600080600080600060a0868803121561179257600080fd5b600061179e8888611641565b95505060206117af88828901611641565b94505060408601356001600160401b038111156117cb57600080fd5b6117d788828901611680565b93505060608601356001600160401b038111156117f357600080fd5b6117ff88828901611680565b92505060808601356001600160401b0381111561181b57600080fd5b611827888289016116c2565b9150509295509295909350565b600080600080600060a0868803121561184c57600080fd5b60006118588888611641565b955050602061186988828901611641565b945050604061187a888289016116ee565b93505060606117ff888289016116ee565b6000806040838503121561189e57600080fd5b60006118aa8585611641565b9250506020611770858286016116a1565b600080604083850312156118ce57600080fd5b60006118da8585611641565b9250506020611770858286016116ee565b600080604083850312156118fe57600080fd5b82356001600160401b0381111561191457600080fd5b61192085828601611657565b92505060208301356001600160401b0381111561193c57600080fd5b61177085828601611680565b60006020828403121561195a57600080fd5b600061167884846116ac565b60006020828403121561197857600080fd5b600061167884846116b7565b60006020828403121561199657600080fd5b81356001600160401b038111156119ac57600080fd5b611678848285016116c2565b6000602082840312156119ca57600080fd5b600061167884846116ee565b6000602082840312156119e857600080fd5b600061167884846116f9565b60008060408385031215611a0757600080fd5b600061175f85856116ee565b60008060408385031215611a2657600080fd5b600061192085856116ee565b60008060408385031215611a4557600080fd5b6000611a5185856116ee565b9250506020611770858286016116e3565b60008060408385031215611a7557600080fd5b60006118da85856116ee565b6000611a8d8383611fb9565b505060200190565b611a9e816122aa565b82525050565b6000611aae825190565b80845260209384019383018060005b83811015611ae2578151611ad18882611a81565b975060208301925050600101611abd565b509495945050505050565b801515611a9e565b6000611aff825190565b808452602084019350611b168185602086016122dc565b601f01601f19169290920192915050565b611a9e816122c5565b603481526000602082017f455243313135353a207472616e7366657220746f206e6f6e20455243313135358152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b602082015291505b5060400190565b602881526000602082017f455243313135353a204552433131353552656365697665722072656a656374658152676420746f6b656e7360c01b60208201529150611b7d565b600e81526000602082016d14d85b19481a5cc818db1bdcd95960921b815291505b5060200190565b602b81526000602082017f455243313135353a2062616c616e636520717565727920666f7220746865207a81526a65726f206164647265737360a81b60208201529150611b7d565b601b81526000602082017f4e6f207370656369616c20666f7220676976656e206e756d626572000000000081529150611bea565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150611b7d565b602981526000602082017f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7281526808185c1c1c9bdd995960ba1b60208201529150611b7d565b602581526000602082017f455243313135353a207472616e7366657220746f20746865207a65726f206164815264647265737360d81b60208201529150611b7d565b603281526000602082017f455243313135353a207472616e736665722063616c6c6572206973206e6f74208152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60208201529150611b7d565b602281526000602082017f57616c6c657420646f65736e277420686f6c6420676976656e20536c696d486f8152611bd960f21b60208201529150611b7d565b602881526000602082017f5370656369616c20616c7265616479206d696e74656420666f7220746869732081526714db1a5b521bdbd960c21b60208201529150611b7d565b602a81526000602082017f455243313135353a20696e73756666696369656e742062616c616e636520666f81526939103a3930b739b332b960b11b60208201529150611b7d565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000611bea565b600f81526000602082016e139bc81cdd58da081cdc1958da585b608a1b81529150611bea565b602981526000602082017f455243313135353a2073657474696e6720617070726f76616c20737461747573815268103337b91039b2b63360b91b60208201529150611b7d565b602981526000602082017f455243313135353a206163636f756e747320616e6420696473206c656e677468815268040dad2e6dac2e8c6d60bb1b60208201529150611b7d565b602881526000602082017f455243313135353a2069647320616e6420616d6f756e7473206c656e677468208152670dad2e6dac2e8c6d60c31b60208201529150611b7d565b602181526000602082017f455243313135353a206d696e7420746f20746865207a65726f206164647265738152607360f81b60208201529150611b7d565b80611a9e565b602081016103db8284611a95565b60a08101611fdb8288611a95565b611fe86020830187611a95565b8181036040830152611ffa8186611aa4565b9050818103606083015261200e8185611aa4565b905081810360808301526120228184611af5565b979650505050505050565b60a0810161203b8288611a95565b6120486020830187611a95565b6120556040830186611fb9565b6120626060830185611fb9565b81810360808301526120228184611af5565b604081016120828285611a95565b6107876020830184611fb9565b602080825281016107878184611aa4565b604080825281016120b18185611aa4565b905081810360208301526116788184611aa4565b602081016103db8284611aed565b602081016103db8284611b27565b602080825281016107878184611af5565b6020808252810161042d81611b30565b6020808252810161042d81611b84565b6020808252810161042d81611bc9565b6020808252810161042d81611bf1565b6020808252810161042d81611c39565b6020808252810161042d81611c6d565b6020808252810161042d81611cb0565b6020808252810161042d81611cf6565b6020808252810161042d81611d38565b6020808252810161042d81611d87565b6020808252810161042d81611dc6565b6020808252810161042d81611e0b565b6020808252810161042d81611e52565b6020808252810161042d81611e84565b6020808252810161042d81611eaa565b6020808252810161042d81611ef0565b6020808252810161042d81611f36565b6020808252810161042d81611f7b565b602081016103db8284611fb9565b604081016120828285611fb9565b600061223960405190565b90506104308282612335565b60006001600160401b0382111561225e5761225e6123be565b5060209081020190565b60006001600160401b03821115612281576122816123be565b601f19601f83011660200192915050565b600082198211156122a5576122a561237c565b500190565b60006001600160a01b03821661042d565b806104308161247c565b600061042d826122bb565b82818337506000910152565b60005b838110156122f75781810151838201526020016122df565b838111156107695750506000910152565b60028104600182168061231c57607f821691505b6020821081141561232f5761232f6123a8565b50919050565b601f19601f83011681018181106001600160401b038211171561235a5761235a6123be565b6040525050565b60006000198214156123755761237561237c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610ac85760046000803e5060005160e01c90565b600060443d10156123ff57610ac8565b60405160043d036004823e80513d60248201116001600160401b0382111715612429575050610ac8565b80820180516001600160401b038111156124465750505050610ac8565b80602083010160043d038501811115612463575050505050610ac8565b61247282602001850186612335565b5090935050505090565b6002811061046d5761046d612392565b612495816122aa565b811461046d57600080fd5b801515612495565b6001600160e01b03198116612495565b6002811061046d57600080fd5b8061249556fea26469706673582212205e8ba71ebc35d65f998916c5ce1a760618865025b3c8356e41b4f2bb2da72efe64736f6c6343000802003368747470733a2f2f736c696d686f6f64732e636f6d2f6170692f636f6e7472616374732f536c696d486f6f64735370656369616c7368747470733a2f2f736c696d686f6f64732e636f6d2f6170692f7370656369616c732f7b69647d0000000000000000000000002931b181ae9dc8f8109ec41c42480933f411ef94

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014c5760003560e01c80637560a127116100c3578063c1ee3cb91161007c578063c1ee3cb9146102e7578063e8a3d4851461030a578063e90d6bf714610312578063e985e9c514610325578063f242432a14610361578063f2fde38b146103745761014c565b80637560a127146102635780638da5cb5b14610276578063938e3d7b1461027e57806398b6662a14610291578063a22cb465146102a4578063a74f2606146102b75761014c565b8063182658161161011557806318265816146101e25780632eb2c2d6146102025780633abde94d146102155780633d7d4b0a146102285780634e1273f41461023b578063715018a61461025b5761014c565b8062fdd58e1461015157806301ffc9a71461017a57806302fe53051461019a5780630e89341c146101af57806315c717fa146101cf575b600080fd5b61016461015f3660046118bb565b610387565b6040516101719190612212565b60405180910390f35b61018d610188366004611948565b6103e1565b60405161017191906120c5565b6101ad6101a8366004611984565b610435565b005b6101c26101bd3660046119b8565b610470565b60405161017191906120e1565b6101ad6101dd3660046119b8565b610504565b6008546101f5906001600160a01b031681565b6040516101719190611fbf565b6101ad61021036600461177a565b61054e565b6101ad610223366004611a13565b61059a565b61018d610236366004611a62565b61076f565b61024e6102493660046118eb565b61078e565b604051610171919061208f565b6101ad6108ad565b61024e6102713660046119f4565b6108e8565b6101f5610abb565b6101ad61028c366004611984565b610acb565b6101ad61029f3660046119b8565b610b11565b6101ad6102b236600461188b565b610b6d565b6102da6102c53660046119b8565b60009081526005602052604090205460ff1690565b60405161017191906120d3565b61018d6102f53660046119b8565b60066020526000908152604090205460ff1681565b6101c2610c0b565b6101ad610320366004611a32565b610c9d565b61018d610333366004611740565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101ad61036f366004611834565b610d3b565b6101ad610382366004611704565b610d80565b60006001600160a01b0383166103b85760405162461bcd60e51b81526004016103af90612122565b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061041257506001600160e01b031982166303a24d0760e21b145b8061042d57506301ffc9a760e01b6001600160e01b03198316145b90505b919050565b3361043e610abb565b6001600160a01b0316146104645760405162461bcd60e51b81526004016103af906121b2565b61046d81610dde565b50565b60606002805461047f90612308565b80601f01602080910402602001604051908101604052809291908181526020018280546104ab90612308565b80156104f85780601f106104cd576101008083540402835291602001916104f8565b820191906000526020600020905b8154815290600101906020018083116104db57829003601f168201915b50505050509050919050565b3361050d610abb565b6001600160a01b0316146105335760405162461bcd60e51b81526004016103af906121b2565b6000908152600660205260409020805460ff19166001179055565b6001600160a01b03851633148061056a575061056a8533610333565b6105865760405162461bcd60e51b81526004016103af90612172565b6105938585858585610df1565b5050505050565b60008281526006602052604090205460ff166105c85760405162461bcd60e51b81526004016103af90612132565b600160008381526005602052604090205460ff1660018111156105fb57634e487b7160e01b600052602160045260246000fd5b146106185760405162461bcd60e51b81526004016103af90612112565b6000805b82518110156107695782818151811061064557634e487b7160e01b600052603260045260246000fd5b60209081029190910101516009546040516331a9108f60e11b815291935033916001600160a01b0390911690636352211e90610685908690600401612212565b60206040518083038186803b15801561069d57600080fd5b505afa1580156106b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d59190611722565b6001600160a01b0316146106fb5760405162461bcd60e51b81526004016103af90612182565b610705848361076f565b156107225760405162461bcd60e51b81526004016103af90612192565b600084815260076020526040902061073a9083610fa9565b506107573385600160405180602001604052806000815250610fb5565b8061076181612361565b91505061061c565b50505050565b60008281526007602052604081206107879083611093565b9392505050565b606081518351146107b15760405162461bcd60e51b81526004016103af906121e2565b600083516001600160401b038111156107da57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610803578160200160208202803683370190505b50905060005b84518110156108a55761086a85828151811061083557634e487b7160e01b600052603260045260246000fd5b602002602001015185838151811061085d57634e487b7160e01b600052603260045260246000fd5b6020026020010151610387565b82828151811061088a57634e487b7160e01b600052603260045260246000fd5b602090810291909101015261089e81612361565b9050610809565b509392505050565b336108b6610abb565b6001600160a01b0316146108dc5760405162461bcd60e51b81526004016103af906121b2565b6108e660006110ab565b565b6009546040516370a0823160e01b81526060916000916001600160a01b03909116906370a082319061091e908690600401611fbf565b60206040518083038186803b15801561093657600080fd5b505afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e91906119d6565b90506000816001600160401b0381111561099857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156109c1578160200160208202803683370190505b509050600080805b84811015610aaf57600954604051632f745c5960e01b81526001600160a01b0390911690632f745c5990610a03908a908590600401612074565b60206040518083038186803b158015610a1b57600080fd5b505afa158015610a2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a5391906119d6565b9250610a5f888461076f565b610a9d5782848381518110610a8457634e487b7160e01b600052603260045260246000fd5b602090810291909101015281610a9981612361565b9250505b80610aa781612361565b9150506109c9565b50919695505050505050565b6003546001600160a01b03165b90565b33610ad4610abb565b6001600160a01b031614610afa5760405162461bcd60e51b81526004016103af906121b2565b8051610b0d9060049060208401906114b6565b5050565b33610b1a610abb565b6001600160a01b031614610b405760405162461bcd60e51b81526004016103af906121b2565b6000908152600660209081526040808320805460ff19908116909155600590925290912080549091169055565b336001600160a01b0383161415610b965760405162461bcd60e51b81526004016103af906121d2565b3360008181526001602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610bff91906120c5565b60405180910390a35050565b606060048054610c1a90612308565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4690612308565b8015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b5050505050905090565b33610ca6610abb565b6001600160a01b031614610ccc5760405162461bcd60e51b81526004016103af906121b2565b60008281526006602052604090205460ff16610cfa5760405162461bcd60e51b81526004016103af906121c2565b6000828152600560205260409020805482919060ff191660018381811115610d3257634e487b7160e01b600052602160045260246000fd5b02179055505050565b6001600160a01b038516331480610d575750610d578533610333565b610d735760405162461bcd60e51b81526004016103af90612152565b61059385858585856110fd565b33610d89610abb565b6001600160a01b031614610daf5760405162461bcd60e51b81526004016103af906121b2565b6001600160a01b038116610dd55760405162461bcd60e51b81526004016103af90612142565b61046d816110ab565b8051610b0d9060029060208401906114b6565b8151835114610e125760405162461bcd60e51b81526004016103af906121f2565b6001600160a01b038416610e385760405162461bcd60e51b81526004016103af90612162565b3360005b8451811015610f3b576000858281518110610e6757634e487b7160e01b600052603260045260246000fd5b602002602001015190506000858381518110610e9357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610ee35760405162461bcd60e51b81526004016103af906121a2565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610f20908490612292565b9250508190555050505080610f3490612361565b9050610e3c565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610f8b9291906120a0565b60405180910390a4610fa1818787878787611226565b505050505050565b60006107878383611344565b6001600160a01b038416610fdb5760405162461bcd60e51b81526004016103af90612202565b33610ff581600087610fec88611393565b61059388611393565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611025908490612292565b92505081905550846001600160a01b031660006001600160a01b0316826001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62878760405161107c929190612220565b60405180910390a4610593816000878787876113ec565b60008181526001830160205260408120541515610787565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166111235760405162461bcd60e51b81526004016103af90612162565b33611133818787610fec88611393565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156111745760405162461bcd60e51b81526004016103af906121a2565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906111b1908490612292565b92505081905550856001600160a01b0316876001600160a01b0316836001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628888604051611207929190612220565b60405180910390a461121d8288888888886113ec565b50505050505050565b6001600160a01b0384163b15610fa15760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061126a9089908990889088908890600401611fcd565b602060405180830381600087803b15801561128457600080fd5b505af19250505080156112b4575060408051601f3d908101601f191682019092526112b191810190611966565b60015b611314576112c06123d4565b806308c379a014156112fa57506112d56123ef565b806112e057506112fc565b8060405162461bcd60e51b81526004016103af91906120e1565b505b60405162461bcd60e51b81526004016103af906120f2565b6001600160e01b0319811663bc197c8160e01b1461121d5760405162461bcd60e51b81526004016103af90612102565b600081815260018301602052604081205461138b575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556103db565b5060006103db565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106113db57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b0384163b15610fa15760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190611430908990899088908890889060040161202d565b602060405180830381600087803b15801561144a57600080fd5b505af192505050801561147a575060408051601f3d908101601f1916820190925261147791810190611966565b60015b611486576112c06123d4565b6001600160e01b0319811663f23a6e6160e01b1461121d5760405162461bcd60e51b81526004016103af90612102565b8280546114c290612308565b90600052602060002090601f0160209004810192826114e4576000855561152a565b82601f106114fd57805160ff191683800117855561152a565b8280016001018555821561152a579182015b8281111561152a57825182559160200191906001019061150f565b5061153692915061153a565b5090565b5b80821115611536576000815560010161153b565b600061156261155d84612245565b61222e565b9050808382526020820190508285602086028201111561158157600080fd5b60005b858110156115ad57816115978882611641565b8452506020928301929190910190600101611584565b5050509392505050565b60006115c561155d84612245565b905080838252602082019050828560208602820111156115e457600080fd5b60005b858110156115ad57816115fa88826116ee565b84525060209283019291909101906001016115e7565b600061161e61155d84612268565b90508281526020810184848401111561163657600080fd5b6108a58482856122d0565b80356103db8161248c565b80516103db8161248c565b600082601f83011261166857600080fd5b813561167884826020860161154f565b949350505050565b600082601f83011261169157600080fd5b81356116788482602086016115b7565b80356103db816124a0565b80356103db816124a8565b80516103db816124a8565b600082601f8301126116d357600080fd5b8135611678848260208601611610565b80356103db816124b8565b80356103db816124c5565b80516103db816124c5565b60006020828403121561171657600080fd5b60006116788484611641565b60006020828403121561173457600080fd5b6000611678848461164c565b6000806040838503121561175357600080fd5b600061175f8585611641565b925050602061177085828601611641565b9150509250929050565b600080600080600060a0868803121561179257600080fd5b600061179e8888611641565b95505060206117af88828901611641565b94505060408601356001600160401b038111156117cb57600080fd5b6117d788828901611680565b93505060608601356001600160401b038111156117f357600080fd5b6117ff88828901611680565b92505060808601356001600160401b0381111561181b57600080fd5b611827888289016116c2565b9150509295509295909350565b600080600080600060a0868803121561184c57600080fd5b60006118588888611641565b955050602061186988828901611641565b945050604061187a888289016116ee565b93505060606117ff888289016116ee565b6000806040838503121561189e57600080fd5b60006118aa8585611641565b9250506020611770858286016116a1565b600080604083850312156118ce57600080fd5b60006118da8585611641565b9250506020611770858286016116ee565b600080604083850312156118fe57600080fd5b82356001600160401b0381111561191457600080fd5b61192085828601611657565b92505060208301356001600160401b0381111561193c57600080fd5b61177085828601611680565b60006020828403121561195a57600080fd5b600061167884846116ac565b60006020828403121561197857600080fd5b600061167884846116b7565b60006020828403121561199657600080fd5b81356001600160401b038111156119ac57600080fd5b611678848285016116c2565b6000602082840312156119ca57600080fd5b600061167884846116ee565b6000602082840312156119e857600080fd5b600061167884846116f9565b60008060408385031215611a0757600080fd5b600061175f85856116ee565b60008060408385031215611a2657600080fd5b600061192085856116ee565b60008060408385031215611a4557600080fd5b6000611a5185856116ee565b9250506020611770858286016116e3565b60008060408385031215611a7557600080fd5b60006118da85856116ee565b6000611a8d8383611fb9565b505060200190565b611a9e816122aa565b82525050565b6000611aae825190565b80845260209384019383018060005b83811015611ae2578151611ad18882611a81565b975060208301925050600101611abd565b509495945050505050565b801515611a9e565b6000611aff825190565b808452602084019350611b168185602086016122dc565b601f01601f19169290920192915050565b611a9e816122c5565b603481526000602082017f455243313135353a207472616e7366657220746f206e6f6e20455243313135358152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b602082015291505b5060400190565b602881526000602082017f455243313135353a204552433131353552656365697665722072656a656374658152676420746f6b656e7360c01b60208201529150611b7d565b600e81526000602082016d14d85b19481a5cc818db1bdcd95960921b815291505b5060200190565b602b81526000602082017f455243313135353a2062616c616e636520717565727920666f7220746865207a81526a65726f206164647265737360a81b60208201529150611b7d565b601b81526000602082017f4e6f207370656369616c20666f7220676976656e206e756d626572000000000081529150611bea565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b60208201529150611b7d565b602981526000602082017f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7281526808185c1c1c9bdd995960ba1b60208201529150611b7d565b602581526000602082017f455243313135353a207472616e7366657220746f20746865207a65726f206164815264647265737360d81b60208201529150611b7d565b603281526000602082017f455243313135353a207472616e736665722063616c6c6572206973206e6f74208152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60208201529150611b7d565b602281526000602082017f57616c6c657420646f65736e277420686f6c6420676976656e20536c696d486f8152611bd960f21b60208201529150611b7d565b602881526000602082017f5370656369616c20616c7265616479206d696e74656420666f7220746869732081526714db1a5b521bdbd960c21b60208201529150611b7d565b602a81526000602082017f455243313135353a20696e73756666696369656e742062616c616e636520666f81526939103a3930b739b332b960b11b60208201529150611b7d565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000611bea565b600f81526000602082016e139bc81cdd58da081cdc1958da585b608a1b81529150611bea565b602981526000602082017f455243313135353a2073657474696e6720617070726f76616c20737461747573815268103337b91039b2b63360b91b60208201529150611b7d565b602981526000602082017f455243313135353a206163636f756e747320616e6420696473206c656e677468815268040dad2e6dac2e8c6d60bb1b60208201529150611b7d565b602881526000602082017f455243313135353a2069647320616e6420616d6f756e7473206c656e677468208152670dad2e6dac2e8c6d60c31b60208201529150611b7d565b602181526000602082017f455243313135353a206d696e7420746f20746865207a65726f206164647265738152607360f81b60208201529150611b7d565b80611a9e565b602081016103db8284611a95565b60a08101611fdb8288611a95565b611fe86020830187611a95565b8181036040830152611ffa8186611aa4565b9050818103606083015261200e8185611aa4565b905081810360808301526120228184611af5565b979650505050505050565b60a0810161203b8288611a95565b6120486020830187611a95565b6120556040830186611fb9565b6120626060830185611fb9565b81810360808301526120228184611af5565b604081016120828285611a95565b6107876020830184611fb9565b602080825281016107878184611aa4565b604080825281016120b18185611aa4565b905081810360208301526116788184611aa4565b602081016103db8284611aed565b602081016103db8284611b27565b602080825281016107878184611af5565b6020808252810161042d81611b30565b6020808252810161042d81611b84565b6020808252810161042d81611bc9565b6020808252810161042d81611bf1565b6020808252810161042d81611c39565b6020808252810161042d81611c6d565b6020808252810161042d81611cb0565b6020808252810161042d81611cf6565b6020808252810161042d81611d38565b6020808252810161042d81611d87565b6020808252810161042d81611dc6565b6020808252810161042d81611e0b565b6020808252810161042d81611e52565b6020808252810161042d81611e84565b6020808252810161042d81611eaa565b6020808252810161042d81611ef0565b6020808252810161042d81611f36565b6020808252810161042d81611f7b565b602081016103db8284611fb9565b604081016120828285611fb9565b600061223960405190565b90506104308282612335565b60006001600160401b0382111561225e5761225e6123be565b5060209081020190565b60006001600160401b03821115612281576122816123be565b601f19601f83011660200192915050565b600082198211156122a5576122a561237c565b500190565b60006001600160a01b03821661042d565b806104308161247c565b600061042d826122bb565b82818337506000910152565b60005b838110156122f75781810151838201526020016122df565b838111156107695750506000910152565b60028104600182168061231c57607f821691505b6020821081141561232f5761232f6123a8565b50919050565b601f19601f83011681018181106001600160401b038211171561235a5761235a6123be565b6040525050565b60006000198214156123755761237561237c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d1115610ac85760046000803e5060005160e01c90565b600060443d10156123ff57610ac8565b60405160043d036004823e80513d60248201116001600160401b0382111715612429575050610ac8565b80820180516001600160401b038111156124465750505050610ac8565b80602083010160043d038501811115612463575050505050610ac8565b61247282602001850186612335565b5090935050505090565b6002811061046d5761046d612392565b612495816122aa565b811461046d57600080fd5b801515612495565b6001600160e01b03198116612495565b6002811061046d57600080fd5b8061249556fea26469706673582212205e8ba71ebc35d65f998916c5ce1a760618865025b3c8356e41b4f2bb2da72efe64736f6c63430008020033

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

0000000000000000000000002931b181ae9dc8f8109ec41c42480933f411ef94

-----Decoded View---------------
Arg [0] : _slimhoodsAddress (address): 0x2931B181Ae9Dc8F8109eC41C42480933F411ef94

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002931b181ae9dc8f8109ec41c42480933f411ef94


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.