ETH Price: $2,607.38 (-4.26%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer From151281312022-07-12 13:40:26945 days ago1657633226IN
0x0598D581...9788084d9
0 ETH0.0016234825.94792272
Set Approval For...148866082022-06-01 19:30:30986 days ago1654111830IN
0x0598D581...9788084d9
0 ETH0.0037162480.3131147
Withdraw146570412022-04-26 0:47:351023 days ago1650934055IN
0x0598D581...9788084d9
0 ETH0.0015311350.35484347
Set Approval For...142465952022-02-21 1:54:461087 days ago1645408486IN
0x0598D581...9788084d9
0 ETH0.0039579685.38193691
Set Is Open Sea ...142453622022-02-20 21:24:401087 days ago1645392280IN
0x0598D581...9788084d9
0 ETH0.0022972779.53178238
Set Is Open Sea ...142401572022-02-20 2:10:341088 days ago1645323034IN
0x0598D581...9788084d9
0 ETH0.0017738168.03256279
Set Is Open Sea ...142401572022-02-20 2:10:341088 days ago1645323034IN
0x0598D581...9788084d9
0 ETH0.0019498667.53256279
Transfer From142342262022-02-19 3:52:091089 days ago1645242729IN
0x0598D581...9788084d9
0 ETH0.0025143155.29971442
Transfer From142342252022-02-19 3:51:591089 days ago1645242719IN
0x0598D581...9788084d9
0 ETH0.0036547258.41301497
Mint Community S...142117022022-02-15 16:14:341092 days ago1644941674IN
0x0598D581...9788084d9
0.03 ETH0.0140737765.59366952
Set Message142073672022-02-15 0:05:561093 days ago1644883556IN
0x0598D581...9788084d9
0 ETH0.0033082969.44366352
Mint Community S...142073652022-02-15 0:05:101093 days ago1644883510IN
0x0598D581...9788084d9
0.01 ETH0.004971963.20428772
Set Message142069422022-02-14 22:30:001093 days ago1644877800IN
0x0598D581...9788084d9
0 ETH0.0024720451.8640091
Set Message142069382022-02-14 22:29:231093 days ago1644877763IN
0x0598D581...9788084d9
0 ETH0.0023883950.17212435
Mint142066972022-02-14 21:36:521093 days ago1644874612IN
0x0598D581...9788084d9
0.04 ETH0.0043911251.9426356
Mint Community S...142063792022-02-14 20:24:331093 days ago1644870273IN
0x0598D581...9788084d9
0.02 ETH0.0119266983.06884745
Mint Community S...142061772022-02-14 19:34:201093 days ago1644867260IN
0x0598D581...9788084d9
0.01 ETH0.0078252779.17510345
Mint Community S...142061302022-02-14 19:25:481093 days ago1644866748IN
0x0598D581...9788084d9
0.01 ETH0.01381813103.86840075
Set Gift List Me...142057242022-02-14 17:53:381093 days ago1644861218IN
0x0598D581...9788084d9
0 ETH0.0020549970.62561038
Mint Community S...142055172022-02-14 17:07:011093 days ago1644858421IN
0x0598D581...9788084d9
0.01 ETH0.0101895774.54241418
Mint Community S...142024262022-02-14 5:45:581094 days ago1644817558IN
0x0598D581...9788084d9
0.02 ETH0.00439939.56334976
Mint Community S...142023482022-02-14 5:27:291094 days ago1644816449IN
0x0598D581...9788084d9
0.03 ETH0.0014199130.61736867
Mint Community S...142023462022-02-14 5:27:261094 days ago1644816446IN
0x0598D581...9788084d9
0.01 ETH0.0038012232.6218254
Set Gift List Me...142014862022-02-14 2:17:551094 days ago1644805075IN
0x0598D581...9788084d9
0 ETH0.0015404952.96518472
Mint Community S...142004102022-02-13 22:06:591094 days ago1644790019IN
0x0598D581...9788084d9
0.03 ETH0.009072842.25492046
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
146570412022-04-26 0:47:351023 days ago1650934055
0x0598D581...9788084d9
2.66 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Candygrams

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1000 runs

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

pragma solidity ^0.8.0;

/*

._______ .______  .______  .______   ____   ____._____  .______  .______  ._____.___ .________
:_.  ___\:      \ :      \ :_ _   \  \   \_/   /:_ ___\ : __   \ :      \ :         ||    ___/
|  : |/\ |   .   ||       ||   |   |  \___ ___/ |   |___|  \____||   .   ||   \  /  ||___    \
|    /  \|   :   ||   |   || . |   |    |   |   |   /  ||   :  \ |   :   ||   |\/   ||       /
|. _____/|___|   ||___|   ||. ____/     |___|   |. __  ||   |___\|___|   ||___| |   ||__:___/ 
 :/          |___|    |___| :/                   :/ |. ||___|        |___|      |___|   :     
 :                          :                    :   :/                                       
                                                     :                                        

*/

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

contract Candygrams is ERC721, IERC2981, Ownable, ReentrancyGuard {
  using Counters for Counters.Counter;
  using Strings for uint256;
  
  Counters.Counter private _tokenCounter;
  string private _baseURL;
  string public _verificationSignature;
  address private _openSeaProxyRegistryAddress;
  bool private _isOpenSeaProxyActive = true;

  uint256 public _maxCandy;

  uint256 public constant PUBLIC_SALE_PRICE = 0.04 ether;
  uint256 public constant COMMUNITY_SALE_PRICE = 0.01 ether;
  uint256 public constant COMMUNITY_SALE_MAX = 3;
  bool public _isPublicSaleActive;
  bool public _isCommunitySaleActive;

  bytes32 public _giftListMerkleRoot;
  mapping(address => uint256) public _communityMintCounts;
  
  mapping(uint256 => string) public _messages;

  // MARK: Modifiers

  modifier publicSaleActive() {
    require(_isPublicSaleActive, "Public sale is not open");
    _;
  }

  modifier communitySaleActive() {
    require(_isCommunitySaleActive, "Community sale is not open");
    _;
  }

  modifier canMintCandy(uint256 numTokens) {
    require(
      _tokenCounter.current() + numTokens <= _maxCandy,
      "Not enough candy remaining");
    _;
  }

  modifier isCorrectPayment(uint256 price, uint256 numTokens) {
    require(price * numTokens == msg.value, "Incorrect ETH value sent");
    _;
  }

  modifier isValidMerkleProof(bytes32[] calldata proof, bytes32 root) {
    require(
      MerkleProof.verify(
        proof,
        root,
        keccak256(abi.encodePacked(msg.sender))),
      "Address not allowlisted");
    _;
  }

  // Reverts if the token's message is not the empty string.
  modifier messageIsEmpty(uint256 tokenId) {
    string memory empty = "";
    require(
      keccak256(bytes(_messages[tokenId])) == keccak256(bytes(empty)),
      "Candy already has on-chain message");
    _;
  }

  // MARK: Init

  constructor(
    address openSeaProxyRegistryAddress,
    uint256 maxCandy
  ) ERC721("Candygrams", "CANDYGRAM") {
    _openSeaProxyRegistryAddress = openSeaProxyRegistryAddress;
    _maxCandy = maxCandy;
    _baseURL = "https://candygrams.xyz/api/token";
  }

  // MARK: Mint

  function mint(uint256 numTokens, string[] calldata messages)
    external
    payable
    nonReentrant
    isCorrectPayment(PUBLIC_SALE_PRICE, numTokens)
    publicSaleActive
    canMintCandy(numTokens)
  {
    for (uint256 i = 0; i < numTokens; i++) {
      uint256 tokenId = nextTokenId();
      _messages[tokenId] = messages[i];
      _safeMint(msg.sender, tokenId);
    }
  }

  // MARK: Community Sale

  function mintCommunitySale(bytes32[] calldata merkleProof, uint256 numTokens, string[] calldata messages)
    external
    payable
    nonReentrant
    isValidMerkleProof(merkleProof, _giftListMerkleRoot)
    communitySaleActive
    isCorrectPayment(COMMUNITY_SALE_PRICE, numTokens)
    canMintCandy(numTokens)
  {
    uint256 numAlreadyMinted = _communityMintCounts[msg.sender];
    require(numAlreadyMinted + numTokens <= COMMUNITY_SALE_MAX, "Maximum community mint is three");
    _communityMintCounts[msg.sender] = numAlreadyMinted + numTokens;

    for (uint256 i = 0; i < numTokens; i++) {
      uint256 tokenId = nextTokenId();
      _messages[tokenId] = messages[i];
      _safeMint(msg.sender, tokenId);
    }
  }

  // MARK: Modifier

  function setMessage(uint256 tokenId, string calldata message)
    messageIsEmpty(tokenId)
    external
  {
    require(
      super.ownerOf(tokenId) == msg.sender,
      "Only candy owner can set message");
    _messages[tokenId] = message;
  }

  // MARK: View functions

  function getBaseURI() external view returns (string memory) {
    return _baseURL;
  }

  function getLastTokenId() external view returns (uint256) {
    return _tokenCounter.current();
  }

  function getMessage(uint256 tokenId)
    public
    view
    returns (string memory)
  {
    require(_exists(tokenId), "Nonexistent token");
    return _messages[tokenId];
  }

  function canSetMessage(uint256 tokenId)
    public
    view
    messageIsEmpty(tokenId)
    returns (bool)
  {
    return true;
  }

  function totalCommunityMint(address wallet) public view returns (uint256) {
    return _communityMintCounts[wallet];
  }

  // MARK: Administrative

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

  function setIsPublicSaleActive(bool isPublicSaleActive) external onlyOwner {
    _isPublicSaleActive = isPublicSaleActive;
  }

  function setIsCommunitySaleActive(bool isCommunitySaleActive) external onlyOwner {
    _isCommunitySaleActive = isCommunitySaleActive;
  }

  function setGiftListMerkleRoot(bytes32 merkleRoot) external onlyOwner {
    _giftListMerkleRoot = merkleRoot;
  }

  function setOpenSeaProxyRegistryAddress(address openSeaProxyRegistryAddress) external onlyOwner {
    _openSeaProxyRegistryAddress = openSeaProxyRegistryAddress;
  }

  function setIsOpenSeaProxyActive(bool isOpenSeaProxyActive) external onlyOwner {
    _isOpenSeaProxyActive = isOpenSeaProxyActive;
  }

  function setVerificationSignature(string memory verificationSignature) external onlyOwner {
    _verificationSignature = verificationSignature;
  }

  // MARK: Withdraw

  function withdraw() public onlyOwner {
    uint256 balance = address(this).balance;
    payable(msg.sender).transfer(balance);
  }

  function withdrawTokens(IERC20 token) public onlyOwner {
    uint256 balance = token.balanceOf(address(this));
    token.transfer(msg.sender, balance);
  }

  // MARK: Standard Interfaces

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

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(_exists(tokenId), "Nonexistent token");
    return string(abi.encodePacked(_baseURL, "/", tokenId.toString(), ".json"));
  }

  function royaltyInfo(uint256 tokenId, uint256 salePrice)
    external
    view
    override
    returns (address receiver, uint256 royaltyAmount)
  {
    require(_exists(tokenId), "Nonexistent token");
    // 5% royalty.
    return (address(this), SafeMath.div(SafeMath.mul(salePrice, 5), 100));
  }

  function isApprovedForAll(address owner, address operator)
    public
    view
    override
    returns (bool)
  {
    ProxyRegistry proxyRegistry = ProxyRegistry(_openSeaProxyRegistryAddress);
    if (_isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) {
      return true;
    }
    return super.isApprovedForAll(owner, operator);
  }

  // MARK: Utility

  function nextTokenId() private returns (uint256) {
    _tokenCounter.increment();
    return _tokenCounter.current();
  }
}

