ETH Price: $3,883.06 (+0.36%)

Token

Whiskers (Whiskers: Inventory Items)
 

Overview

Max Total Supply

860 Whiskers: Inventory Items

Holders

795

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
juicyipa.eth
0xafb5dd08c1204144c8015a3b143334845a747e7f
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Whiskers is a collection of 5,555 magically-inclined adventuring fish that live on the grand continent of the Great Pond. Whiskers is a combination of art and story and invites anyone and everyone to join us and create their own tales of adventure.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WhiskersItems

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 400 runs

Other Settings:
default evmVersion
File 1 of 13 : whiskersItems.sol
// SPDX-License-Identifier: MIT
/*
           ──        │   ┐└│      └┘  │  ┌┐       ┐┘ └─┐│ ┐│ ┌ ┌┐      ┐ ││ ┐┐             ╕    ╙╣╬╬╬╬╬╬
    ┐              ─└└  ┘ ┘  ─╕═├┬╕┌│┌┐│┐ └│    ┐ ─   ╕└└┬┌ ─    ╛╡┌┐ ┴┐  │┌│└│┐       ╓╓╥╥╓ ╫╣╩ ║╣╬╬╬╬╬
    ╣╗╗╥╓            ┌└  ┐┐┐ ╛├╡┴╡│╡┤│├││╘ ┐┐┐ │ ┐┘ └  ││  ╕   │└┘└└│ │┌└┘ │ ┐┌    ┌╗╣╣╩╬╬╬╣╣╣╬  ║╣╣╡╬╬╬
     ╙╙╙╝╣╣╣╣╗╗╦╓ └ ┌ ─│ ┌ └╘┘├┘││╛└│┘││┘│┐│       ├ ┌┘ │││┐┌┐╕ ┐         ┘││  ┌─╓╣╣╬╡╬╬╬╬╬╬╬╬╣╣╬╩╙╣╣╡╬╬
    │││││││ └╙╙╙╝╣╣╣╣╗╗╥╥  ││┌│╤ ╕┌┘╕┐└╧╒│ ╕│ ┘ ╕  ╓─┌ │  ││┐     ╕     ╛   ┘╕┐└╔╣╬╡╬╡╬╬╬╬╬╬╬╬╣╬╬╕╓╣╣╬╬╬
    ││││││││││││┌╓ └╙╙╙╙╝╣╣╦╛ ├│┘│┘╕┤╛│┼┐╘││├╡╦┘└│╕ ┌─┤ ╕┐ └┐ └  ╡└ ╕──     ╥╗╣╣╣╬╬╬╬╬╬╬╬╬╬╬╬╬╣╣╬╬╙╙║╣╡╬
    ││││││││ ╓╗╣╣╝╣╗┘┘┌┐╣╣╨╣╣╡└┘└│╕╦╦╦╦╡ ╒╕╦╦╩╙ ├╕   └╛ └╕│ └┤│╛ ╔ ┘│┌╦╓╗╣╣╣╝╨╫╣╬╬╬╬╬╬╡╬╡╬╬╬╣╣╬╬╬   ╣╣╡╬
    ││││ ╓╗╣╣╝╙    ╚╣╦ ╣╣   ╙╣╗┌ ┤╠╡╙╙╛└╚╩╡╡╡╕ ││└│└└ │┐┌ │  │╕╓╛╓╓╗╣╣╣╨╙   ┌╣╣╬╬╬╬╬╬╬╬╬╣╣╣╬╬╬╩╙└   ╚╣╣╬
    │╓╗╣╣╝╙          ╫╣╣      ╫╣╦╓╪│├╛ ╓│╦╬╡╬│ │╛     ┌    │╓╗╗╣╣╣╨╙       ╒╣╣╣╣╣╣╣╣╣╣╣╝╩╨╙╙╣╣╦  ┐    ║╣
    ╣╝╨          ─   ╣╣        ╙╣╣╥│┴╡┤╚╙╚╚╡┤╡┐│└╛╓╡╡╬╡╥╗╣╣╣╝╨╙       ╓╖╖ ╕ ╙╙╙╙╙╙     ┐     ╙╣╣╦ ╕    ║
                    ╣╣           ╙╣╗┐╡╡╛│╙╙╡╡╡╡╬╧╡╛╗╣╣╣╝╨╙         ╓╣╣╝╩╣╣               ┐     ╙╣╣╦
           ─   ─ ─╒╣╣              ╫╣╦╨│└ │╔╔╣╣╗╗╗╣╣╨        ╗╣╣╣╗╗╬╣ ┤│║╣╦                      ╙╣╣╦
                 ╒╣╣                ╙╣╣╥╗╣╣╣╣╨╙╙╙╙          ╟╬╩┤│╙╙╩╙│╞╣╣╬                  ┐┌     ╙╣╣╦
                ┌╣╣  ╓╣╣╣╣╣╣╣╖   ╓╣╣╬╣╜╣╬╙             ┌┐╓╓╓╣╣╣│╡╛└╡││╙╣╣╣╗                    ┐     ╙╣╣
               ╓╣╩   ╣╣│││╛│╙╣╣╣╣╣╩ ╙╣╣ ╫╣╗   ╓╓╖╗╗╣╣╣╣╣╣╝╩╩╙╙╙╙└╕┌  ┤╡┤┤║╣╣╥    ┘┘│             ┐     ╙
              ╓╣╩    ╙╣╣╡┤╡╡╡││╨╙│││╞╣╣╗╣╣╣╣╣╝╩╩╜╙╜╙└└││ │││││╛┘╛ ╕ ╞╣╗╝╜╨╣╣╬╕ ┘ ┌╕  │             ┌
             ╓╣╝       ╚╣╣╣╣╣╡╡╛││┘─┐ │╙└ │││││││╛╛┘└╡└└  ┐  ┌│ ╒└││╩╕   │╨╣╣╬  │╪╬╦                 ┐
         ═  ╔╣╝           ╙╫╣╣╛││╡╦┐  ││││└│┐ ─╕┌┐└  │╡  ┘┐└┐╕  ┘┐└│┤│    ╡╡║╣╦ ╬╬╬╬  │               │
        ─  ╔╣╝            ╔╣╬│╡╡╣╣╗╡╡╦╗┤││╕     └ ┐┌ ┌┘╕ └│┘│┌ └╕┐┐└ ┤╕    ╚╣╣╡╛│╩╬╕┐ │
        ╗ ║╬╝             └╝╣╣╣╩│┘    │││││╓    └ ┌┘┌  └╛┘┘╕┌╕╕└│  ┐└│┤╕ ─┐ ╚╣╣╕  │ ╛ │      └│
    ╗╣╝╝╝╣╣╣╣╣╣╣╣╣╗╗╗╗╗╗╗╗╖╖╖╣╬╦┤┌─    ││╛└│     │  ┐ ┌╦╡│┘╛┤│ ╒│ ┌┌ ╘│┤╕  ┌ ╚╣╣╦┐┌┌┌╕      ╕╕  └
    ╩                  ╙╙╙╙╙╙╟╣╬╕││   ┐ ││┘││      ┌╛││┌││││╕└│       ││┤╕    ╚╣╣╬         │  ╓┐  └    ╣
                             └╣╣╦╗│╕  ┐─ ╡┤││╕    ┌╕╡ │╕││┘│┘┌│  └   ─ ││┤╕    ╚╣╬╬╕         ╠╬╬╬╦  │┌╣╣
                               ╙╝╣╡│      │┤│││      │┌┤│╕╕╕╡╛─         │││ └  │╣╣╬╬     ┘ ┌ ╠╬╬╬╬╦┐╓╣╣
                                 ╣╣╕╕     └│╕ │┐  ┘ ┐┌└│ └  ╕        └ ─ ││  ╒ └║╣╬╬╬  ┘  │┌╦╬╬╬╬╬╬╫╣╝
                                 └╣╣│╕     └│╕││    ┐│┘└┐   └┐  │  ─  ┌  ││     ║╣╣╬╬─  ┐ ╪╬╬╬╬╬╬╡╣╣╨
                                  ║╣╬│╕     └││││ ┐┘┘│┌│┘│┐┌ └  ─      ┌││┘    │ └╣╣╣╦ │ ╬╬╬╬╬╬╬╬╣╣
                              ┌╓╗╣╣╣╣╬╡╕     └╡│││  ┌┘┌│┐┐┐│  │     ╕╡│││   └ ┌   ─│╚╣╣╡┘└╚╡╣╗╦╫╣╝
                          ╓╗╣╣╣╬╬╬╩╨╣╣╣╡╦   ─  └╛│││┐          └┌╕││││┤┘ ─   ┌╦╡╡╡╡╡╦╣╣╪╡╗╫╣╣╜╙╝╣╣╗╗╖
                     ╓╗╗╣╣╬╬╬╩╨╙ ╓┌┌┴╙╣╣╡╡╦  └ ─   └╡││┐│││││││┐││││╛       ╕╣╣╣╣╣╣╣╣╬╬╬╬╣╣╙      ╙╙╝╣╣╗
                 ╓╗╣╣╣╬╬╬╩╙││   ┌╘╕╕╕  ╙╣╣╦╡═┐    ┌       └└└┘╡│┤│││╕     ╕╔╣╣╬╬╬╬╩ ╙╙└╫╣╩└           ╟╙
            ╓╗╗╣╣╬╬╬╩╨╙└       ┌──┐ └└   ╣╣│  ┘ ┐┐    ┌        ╡     └  ─│╙╣╣╡╬╬╬╬╦╕ ╓╣╣╜│       ╙╡╡╡╡╡╡
        ╓╗╣╣╣╬╬╩╨╙┘│ ╗╕ │    └ │─  ╕    ║╣╬│ ┘ ┐╫╡╡╡╗╦╦┐       │  └┘   └ ╔╗╣╣╬╬╬╡╬╬╡╗╣╣╙            │╙╡╡
    ╗╣╣╣╬╬╬╩╙└   └   ╣╣          ┐└     ╟╣╬│╦╗╗╣╬╣╣╣╣╣╗╦╡╡╡┤┐┌┐╛  ┌╔╦╗╡╦╗╣╬╬╡╬╬╬╬╬╬╣╣╩                ╡╡
    ╬╬╩╨╙         ╓╦┐║╣╣╣╗╥    ──  ┌┘    ╣╣╣╣╣╣╬╬╬╬╬╬╬╬╬╣╣╣│╦╦╦╡╦╦╗╣╣╣╣╣╬╬╬╬╩╨└│└╙╩╣╣╗╗╦╦┤╡╡╦╕┌     ┌╡╡╡
      └           └╬╬╣╬╬╬╬╣╣╣╦╥    ┌ │──  ╙╙╩╬╬╬╬╩╙   └╙╙╩╣╣╣╣╬╣╝╩╬╨╬╬╬╩╨╙    ┐┌   ╟╣╣╨╙╝╣╣╣╣╦╦┤╡╡╡╡╡╡╡╡


     ...    .     ...                     .       .x+=:.         ..                                 .x+=:.
  .~`"888x.!**h.-``888h.     .uef^"      @88>    z`    ^%  < .z@8"`                                z`    ^%
 dX   `8888   :X   48888>  :d88E         %8P        .   <k  !@88E                      .u    .        .   <k
'888x  8888  X88.  '8888>  `888E          .       .@8Ned8"  '888E   u         .u     .d88B :@8c     .@8Ned8"
'88888 8888X:8888:   )?""`  888E .z8k   .@88u   .@^%8888"    888E u@8NL    ud8888.  ="8888f8888r  .@^%8888"
 `8888>8888 '88888>.88h.    888E~?888L ''888E` x88:  `)8b.   888E`"88*"  :888'8888.   4888>'88"  x88:  `)8b.
   `8" 888f  `8888>X88888.  888E  888E   888E  8888N=*8888   888E .dN.   d888 '88%"   4888> '    8888N=*8888
  -~` '8%"     88" `88888X  888E  888E   888E   %8"    R88   888E~8888   8888.+"      4888>       %8"    R88
  .H888n.      XHn.  `*88!  888E  888E   888E    @8Wou 9%    888E '888&  8888L       .d888L .+     @8Wou 9%
 :88888888x..x88888X.  `!   888E  888E   888&  .888888P`     888E  9888. '8888c. .+  ^"8888*"    .888888P`
 f  ^%888888% `*88888nx"   m888N= 888>   R888" `   ^"F     '"888*" 4888"  "88888%       "Y"      `   ^"F
      `"**"`    `"**""      `Y"   888     ""                  ""    ""      "YP'
                                 J88"
                                 @%
                               :"

*/

pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Burnable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract WhiskersItems is ERC1155, Ownable, ERC1155Burnable, ReentrancyGuard {
  using Address for address;

  string  public  symbol;
  uint256 private _currentTokenId = 1;

  constructor(
    string memory _symbol
  )
    ERC1155('Whiskers: Inventory Items')
  {
    symbol = _symbol;
  }

  function totalSupply()
    public
    view
    returns (uint256)
  {
    uint256 numTokens = _currentTokenId - 1;
    uint256 sum = 0;
    for (uint256 i = 1; i < numTokens+1; i++) {
      Token storage t = Tokens[i];
      sum += t.supply;
    }
    return sum;
  }

  function withdraw()
    public
    onlyOwner
    nonReentrant
  {
    Address.sendValue(payable(owner()), address(this).balance);
  }

  function setSymbol(
    string calldata _symbol
  )
    public
    onlyOwner
  {
    require(bytes(_symbol).length > 0, 'Symbol required');
    symbol = _symbol;
  }

  struct Token {
    uint64  supply;
    uint64  maxSupply;
    uint128 priceWei;
    bytes32 proofRoot;
    bool    paused;
    string  uri;
  }
  mapping(uint256 => Token) public Tokens;
  mapping(uint256 => mapping(address => bool)) public addressMintedToken;

  function uri(
    uint256 _tokenId
  )
    public
    view
    override
    returns (string memory)
  {
    string memory r = Tokens[_tokenId].uri;
    require(bytes(r).length > 0, 'Nonexistent token');
    return r;
  }

  function setTokenURI(
    uint256 _tokenId,
    string calldata _uri
  )
    public
    onlyOwner
  {
    require(bytes(_uri).length > 0, 'URI required');
    Tokens[_tokenId].uri = _uri;
    emit URI(_uri, _tokenId);
  }

  function setTokenMaxSupply(
    uint256 _tokenId,
    uint64 _maxSupply
  )
    public
    onlyOwner
  {
    require(_maxSupply > 0, 'Max supply must be more than 0');
    Tokens[_tokenId].maxSupply = _maxSupply;
  }

  function setTokenProofRoot(
    uint256 _tokenId,
    bytes32 _root
  )
    public
    onlyOwner
  {
    Tokens[_tokenId].proofRoot = _root;
  }

  function setTokenPriceWei(
    uint256 _tokenId,
    uint128 _priceWei
  )
    public
    onlyOwner
  {
    Tokens[_tokenId].priceWei = _priceWei;
  }

  function pauseToken(
    uint256 _tokenId
  )
    public
    onlyOwner
  {
    Tokens[_tokenId].paused = true;
  }

  function unpauseToken(
    uint256 _tokenId
  )
    public
    onlyOwner
  {
    Tokens[_tokenId].paused = false;
  }

  function createToken(
    uint64 _maxSupply,
    string calldata _uri,
    uint128 _priceWei,
    bytes32 _root,
    bool _paused
  )
    public
    onlyOwner
    returns (uint256)
  {
    require(bytes(_uri).length > 0, 'URI required');
    require(_maxSupply > 0, 'Max supply must be more than 0');
    uint256 _tokenId = _currentTokenId;
    _currentTokenId++;

    Tokens[_tokenId] = Token(0, _maxSupply, _priceWei, _root, _paused, _uri);
    emit URI(_uri, _tokenId);
    return _tokenId;
  }

  modifier mintCompliance(
    uint256 _quantity
  )
  {
    require(
      _quantity > 0 && _quantity <= 300,
      "Invalid mint amount"
    );
    _;
  }

  function airdrop(
    uint64 _tokenId,
    address[] calldata _addresses
  )
    external
    onlyOwner
    mintCompliance(_addresses.length)
  {
    Token storage t = Tokens[_tokenId];
    require(
       t.supply + _addresses.length <= t.maxSupply,
      "Maximum supply exceeded"
    );
    for (uint i = 0; i < _addresses.length; i++) {
        _mint(_addresses[i], _tokenId);
    }
  }

  function mint(
    uint64 _tokenId,
    bytes32[] memory _proof
  )
    public
    payable
    nonReentrant
    mintCompliance(1)
  {
    Token storage t = Tokens[_tokenId];
    require(
      msg.value == t.priceWei,
      "Incorrect payment"
    );
    require(
       t.supply + 1 <= t.maxSupply,
      "Maximum supply exceeded"
    );
    require(
      !addressMintedToken[_tokenId][msg.sender],
      "Address already minted"
    );
    require(
      !t.paused,
      "Pausable: paused"
    );
    require(
      MerkleProof.verify(_proof, t.proofRoot, keccak256(abi.encodePacked(msg.sender))),
      "Failed allowlist proof"
    );
    addressMintedToken[_tokenId][msg.sender] = true;
    _mint(msg.sender, _tokenId);
  }

  function _mint(
    address _address,
    uint64 _tokenId
  )
    internal
    virtual
  {
    Token storage t = Tokens[_tokenId];
    _mint(_address, _tokenId, 1, '');
    t.supply += 1;
  }
}