// For OpenSea proxy. (Thank you CryptoCoven!)
contract OwnableDelegateProxy {}
contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 3 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 5 of 19 : 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 6 of 19 : 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 7 of 19 : 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 19 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 11 of 19 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 19 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 19 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 19 : 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 15 of 19 : 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 16 of 19 : 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 17 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 18 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

File 19 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"openSeaProxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"maxCandy","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COMMUNITY_SALE_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COMMUNITY_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_communityMintCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_giftListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isCommunitySaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxCandy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_messages","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_verificationSignature","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canSetMessage","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getMessage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"string[]","name":"messages","type":"string[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"numTokens","type":"uint256"},{"internalType":"string[]","name":"messages","type":"string[]"}],"name":"mintCommunitySale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setGiftListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isCommunitySaleActive","type":"bool"}],"name":"setIsCommunitySaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isPublicSaleActive","type":"bool"}],"name":"setIsPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"message","type":"string"}],"name":"setMessage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"openSeaProxyRegistryAddress","type":"address"}],"name":"setOpenSeaProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"verificationSignature","type":"string"}],"name":"setVerificationSignature","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"totalCommunityMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805460ff60a01b1916600160a01b1790553480156200002457600080fd5b506040516200346e3803806200346e83398101604081905262000047916200023b565b604080518082018252600a81526943616e64796772616d7360b01b60208083019182528351808501909452600984526843414e44594752414d60b81b9084015281519192916200009a9160009162000195565b508051620000b090600190602084019062000195565b505050620000cd620000c76200013f60201b60201c565b62000143565b6001600755600b80546001600160a01b0319166001600160a01b038416179055600c8190556040805180820190915260208082527f68747470733a2f2f63616e64796772616d732e78797a2f6170692f746f6b656e918101918252620001369160099162000195565b505050620002b2565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001a39062000275565b90600052602060002090601f016020900481019282620001c7576000855562000212565b82601f10620001e257805160ff191683800117855562000212565b8280016001018555821562000212579182015b8281111562000212578251825591602001919060010190620001f5565b506200022092915062000224565b5090565b5b8082111562000220576000815560010162000225565b600080604083850312156200024e578182fd5b82516001600160a01b038116811462000265578283fd5b6020939093015192949293505050565b6002810460018216806200028a57607f821691505b60208210811415620002ac57634e487b7160e01b600052602260045260246000fd5b50919050565b6131ac80620002c26000396000f3fe6080604052600436106102e75760003560e01c8063715018a611610184578063bec95107116100d6578063d41b73751161008a578063e985e9c511610064578063e985e9c5146107a5578063ed1be9bb146107c5578063f2fde38b146107da576102e7565b8063d41b737514610750578063d478208e14610765578063e43082f714610785576102e7565b8063cae077b6116100bb578063cae077b614610713578063cc20b42514610728578063cf01a4501461073d576102e7565b8063bec95107146106de578063c87b56dd146106f3576102e7565b806395d89b4111610138578063a2c71a1a11610112578063a2c71a1a1461067e578063b135c9401461069e578063b88d4fde146106be576102e7565b806395d89b41146106295780639a1dca9d1461063e578063a22cb4651461065e576102e7565b806386f79edb1161016957806386f79edb146105e15780638a1bbf86146106015780638da5cb5b14610614576102e7565b8063715018a6146105b757806383c4c00d146105cc576102e7565b806328cad13d1161023d57806355f804b3116101f157806368a085e6116101cb57806368a085e61461056257806370a0823114610582578063714c5398146105a2576102e7565b806355f804b3146105025780636352211e14610522578063648345c814610542576102e7565b80633ccfd60b116102225780633ccfd60b146104ad57806342842e0e146104c257806349df728c146104e2576102e7565b806328cad13d1461045f5780632a55205a1461047f576102e7565b8063095ea7b31161029f5780631feb01d4116102795780631feb01d41461040a57806323b872dd1461042a578063247fa3be1461044a576102e7565b8063095ea7b3146103b55780630d3cf1f2146103d55780631a8b2d63146103f5576102e7565b806307e89ec0116102d057806307e89ec014610344578063081812fc1461036657806308abf02614610393576102e7565b806301ffc9a7146102ec57806306fdde0314610322575b600080fd5b3480156102f857600080fd5b5061030c610307366004612502565b6107fa565b6040516103199190612898565b60405180910390f35b34801561032e57600080fd5b50610337610840565b60405161031991906128ac565b34801561035057600080fd5b506103596108d2565b60405161031991906128a3565b34801561037257600080fd5b506103866103813660046124ea565b6108dd565b604051610319919061282f565b34801561039f57600080fd5b506103b36103ae3660046122d2565b610929565b005b3480156103c157600080fd5b506103b36103d0366004612410565b61098a565b3480156103e157600080fd5b506103b36103f03660046124b2565b610a22565b34801561040157600080fd5b5061030c610a7b565b34801561041657600080fd5b5061030c6104253660046124ea565b610a89565b34801561043657600080fd5b506103b3610445366004612326565b610b05565b34801561045657600080fd5b50610337610b3d565b34801561046b57600080fd5b506103b361047a3660046124b2565b610bcb565b34801561048b57600080fd5b5061049f61049a366004612675565b610c1d565b60405161031992919061287f565b3480156104b957600080fd5b506103b3610c67565b3480156104ce57600080fd5b506103b36104dd366004612326565b610cd9565b3480156104ee57600080fd5b506103b36104fd3660046122d2565b610cf4565b34801561050e57600080fd5b506103b361051d366004612556565b610e67565b34801561052e57600080fd5b5061038661053d3660046124ea565b610eb9565b34801561054e57600080fd5b506103b361055d3660046125fe565b610eee565b34801561056e57600080fd5b506103b361057d3660046124ea565b610faf565b34801561058e57600080fd5b5061035961059d3660046122d2565b610ff3565b3480156105ae57600080fd5b50610337611037565b3480156105c357600080fd5b506103b3611046565b3480156105d857600080fd5b50610359611091565b3480156105ed57600080fd5b506103376105fc3660046124ea565b6110a2565b6103b361060f3660046125b4565b611167565b34801561062057600080fd5b506103866112a7565b34801561063557600080fd5b506103376112b6565b34801561064a57600080fd5b506103b3610659366004612556565b6112c5565b34801561066a57600080fd5b506103b36106793660046123e3565b611317565b34801561068a57600080fd5b506103376106993660046124ea565b611329565b3480156106aa57600080fd5b506103596106b93660046122d2565b611342565b3480156106ca57600080fd5b506103b36106d9366004612366565b611354565b3480156106ea57600080fd5b50610359611393565b3480156106ff57600080fd5b5061033761070e3660046124ea565b61139e565b34801561071f57600080fd5b506103596113f7565b34801561073457600080fd5b506103596113fc565b6103b361074b36600461243b565b611402565b34801561075c57600080fd5b5061030c61162a565b34801561077157600080fd5b506103596107803660046122d2565b611633565b34801561079157600080fd5b506103b36107a03660046124b2565b61164e565b3480156107b157600080fd5b5061030c6107c03660046122ee565b6116c6565b3480156107d157600080fd5b5061035961179c565b3480156107e657600080fd5b506103b36107f53660046122d2565b6117a2565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610838575061083882611813565b90505b919050565b60606000805461084f90613091565b80601f016020809104026020016040519081016040528092919081815260200182805461087b90613091565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b668e1bc9bf04000081565b60006108e882611885565b61090d5760405162461bcd60e51b815260040161090490612ca7565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6109316118a2565b6001600160a01b03166109426112a7565b6001600160a01b0316146109685760405162461bcd60e51b815260040161090490612d2a565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600061099582610eb9565b9050806001600160a01b0316836001600160a01b031614156109c95760405162461bcd60e51b815260040161090490612df3565b806001600160a01b03166109db6118a2565b6001600160a01b031614806109f757506109f7816107c06118a2565b610a135760405162461bcd60e51b815260040161090490612b24565b610a1d83836118a6565b505050565b610a2a6118a2565b6001600160a01b0316610a3b6112a7565b6001600160a01b031614610a615760405162461bcd60e51b815260040161090490612d2a565b600d80549115156101000261ff0019909216919091179055565b600d54610100900460ff1681565b604080516020808201835260008083528481526010909152828120925190928492917fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47091610ad6916126ed565b604051809103902014610afb5760405162461bcd60e51b815260040161090490612953565b5060019392505050565b610b16610b106118a2565b82611914565b610b325760405162461bcd60e51b815260040161090490612e50565b610a1d838383611991565b600a8054610b4a90613091565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7690613091565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b505050505081565b610bd36118a2565b6001600160a01b0316610be46112a7565b6001600160a01b031614610c0a5760405162461bcd60e51b815260040161090490612d2a565b600d805460ff1916911515919091179055565b600080610c2984611885565b610c455760405162461bcd60e51b815260040161090490612b81565b30610c5b610c54856005611abe565b6064611ad1565b915091505b9250929050565b610c6f6118a2565b6001600160a01b0316610c806112a7565b6001600160a01b031614610ca65760405162461bcd60e51b815260040161090490612d2a565b6040514790339082156108fc029083906000818181858888f19350505050158015610cd5573d6000803e3d6000fd5b5050565b610a1d83838360405180602001604052806000815250611354565b610cfc6118a2565b6001600160a01b0316610d0d6112a7565b6001600160a01b031614610d335760405162461bcd60e51b815260040161090490612d2a565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a0823190610d7b90309060040161282f565b60206040518083038186803b158015610d9357600080fd5b505afa158015610da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcb919061259c565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063a9059cbb90610e15903390859060040161287f565b602060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1d91906124ce565b610e6f6118a2565b6001600160a01b0316610e806112a7565b6001600160a01b031614610ea65760405162461bcd60e51b815260040161090490612d2a565b8051610cd5906009906020840190612113565b6000818152600260205260408120546001600160a01b0316806108385760405162461bcd60e51b815260040161090490612c15565b604080516020808201835260008083528681526010909152829020915185927fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47091610f3991906126ed565b604051809103902014610f5e5760405162461bcd60e51b815260040161090490612953565b33610f6886610eb9565b6001600160a01b031614610f8e5760405162461bcd60e51b815260040161090490612ead565b6000858152601060205260409020610fa7908585612197565b505050505050565b610fb76118a2565b6001600160a01b0316610fc86112a7565b6001600160a01b031614610fee5760405162461bcd60e51b815260040161090490612d2a565b600e55565b60006001600160a01b03821661101b5760405162461bcd60e51b815260040161090490612bb8565b506001600160a01b031660009081526003602052604090205490565b60606009805461084f90613091565b61104e6118a2565b6001600160a01b031661105f6112a7565b6001600160a01b0316146110855760405162461bcd60e51b815260040161090490612d2a565b61108f6000611add565b565b600061109d6008611b2f565b905090565b60606110ad82611885565b6110c95760405162461bcd60e51b815260040161090490612b81565b600082815260106020526040902080546110e290613091565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90613091565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b50505050509050919050565b6002600754141561118a5760405162461bcd60e51b815260040161090490612f50565b6002600755668e1bc9bf04000083346111a3828461302f565b146111c05760405162461bcd60e51b815260040161090490612f19565b600d5460ff166111e25760405162461bcd60e51b815260040161090490612f87565b84600c54816111f16008611b2f565b6111fb9190613003565b11156112195760405162461bcd60e51b815260040161090490612cf3565b60005b8681101561129957600061122e611b33565b905086868381811061125057634e487b7160e01b600052603260045260246000fd5b90506020028101906112629190612fbe565b600083815260106020526040902061127b929091612197565b506112863382611b49565b5080611291816130cc565b91505061121c565b505060016007555050505050565b6006546001600160a01b031690565b60606001805461084f90613091565b6112cd6118a2565b6001600160a01b03166112de6112a7565b6001600160a01b0316146113045760405162461bcd60e51b815260040161090490612d2a565b8051610cd590600a906020840190612113565b610cd56113226118a2565b8383611b63565b60106020526000908152604090208054610b4a90613091565b600f6020526000908152604090205481565b61136561135f6118a2565b83611914565b6113815760405162461bcd60e51b815260040161090490612e50565b61138d84848484611c06565b50505050565b662386f26fc1000081565b60606113a982611885565b6113c55760405162461bcd60e51b815260040161090490612b81565b60096113d083611c39565b6040516020016113e192919061275c565b6040516020818303038152906040529050919050565b600381565b600c5481565b600260075414156114255760405162461bcd60e51b815260040161090490612f50565b60026007819055508484600e546114968383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405185925061147b915033906020016126c2565b60405160208183030381529060405280519060200120611d90565b6114b25760405162461bcd60e51b8152600401610904906128bf565b600d54610100900460ff166114d95760405162461bcd60e51b815260040161090490612ee2565b662386f26fc1000086346114ed828461302f565b1461150a5760405162461bcd60e51b815260040161090490612f19565b87600c54816115196008611b2f565b6115239190613003565b11156115415760405162461bcd60e51b815260040161090490612cf3565b336000908152600f6020526040902054600361155d8b83613003565b111561157b5760405162461bcd60e51b815260040161090490612dbc565b6115858a82613003565b336000908152600f60205260408120919091555b8a8110156116165760006115ab611b33565b90508a8a838181106115cd57634e487b7160e01b600052603260045260246000fd5b90506020028101906115df9190612fbe565b60008381526010602052604090206115f8929091612197565b506116033382611b49565b508061160e816130cc565b915050611599565b505060016007555050505050505050505050565b600d5460ff1681565b6001600160a01b03166000908152600f602052604090205490565b6116566118a2565b6001600160a01b03166116676112a7565b6001600160a01b03161461168d5760405162461bcd60e51b815260040161090490612d2a565b600b8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600b546000906001600160a01b03811690600160a01b900460ff1680156117795750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b815260040161171e919061282f565b60206040518083038186803b15801561173657600080fd5b505afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e919061253a565b6001600160a01b0316145b15611788576001915050611796565b6117928484611da6565b9150505b92915050565b600e5481565b6117aa6118a2565b6001600160a01b03166117bb6112a7565b6001600160a01b0316146117e15760405162461bcd60e51b815260040161090490612d2a565b6001600160a01b0381166118075760405162461bcd60e51b8152600401610904906129b0565b61181081611add565b50565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061187657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610838575061083882611dd4565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118db82610eb9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061191f82611885565b61193b5760405162461bcd60e51b815260040161090490612ad8565b600061194683610eb9565b9050806001600160a01b0316846001600160a01b031614806119815750836001600160a01b0316611976846108dd565b6001600160a01b0316145b80611792575061179281856116c6565b826001600160a01b03166119a482610eb9565b6001600160a01b0316146119ca5760405162461bcd60e51b815260040161090490612d5f565b6001600160a01b0382166119f05760405162461bcd60e51b815260040161090490612a44565b6119fb838383610a1d565b611a066000826118a6565b6001600160a01b0383166000908152600360205260408120805460019290611a2f90849061304e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a5d908490613003565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611aca828461302f565b9392505050565b6000611aca828461301b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b5490565b6000611b3f6008611e06565b61109d6008611b2f565b610cd5828260405180602001604052806000815250611e0f565b816001600160a01b0316836001600160a01b03161415611b955760405162461bcd60e51b815260040161090490612aa1565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611bf9908590612898565b60405180910390a3505050565b611c11848484611991565b611c1d84848484611e42565b61138d5760405162461bcd60e51b8152600401610904906128f6565b606081611c7a575060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015261083b565b8160005b8115611ca45780611c8e816130cc565b9150611c9d9050600a8361301b565b9150611c7e565b60008167ffffffffffffffff811115611ccd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cf7576020820181803683370190505b5090505b8415611d8857611d0c60018361304e565b9150611d19600a866130e7565b611d24906030613003565b60f81b818381518110611d4757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d81600a8661301b565b9450611cfb565b949350505050565b600082611d9d8584611f76565b14949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b80546001019055565b611e19838361202e565b611e266000848484611e42565b610a1d5760405162461bcd60e51b8152600401610904906128f6565b6000611e56846001600160a01b031661210d565b15611f6b57836001600160a01b031663150b7a02611e726118a2565b8786866040518563ffffffff1660e01b8152600401611e949493929190612843565b602060405180830381600087803b158015611eae57600080fd5b505af1925050508015611ede575060408051601f3d908101601f19168201909252611edb9181019061251e565b60015b611f38573d808015611f0c576040519150601f19603f3d011682016040523d82523d6000602084013e611f11565b606091505b508051611f305760405162461bcd60e51b8152600401610904906128f6565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d88565b506001949350505050565b600081815b8451811015612026576000858281518110611fa657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611fe7578281604051602001611fca9291906126df565b604051602081830303815290604052805190602001209250612013565b8083604051602001611ffa9291906126df565b6040516020818303038152906040528051906020012092505b508061201e816130cc565b915050611f7b565b509392505050565b6001600160a01b0382166120545760405162461bcd60e51b815260040161090490612c72565b61205d81611885565b1561207a5760405162461bcd60e51b815260040161090490612a0d565b61208660008383610a1d565b6001600160a01b03821660009081526003602052604081208054600192906120af908490613003565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b82805461211f90613091565b90600052602060002090601f0160209004810192826121415760008555612187565b82601f1061215a57805160ff1916838001178555612187565b82800160010185558215612187579182015b8281111561218757825182559160200191906001019061216c565b5061219392915061220b565b5090565b8280546121a390613091565b90600052602060002090601f0160209004810192826121c55760008555612187565b82601f106121de5782800160ff19823516178555612187565b82800160010185558215612187579182015b828111156121875782358255916020019190600101906121f0565b5b80821115612193576000815560010161220c565b600067ffffffffffffffff8084111561223b5761223b613127565b604051601f8501601f19168101602001828111828210171561225f5761225f613127565b60405284815291508183850186101561227757600080fd5b8484602083013760006020868301015250509392505050565b60008083601f8401126122a1578081fd5b50813567ffffffffffffffff8111156122b8578182fd5b6020830191508360208083028501011115610c6057600080fd5b6000602082840312156122e3578081fd5b8135611aca8161313d565b60008060408385031215612300578081fd5b823561230b8161313d565b9150602083013561231b8161313d565b809150509250929050565b60008060006060848603121561233a578081fd5b83356123458161313d565b925060208401356123558161313d565b929592945050506040919091013590565b6000806000806080858703121561237b578081fd5b84356123868161313d565b935060208501356123968161313d565b925060408501359150606085013567ffffffffffffffff8111156123b8578182fd5b8501601f810187136123c8578182fd5b6123d787823560208401612220565b91505092959194509250565b600080604083850312156123f5578182fd5b82356124008161313d565b9150602083013561231b81613152565b60008060408385031215612422578182fd5b823561242d8161313d565b946020939093013593505050565b600080600080600060608688031215612452578081fd5b853567ffffffffffffffff80821115612469578283fd5b61247589838a01612290565b9097509550602088013594506040880135915080821115612494578283fd5b506124a188828901612290565b969995985093965092949392505050565b6000602082840312156124c3578081fd5b8135611aca81613152565b6000602082840312156124df578081fd5b8151611aca81613152565b6000602082840312156124fb578081fd5b5035919050565b600060208284031215612513578081fd5b8135611aca81613160565b60006020828403121561252f578081fd5b8151611aca81613160565b60006020828403121561254b578081fd5b8151611aca8161313d565b600060208284031215612567578081fd5b813567ffffffffffffffff81111561257d578182fd5b8201601f8101841361258d578182fd5b61179284823560208401612220565b6000602082840312156125ad578081fd5b5051919050565b6000806000604084860312156125c8578081fd5b83359250602084013567ffffffffffffffff8111156125e5578182fd5b6125f186828701612290565b9497909650939450505050565b600080600060408486031215612612578081fd5b83359250602084013567ffffffffffffffff80821115612630578283fd5b818601915086601f830112612643578283fd5b813581811115612651578384fd5b876020828501011115612662578384fd5b6020830194508093505050509250925092565b60008060408385031215612687578182fd5b50508035926020909101359150565b600081518084526126ae816020860160208601613065565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008083546126fb81613091565b60018281168015612713576001811461272457612750565b60ff19841687528287019450612750565b8786526020808720875b858110156127475781548a82015290840190820161272e565b50505082870194505b50929695505050505050565b600080845461276a81613091565b600182811680156127825760018114612793576127bf565b60ff198416875282870194506127bf565b8886526020808720875b858110156127b65781548a82015290840190820161279d565b50505082870194505b507f2f000000000000000000000000000000000000000000000000000000000000008452865192506127f78382860160208a01613065565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000939092019182019290925260060195945050505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526128756080830184612696565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b600060208252611aca6020830184612696565b60208082526017908201527f41646472657373206e6f7420616c6c6f776c6973746564000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526022908201527f43616e647920616c726561647920686173206f6e2d636861696e206d6573736160408201527f6765000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526011908201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601a908201527f4e6f7420656e6f7567682063616e64792072656d61696e696e67000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4d6178696d756d20636f6d6d756e697479206d696e7420697320746872656500604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252818101527f4f6e6c792063616e6479206f776e65722063616e20736574206d657373616765604082015260600190565b6020808252601a908201527f436f6d6d756e6974792073616c65206973206e6f74206f70656e000000000000604082015260600190565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526017908201527f5075626c69632073616c65206973206e6f74206f70656e000000000000000000604082015260600190565b6000808335601e19843603018112612fd4578283fd5b83018035915067ffffffffffffffff821115612fee578283fd5b602001915036819003821315610c6057600080fd5b60008219821115613016576130166130fb565b500190565b60008261302a5761302a613111565b500490565b6000816000190483118215151615613049576130496130fb565b500290565b600082821015613060576130606130fb565b500390565b60005b83811015613080578181015183820152602001613068565b8381111561138d5750506000910152565b6002810460018216806130a557607f821691505b602082108114156130c657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130e0576130e06130fb565b5060010190565b6000826130f6576130f6613111565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461181057600080fd5b801515811461181057600080fd5b6001600160e01b03198116811461181057600080fdfea2646970667358221220ad5ec85d27cfc25a5051eda7f95b4d079008593386c7078051bf01049a12a7bb64736f6c63430008000033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000002710