File 2 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return batchBalances;
    }

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

        address operator = _msgSender();

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

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

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

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

        address operator = _msgSender();

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

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

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

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

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

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

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

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

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

        return array;
    }
}

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

pragma solidity ^0.8.0;

import "../ERC1155.sol";

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

        _burn(account, id, value);
    }

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

        _burnBatch(account, ids, values);
    }
}

File 6 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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 7 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

File 10 of 13 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC1155.sol";

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Tokens","outputs":[{"internalType":"uint64","name":"supply","type":"uint64"},{"internalType":"uint64","name":"maxSupply","type":"uint64"},{"internalType":"uint128","name":"priceWei","type":"uint128"},{"internalType":"bytes32","name":"proofRoot","type":"bytes32"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"addressMintedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_tokenId","type":"uint64"},{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_maxSupply","type":"uint64"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint128","name":"_priceWei","type":"uint128"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bool","name":"_paused","type":"bool"}],"name":"createToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","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":"uint64","name":"_tokenId","type":"uint64"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"pauseToken","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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint64","name":"_maxSupply","type":"uint64"}],"name":"setTokenMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint128","name":"_priceWei","type":"uint128"}],"name":"setTokenPriceWei","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setTokenProofRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unpauseToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260016006553480156200001657600080fd5b5060405162003811380380620038118339810160408190526200003991620001cd565b60408051808201909152601981527f576869736b6572733a20496e76656e746f7279204974656d730000000000000060208201526200007881620000a6565b506200008433620000bf565b600160045580516200009e90600590602084019062000111565b5050620002e6565b8051620000bb90600290602084019062000111565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011f90620002a9565b90600052602060002090601f0160209004810192826200014357600085556200018e565b82601f106200015e57805160ff19168380011785556200018e565b828001600101855582156200018e579182015b828111156200018e57825182559160200191906001019062000171565b506200019c929150620001a0565b5090565b5b808211156200019c5760008155600101620001a1565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620001e157600080fd5b82516001600160401b0380821115620001f957600080fd5b818501915085601f8301126200020e57600080fd5b815181811115620002235762000223620001b7565b604051601f8201601f19908116603f011681019083821181831017156200024e576200024e620001b7565b8160405282815288868487010111156200026757600080fd5b600093505b828410156200028b57848401860151818501870152928501926200026c565b828411156200029d5760008684830101525b98975050505050505050565b600181811c90821680620002be57607f821691505b60208210811415620002e057634e487b7160e01b600052602260045260246000fd5b50919050565b61351b80620002f66000396000f3fe6080604052600436106101b65760003560e01c8063715018a6116100ec578063a22cb4651161008a578063f242432a11610064578063f242432a1461051f578063f2fde38b1461053f578063f5298aca1461055f578063fbd395f81461057f57600080fd5b8063a22cb46514610496578063b84c8246146104b6578063e985e9c5146104d657600080fd5b80638da5cb5b116100c65780638da5cb5b14610414578063953c81331461043c57806395d89b411461046e578063a2026e3d1461048357600080fd5b8063715018a6146103a457806376f4170c146103b9578063776ab634146103f457600080fd5b80633ccfd60b11610159578063626640801161013357806362664080146103245780636ad38f44146103445780636b20c454146103645780636efc5ea41461038457600080fd5b80633ccfd60b146102c25780634e1273f4146102d7578063616b964a1461030457600080fd5b8063162094c411610195578063162094c41461024b57806318160ddd1461026d5780631a0cd5bb146102825780632eb2c2d6146102a257600080fd5b8062fdd58e146101bb57806301ffc9a7146101ee5780630e89341c1461021e575b600080fd5b3480156101c757600080fd5b506101db6101d63660046128e1565b61059f565b6040519081526020015b60405180910390f35b3480156101fa57600080fd5b5061020e610209366004612921565b610636565b60405190151581526020016101e5565b34801561022a57600080fd5b5061023e610239366004612945565b610688565b6040516101e591906129ab565b34801561025757600080fd5b5061026b610266366004612a06565b61077a565b005b34801561027957600080fd5b506101db61085a565b34801561028e57600080fd5b5061026b61029d366004612a68565b6108c5565b3480156102ae57600080fd5b5061026b6102bd366004612bdd565b610939565b3480156102ce57600080fd5b5061026b6109db565b3480156102e357600080fd5b506102f76102f2366004612c86565b610a9d565b6040516101e59190612d8b565b34801561031057600080fd5b5061026b61031f366004612d9e565b610bc6565b34801561033057600080fd5b5061026b61033f366004612dd7565b610c23565b34801561035057600080fd5b506101db61035f366004612e6c565b610d9f565b34801561037057600080fd5b5061026b61037f366004612ee9565b611005565b34801561039057600080fd5b5061026b61039f366004612f5c565b61104d565b3480156103b057600080fd5b5061026b61112d565b3480156103c557600080fd5b5061020e6103d4366004612f7f565b600860209081526000928352604080842090915290825290205460ff1681565b34801561040057600080fd5b5061026b61040f366004612945565b611181565b34801561042057600080fd5b506003546040516001600160a01b0390911681526020016101e5565b34801561044857600080fd5b5061045c610457366004612945565b6111e4565b6040516101e596959493929190612fa2565b34801561047a57600080fd5b5061023e6112bf565b61026b610491366004612ff7565b61134d565b3480156104a257600080fd5b5061026b6104b13660046130a5565b611626565b3480156104c257600080fd5b5061026b6104d13660046130cf565b611635565b3480156104e257600080fd5b5061020e6104f1366004613110565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561052b57600080fd5b5061026b61053a36600461313a565b6116c8565b34801561054b57600080fd5b5061026b61055a36600461319e565b61170d565b34801561056b57600080fd5b5061026b61057a3660046131b9565b6117c6565b34801561058b57600080fd5b5061026b61059a366004612945565b611809565b60006001600160a01b0383166106105760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061066757506001600160e01b031982166303a24d0760e21b145b8061068257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000818152600760205260408120600301805460609291906106a9906131ec565b80601f01602080910402602001604051908101604052809291908181526020018280546106d5906131ec565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b5050505050905060008151116106825760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610607565b6003546001600160a01b031633146107c25760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b806107fe5760405162461bcd60e51b815260206004820152600c60248201526b155492481c995c5d5a5c995960a21b6044820152606401610607565b600083815260076020526040902061081a9060030183836127b8565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b838360405161084d929190613227565b60405180910390a2505050565b600080600160065461086c919061326c565b9050600060015b61087e836001613283565b8110156108be57600081815260076020526040902080546108a8906001600160401b031684613283565b92505080806108b69061329b565b915050610873565b5092915050565b6003546001600160a01b0316331461090d5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60009182526007602052604090912080546001600160801b03928316600160801b029216919091179055565b6001600160a01b038516331480610955575061095585336104f1565b6109c75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610607565b6109d4858585858561186f565b5050505050565b6003546001600160a01b03163314610a235760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60026004541415610a765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610607565b6002600455610a96610a906003546001600160a01b031690565b47611ac5565b6001600455565b60608151835114610b025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610607565b600083516001600160401b03811115610b1d57610b1d612a94565b604051908082528060200260200182016040528015610b46578160200160208202803683370190505b50905060005b8451811015610bbe57610b91858281518110610b6a57610b6a6132b6565b6020026020010151858381518110610b8457610b846132b6565b602002602001015161059f565b828281518110610ba357610ba36132b6565b6020908102919091010152610bb78161329b565b9050610b4c565b509392505050565b6003546001600160a01b03163314610c0e5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60009182526007602052604090912060010155565b6003546001600160a01b03163314610c6b5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b808015801590610c7d575061012c8111155b610cc95760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964206d696e7420616d6f756e74000000000000000000000000006044820152606401610607565b6001600160401b03808516600090815260076020526040902080549091600160401b8204811691610cfc91869116613283565b1115610d4a5760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610607565b60005b83811015610d9757610d85858583818110610d6a57610d6a6132b6565b9050602002016020810190610d7f919061319e565b87611bde565b80610d8f8161329b565b915050610d4d565b505050505050565b6003546000906001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b84610e265760405162461bcd60e51b815260206004820152600c60248201526b155492481c995c5d5a5c995960a21b6044820152606401610607565b6000876001600160401b031611610e7f5760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206d757374206265206d6f7265207468616e203000006044820152606401610607565b600680549081906000610e918361329b565b91905055506040518060c0016040528060006001600160401b03168152602001896001600160401b03168152602001866001600160801b03168152602001858152602001841515815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600760209081526040918290208451815486840151948701516001600160801b03908116600160801b026001600160401b03968716600160401b026fffffffffffffffffffffffffffffffff199093169690931695909517179390931692909217825560608401516001830155608084015160028301805491151560ff1990921691909117905560a08401518051929350610fbc926003850192919091019061283c565b50905050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8888604051610ff2929190613227565b60405180910390a2979650505050505050565b6001600160a01b038316331480611021575061102183336104f1565b61103d5760405162461bcd60e51b8152600401610607906132cc565b611048838383611c5c565b505050565b6003546001600160a01b031633146110955760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000816001600160401b0316116110ee5760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206d757374206265206d6f7265207468616e203000006044820152606401610607565b60009182526007602052604090912080546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6003546001600160a01b031633146111755760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b61117f6000611e91565b565b6003546001600160a01b031633146111c95760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000908152600760205260409020600201805460ff19169055565b60076020526000908152604090208054600182015460028301546003840180546001600160401b0380861696600160401b870490911695600160801b90046001600160801b0316949360ff1692909161123c906131ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611268906131ec565b80156112b55780601f1061128a576101008083540402835291602001916112b5565b820191906000526020600020905b81548152906001019060200180831161129857829003601f168201915b5050505050905086565b600580546112cc906131ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112f8906131ec565b80156113455780601f1061131a57610100808354040283529160200191611345565b820191906000526020600020905b81548152906001019060200180831161132857829003601f168201915b505050505081565b600260045414156113a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610607565b600260045560016001600160401b03831660009081526007602052604090208054600160801b90046001600160801b0316341461141f5760405162461bcd60e51b815260206004820152601160248201527f496e636f7272656374207061796d656e740000000000000000000000000000006044820152606401610607565b80546001600160401b03600160401b820481169161143f91166001613315565b6001600160401b031611156114965760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610607565b6001600160401b038416600090815260086020908152604080832033845290915290205460ff161561150a5760405162461bcd60e51b815260206004820152601660248201527f4164647265737320616c7265616479206d696e746564000000000000000000006044820152606401610607565b600281015460ff16156115525760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610607565b60018101546040516bffffffffffffffffffffffff193360601b16602082015261159691859160340160405160208183030381529060405280519060200120611ef0565b6115e25760405162461bcd60e51b815260206004820152601660248201527f4661696c656420616c6c6f776c6973742070726f6f66000000000000000000006044820152606401610607565b6001600160401b0384166000908152600860209081526040808320338085529252909120805460ff1916600117905561161b9085611bde565b505060016004555050565b611631338383611f06565b5050565b6003546001600160a01b0316331461167d5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b806116bc5760405162461bcd60e51b815260206004820152600f60248201526e14de5b589bdb081c995c5d5a5c9959608a1b6044820152606401610607565b611048600583836127b8565b6001600160a01b0385163314806116e457506116e485336104f1565b6117005760405162461bcd60e51b8152600401610607906132cc565b6109d48585858585611fe7565b6003546001600160a01b031633146117555760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6001600160a01b0381166117ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610607565b6117c381611e91565b50565b6001600160a01b0383163314806117e257506117e283336104f1565b6117fe5760405162461bcd60e51b8152600401610607906132cc565b61104883838361218e565b6003546001600160a01b031633146118515760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000908152600760205260409020600201805460ff19166001179055565b81518351146118d15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610607565b6001600160a01b0384166119355760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610607565b3360005b8451811015611a5f576000858281518110611956576119566132b6565b602002602001015190506000858381518110611974576119746132b6565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a075760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610607565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a44908490613283565b9250508190555050505080611a589061329b565b9050611939565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611aaf929190613340565b60405180910390a4610d97818787878787612308565b80471015611b155760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610607565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b62576040519150601f19603f3d011682016040523d82523d6000602084013e611b67565b606091505b50509050806110485760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610607565b6001600160401b038116600081815260076020908152604080832081519283019091529181529091611c15918591906001906124bd565b80546001908290600090611c339084906001600160401b0316613315565b92506101000a8154816001600160401b0302191690836001600160401b03160217905550505050565b6001600160a01b038316611cbe5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610607565b8051825114611d205760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610607565b604080516020810190915260009081905233905b8351811015611e32576000848281518110611d5157611d516132b6565b602002602001015190506000848381518110611d6f57611d6f6132b6565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611dfb5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610607565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611e2a8161329b565b915050611d34565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e83929190613340565b60405180910390a450505050565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082611efd85846125be565b14949350505050565b816001600160a01b0316836001600160a01b03161415611f7a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610607565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661204b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610607565b3361206481878761205b88612662565b6109d488612662565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120e85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610607565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612125908490613283565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46121858288888888886126ad565b50505050505050565b6001600160a01b0383166121f05760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610607565b336122208185600061220187612662565b61220a87612662565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561229d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610607565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b15610d975760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061234c908990899088908890889060040161336e565b602060405180830381600087803b15801561236657600080fd5b505af1925050508015612396575060408051601f3d908101601f19168201909252612393918101906133c0565b60015b61244c576123a26133dd565b806308c379a014156123dc57506123b76133f9565b806123c257506123de565b8060405162461bcd60e51b815260040161060791906129ab565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610607565b6001600160e01b0319811663bc197c8160e01b146121855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610607565b6001600160a01b03841661251d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610607565b3361252e8160008761205b88612662565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061255e908490613283565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46109d4816000878787876126ad565b600081815b8451811015610bbe5760008582815181106125e0576125e06132b6565b6020026020010151905080831161262257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061264f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061265a8161329b565b9150506125c3565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061269c5761269c6132b6565b602090810291909101015292915050565b6001600160a01b0384163b15610d975760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126f19089908990889088908890600401613482565b602060405180830381600087803b15801561270b57600080fd5b505af192505050801561273b575060408051601f3d908101601f19168201909252612738918101906133c0565b60015b612747576123a26133dd565b6001600160e01b0319811663f23a6e6160e01b146121855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610607565b8280546127c4906131ec565b90600052602060002090601f0160209004810192826127e6576000855561282c565b82601f106127ff5782800160ff1982351617855561282c565b8280016001018555821561282c579182015b8281111561282c578235825591602001919060010190612811565b506128389291506128b0565b5090565b828054612848906131ec565b90600052602060002090601f01602090048101928261286a576000855561282c565b82601f1061288357805160ff191683800117855561282c565b8280016001018555821561282c579182015b8281111561282c578251825591602001919060010190612895565b5b8082111561283857600081556001016128b1565b80356001600160a01b03811681146128dc57600080fd5b919050565b600080604083850312156128f457600080fd5b6128fd836128c5565b946020939093013593505050565b6001600160e01b0319811681146117c357600080fd5b60006020828403121561293357600080fd5b813561293e8161290b565b9392505050565b60006020828403121561295757600080fd5b5035919050565b6000815180845260005b8181101561298457602081850181015186830182015201612968565b81811115612996576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061293e602083018461295e565b60008083601f8401126129d057600080fd5b5081356001600160401b038111156129e757600080fd5b6020830191508360208285010111156129ff57600080fd5b9250929050565b600080600060408486031215612a1b57600080fd5b8335925060208401356001600160401b03811115612a3857600080fd5b612a44868287016129be565b9497909650939450505050565b80356001600160801b03811681146128dc57600080fd5b60008060408385031215612a7b57600080fd5b82359150612a8b60208401612a51565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612acf57612acf612a94565b6040525050565b60006001600160401b03821115612aef57612aef612a94565b5060051b60200190565b600082601f830112612b0a57600080fd5b81356020612b1782612ad6565b604051612b248282612aaa565b83815260059390931b8501820192828101915086841115612b4457600080fd5b8286015b84811015612b5f5780358352918301918301612b48565b509695505050505050565b600082601f830112612b7b57600080fd5b81356001600160401b03811115612b9457612b94612a94565b604051612bab601f8301601f191660200182612aaa565b818152846020838601011115612bc057600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612bf557600080fd5b612bfe866128c5565b9450612c0c602087016128c5565b935060408601356001600160401b0380821115612c2857600080fd5b612c3489838a01612af9565b94506060880135915080821115612c4a57600080fd5b612c5689838a01612af9565b93506080880135915080821115612c6c57600080fd5b50612c7988828901612b6a565b9150509295509295909350565b60008060408385031215612c9957600080fd5b82356001600160401b0380821115612cb057600080fd5b818501915085601f830112612cc457600080fd5b81356020612cd182612ad6565b604051612cde8282612aaa565b83815260059390931b8501820192828101915089841115612cfe57600080fd5b948201945b83861015612d2357612d14866128c5565b82529482019490820190612d03565b96505086013592505080821115612d3957600080fd5b50612d4685828601612af9565b9150509250929050565b600081518084526020808501945080840160005b83811015612d8057815187529582019590820190600101612d64565b509495945050505050565b60208152600061293e6020830184612d50565b60008060408385031215612db157600080fd5b50508035926020909101359150565b80356001600160401b03811681146128dc57600080fd5b600080600060408486031215612dec57600080fd5b612df584612dc0565b925060208401356001600160401b0380821115612e1157600080fd5b818601915086601f830112612e2557600080fd5b813581811115612e3457600080fd5b8760208260051b8501011115612e4957600080fd5b6020830194508093505050509250925092565b803580151581146128dc57600080fd5b60008060008060008060a08789031215612e8557600080fd5b612e8e87612dc0565b955060208701356001600160401b03811115612ea957600080fd5b612eb589828a016129be565b9096509450612ec8905060408801612a51565b925060608701359150612edd60808801612e5c565b90509295509295509295565b600080600060608486031215612efe57600080fd5b612f07846128c5565b925060208401356001600160401b0380821115612f2357600080fd5b612f2f87838801612af9565b93506040860135915080821115612f4557600080fd5b50612f5286828701612af9565b9150509250925092565b60008060408385031215612f6f57600080fd5b82359150612a8b60208401612dc0565b60008060408385031215612f9257600080fd5b82359150612a8b602084016128c5565b60006001600160401b0380891683528088166020840152506001600160801b0386166040830152846060830152831515608083015260c060a0830152612feb60c083018461295e565b98975050505050505050565b6000806040838503121561300a57600080fd5b61301383612dc0565b91506020808401356001600160401b0381111561302f57600080fd5b8401601f8101861361304057600080fd5b803561304b81612ad6565b6040516130588282612aaa565b82815260059290921b830184019184810191508883111561307857600080fd5b928401925b828410156130965783358252928401929084019061307d565b80955050505050509250929050565b600080604083850312156130b857600080fd5b6130c1836128c5565b9150612a8b60208401612e5c565b600080602083850312156130e257600080fd5b82356001600160401b038111156130f857600080fd5b613104858286016129be565b90969095509350505050565b6000806040838503121561312357600080fd5b61312c836128c5565b9150612a8b602084016128c5565b600080600080600060a0868803121561315257600080fd5b61315b866128c5565b9450613169602087016128c5565b9350604086013592506060860135915060808601356001600160401b0381111561319257600080fd5b612c7988828901612b6a565b6000602082840312156131b057600080fd5b61293e826128c5565b6000806000606084860312156131ce57600080fd5b6131d7846128c5565b95602085013595506040909401359392505050565b600181811c9082168061320057607f821691505b6020821081141561322157634e487b7160e01b600052602260045260246000fd5b50919050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561327e5761327e613256565b500390565b6000821982111561329657613296613256565b500190565b60006000198214156132af576132af613256565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006001600160401b0380831681851680830382111561333757613337613256565b01949350505050565b6040815260006133536040830185612d50565b82810360208401526133658185612d50565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261339a60a0830186612d50565b82810360608401526133ac8186612d50565b90508281036080840152612feb818561295e565b6000602082840312156133d257600080fd5b815161293e8161290b565b600060033d11156133f65760046000803e5060005160e01c5b90565b600060443d10156134075790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561343657505050505090565b828501915081518181111561344e5750505050505090565b843d87010160208285010111156134685750505050505090565b61347760208286010187612aaa565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526134ba60a083018461295e565b97965050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220e87b700da85adddea4133ab70a33238e5cce213607526a706e92d04b1330502664736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000019576869736b6572733a20496e76656e746f7279204974656d7300000000000000

Deployed Bytecode

0x6080604052600436106101b65760003560e01c8063715018a6116100ec578063a22cb4651161008a578063f242432a11610064578063f242432a1461051f578063f2fde38b1461053f578063f5298aca1461055f578063fbd395f81461057f57600080fd5b8063a22cb46514610496578063b84c8246146104b6578063e985e9c5146104d657600080fd5b80638da5cb5b116100c65780638da5cb5b14610414578063953c81331461043c57806395d89b411461046e578063a2026e3d1461048357600080fd5b8063715018a6146103a457806376f4170c146103b9578063776ab634146103f457600080fd5b80633ccfd60b11610159578063626640801161013357806362664080146103245780636ad38f44146103445780636b20c454146103645780636efc5ea41461038457600080fd5b80633ccfd60b146102c25780634e1273f4146102d7578063616b964a1461030457600080fd5b8063162094c411610195578063162094c41461024b57806318160ddd1461026d5780631a0cd5bb146102825780632eb2c2d6146102a257600080fd5b8062fdd58e146101bb57806301ffc9a7146101ee5780630e89341c1461021e575b600080fd5b3480156101c757600080fd5b506101db6101d63660046128e1565b61059f565b6040519081526020015b60405180910390f35b3480156101fa57600080fd5b5061020e610209366004612921565b610636565b60405190151581526020016101e5565b34801561022a57600080fd5b5061023e610239366004612945565b610688565b6040516101e591906129ab565b34801561025757600080fd5b5061026b610266366004612a06565b61077a565b005b34801561027957600080fd5b506101db61085a565b34801561028e57600080fd5b5061026b61029d366004612a68565b6108c5565b3480156102ae57600080fd5b5061026b6102bd366004612bdd565b610939565b3480156102ce57600080fd5b5061026b6109db565b3480156102e357600080fd5b506102f76102f2366004612c86565b610a9d565b6040516101e59190612d8b565b34801561031057600080fd5b5061026b61031f366004612d9e565b610bc6565b34801561033057600080fd5b5061026b61033f366004612dd7565b610c23565b34801561035057600080fd5b506101db61035f366004612e6c565b610d9f565b34801561037057600080fd5b5061026b61037f366004612ee9565b611005565b34801561039057600080fd5b5061026b61039f366004612f5c565b61104d565b3480156103b057600080fd5b5061026b61112d565b3480156103c557600080fd5b5061020e6103d4366004612f7f565b600860209081526000928352604080842090915290825290205460ff1681565b34801561040057600080fd5b5061026b61040f366004612945565b611181565b34801561042057600080fd5b506003546040516001600160a01b0390911681526020016101e5565b34801561044857600080fd5b5061045c610457366004612945565b6111e4565b6040516101e596959493929190612fa2565b34801561047a57600080fd5b5061023e6112bf565b61026b610491366004612ff7565b61134d565b3480156104a257600080fd5b5061026b6104b13660046130a5565b611626565b3480156104c257600080fd5b5061026b6104d13660046130cf565b611635565b3480156104e257600080fd5b5061020e6104f1366004613110565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561052b57600080fd5b5061026b61053a36600461313a565b6116c8565b34801561054b57600080fd5b5061026b61055a36600461319e565b61170d565b34801561056b57600080fd5b5061026b61057a3660046131b9565b6117c6565b34801561058b57600080fd5b5061026b61059a366004612945565b611809565b60006001600160a01b0383166106105760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061066757506001600160e01b031982166303a24d0760e21b145b8061068257506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000818152600760205260408120600301805460609291906106a9906131ec565b80601f01602080910402602001604051908101604052809291908181526020018280546106d5906131ec565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b5050505050905060008151116106825760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610607565b6003546001600160a01b031633146107c25760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b806107fe5760405162461bcd60e51b815260206004820152600c60248201526b155492481c995c5d5a5c995960a21b6044820152606401610607565b600083815260076020526040902061081a9060030183836127b8565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b838360405161084d929190613227565b60405180910390a2505050565b600080600160065461086c919061326c565b9050600060015b61087e836001613283565b8110156108be57600081815260076020526040902080546108a8906001600160401b031684613283565b92505080806108b69061329b565b915050610873565b5092915050565b6003546001600160a01b0316331461090d5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60009182526007602052604090912080546001600160801b03928316600160801b029216919091179055565b6001600160a01b038516331480610955575061095585336104f1565b6109c75760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610607565b6109d4858585858561186f565b5050505050565b6003546001600160a01b03163314610a235760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60026004541415610a765760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610607565b6002600455610a96610a906003546001600160a01b031690565b47611ac5565b6001600455565b60608151835114610b025760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610607565b600083516001600160401b03811115610b1d57610b1d612a94565b604051908082528060200260200182016040528015610b46578160200160208202803683370190505b50905060005b8451811015610bbe57610b91858281518110610b6a57610b6a6132b6565b6020026020010151858381518110610b8457610b846132b6565b602002602001015161059f565b828281518110610ba357610ba36132b6565b6020908102919091010152610bb78161329b565b9050610b4c565b509392505050565b6003546001600160a01b03163314610c0e5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b60009182526007602052604090912060010155565b6003546001600160a01b03163314610c6b5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b808015801590610c7d575061012c8111155b610cc95760405162461bcd60e51b815260206004820152601360248201527f496e76616c6964206d696e7420616d6f756e74000000000000000000000000006044820152606401610607565b6001600160401b03808516600090815260076020526040902080549091600160401b8204811691610cfc91869116613283565b1115610d4a5760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610607565b60005b83811015610d9757610d85858583818110610d6a57610d6a6132b6565b9050602002016020810190610d7f919061319e565b87611bde565b80610d8f8161329b565b915050610d4d565b505050505050565b6003546000906001600160a01b03163314610dea5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b84610e265760405162461bcd60e51b815260206004820152600c60248201526b155492481c995c5d5a5c995960a21b6044820152606401610607565b6000876001600160401b031611610e7f5760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206d757374206265206d6f7265207468616e203000006044820152606401610607565b600680549081906000610e918361329b565b91905055506040518060c0016040528060006001600160401b03168152602001896001600160401b03168152602001866001600160801b03168152602001858152602001841515815260200188888080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050838152600760209081526040918290208451815486840151948701516001600160801b03908116600160801b026001600160401b03968716600160401b026fffffffffffffffffffffffffffffffff199093169690931695909517179390931692909217825560608401516001830155608084015160028301805491151560ff1990921691909117905560a08401518051929350610fbc926003850192919091019061283c565b50905050807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8888604051610ff2929190613227565b60405180910390a2979650505050505050565b6001600160a01b038316331480611021575061102183336104f1565b61103d5760405162461bcd60e51b8152600401610607906132cc565b611048838383611c5c565b505050565b6003546001600160a01b031633146110955760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000816001600160401b0316116110ee5760405162461bcd60e51b815260206004820152601e60248201527f4d617820737570706c79206d757374206265206d6f7265207468616e203000006044820152606401610607565b60009182526007602052604090912080546001600160401b03909216600160401b026fffffffffffffffff000000000000000019909216919091179055565b6003546001600160a01b031633146111755760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b61117f6000611e91565b565b6003546001600160a01b031633146111c95760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000908152600760205260409020600201805460ff19169055565b60076020526000908152604090208054600182015460028301546003840180546001600160401b0380861696600160401b870490911695600160801b90046001600160801b0316949360ff1692909161123c906131ec565b80601f0160208091040260200160405190810160405280929190818152602001828054611268906131ec565b80156112b55780601f1061128a576101008083540402835291602001916112b5565b820191906000526020600020905b81548152906001019060200180831161129857829003601f168201915b5050505050905086565b600580546112cc906131ec565b80601f01602080910402602001604051908101604052809291908181526020018280546112f8906131ec565b80156113455780601f1061131a57610100808354040283529160200191611345565b820191906000526020600020905b81548152906001019060200180831161132857829003601f168201915b505050505081565b600260045414156113a05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610607565b600260045560016001600160401b03831660009081526007602052604090208054600160801b90046001600160801b0316341461141f5760405162461bcd60e51b815260206004820152601160248201527f496e636f7272656374207061796d656e740000000000000000000000000000006044820152606401610607565b80546001600160401b03600160401b820481169161143f91166001613315565b6001600160401b031611156114965760405162461bcd60e51b815260206004820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152606401610607565b6001600160401b038416600090815260086020908152604080832033845290915290205460ff161561150a5760405162461bcd60e51b815260206004820152601660248201527f4164647265737320616c7265616479206d696e746564000000000000000000006044820152606401610607565b600281015460ff16156115525760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610607565b60018101546040516bffffffffffffffffffffffff193360601b16602082015261159691859160340160405160208183030381529060405280519060200120611ef0565b6115e25760405162461bcd60e51b815260206004820152601660248201527f4661696c656420616c6c6f776c6973742070726f6f66000000000000000000006044820152606401610607565b6001600160401b0384166000908152600860209081526040808320338085529252909120805460ff1916600117905561161b9085611bde565b505060016004555050565b611631338383611f06565b5050565b6003546001600160a01b0316331461167d5760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b806116bc5760405162461bcd60e51b815260206004820152600f60248201526e14de5b589bdb081c995c5d5a5c9959608a1b6044820152606401610607565b611048600583836127b8565b6001600160a01b0385163314806116e457506116e485336104f1565b6117005760405162461bcd60e51b8152600401610607906132cc565b6109d48585858585611fe7565b6003546001600160a01b031633146117555760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6001600160a01b0381166117ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610607565b6117c381611e91565b50565b6001600160a01b0383163314806117e257506117e283336104f1565b6117fe5760405162461bcd60e51b8152600401610607906132cc565b61104883838361218e565b6003546001600160a01b031633146118515760405162461bcd60e51b815260206004820181905260248201526000805160206134c68339815191526044820152606401610607565b6000908152600760205260409020600201805460ff19166001179055565b81518351146118d15760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610607565b6001600160a01b0384166119355760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610607565b3360005b8451811015611a5f576000858281518110611956576119566132b6565b602002602001015190506000858381518110611974576119746132b6565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a075760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610607565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611a44908490613283565b9250508190555050505080611a589061329b565b9050611939565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611aaf929190613340565b60405180910390a4610d97818787878787612308565b80471015611b155760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610607565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611b62576040519150601f19603f3d011682016040523d82523d6000602084013e611b67565b606091505b50509050806110485760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610607565b6001600160401b038116600081815260076020908152604080832081519283019091529181529091611c15918591906001906124bd565b80546001908290600090611c339084906001600160401b0316613315565b92506101000a8154816001600160401b0302191690836001600160401b03160217905550505050565b6001600160a01b038316611cbe5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610607565b8051825114611d205760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610607565b604080516020810190915260009081905233905b8351811015611e32576000848281518110611d5157611d516132b6565b602002602001015190506000848381518110611d6f57611d6f6132b6565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611dfb5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610607565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611e2a8161329b565b915050611d34565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611e83929190613340565b60405180910390a450505050565b600380546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600082611efd85846125be565b14949350505050565b816001600160a01b0316836001600160a01b03161415611f7a5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610607565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661204b5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610607565b3361206481878761205b88612662565b6109d488612662565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120e85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b6064820152608401610607565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612125908490613283565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46121858288888888886126ad565b50505050505050565b6001600160a01b0383166121f05760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b6064820152608401610607565b336122208185600061220187612662565b61220a87612662565b5050604080516020810190915260009052505050565b6000838152602081815260408083206001600160a01b03881684529091529020548281101561229d5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b6064820152608401610607565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b6001600160a01b0384163b15610d975760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061234c908990899088908890889060040161336e565b602060405180830381600087803b15801561236657600080fd5b505af1925050508015612396575060408051601f3d908101601f19168201909252612393918101906133c0565b60015b61244c576123a26133dd565b806308c379a014156123dc57506123b76133f9565b806123c257506123de565b8060405162461bcd60e51b815260040161060791906129ab565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401610607565b6001600160e01b0319811663bc197c8160e01b146121855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610607565b6001600160a01b03841661251d5760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610607565b3361252e8160008761205b88612662565b6000848152602081815260408083206001600160a01b03891684529091528120805485929061255e908490613283565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46109d4816000878787876126ad565b600081815b8451811015610bbe5760008582815181106125e0576125e06132b6565b6020026020010151905080831161262257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061264f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061265a8161329b565b9150506125c3565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061269c5761269c6132b6565b602090810291909101015292915050565b6001600160a01b0384163b15610d975760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906126f19089908990889088908890600401613482565b602060405180830381600087803b15801561270b57600080fd5b505af192505050801561273b575060408051601f3d908101601f19168201909252612738918101906133c0565b60015b612747576123a26133dd565b6001600160e01b0319811663f23a6e6160e01b146121855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401610607565b8280546127c4906131ec565b90600052602060002090601f0160209004810192826127e6576000855561282c565b82601f106127ff5782800160ff1982351617855561282c565b8280016001018555821561282c579182015b8281111561282c578235825591602001919060010190612811565b506128389291506128b0565b5090565b828054612848906131ec565b90600052602060002090601f01602090048101928261286a576000855561282c565b82601f1061288357805160ff191683800117855561282c565b8280016001018555821561282c579182015b8281111561282c578251825591602001919060010190612895565b5b8082111561283857600081556001016128b1565b80356001600160a01b03811681146128dc57600080fd5b919050565b600080604083850312156128f457600080fd5b6128fd836128c5565b946020939093013593505050565b6001600160e01b0319811681146117c357600080fd5b60006020828403121561293357600080fd5b813561293e8161290b565b9392505050565b60006020828403121561295757600080fd5b5035919050565b6000815180845260005b8181101561298457602081850181015186830182015201612968565b81811115612996576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061293e602083018461295e565b60008083601f8401126129d057600080fd5b5081356001600160401b038111156129e757600080fd5b6020830191508360208285010111156129ff57600080fd5b9250929050565b600080600060408486031215612a1b57600080fd5b8335925060208401356001600160401b03811115612a3857600080fd5b612a44868287016129be565b9497909650939450505050565b80356001600160801b03811681146128dc57600080fd5b60008060408385031215612a7b57600080fd5b82359150612a8b60208401612a51565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612acf57612acf612a94565b6040525050565b60006001600160401b03821115612aef57612aef612a94565b5060051b60200190565b600082601f830112612b0a57600080fd5b81356020612b1782612ad6565b604051612b248282612aaa565b83815260059390931b8501820192828101915086841115612b4457600080fd5b8286015b84811015612b5f5780358352918301918301612b48565b509695505050505050565b600082601f830112612b7b57600080fd5b81356001600160401b03811115612b9457612b94612a94565b604051612bab601f8301601f191660200182612aaa565b818152846020838601011115612bc057600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612bf557600080fd5b612bfe866128c5565b9450612c0c602087016128c5565b935060408601356001600160401b0380821115612c2857600080fd5b612c3489838a01612af9565b94506060880135915080821115612c4a57600080fd5b612c5689838a01612af9565b93506080880135915080821115612c6c57600080fd5b50612c7988828901612b6a565b9150509295509295909350565b60008060408385031215612c9957600080fd5b82356001600160401b0380821115612cb057600080fd5b818501915085601f830112612cc457600080fd5b81356020612cd182612ad6565b604051612cde8282612aaa565b83815260059390931b8501820192828101915089841115612cfe57600080fd5b948201945b83861015612d2357612d14866128c5565b82529482019490820190612d03565b96505086013592505080821115612d3957600080fd5b50612d4685828601612af9565b9150509250929050565b600081518084526020808501945080840160005b83811015612d8057815187529582019590820190600101612d64565b509495945050505050565b60208152600061293e6020830184612d50565b60008060408385031215612db157600080fd5b50508035926020909101359150565b80356001600160401b03811681146128dc57600080fd5b600080600060408486031215612dec57600080fd5b612df584612dc0565b925060208401356001600160401b0380821115612e1157600080fd5b818601915086601f830112612e2557600080fd5b813581811115612e3457600080fd5b8760208260051b8501011115612e4957600080fd5b6020830194508093505050509250925092565b803580151581146128dc57600080fd5b60008060008060008060a08789031215612e8557600080fd5b612e8e87612dc0565b955060208701356001600160401b03811115612ea957600080fd5b612eb589828a016129be565b9096509450612ec8905060408801612a51565b925060608701359150612edd60808801612e5c565b90509295509295509295565b600080600060608486031215612efe57600080fd5b612f07846128c5565b925060208401356001600160401b0380821115612f2357600080fd5b612f2f87838801612af9565b93506040860135915080821115612f4557600080fd5b50612f5286828701612af9565b9150509250925092565b60008060408385031215612f6f57600080fd5b82359150612a8b60208401612dc0565b60008060408385031215612f9257600080fd5b82359150612a8b602084016128c5565b60006001600160401b0380891683528088166020840152506001600160801b0386166040830152846060830152831515608083015260c060a0830152612feb60c083018461295e565b98975050505050505050565b6000806040838503121561300a57600080fd5b61301383612dc0565b91506020808401356001600160401b0381111561302f57600080fd5b8401601f8101861361304057600080fd5b803561304b81612ad6565b6040516130588282612aaa565b82815260059290921b830184019184810191508883111561307857600080fd5b928401925b828410156130965783358252928401929084019061307d565b80955050505050509250929050565b600080604083850312156130b857600080fd5b6130c1836128c5565b9150612a8b60208401612e5c565b600080602083850312156130e257600080fd5b82356001600160401b038111156130f857600080fd5b613104858286016129be565b90969095509350505050565b6000806040838503121561312357600080fd5b61312c836128c5565b9150612a8b602084016128c5565b600080600080600060a0868803121561315257600080fd5b61315b866128c5565b9450613169602087016128c5565b9350604086013592506060860135915060808601356001600160401b0381111561319257600080fd5b612c7988828901612b6a565b6000602082840312156131b057600080fd5b61293e826128c5565b6000806000606084860312156131ce57600080fd5b6131d7846128c5565b95602085013595506040909401359392505050565b600181811c9082168061320057607f821691505b6020821081141561322157634e487b7160e01b600052602260045260246000fd5b50919050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561327e5761327e613256565b500390565b6000821982111561329657613296613256565b500190565b60006000198214156132af576132af613256565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60006001600160401b0380831681851680830382111561333757613337613256565b01949350505050565b6040815260006133536040830185612d50565b82810360208401526133658185612d50565b95945050505050565b60006001600160a01b03808816835280871660208401525060a0604083015261339a60a0830186612d50565b82810360608401526133ac8186612d50565b90508281036080840152612feb818561295e565b6000602082840312156133d257600080fd5b815161293e8161290b565b600060033d11156133f65760046000803e5060005160e01c5b90565b600060443d10156134075790565b6040516003193d81016004833e81513d6001600160401b03816024840111818411171561343657505050505090565b828501915081518181111561344e5750505050505090565b843d87010160208285010111156134685750505050505090565b61347760208286010187612aaa565b509095945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526134ba60a083018461295e565b97965050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220e87b700da85adddea4133ab70a33238e5cce213607526a706e92d04b1330502664736f6c63430008090033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000019576869736b6572733a20496e76656e746f7279204974656d7300000000000000

-----Decoded View---------------
Arg [0] : _symbol (string): Whiskers: Inventory Items

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [2] : 576869736b6572733a20496e76656e746f7279204974656d7300000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.