Deployed Bytecode

0x6080604052600436106102e75760003560e01c8063715018a611610184578063bec95107116100d6578063d41b73751161008a578063e985e9c511610064578063e985e9c5146107a5578063ed1be9bb146107c5578063f2fde38b146107da576102e7565b8063d41b737514610750578063d478208e14610765578063e43082f714610785576102e7565b8063cae077b6116100bb578063cae077b614610713578063cc20b42514610728578063cf01a4501461073d576102e7565b8063bec95107146106de578063c87b56dd146106f3576102e7565b806395d89b4111610138578063a2c71a1a11610112578063a2c71a1a1461067e578063b135c9401461069e578063b88d4fde146106be576102e7565b806395d89b41146106295780639a1dca9d1461063e578063a22cb4651461065e576102e7565b806386f79edb1161016957806386f79edb146105e15780638a1bbf86146106015780638da5cb5b14610614576102e7565b8063715018a6146105b757806383c4c00d146105cc576102e7565b806328cad13d1161023d57806355f804b3116101f157806368a085e6116101cb57806368a085e61461056257806370a0823114610582578063714c5398146105a2576102e7565b806355f804b3146105025780636352211e14610522578063648345c814610542576102e7565b80633ccfd60b116102225780633ccfd60b146104ad57806342842e0e146104c257806349df728c146104e2576102e7565b806328cad13d1461045f5780632a55205a1461047f576102e7565b8063095ea7b31161029f5780631feb01d4116102795780631feb01d41461040a57806323b872dd1461042a578063247fa3be1461044a576102e7565b8063095ea7b3146103b55780630d3cf1f2146103d55780631a8b2d63146103f5576102e7565b806307e89ec0116102d057806307e89ec014610344578063081812fc1461036657806308abf02614610393576102e7565b806301ffc9a7146102ec57806306fdde0314610322575b600080fd5b3480156102f857600080fd5b5061030c610307366004612502565b6107fa565b6040516103199190612898565b60405180910390f35b34801561032e57600080fd5b50610337610840565b60405161031991906128ac565b34801561035057600080fd5b506103596108d2565b60405161031991906128a3565b34801561037257600080fd5b506103866103813660046124ea565b6108dd565b604051610319919061282f565b34801561039f57600080fd5b506103b36103ae3660046122d2565b610929565b005b3480156103c157600080fd5b506103b36103d0366004612410565b61098a565b3480156103e157600080fd5b506103b36103f03660046124b2565b610a22565b34801561040157600080fd5b5061030c610a7b565b34801561041657600080fd5b5061030c6104253660046124ea565b610a89565b34801561043657600080fd5b506103b3610445366004612326565b610b05565b34801561045657600080fd5b50610337610b3d565b34801561046b57600080fd5b506103b361047a3660046124b2565b610bcb565b34801561048b57600080fd5b5061049f61049a366004612675565b610c1d565b60405161031992919061287f565b3480156104b957600080fd5b506103b3610c67565b3480156104ce57600080fd5b506103b36104dd366004612326565b610cd9565b3480156104ee57600080fd5b506103b36104fd3660046122d2565b610cf4565b34801561050e57600080fd5b506103b361051d366004612556565b610e67565b34801561052e57600080fd5b5061038661053d3660046124ea565b610eb9565b34801561054e57600080fd5b506103b361055d3660046125fe565b610eee565b34801561056e57600080fd5b506103b361057d3660046124ea565b610faf565b34801561058e57600080fd5b5061035961059d3660046122d2565b610ff3565b3480156105ae57600080fd5b50610337611037565b3480156105c357600080fd5b506103b3611046565b3480156105d857600080fd5b50610359611091565b3480156105ed57600080fd5b506103376105fc3660046124ea565b6110a2565b6103b361060f3660046125b4565b611167565b34801561062057600080fd5b506103866112a7565b34801561063557600080fd5b506103376112b6565b34801561064a57600080fd5b506103b3610659366004612556565b6112c5565b34801561066a57600080fd5b506103b36106793660046123e3565b611317565b34801561068a57600080fd5b506103376106993660046124ea565b611329565b3480156106aa57600080fd5b506103596106b93660046122d2565b611342565b3480156106ca57600080fd5b506103b36106d9366004612366565b611354565b3480156106ea57600080fd5b50610359611393565b3480156106ff57600080fd5b5061033761070e3660046124ea565b61139e565b34801561071f57600080fd5b506103596113f7565b34801561073457600080fd5b506103596113fc565b6103b361074b36600461243b565b611402565b34801561075c57600080fd5b5061030c61162a565b34801561077157600080fd5b506103596107803660046122d2565b611633565b34801561079157600080fd5b506103b36107a03660046124b2565b61164e565b3480156107b157600080fd5b5061030c6107c03660046122ee565b6116c6565b3480156107d157600080fd5b5061035961179c565b3480156107e657600080fd5b506103b36107f53660046122d2565b6117a2565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610838575061083882611813565b90505b919050565b60606000805461084f90613091565b80601f016020809104026020016040519081016040528092919081815260200182805461087b90613091565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050905090565b668e1bc9bf04000081565b60006108e882611885565b61090d5760405162461bcd60e51b815260040161090490612ca7565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6109316118a2565b6001600160a01b03166109426112a7565b6001600160a01b0316146109685760405162461bcd60e51b815260040161090490612d2a565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600061099582610eb9565b9050806001600160a01b0316836001600160a01b031614156109c95760405162461bcd60e51b815260040161090490612df3565b806001600160a01b03166109db6118a2565b6001600160a01b031614806109f757506109f7816107c06118a2565b610a135760405162461bcd60e51b815260040161090490612b24565b610a1d83836118a6565b505050565b610a2a6118a2565b6001600160a01b0316610a3b6112a7565b6001600160a01b031614610a615760405162461bcd60e51b815260040161090490612d2a565b600d80549115156101000261ff0019909216919091179055565b600d54610100900460ff1681565b604080516020808201835260008083528481526010909152828120925190928492917fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47091610ad6916126ed565b604051809103902014610afb5760405162461bcd60e51b815260040161090490612953565b5060019392505050565b610b16610b106118a2565b82611914565b610b325760405162461bcd60e51b815260040161090490612e50565b610a1d838383611991565b600a8054610b4a90613091565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7690613091565b8015610bc35780601f10610b9857610100808354040283529160200191610bc3565b820191906000526020600020905b815481529060010190602001808311610ba657829003601f168201915b505050505081565b610bd36118a2565b6001600160a01b0316610be46112a7565b6001600160a01b031614610c0a5760405162461bcd60e51b815260040161090490612d2a565b600d805460ff1916911515919091179055565b600080610c2984611885565b610c455760405162461bcd60e51b815260040161090490612b81565b30610c5b610c54856005611abe565b6064611ad1565b915091505b9250929050565b610c6f6118a2565b6001600160a01b0316610c806112a7565b6001600160a01b031614610ca65760405162461bcd60e51b815260040161090490612d2a565b6040514790339082156108fc029083906000818181858888f19350505050158015610cd5573d6000803e3d6000fd5b5050565b610a1d83838360405180602001604052806000815250611354565b610cfc6118a2565b6001600160a01b0316610d0d6112a7565b6001600160a01b031614610d335760405162461bcd60e51b815260040161090490612d2a565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a0823190610d7b90309060040161282f565b60206040518083038186803b158015610d9357600080fd5b505afa158015610da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcb919061259c565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063a9059cbb90610e15903390859060040161287f565b602060405180830381600087803b158015610e2f57600080fd5b505af1158015610e43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1d91906124ce565b610e6f6118a2565b6001600160a01b0316610e806112a7565b6001600160a01b031614610ea65760405162461bcd60e51b815260040161090490612d2a565b8051610cd5906009906020840190612113565b6000818152600260205260408120546001600160a01b0316806108385760405162461bcd60e51b815260040161090490612c15565b604080516020808201835260008083528681526010909152829020915185927fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47091610f3991906126ed565b604051809103902014610f5e5760405162461bcd60e51b815260040161090490612953565b33610f6886610eb9565b6001600160a01b031614610f8e5760405162461bcd60e51b815260040161090490612ead565b6000858152601060205260409020610fa7908585612197565b505050505050565b610fb76118a2565b6001600160a01b0316610fc86112a7565b6001600160a01b031614610fee5760405162461bcd60e51b815260040161090490612d2a565b600e55565b60006001600160a01b03821661101b5760405162461bcd60e51b815260040161090490612bb8565b506001600160a01b031660009081526003602052604090205490565b60606009805461084f90613091565b61104e6118a2565b6001600160a01b031661105f6112a7565b6001600160a01b0316146110855760405162461bcd60e51b815260040161090490612d2a565b61108f6000611add565b565b600061109d6008611b2f565b905090565b60606110ad82611885565b6110c95760405162461bcd60e51b815260040161090490612b81565b600082815260106020526040902080546110e290613091565b80601f016020809104026020016040519081016040528092919081815260200182805461110e90613091565b801561115b5780601f106111305761010080835404028352916020019161115b565b820191906000526020600020905b81548152906001019060200180831161113e57829003601f168201915b50505050509050919050565b6002600754141561118a5760405162461bcd60e51b815260040161090490612f50565b6002600755668e1bc9bf04000083346111a3828461302f565b146111c05760405162461bcd60e51b815260040161090490612f19565b600d5460ff166111e25760405162461bcd60e51b815260040161090490612f87565b84600c54816111f16008611b2f565b6111fb9190613003565b11156112195760405162461bcd60e51b815260040161090490612cf3565b60005b8681101561129957600061122e611b33565b905086868381811061125057634e487b7160e01b600052603260045260246000fd5b90506020028101906112629190612fbe565b600083815260106020526040902061127b929091612197565b506112863382611b49565b5080611291816130cc565b91505061121c565b505060016007555050505050565b6006546001600160a01b031690565b60606001805461084f90613091565b6112cd6118a2565b6001600160a01b03166112de6112a7565b6001600160a01b0316146113045760405162461bcd60e51b815260040161090490612d2a565b8051610cd590600a906020840190612113565b610cd56113226118a2565b8383611b63565b60106020526000908152604090208054610b4a90613091565b600f6020526000908152604090205481565b61136561135f6118a2565b83611914565b6113815760405162461bcd60e51b815260040161090490612e50565b61138d84848484611c06565b50505050565b662386f26fc1000081565b60606113a982611885565b6113c55760405162461bcd60e51b815260040161090490612b81565b60096113d083611c39565b6040516020016113e192919061275c565b6040516020818303038152906040529050919050565b600381565b600c5481565b600260075414156114255760405162461bcd60e51b815260040161090490612f50565b60026007819055508484600e546114968383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060405185925061147b915033906020016126c2565b60405160208183030381529060405280519060200120611d90565b6114b25760405162461bcd60e51b8152600401610904906128bf565b600d54610100900460ff166114d95760405162461bcd60e51b815260040161090490612ee2565b662386f26fc1000086346114ed828461302f565b1461150a5760405162461bcd60e51b815260040161090490612f19565b87600c54816115196008611b2f565b6115239190613003565b11156115415760405162461bcd60e51b815260040161090490612cf3565b336000908152600f6020526040902054600361155d8b83613003565b111561157b5760405162461bcd60e51b815260040161090490612dbc565b6115858a82613003565b336000908152600f60205260408120919091555b8a8110156116165760006115ab611b33565b90508a8a838181106115cd57634e487b7160e01b600052603260045260246000fd5b90506020028101906115df9190612fbe565b60008381526010602052604090206115f8929091612197565b506116033382611b49565b508061160e816130cc565b915050611599565b505060016007555050505050505050505050565b600d5460ff1681565b6001600160a01b03166000908152600f602052604090205490565b6116566118a2565b6001600160a01b03166116676112a7565b6001600160a01b03161461168d5760405162461bcd60e51b815260040161090490612d2a565b600b8054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600b546000906001600160a01b03811690600160a01b900460ff1680156117795750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b815260040161171e919061282f565b60206040518083038186803b15801561173657600080fd5b505afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e919061253a565b6001600160a01b0316145b15611788576001915050611796565b6117928484611da6565b9150505b92915050565b600e5481565b6117aa6118a2565b6001600160a01b03166117bb6112a7565b6001600160a01b0316146117e15760405162461bcd60e51b815260040161090490612d2a565b6001600160a01b0381166118075760405162461bcd60e51b8152600401610904906129b0565b61181081611add565b50565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061187657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610838575061083882611dd4565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906118db82610eb9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061191f82611885565b61193b5760405162461bcd60e51b815260040161090490612ad8565b600061194683610eb9565b9050806001600160a01b0316846001600160a01b031614806119815750836001600160a01b0316611976846108dd565b6001600160a01b0316145b80611792575061179281856116c6565b826001600160a01b03166119a482610eb9565b6001600160a01b0316146119ca5760405162461bcd60e51b815260040161090490612d5f565b6001600160a01b0382166119f05760405162461bcd60e51b815260040161090490612a44565b6119fb838383610a1d565b611a066000826118a6565b6001600160a01b0383166000908152600360205260408120805460019290611a2f90849061304e565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a5d908490613003565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611aca828461302f565b9392505050565b6000611aca828461301b565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b5490565b6000611b3f6008611e06565b61109d6008611b2f565b610cd5828260405180602001604052806000815250611e0f565b816001600160a01b0316836001600160a01b03161415611b955760405162461bcd60e51b815260040161090490612aa1565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611bf9908590612898565b60405180910390a3505050565b611c11848484611991565b611c1d84848484611e42565b61138d5760405162461bcd60e51b8152600401610904906128f6565b606081611c7a575060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015261083b565b8160005b8115611ca45780611c8e816130cc565b9150611c9d9050600a8361301b565b9150611c7e565b60008167ffffffffffffffff811115611ccd57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611cf7576020820181803683370190505b5090505b8415611d8857611d0c60018361304e565b9150611d19600a866130e7565b611d24906030613003565b60f81b818381518110611d4757634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611d81600a8661301b565b9450611cfb565b949350505050565b600082611d9d8584611f76565b14949350505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b80546001019055565b611e19838361202e565b611e266000848484611e42565b610a1d5760405162461bcd60e51b8152600401610904906128f6565b6000611e56846001600160a01b031661210d565b15611f6b57836001600160a01b031663150b7a02611e726118a2565b8786866040518563ffffffff1660e01b8152600401611e949493929190612843565b602060405180830381600087803b158015611eae57600080fd5b505af1925050508015611ede575060408051601f3d908101601f19168201909252611edb9181019061251e565b60015b611f38573d808015611f0c576040519150601f19603f3d011682016040523d82523d6000602084013e611f11565b606091505b508051611f305760405162461bcd60e51b8152600401610904906128f6565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050611d88565b506001949350505050565b600081815b8451811015612026576000858281518110611fa657634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311611fe7578281604051602001611fca9291906126df565b604051602081830303815290604052805190602001209250612013565b8083604051602001611ffa9291906126df565b6040516020818303038152906040528051906020012092505b508061201e816130cc565b915050611f7b565b509392505050565b6001600160a01b0382166120545760405162461bcd60e51b815260040161090490612c72565b61205d81611885565b1561207a5760405162461bcd60e51b815260040161090490612a0d565b61208660008383610a1d565b6001600160a01b03821660009081526003602052604081208054600192906120af908490613003565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b82805461211f90613091565b90600052602060002090601f0160209004810192826121415760008555612187565b82601f1061215a57805160ff1916838001178555612187565b82800160010185558215612187579182015b8281111561218757825182559160200191906001019061216c565b5061219392915061220b565b5090565b8280546121a390613091565b90600052602060002090601f0160209004810192826121c55760008555612187565b82601f106121de5782800160ff19823516178555612187565b82800160010185558215612187579182015b828111156121875782358255916020019190600101906121f0565b5b80821115612193576000815560010161220c565b600067ffffffffffffffff8084111561223b5761223b613127565b604051601f8501601f19168101602001828111828210171561225f5761225f613127565b60405284815291508183850186101561227757600080fd5b8484602083013760006020868301015250509392505050565b60008083601f8401126122a1578081fd5b50813567ffffffffffffffff8111156122b8578182fd5b6020830191508360208083028501011115610c6057600080fd5b6000602082840312156122e3578081fd5b8135611aca8161313d565b60008060408385031215612300578081fd5b823561230b8161313d565b9150602083013561231b8161313d565b809150509250929050565b60008060006060848603121561233a578081fd5b83356123458161313d565b925060208401356123558161313d565b929592945050506040919091013590565b6000806000806080858703121561237b578081fd5b84356123868161313d565b935060208501356123968161313d565b925060408501359150606085013567ffffffffffffffff8111156123b8578182fd5b8501601f810187136123c8578182fd5b6123d787823560208401612220565b91505092959194509250565b600080604083850312156123f5578182fd5b82356124008161313d565b9150602083013561231b81613152565b60008060408385031215612422578182fd5b823561242d8161313d565b946020939093013593505050565b600080600080600060608688031215612452578081fd5b853567ffffffffffffffff80821115612469578283fd5b61247589838a01612290565b9097509550602088013594506040880135915080821115612494578283fd5b506124a188828901612290565b969995985093965092949392505050565b6000602082840312156124c3578081fd5b8135611aca81613152565b6000602082840312156124df578081fd5b8151611aca81613152565b6000602082840312156124fb578081fd5b5035919050565b600060208284031215612513578081fd5b8135611aca81613160565b60006020828403121561252f578081fd5b8151611aca81613160565b60006020828403121561254b578081fd5b8151611aca8161313d565b600060208284031215612567578081fd5b813567ffffffffffffffff81111561257d578182fd5b8201601f8101841361258d578182fd5b61179284823560208401612220565b6000602082840312156125ad578081fd5b5051919050565b6000806000604084860312156125c8578081fd5b83359250602084013567ffffffffffffffff8111156125e5578182fd5b6125f186828701612290565b9497909650939450505050565b600080600060408486031215612612578081fd5b83359250602084013567ffffffffffffffff80821115612630578283fd5b818601915086601f830112612643578283fd5b813581811115612651578384fd5b876020828501011115612662578384fd5b6020830194508093505050509250925092565b60008060408385031215612687578182fd5b50508035926020909101359150565b600081518084526126ae816020860160208601613065565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b918252602082015260400190565b60008083546126fb81613091565b60018281168015612713576001811461272457612750565b60ff19841687528287019450612750565b8786526020808720875b858110156127475781548a82015290840190820161272e565b50505082870194505b50929695505050505050565b600080845461276a81613091565b600182811680156127825760018114612793576127bf565b60ff198416875282870194506127bf565b8886526020808720875b858110156127b65781548a82015290840190820161279d565b50505082870194505b507f2f000000000000000000000000000000000000000000000000000000000000008452865192506127f78382860160208a01613065565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000939092019182019290925260060195945050505050565b6001600160a01b0391909116815260200190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526128756080830184612696565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b600060208252611aca6020830184612696565b60208082526017908201527f41646472657373206e6f7420616c6c6f776c6973746564000000000000000000604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526022908201527f43616e647920616c726561647920686173206f6e2d636861696e206d6573736160408201527f6765000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526011908201527f4e6f6e6578697374656e7420746f6b656e000000000000000000000000000000604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252601a908201527f4e6f7420656e6f7567682063616e64792072656d61696e696e67000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252601f908201527f4d6178696d756d20636f6d6d756e697479206d696e7420697320746872656500604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252818101527f4f6e6c792063616e6479206f776e65722063616e20736574206d657373616765604082015260600190565b6020808252601a908201527f436f6d6d756e6974792073616c65206973206e6f74206f70656e000000000000604082015260600190565b60208082526018908201527f496e636f7272656374204554482076616c75652073656e740000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526017908201527f5075626c69632073616c65206973206e6f74206f70656e000000000000000000604082015260600190565b6000808335601e19843603018112612fd4578283fd5b83018035915067ffffffffffffffff821115612fee578283fd5b602001915036819003821315610c6057600080fd5b60008219821115613016576130166130fb565b500190565b60008261302a5761302a613111565b500490565b6000816000190483118215151615613049576130496130fb565b500290565b600082821015613060576130606130fb565b500390565b60005b83811015613080578181015183820152602001613068565b8381111561138d5750506000910152565b6002810460018216806130a557607f821691505b602082108114156130c657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156130e0576130e06130fb565b5060010190565b6000826130f6576130f6613111565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461181057600080fd5b801515811461181057600080fd5b6001600160e01b03198116811461181057600080fdfea2646970667358221220ad5ec85d27cfc25a5051eda7f95b4d079008593386c7078051bf01049a12a7bb64736f6c63430008000033

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000002710

-----Decoded View---------------
Arg [0] : openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : maxCandy (uint256): 10000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000000000000000000000000000000000000000002710


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.